From f8e42c6320db88dc345594afa41ba416afc38544 Mon Sep 17 00:00:00 2001 From: Ward Truyen Date: Wed, 21 Aug 2024 15:48:31 +0200 Subject: [PATCH] chore: frontend update --- back/Dockerfile | 2 +- back/target/familySite1Backend1-0.1.0.jar | Bin 57343314 -> 57343314 bytes front/dist/familySite1/index.html | 4 ++-- .../dist/familySite1/main.16d538b861c9512c.js | 1 + .../dist/familySite1/main.2f6df5d029e719c0.js | 1 - .../familySite1/styles.86694e71bdbfb83c.css | 1 - .../familySite1/styles.a8ea21a7b7265027.css | 1 + 7 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 front/dist/familySite1/main.16d538b861c9512c.js delete mode 100644 front/dist/familySite1/main.2f6df5d029e719c0.js delete mode 100644 front/dist/familySite1/styles.86694e71bdbfb83c.css create mode 100644 front/dist/familySite1/styles.a8ea21a7b7265027.css diff --git a/back/Dockerfile b/back/Dockerfile index e5843b0..40aa1e9 100644 --- a/back/Dockerfile +++ b/back/Dockerfile @@ -4,4 +4,4 @@ ARG JAR_FILE=target/*.jar COPY ${JAR_FILE} app.jar EXPOSE 8080 -ENTRYPOINT ["java","-jar","/app.jar"] +ENTRYPOINT ["java","-jar","/app.jar"] \ No newline at end of file diff --git a/back/target/familySite1Backend1-0.1.0.jar b/back/target/familySite1Backend1-0.1.0.jar index 8997a7ab42fd677d90b7685d6347758bb01fc79d..e0faa28f30d78ac929bab2e8229f336d53c262b1 100755 GIT binary patch delta 8138 zcmajkc`%j#-^X#zkr0tByOivENwy>^qDX``OGqaXNxM^#Hc_cgiwGfwC|e7%q>^kc z3fWpvk`yV@{eJbGx$oco&-Z8M`Iz@yhtHY0t~u9SKBw{5b=gL0vZEc7N1Tg~kB@6) zuY`MIS)V@Bm-R ze-~`7XL!x{yWqU<44;2lko~}o-&M9rVm#r#;9>nom3BF6FV5XJ(@N{!1AWgmlBO$X zL~r6d!cmEyU8lF`!g9Ywp7Cj;7y5f8w+D0bmfkT9^p;JxefD(ov(WY*d)vq7J2-sV zJwsV3Qrl+NuDKW97vF9F(l#2EKEAb=pX=^dU5hi3-fQTBLBi(yZFHa?q3Q zpB*f4LAp6x=D?NIZ`QS=8az{+a%>k)S|y#G*p&7=R65kq=(FAkZ=jd|(X;dI8r)-_ zGE%&vvZpI)FSOA;->NiCu2NEB^}$On6M3WhTaC7S+CMMJ^R8n~M3P|jsCKRT^ieT@5_v z+w(O~da9>bYOd}#Eg?n6V39giq3jo%TV(Y6`PLoR4b79f!z*1NU%cz})Q;;Z0)^gg zWt%ku*$+G2_p-KB2k$&}z&rKvSBZpW6#|M^`ff*LKh0OZy+!F6~@9vsWZJ&*XIHQ$}=<*DDtufs?27 z7AG7Vu5y$$v=5(lDLQz!&9RyOsmnCvUj|s++aUSmjedk)$@SCh;B|dw^93~J`iGCq zvh)~`RuouJ5!oN!ALIVZa;b95`#I-b*=n1Q775A5So&?hn6~gz{Hil*b;%=#gP(?$ zKg=(3PW6>8f3vaa!t8+Txc5)4Zt%(4a?hvmXxyTV!zs4@BEl(?Yp^@JGDVl@k^7Fbc0Jo)m7Vy+O+PI6N>U|hFXqQC%((w63x3Q zd@SgLj{Et+oIBPE16N!7=X@VFjp@}s{=;$ive#!5VzyRq&N{bkQR`c?^H)@49(fpd zx;-~Cs^MKMX>`jmWc_1ag)5fkaheAD^QDp^EGMf7YNr-DiFU+x=kf}uvQ1q&Jm2xj zOH}{58;fC&l-eJ=?==o+zMOo3pL+j{3mH z#nB1Bc4m1N{rJ=6+}#>HV|qzSDBlWJ$ikJh2)D z!Azeo1GkhmB<%aF^}1zV?>ZfyAvV9Z^t1e`^5&p`lw}LvgibNEk_dOo8J(DwC*M6P z*pTX4dp`Z*LDg?U`CUhn4f5=p3Pkx$vbCdKKFsY7+vYZWEwbr)^D%*t%`%x6emp&) zx=F22OH;Ley?eG*rFzf>(|n1M0>$>S?Gk$&9{l*qWVPPTl>QKDxa{F{>9DSP19sfS zfF&PF%`dU_s`YjX3~x$H=vcP?`OT_l8Pg|z|0(srY+Y+w`e60Fq}z9kS54RVFS<8l zpW=}U-z$&ypH3bUv(WguLc*i!J(te2a^10!nc=A&O)fqk;aEEJH&wONH<(-v}9=zWnyVfO^E9jx=mCM_^!hbCg zsab2S&5m>pVC@uN64RpV`sv7q{L?v&Db+S24lkTOZdBqhEDN{$o-SE^ZHI81UCocj zLm^JQ0qx)UP8&|m4V7scsc+w ztefR;&Z?g##2WDN6Kal`wL`Ht%W_s*tgy(?#91-B*_y)j)ra04{nFl*=zM*KfbElW z?5IG+vn6cnJIfscgd1C|7MIEG5mz)7NQ{Uz9pRa$?sIq_`)IhZab@+u#`vd^-?(oU ztQm7~88JC7E1j(U%s>4`!@jl`H^Vm1FFoA-aZ`Hk4Z-D|eotna37@OtR!pc=(q)wQ z8uW%<5`Sr3%Qjk}Vw60^vUg0y!M19rMM0-m{0ytJNfL=kdLxHTA{X~$Xvy-%eq6q5 z(9B%de65PP?@tATHTNIb_s_fd_{}3@!Te=!`Q+W|*1r?&nl`?C*Rpk0PQj+a-)6IP z$}=v;SDhB#u#oG~(9}t#7m_FR>2mrS|199Ribd^v>SkFKxQH!VP~WZ)@Id5z;*(LE zIbUXo-?I~Ko3SIhZ|LTl$sV^n{0gfV^IXn4FKD6jd!3z@Lw!qkNcdFc^HS2UCm;Dx z_jc0x!}dPY8_!yO)7ThsD9L_w=l-Pbm6E)W$f2kWASR?nm0;0O%`2s zq95nQCm$WNTPQJpwDfJ_)jzt9b`$w*raL)1^K)@srU$zJeN5!x!c*V8afbK5Jfsyq z8fUakU}vjU6h@3pF1g;ZTcada(J`oY(UZKiK3kJ7HrvGxeTemCsXuNlOyBBYHZLyS z^M+q9f5qnL=3yTbmyY=*QYlh}oPyqrdwM}n%HO=9k8(gr$}JfS(ex^t{c$QgKdD-t zew(gQ60LgutFrdk^ur!qt^(oO%h;t}{%fYaw)(i&Kkxg7HDO==wE524xj(3KQkm|< zFH#>z@5s7ENXfcxj6bG(kk^7~D&uB6KL1dPO;maPx8ZT?){weSi*H{PDtK|fXH?DG zJ?fTe((P>j9cPT&MFqyI>YY!o7axl#3DmJ)GI33;l&j-&Mq%^>rX_^|MP$Pk^5!m97YJF^V%Pru?Y0!n_Tj5h`k8mlB&$@Pk9LV|7&os_puAA9ML~B-;w%p-)5jb4)pAFNhwe$= zG&8HW)uCz1E~g%yHkX1n=IB95?lqS;ohiI6of3LxFZaCz#}bn4ilQ&4w=Qff-{G>U zCFsQ2Jgc@qvEG0ot=S_^J12R&ymgls3*#3Jy?bi=uWQ|18dbLLMI%!r-U;^j|CVTc zIqGJ?jy=x(J^xQkm153&;eb->CzphCyLE=&RBW|aU;OIsG3JjgBa?ew#Ch@}#*O>F zGnzYF)(Bo@HeEi|F7)b{vXgSwd$Awe=YF=|VY;9F;C7+9PQy=q#c{(ssl~0T#j|B> zm!_v@=<7{el+&0ddYpxIt4+G zPT4(&s{U}}Lmb=oyi1jri|gZLjy@k#juYL(FfDWuX4*R7|E@zx>zEV|HG$%#CQ^J9 zKP5m-q68@+YBD8EiBMB0QA&&wr?8eJHIl1vQ_tq!v(C zlr^=GT0||TY$#i531vswQ%k93lmq2REvKBQ6_hjOLan4+DL2ZUT1Bm<)=+Dyb(9C? zNqJG;)OyN?@}>N!4U|8%kz!Gsr~qm+6-Wh9Tc}_vgxX4lQroC7YCE-q+DYxAc2j$( zy;L~GruI?$sRL956-gbWqNqdEVd@BVlsZO5Q^%`Q0J)g z)CKAy6;EBF5~xJ#GL=LnQz_IHDwRs3(y6Od26c_PPGwSAR5o>k%AsM2!A)lv0S1Jy`9 zqn=YQsFzd|^@@5;HB&8AEA@tIquQwss*~!X-cs+V_tXcfo9dx@sgKkrs*n0i^;2J{ z0qQF?NPVNeQ$y4+^@AFrep0`vQEH6(O^s83jwP+*j->ztFaZyk0C>Sfzz6t&0GI>> zfe@Gsgnd3@$rE@1Z?GQt0AJt-HUNLH z5wO4}5CArVKoA7BfM5^;wt`Tw4TOR1UUgG`VGvcV0I19HJla0}#td{6)iK@qqO?tr`C9w-JSpcLE(WuP2XfJ*QH zRDp-!5qJ!$!4pseo`PCX2kJosXavu|bMOMZ1Wn)-cnz9C3upyzKpSWW9iS6*fw$lt zcn>~+ZqNgI!AI~3^nuTyAAA7=;42se-@tb;1ct#6FamypUtkoBf!|;p{NbkCAA<&N zzyM6Z1111oFcI(pejorQ0YM-HCIew00;T{_AO^&N1ds$%ffSGiGC&r{0ePSR6u~s0 z1g3)-KpD&gDnJ#e0d=4OG=Ub-20B0&=mC9T0A_*Nz!1yem95{g$z!|uJmB1Ca0e7$ptOjeqTJZO( zdSLPdUceiy2R^_T_<;?;A8Z6Hun7c!%^(m2fh`~ygn+Fe6l?=wU_00Wc7k1CH`oLA zf^fhF`@nv107QUDa1ca+L*Ott0*-=XAQ~J8F(4M404KpI5C=|!GvF-XfOFtHxBxDK zcyI|MfJAT^B!Og*0WPxmO1LS~Qa1-1Dc_1GYfI?6NZi74E zF1QDZK?x`Y_dyvb2Nj?aJOEYTA$SBHgKF>u)PSd;7Sw@y&;T02Gw>X|053rkcm-aA zX3zp!!5h#9+Cc~C1YO`Qcn98t51bAPU5QIFJC6 zU@DLT(m)2t0y!WL6o4X_29&^bFas!qnLq`o0yUrxG=L`10@^?a=mI^U4-CL8FdG4jF@=n=8&I0dVKKv) z7!x%vvS=rRCileBcs-_MLOhG9^!JyPY0}dB`x0mQ!(^Gnz#0})`tM6eX=?lXy>Q~D zIu>*FzwBux>eaHCf{8btvX~;J0`)AW6!$;x*3qudlu4Z5z+x)?b6|^A8n+~;BTR-T zaW5U!{^zLPLj#6P=_5MO!pl!vlJ0+ZD-$zcv6un>_O|n1)7vWH5B_sI&YnyA@0Zu$ z%6^@31}CYJVaSOXXUPB8#in7g|J!Ea;#&Iu7SrcTOloB@XLB5dnG+K2n^{cR|F)z^ nX(IjF{fYma<7y>2nbN&oEaoDazgMPejK#G4I|=+|F>U?_pIjO` delta 7969 zcmaLcc`%j#-^Xz|C4^)>c99Cn8YN3o))Y#l6lHIb63KFuC6pv_Dk7y)6m4ih6q0PM zim$DRFNsnS>3+ZJH}kvif9^B$e9U{UGnX@SUFTeLxjxT-=1M)M1Z=GtQ$;wqxw$!( zgo`A9?a}$aCN|g@eh#G4@zt%a_cgI$wrJ(Ut~I!6{S!{QZdV-&2$sG_o@rITvFn zde_M5rpT^SppUd3;dIROYxZT#XH`1Ig$Tcy_1p06{++=$q94s-Ogr3cRw1C}$X%%U zZHh_4QRTq&-8#co_nVJgbn*C6QP>bZp6S8+)M0_iG}DeKT~=1K z@R>!Dvax41y3(`Gzqq}st%HBJ?hrLYk2J9jYA+V0Wi53+bnxV-Gp&J__IL_-ywRV? zF}ZdqBHklsn^WpnR_ja>bs%4aY_cZs+>|&pd&W9rMswAgvcQBaV&-}M1USr+qK@;Ab z*$gJ1j9ufyf~G*TN4uVCUTb=PELCUjPA>z4s$iASC%e}cc1wn+?fRm8qnu0h&4r|s z=KL(J8wSiX{pp81V+wO)jcuDew)7DoDYh{as; z=D8_y_FMCU#gd-ADnifgkB*$El{r*lvcv9%!{~;6uCBfHVT>Z#USX*n;!*>y-uw$6 zrpq_17S(eT*R=Uivee}C)fqkWHmrzsdVO&9wEGUM0JoW@bpvnsx~~U6JszAe+LRzW ztwiN#L6F(HicfDwnKg54j<{KB2=T0pdYk4jU>@~7=!IrO^Pb`Bjgk5)V;k44Xj=2s zStUjO>aJ7Wy~DRf#odK3-caAGE+c2_FW7Kdrud&vizSr@xi{OW2i#`f=aMLtDLL>~ zd?@z?KV4cXzOL3QC`0_F9hVW2Zl`sna(HVr7Jb3soVNb zA9Qz8^4O%95tyTq?cTa7j(2U2hJbCwj3bc)g5t3;HjV2ZMXRMg;{F92>ms(6`ygx5l9IrE%IiYD|?B1H9J2gMhex22TUV>qv z(W_)#Vf{PJR_X3ex8C^gxLh(j?NyyvpB}SDB=c&Oa_hB@XqCb8Be4ocnxm}do2}uy zf8=|sklIt9At6z9R%Pu98(-na(LG~n`zP&X>g-)|%Iqt1hkSWu{F^&s^mx{bXfKZo zRvUB}(ihFImhwDRQr+ z<53oDmuS8;v#DKte03F{m&Fk!?~AK<>E|uEw7-5q>Q~KV*5cCKlm43r43~*NLL)%CsDkkoqUtDsxzD1s~(AAUPlRs(uPRL(M*Cn}iuy8?|{*pT?b{Q+j zW@+ox^2@#H+M}wLD>%4%Z^-iizOx2f%nTL#qx+TaJEZGac}UwVPYz)2+iiB|!Gq@E z2m$q54C9nDJd=|OU(U|>%qnoXU2QM9b9gvhEk)C1k@qoYodM~4avM0ZSMDk+$@yie zD0ZyLwJz~@9oIbdwX%-vCk)w?mVYj_g;#5qTpX75ZBVX${lY(T&qh_xvl2ga*37*U z$MwZ=b+PWZI{sTVN!@h|Qd^yFMo#y!ZTJwsiBHhH*Y)@X9#iYSYbW_e-?M_R9;~QY zExMSwWVw0t&B?)*D^a{{>RK|27ekuw#wIP~F<+FXDjO3g6kpc3Iv~TRG$Lb7w76IE zy`d82As@%189#$dT#JAF=DfOhuz1$2c02uOVPNXf!Zoal+UPu^ETwJtUOPFBC+vJ_nUl8gyk}0u8s2@s z&z%kIsxn#|(3i5er_b}Cdui5s1G{xGg_SZ(lg_<=SFz6H*xrKNM>idn9&CQK`K4fx zcY$x4o@vIltk#=(>B|y#?qx@Z>~BVyrT3D7vMpn`5D4*I_Teu2o5kI|@Pt^Es_q>FUZu;Q*ty@bZ#g?V^;vo>h`sOY^X+zl^}%zQK_0qcMXg z>g}q=DjFRn*B~IA@HXpf3J($_BUK3NA_PY4U`;zDk!S4abaihLmh$9 zp*aG#OGmOv{K_U zzZR^%(4)|Luf}K9*zWaHBhHmMb@;}M<&~*dk4sY5Wt_X*(7juH&S?>e zF@c(%hW9g0$F6c$c%HiLt7_rs$?I=cG^OUPQ0Cp?btS;4;WRf|ePyA(RaO>Y(?&Sc3bWC_aYA~3e0bTyJZtleD!tyZw2`7??kuy9KU}9t?v$D7Bw#}OE=-`cFgM+Vy;@py@ z6u8P}bp05OJY*dIqC1l*DQ+9`Iz(>eFA2TY@v@-EHJdx6MwTD%9iP8-L(HwES$D5{ z?@w9MF2p-o)wu3tC-0=m7CrH~7a7;hkE+g3Vid(sW0-Jq8q~AvrZW}_dENf47CODX z+Apqa`j?-I!M}Le{M-yC@3!>E{2S@8MKIar3JhtsH8*4Ze-2j-H{&OR#q-|9>h|dV zlzG42sXUN7Z~A_^R?lwjqiMH?{kbzc*79W5j7o12>|x&y*jsg`$EspG?*_-OQPsA| z%Ar3m4@n<){1Un3@|iQ`XH%m*Y(Cz+!Fj{Y(OoL!i;!$MAc{ z8k3g?4PU?cO}1J6Hg^Z7OYVcZI_AaPff*g5n@0FtDm)B_#u^6Q_$-?-F414v<|18u_)(BW{(1RxG9wLcm&F?e+IzMxlPTs( znb`Gk^PD6FAGOTlvPV8%6)ijys`Vu{{&Dq*V?+5(YM;7|`YtwE`05+lBph6FDn>IV zBJwChIJIClZ^p&;lcrbs-nf0N9TR4)+&FvkeB7pw{wHTQ=_bDCn^)oNxN+}Zr~8S? z&R-1XPq$+TbVuJO9Nmemm9tRKG5@1K~^af6OXjP5<0!8rs)gJ|tRN9^^eCho7R6 zd`*TD7YE0`0)M|#M|(M!7CFphSg!f=f7jvbn;FzpY8u5wO{cgi9*UQmLGe-ilmIo8 z5~OBPLXhf<>EQuCJSx4 zMN!dI40V`_rQ)b~>Iij|N}!HWiPUi_i8?_gQzxkuDwSeWr>N7^87hrRr_NFtR3>$f z%A(Fw7pQFNB6W$nOyy8lsH;>il}BBpu2cC`0d<4AN!_AuQ+KFBs)#D4?o#)t`_u!f zges-VsE1TJRY5(X9#fT66;(|=p=zk7R4w(4s-xNWL-YNp;& z@2D24mHLNjquQwss*~!X-cui_ZmNg+NcB>E)W1|eH9&o$2C2`~5H(DFp}tZh)Hmuo z^@AFv#;BjvI5k22q9&=|N3L(4l1KqgzyMRhG{6O>18%?rc)<+72l#;im;isZ zH}D60z+Mml_JKeU1oneqZ~%mWP!I;f0SiQcgWwQ|1W_Ow#DK#f7Q}&ga0DC$3E&t= z1jj)VI02HuNst0k0UMkGr@-kF;0Cw}Zh_n24k!dgpcvc*_rQJd0F;1IPzD}?a!>&tfybZ{RDo*n1k`}1pcXs> zb)X(JfJV>+o`VJM>U%?3Y2EKzIU=)mjpI{tJfL~w|{GLLWKTaB^08YRFQ^7RA1*QXT zzyo-}48RBYfdH5Z1i>sI1cZSI5CvjD958_dkOWdd8pr@yAP3~ZY@h%X!5p9j=7M=( zK2QcKKou+iYG5Hy2O2;VXaQ}Y0~P^Ypa&L%B|sl61qQ$n7y)Cj448oBz!a z2Nu8*SOIIW3fO?vU=6SZcEBF21?zwVSPvY56W9Qp!A7tNxPU)rbqgj};0CsWZNMFP z08iirynzq!1>3<6uoLV8eqcB72YbL?5CHapKoA7>gJ5s~gn&>G2EqXgM1X_f5Qqd( zAR5Gg!yp#Kfp~BP90dvB7)S)iK@vCtlEF!k0#X4RoC2r88IT6j!C8<2GQl~J11rRgCAfNjDeqE987>;U=sZ1 zq{|-j-W`9QmFdjJ*8e_A`MZZa_W19E z5)KZV|FefScV - + - + \ No newline at end of file diff --git a/front/dist/familySite1/main.16d538b861c9512c.js b/front/dist/familySite1/main.16d538b861c9512c.js new file mode 100644 index 0000000..45b1dba --- /dev/null +++ b/front/dist/familySite1/main.16d538b861c9512c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkfamilySite1=self.webpackChunkfamilySite1||[]).push([[179],{534:()=>{function le(e){return"function"==typeof e}function Vo(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const fs=Vo(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function Ho(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class It{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(le(r))try{r()}catch(i){t=i instanceof fs?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{dh(i)}catch(s){t=t??[],s instanceof fs?t=[...t,...s.errors]:t.push(s)}}if(t)throw new fs(t)}}add(t){var n;if(t&&t!==this)if(this.closed)dh(t);else{if(t instanceof It){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Ho(n,t)}remove(t){const{_finalizers:n}=this;n&&Ho(n,t),t instanceof It&&t._removeParent(this)}}It.EMPTY=(()=>{const e=new It;return e.closed=!0,e})();const uh=It.EMPTY;function ch(e){return e instanceof It||e&&"closed"in e&&le(e.remove)&&le(e.add)&&le(e.unsubscribe)}function dh(e){le(e)?e():e.unsubscribe()}const or={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},hs={setTimeout(e,t,...n){const{delegate:r}=hs;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=hs;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function fh(e){hs.setTimeout(()=>{const{onUnhandledError:t}=or;if(!t)throw e;t(e)})}function hh(){}const ME=Fl("C",void 0,void 0);function Fl(e,t,n){return{kind:e,value:t,error:n}}let ir=null;function ps(e){if(or.useDeprecatedSynchronousErrorHandling){const t=!ir;if(t&&(ir={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=ir;if(ir=null,n)throw r}}else e()}class kl extends It{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,ch(t)&&t.add(this)):this.destination=OE}static create(t,n,r){return new jo(t,n,r)}next(t){this.isStopped?Vl(function IE(e){return Fl("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Vl(function SE(e){return Fl("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Vl(ME,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const AE=Function.prototype.bind;function Ll(e,t){return AE.call(e,t)}class NE{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){gs(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){gs(r)}else gs(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){gs(n)}}}class jo extends kl{constructor(t,n,r){let o;if(super(),le(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&or.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Ll(t.next,i),error:t.error&&Ll(t.error,i),complete:t.complete&&Ll(t.complete,i)}):o=t}this.destination=new NE(o)}}function gs(e){or.useDeprecatedSynchronousErrorHandling?function TE(e){or.useDeprecatedSynchronousErrorHandling&&ir&&(ir.errorThrown=!0,ir.error=e)}(e):fh(e)}function Vl(e,t){const{onStoppedNotification:n}=or;n&&hs.setTimeout(()=>n(e,t))}const OE={closed:!0,next:hh,error:function RE(e){throw e},complete:hh},Hl="function"==typeof Symbol&&Symbol.observable||"@@observable";function sr(e){return e}function ph(e){return 0===e.length?sr:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}let be=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function FE(e){return e&&e instanceof kl||function PE(e){return e&&le(e.next)&&le(e.error)&&le(e.complete)}(e)&&ch(e)}(n)?n:new jo(n,r,o);return ps(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=gh(r))((o,i)=>{const s=new jo({next:a=>{try{n(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Hl](){return this}pipe(...n){return ph(n)(this)}toPromise(n){return new(n=gh(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function gh(e){var t;return null!==(t=e??or.Promise)&&void 0!==t?t:Promise}const kE=Vo(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Cn=(()=>{class e extends be{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new mh(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new kE}next(n){ps(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){ps(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){ps(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?uh:(this.currentObservers=null,i.push(n),new It(()=>{this.currentObservers=null,Ho(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new be;return n.source=this,n}}return e.create=(t,n)=>new mh(t,n),e})();class mh extends Cn{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:uh}}function yh(e){return le(e?.lift)}function $e(e){return t=>{if(yh(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function He(e,t,n,r,o){return new LE(e,t,n,r,o)}class LE extends kl{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){t.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function te(e,t){return $e((n,r)=>{let o=0;n.subscribe(He(r,i=>{r.next(e.call(t,i,o++))}))})}function ar(e){return this instanceof ar?(this.v=e,this):new ar(e)}function $E(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function Dh(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,l){!function o(i,s,a,l){Promise.resolve(l).then(function(u){i({value:u,done:a})},s)}(a,l,(s=e[i](s)).done,s.value)})}}}const _h=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function wh(e){return le(e?.then)}function Eh(e){return le(e[Hl])}function bh(e){return Symbol.asyncIterator&&le(e?.[Symbol.asyncIterator])}function Mh(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Sh=function UE(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Ih(e){return le(e?.[Sh])}function Th(e){return function jE(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(h){return new Promise(function(p,m){i.push([f,h,p,m])>1||a(f,h)})})}function a(f,h){try{!function l(f){f.value instanceof ar?Promise.resolve(f.value.v).then(u,c):d(i[0][2],f)}(r[f](h))}catch(p){d(i[0][3],p)}}function u(f){a("next",f)}function c(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield ar(n.read());if(o)return yield ar(void 0);yield yield ar(r)}}finally{n.releaseLock()}})}function Ah(e){return le(e?.getReader)}function Tt(e){if(e instanceof be)return e;if(null!=e){if(Eh(e))return function zE(e){return new be(t=>{const n=e[Hl]();if(le(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(_h(e))return function GE(e){return new be(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,fh)})}(e);if(bh(e))return Nh(e);if(Ih(e))return function qE(e){return new be(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(Ah(e))return function ZE(e){return Nh(Th(e))}(e)}throw Mh(e)}function Nh(e){return new be(t=>{(function YE(e,t){var n,r,o,i;return function VE(e,t,n,r){return new(n||(n=Promise))(function(i,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?i(c.value):function o(i){return i instanceof n?i:new n(function(s){s(i)})}(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=$E(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function Dn(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Be(e,t,n=1/0){return le(t)?Be((r,o)=>te((i,s)=>t(r,i,o,s))(Tt(e(r,o))),n):("number"==typeof t&&(n=t),$e((r,o)=>function QE(e,t,n,r,o,i,s,a){const l=[];let u=0,c=0,d=!1;const f=()=>{d&&!l.length&&!u&&t.complete()},h=m=>u{i&&t.next(m),u++;let v=!1;Tt(n(m,c++)).subscribe(He(t,E=>{o?.(E),i?h(E):t.next(E)},()=>{v=!0},void 0,()=>{if(v)try{for(u--;l.length&&up(E)):p(E)}f()}catch(E){t.error(E)}}))};return e.subscribe(He(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}function Rr(e=1/0){return Be(sr,e)}const Qt=new be(e=>e.complete());function $l(e){return e[e.length-1]}function Rh(e){return le($l(e))?e.pop():void 0}function $o(e){return function KE(e){return e&&le(e.schedule)}($l(e))?e.pop():void 0}function Oh(e,t=0){return $e((n,r)=>{n.subscribe(He(r,o=>Dn(r,e,()=>r.next(o),t),()=>Dn(r,e,()=>r.complete(),t),o=>Dn(r,e,()=>r.error(o),t)))})}function xh(e,t=0){return $e((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Ph(e,t){if(!e)throw new Error("Iterable cannot be null");return new be(n=>{Dn(n,t,()=>{const r=e[Symbol.asyncIterator]();Dn(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function xe(e,t){return t?function ib(e,t){if(null!=e){if(Eh(e))return function eb(e,t){return Tt(e).pipe(xh(t),Oh(t))}(e,t);if(_h(e))return function nb(e,t){return new be(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(wh(e))return function tb(e,t){return Tt(e).pipe(xh(t),Oh(t))}(e,t);if(bh(e))return Ph(e,t);if(Ih(e))return function rb(e,t){return new be(n=>{let r;return Dn(n,t,()=>{r=e[Sh](),Dn(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>le(r?.return)&&r.return()})}(e,t);if(Ah(e))return function ob(e,t){return Ph(Th(e),t)}(e,t)}throw Mh(e)}(e,t):Tt(e)}function Bl(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new jo({next:()=>{r.unsubscribe(),e()}});return Tt(t(...n)).subscribe(r)}function ie(e){for(let t in e)if(e[t]===ie)return t;throw Error("Could not find renamed property on target object.")}function Ul(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function Pe(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Pe).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function zl(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const lb=ie({__forward_ref__:ie});function ue(e){return e.__forward_ref__=ue,e.toString=function(){return Pe(this())},e}function $(e){return Gl(e)?e():e}function Gl(e){return"function"==typeof e&&e.hasOwnProperty(lb)&&e.__forward_ref__===ue}function Wl(e){return e&&!!e.\u0275providers}const Fh="https://g.co/ng/security#xss";class w extends Error{constructor(t,n){super(function ql(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function B(e){return"string"==typeof e?e:null==e?"":String(e)}function ms(e,t){throw new w(-201,!1)}function At(e,t){null==e&&function oe(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function O(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Nt(e){return{providers:e.providers||[],imports:e.imports||[]}}function ys(e){return kh(e,vs)||kh(e,Vh)}function kh(e,t){return e.hasOwnProperty(t)?e[t]:null}function Lh(e){return e&&(e.hasOwnProperty(Zl)||e.hasOwnProperty(mb))?e[Zl]:null}const vs=ie({\u0275prov:ie}),Zl=ie({\u0275inj:ie}),Vh=ie({ngInjectableDef:ie}),mb=ie({ngInjectorDef:ie});var L=(()=>((L=L||{})[L.Default=0]="Default",L[L.Host=1]="Host",L[L.Self=2]="Self",L[L.SkipSelf=4]="SkipSelf",L[L.Optional=8]="Optional",L))();let Yl;function it(e){const t=Yl;return Yl=e,t}function jh(e,t,n){const r=ys(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&L.Optional?null:void 0!==t?t:void ms(Pe(e))}const ce=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Bo={},Ql="__NG_DI_FLAG__",Cs="ngTempTokenPath",vb=/\n/gm,$h="__source";let Or;function $n(e){const t=Or;return Or=e,t}function _b(e,t=L.Default){if(void 0===Or)throw new w(-203,!1);return null===Or?jh(e,void 0,t):Or.get(e,t&L.Optional?null:void 0,t)}function A(e,t=L.Default){return(function Hh(){return Yl}()||_b)($(e),t)}function S(e,t=L.Default){return A(e,Ds(t))}function Ds(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Xl(e){const t=[];for(let n=0;n((Xt=Xt||{})[Xt.OnPush=0]="OnPush",Xt[Xt.Default=1]="Default",Xt))(),Ct=(()=>{return(e=Ct||(Ct={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Ct;var e})();const wn={},ee=[],_s=ie({\u0275cmp:ie}),Kl=ie({\u0275dir:ie}),Jl=ie({\u0275pipe:ie}),Uh=ie({\u0275mod:ie}),En=ie({\u0275fac:ie}),zo=ie({__NG_ELEMENT_ID__:ie}),zh=ie({__NG_ENV_ID__:ie});function Gh(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}function eu(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;ii?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==Gh(h,u,0)||2&r&&u!==f){if(kt(r))return!1;s=!0}}}}else{if(!s&&!kt(r)&&!kt(l))return!1;if(s&&kt(l))continue;s=!1,r=l|1&r}}return kt(r)||s}function kt(e){return 0==(1&e)}function Tb(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!kt(s)&&(t+=Kh(i,o),o=""),r=s,i=i||!kt(r);n++}return""!==o&&(t+=Kh(i,o)),t}function Lt(e){return _n(()=>{const t=ep(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Xt.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||Ct.Emulated,styles:e.styles||ee,_:null,schemas:e.schemas||null,tView:null,id:""};tp(n);const r=e.dependencies;return n.directiveDefs=ws(r,!1),n.pipeDefs=ws(r,!0),n.id=function $b(e){let t=0;const n=JSON.stringify([e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.exportAs,e.inputs,e.outputs,Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery]);for(const o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function Lb(e){return ne(e)||qe(e)}function Vb(e){return null!==e}function Vt(e){return _n(()=>({type:e.type,bootstrap:e.bootstrap||ee,declarations:e.declarations||ee,imports:e.imports||ee,exports:e.exports||ee,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Jh(e,t){if(null==e)return wn;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}function j(e){return _n(()=>{const t=ep(e);return tp(t),t})}function st(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function ne(e){return e[_s]||null}function qe(e){return e[Kl]||null}function at(e){return e[Jl]||null}function Dt(e,t){const n=e[Uh]||null;if(!n&&!0===t)throw new Error(`Type ${Pe(e)} does not have '\u0275mod' property.`);return n}function ep(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,exportAs:e.exportAs||null,standalone:!0===e.standalone,selectors:e.selectors||ee,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Jh(e.inputs,t),outputs:Jh(e.outputs)}}function tp(e){e.features?.forEach(t=>t(e))}function ws(e,t){if(!e)return null;const n=t?at:Lb;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(Vb)}const Fe=0,I=1,G=2,ve=3,Ht=4,lr=5,Ze=6,Pr=7,_e=8,Fr=9,ur=10,U=11,Wo=12,np=13,kr=14,Te=15,qo=16,Lr=17,Kt=18,Zo=19,rp=20,Bn=21,bn=22,Es=23,bs=24,X=25,tu=1,op=2,Jt=7,Ms=8,Vr=9,Ue=11;function _t(e){return Array.isArray(e)&&"object"==typeof e[tu]}function lt(e){return Array.isArray(e)&&!0===e[tu]}function nu(e){return 0!=(4&e.flags)}function cr(e){return e.componentOffset>-1}function Ss(e){return 1==(1&e.flags)}function jt(e){return!!e.template}function ru(e){return 0!=(512&e[G])}function dr(e,t){return e.hasOwnProperty(En)?e[En]:null}let Wb=ce.WeakRef??class Gb{constructor(t){this.ref=t}deref(){return this.ref}},Zb=0,en=null,Is=!1;function je(e){const t=en;return en=e,t}class up{constructor(){this.id=Zb++,this.ref=function qb(e){return new Wb(e)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[t,n]of this.producers){const r=n.producerNode.deref();if(void 0!==r&&n.atTrackingVersion===this.trackingVersion){if(r.producerPollStatus(n.seenValueVersion))return!0}else this.producers.delete(t),r?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const t=Is;Is=!0;try{for(const[n,r]of this.consumers){const o=r.consumerNode.deref();void 0!==o&&o.trackingVersion===r.atTrackingVersion?o.onConsumerDependencyMayHaveChanged():(this.consumers.delete(n),o?.producers.delete(this.id))}}finally{Is=t}}producerAccessed(){if(Is)throw new Error("");if(null===en)return;let t=en.producers.get(this.id);void 0===t?(t={consumerNode:en.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:en.trackingVersion},en.producers.set(this.id,t),this.consumers.set(en.id,t)):(t.seenValueVersion=this.valueVersion,t.atTrackingVersion=en.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==en?.consumerAllowSignalWrites}producerPollStatus(t){return this.valueVersion!==t||(this.onProducerUpdateValueVersion(),this.valueVersion!==t)}}let cp=null;const dp=()=>{};class Kb extends up{constructor(t,n,r){super(),this.watch=t,this.schedule=n,this.dirty=!1,this.cleanupFn=dp,this.registerOnCleanup=o=>{this.cleanupFn=o},this.consumerAllowSignalWrites=r}notify(){this.dirty||this.schedule(this),this.dirty=!0}onConsumerDependencyMayHaveChanged(){this.notify()}onProducerUpdateValueVersion(){}run(){if(this.dirty=!1,0!==this.trackingVersion&&!this.consumerPollProducersForChange())return;const t=je(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=dp,this.watch(this.registerOnCleanup)}finally{je(t)}}cleanup(){this.cleanupFn()}}class Jb{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Rt(){return fp}function fp(e){return e.type.prototype.ngOnChanges&&(e.setInput=tM),eM}function eM(){const e=pp(this),t=e?.current;if(t){const n=e.previous;if(n===wn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function tM(e,t,n,r){const o=this.declaredInputs[n],i=pp(e)||function nM(e,t){return e[hp]=t}(e,{previous:wn,current:null}),s=i.current||(i.current={}),a=i.previous,l=a[o];s[o]=new Jb(l&&l.currentValue,t,a===wn),e[r]=t}Rt.ngInherit=!0;const hp="__ngSimpleChanges__";function pp(e){return e[hp]||null}const tn=function(e,t,n){};function pe(e){for(;Array.isArray(e);)e=e[Fe];return e}function Ns(e,t){return pe(t[e])}function ut(e,t){return pe(t[e.index])}function yp(e,t){return e.data[t]}function ct(e,t){const n=t[e];return _t(n)?n:n[Fe]}function Rs(e){return 128==(128&e[G])}function Un(e,t){return null==t?null:e[t]}function vp(e){e[Lr]=0}function lM(e){1024&e[G]||(e[G]|=1024,Dp(e,1))}function Cp(e){1024&e[G]&&(e[G]&=-1025,Dp(e,-1))}function Dp(e,t){let n=e[ve];if(null===n)return;n[lr]+=t;let r=n;for(n=n[ve];null!==n&&(1===t&&1===r[lr]||-1===t&&0===r[lr]);)n[lr]+=t,r=n,n=n[ve]}const H={lFrame:Rp(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Ep(){return H.bindingsEnabled}function _(){return H.lFrame.lView}function K(){return H.lFrame.tView}function Os(e){return H.lFrame.contextLView=e,e[_e]}function xs(e){return H.lFrame.contextLView=null,e}function ze(){let e=bp();for(;null!==e&&64===e.type;)e=e.parent;return e}function bp(){return H.lFrame.currentTNode}function nn(e,t){const n=H.lFrame;n.currentTNode=e,n.isParent=t}function uu(){return H.lFrame.isParent}function Je(){const e=H.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function $r(){return H.lFrame.bindingIndex++}function Sn(e){const t=H.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function DM(e,t){const n=H.lFrame;n.bindingIndex=n.bindingRootIndex=e,du(t)}function du(e){H.lFrame.currentDirectiveIndex=e}function Tp(){return H.lFrame.currentQueryIndex}function hu(e){H.lFrame.currentQueryIndex=e}function wM(e){const t=e[I];return 2===t.type?t.declTNode:1===t.type?e[Ze]:null}function Ap(e,t,n){if(n&L.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&L.Host||(o=wM(i),null===o||(i=i[kr],10&o.type))););if(null===o)return!1;t=o,e=i}const r=H.lFrame=Np();return r.currentTNode=t,r.lView=e,!0}function pu(e){const t=Np(),n=e[I];H.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Np(){const e=H.lFrame,t=null===e?null:e.child;return null===t?Rp(e):t}function Rp(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Op(){const e=H.lFrame;return H.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const xp=Op;function gu(){const e=Op();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function et(){return H.lFrame.selectedIndex}function fr(e){H.lFrame.selectedIndex=e}function Ce(){const e=H.lFrame;return yp(e.tView,e.selectedIndex)}let Fp=!0;function Ps(){return Fp}function zn(e){Fp=e}function Fs(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[l]<0&&(e[Lr]+=65536),(a>12>16&&(3&e[G])===t&&(e[G]+=4096,Lp(a,i)):Lp(a,i)}const Br=-1;class Xo{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Vp(e){return e!==Br}function Vs(e){return 32767&e}function Hs(e,t){let n=function PM(e){return e>>16}(e),r=t;for(;n>0;)r=r[kr],n--;return r}let vu=!0;function js(e){const t=vu;return vu=e,t}const Hp=255,jp=5;let FM=0;const rn={};function $s(e,t){const n=$p(e,t);if(-1!==n)return n;const r=t[I];r.firstCreatePass&&(e.injectorIndex=t.length,Cu(r.data,e),Cu(t,null),Cu(r.blueprint,null));const o=Du(e,t),i=e.injectorIndex;if(Vp(o)){const s=Vs(o),a=Hs(o,t),l=a[I].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|l[s+u]}return t[i+8]=o,i}function Cu(e,t){e.push(0,0,0,0,0,0,0,0,t)}function $p(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Du(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=Zp(o),null===r)return Br;if(n++,o=o[kr],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Br}function _u(e,t,n){!function kM(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(zo)&&(r=n[zo]),null==r&&(r=n[zo]=FM++);const o=r&Hp;t.data[e+(o>>jp)]|=1<=0?t&Hp:jM:t}(n);if("function"==typeof i){if(!Ap(t,e,r))return r&L.Host?Bp(o,0,r):Up(t,n,r,o);try{const s=i(r);if(null!=s||r&L.Optional)return s;ms()}finally{xp()}}else if("number"==typeof i){let s=null,a=$p(e,t),l=Br,u=r&L.Host?t[Te][Ze]:null;for((-1===a||r&L.SkipSelf)&&(l=-1===a?Du(e,t):t[a+8],l!==Br&&qp(r,!1)?(s=t[I],a=Vs(l),t=Hs(l,t)):a=-1);-1!==a;){const c=t[I];if(Wp(i,a,c.data)){const d=VM(a,t,n,s,r,u);if(d!==rn)return d}l=t[a+8],l!==Br&&qp(r,t[I].data[a+8]===u)&&Wp(i,a,t)?(s=c,a=Vs(l),t=Hs(l,t)):a=-1}}return o}function VM(e,t,n,r,o,i){const s=t[I],a=s.data[e+8],c=Bs(a,s,n,null==r?cr(a)&&vu:r!=s&&0!=(3&a.type),o&L.Host&&i===a);return null!==c?hr(t,s,c,a):rn}function Bs(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,l=e.directiveStart,c=i>>20,f=o?a+c:e.directiveEnd;for(let h=r?a:a+c;h=l&&p.type===n)return h}if(o){const h=s[l];if(h&&jt(h)&&h.type===n)return l}return null}function hr(e,t,n,r){let o=e[n];const i=t.data;if(function RM(e){return e instanceof Xo}(o)){const s=o;s.resolving&&function ub(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new w(-200,`Circular dependency in DI detected for ${e}${n}`)}(function re(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():B(e)}(i[n]));const a=js(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?it(s.injectImpl):null;Ap(e,r,L.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function AM(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=fp(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}(n,i[n],t)}finally{null!==l&&it(l),js(a),s.resolving=!1,xp()}}return o}function Wp(e,t,n){return!!(n[t+(e>>jp)]&1<{const t=e.prototype.constructor,n=t[En]||wu(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[En]||wu(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function wu(e){return Gl(e)?()=>{const t=wu($(e));return t&&t()}:dr(e)}function Zp(e){const t=e[I],n=t.type;return 2===n?t.declTNode:1===n?e[Ze]:null}const Gr="__parameters__";function qr(e,t,n){return _n(()=>{const r=function Eu(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(l,u,c){const d=l.hasOwnProperty(Gr)?l[Gr]:Object.defineProperty(l,Gr,{value:[]})[Gr];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),l}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function ei(e,t){e.forEach(n=>Array.isArray(n)?ei(n,t):t(n))}function Qp(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function zs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function wt(e,t,n){let r=Zr(e,t);return r>=0?e[1|r]=n:(r=~r,function WM(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function bu(e,t){const n=Zr(e,t);if(n>=0)return e[1|n]}function Zr(e,t){return function Xp(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<((dt=dt||{})[dt.Important=1]="Important",dt[dt.DashCase=2]="DashCase",dt))();const Ru=new Map;let mS=0;const xu="__ngContext__";function Ye(e,t){_t(t)?(e[xu]=t[Zo],function vS(e){Ru.set(e[Zo],e)}(t)):e[xu]=t}let Pu;function Fu(e,t){return Pu(e,t)}function oi(e){const t=e[ve];return lt(t)?t[ve]:t}function ku(e){return mg(e[Wo])}function Lu(e){return mg(e[Ht])}function mg(e){for(;null!==e&&!lt(e);)e=e[Ht];return e}function Xr(e,t,n,r,o){if(null!=r){let i,s=!1;lt(r)?i=r:_t(r)&&(s=!0,r=r[Fe]);const a=pe(r);0===e&&null!==n?null==o?_g(t,n,a):pr(t,n,a,o||null,!0):1===e&&null!==n?pr(t,n,a,o||null,!0):2===e?function na(e,t,n){const r=ea(e,t);r&&function LS(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function jS(e,t,n,r,o){const i=n[Jt];i!==pe(n)&&Xr(t,e,r,i,o);for(let a=Ue;a0&&(e[n-1][Ht]=r[Ht]);const i=zs(e,Ue+t);!function AS(e,t){si(e,t,t[U],2,null,null),t[Fe]=null,t[Ze]=null}(r[I],r);const s=i[Kt];null!==s&&s.detachView(i[I]),r[ve]=null,r[Ht]=null,r[G]&=-129}return r}function Cg(e,t){if(!(256&t[G])){const n=t[U];t[Es]?.destroy(),t[bs]?.destroy(),n.destroyNode&&si(e,t,n,3,null,null),function OS(e){let t=e[Wo];if(!t)return ju(e[I],e);for(;t;){let n=null;if(_t(t))n=t[Wo];else{const r=t[Ue];r&&(n=r)}if(!n){for(;t&&!t[Ht]&&t!==e;)_t(t)&&ju(t[I],t),t=t[ve];null===t&&(t=e),_t(t)&&ju(t[I],t),n=t&&t[Ht]}t=n}}(t)}}function ju(e,t){if(!(256&t[G])){t[G]&=-129,t[G]|=256,function kS(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);null!==r&&(t[Pr]=null);const o=t[Bn];if(null!==o){for(let i=0;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===Ct.None||i===Ct.Emulated)return null}return ut(r,n)}}(e,t.parent,n)}function pr(e,t,n,r,o){e.insertBefore(t,n,r,o)}function _g(e,t,n){e.appendChild(t,n)}function wg(e,t,n,r,o){null!==r?pr(e,t,n,r,o):_g(e,t,n)}function ea(e,t){return e.parentNode(t)}let Bu,Wu,oa,Mg=function bg(e,t,n){return 40&e.type?ut(e,n):null};function ta(e,t,n,r){const o=$u(e,r,t),i=t[U],a=function Eg(e,t,n){return Mg(e,t,n)}(r.parent||t[Ze],r,t);if(null!=o)if(Array.isArray(n))for(let l=0;le,createScript:e=>e,createScriptURL:e=>e})}catch{}return oa}()?.createScriptURL(e)||e}class Fg{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Fh})`}}function Gn(e){return e instanceof Fg?e.changingThisBreaksApplicationSecurity:e}function li(e,t){const n=function KS(e){return e instanceof Fg&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Fh})`)}return n===t}const nI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var Ae=(()=>((Ae=Ae||{})[Ae.NONE=0]="NONE",Ae[Ae.HTML=1]="HTML",Ae[Ae.STYLE=2]="STYLE",Ae[Ae.SCRIPT=3]="SCRIPT",Ae[Ae.URL=4]="URL",Ae[Ae.RESOURCE_URL=5]="RESOURCE_URL",Ae))();function Ku(e){const t=ci();return t?t.sanitize(Ae.URL,e)||"":li(e,"URL")?Gn(e):function Zu(e){return(e=String(e)).match(nI)?e:"unsafe:"+e}(B(e))}function Bg(e){const t=ci();if(t)return Pg(t.sanitize(Ae.RESOURCE_URL,e)||"");if(li(e,"ResourceURL"))return Pg(Gn(e));throw new w(904,!1)}function ci(){const e=_();return e&&e[ur].sanitizer}class N{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=O({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const di=new N("ENVIRONMENT_INITIALIZER"),zg=new N("INJECTOR",-1),Gg=new N("INJECTOR_DEF_TYPES");class Wg{get(t,n=Bo){if(n===Bo){const r=new Error(`NullInjectorError: No provider for ${Pe(t)}!`);throw r.name="NullInjectorError",r}return n}}function gI(...e){return{\u0275providers:qg(0,e),\u0275fromNgModule:!0}}function qg(e,...t){const n=[],r=new Set;let o;return ei(t,i=>{const s=i;ec(s,n,[],r)&&(o||=[],o.push(s))}),void 0!==o&&Zg(o,n),n}function Zg(e,t){for(let n=0;n{t.push(i)})}}function ec(e,t,n,r){if(!(e=$(e)))return!1;let o=null,i=Lh(e);const s=!i&&ne(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const l=e.ngModule;if(i=Lh(l),!i)return!1;o=l}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of l)ec(u,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let u;r.add(o);try{ei(i.imports,c=>{ec(c,t,n,r)&&(u||=[],u.push(c))})}finally{}void 0!==u&&Zg(u,t)}if(!a){const u=dr(o)||(()=>new o);t.push({provide:o,useFactory:u,deps:ee},{provide:Gg,useValue:o,multi:!0},{provide:di,useValue:()=>A(o),multi:!0})}const l=i.providers;null==l||a||tc(l,c=>{t.push(c)})}}return o!==e&&void 0!==e.providers}function tc(e,t){for(let n of e)Wl(n)&&(n=n.\u0275providers),Array.isArray(n)?tc(n,t):t(n)}const mI=ie({provide:String,useValue:ie});function nc(e){return null!==e&&"object"==typeof e&&mI in e}function gr(e){return"function"==typeof e}const rc=new N("Set Injector scope."),sa={},vI={};let oc;function aa(){return void 0===oc&&(oc=new Wg),oc}class on{}class ic extends on{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ac(t,s=>this.processProvider(s)),this.records.set(zg,Jr(void 0,this)),o.has("environment")&&this.records.set(on,Jr(void 0,this));const i=this.records.get(rc);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Gg.multi,ee,L.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=$n(this),r=it(void 0);try{return t()}finally{$n(n),it(r)}}get(t,n=Bo,r=L.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(zh))return t[zh](this);r=Ds(r);const o=$n(this),i=it(void 0);try{if(!(r&L.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function EI(e){return"function"==typeof e||"object"==typeof e&&e instanceof N}(t)&&ys(t);a=l&&this.injectableDefInScope(l)?Jr(sc(t),sa):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&L.Self?aa():this.parent).get(t,n=r&L.Optional&&n===Bo?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[Cs]=s[Cs]||[]).unshift(Pe(t)),o)throw s;return function Eb(e,t,n,r){const o=e[Cs];throw t[$h]&&o.unshift(t[$h]),e.message=function bb(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=Pe(t);if(Array.isArray(t))o=t.map(Pe).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):Pe(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(vb,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[Cs]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{it(i),$n(o)}}resolveInjectorInitializers(){const t=$n(this),n=it(void 0);try{const r=this.get(di.multi,ee,L.Self);for(const o of r)o()}finally{$n(t),it(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(Pe(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new w(205,!1)}processProvider(t){let n=gr(t=$(t))?t:$(t&&t.provide);const r=function DI(e){return nc(e)?Jr(void 0,e.useValue):Jr(Xg(e),sa)}(t);if(gr(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=Jr(void 0,sa,!0),o.factory=()=>Xl(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===sa&&(n.value=vI,n.value=n.factory()),"object"==typeof n.value&&n.value&&function wI(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=$(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function sc(e){const t=ys(e),n=null!==t?t.factory:dr(e);if(null!==n)return n;if(e instanceof N)throw new w(204,!1);if(e instanceof Function)return function CI(e){const t=e.length;if(t>0)throw function ti(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new w(204,!1)}function Xg(e,t,n){let r;if(gr(e)){const o=$(e);return dr(o)||sc(o)}if(nc(e))r=()=>$(e.useValue);else if(function Qg(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Xl(e.deps||[]));else if(function Yg(e){return!(!e||!e.useExisting)}(e))r=()=>A($(e.useExisting));else{const o=$(e&&(e.useClass||e.provide));if(!function _I(e){return!!e.deps}(e))return dr(o)||sc(o);r=()=>new o(...Xl(e.deps))}return r}function Jr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function ac(e,t){for(const n of e)Array.isArray(n)?ac(n,t):n&&Wl(n)?ac(n.\u0275providers,t):t(n)}const la=new N("AppId",{providedIn:"root",factory:()=>bI}),bI="ng",Kg=new N("Platform Initializer"),mr=new N("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Jg=new N("CSP nonce",{providedIn:"root",factory:()=>function ai(){if(void 0!==Wu)return Wu;if(typeof document<"u")return document;throw new w(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let tm=(e,t)=>null;function nm(e,t){return tm(e,t)}class PI{}class im{}class kI{resolveComponentFactory(t){throw function FI(e){const t=Error(`No component factory found for ${Pe(e)}.`);return t.ngComponent=e,t}(t)}}let ha=(()=>{class e{}return e.NULL=new kI,e})();function LI(){return eo(ze(),_())}function eo(e,t){return new Et(ut(e,t))}let Et=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=LI,e})();function VI(e){return e instanceof Et?e.nativeElement:e}class am{}let Tn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function HI(){const e=_(),n=ct(ze().index,e);return(_t(n)?n:e)[U]}(),e})(),jI=(()=>{class e{}return e.\u0275prov=O({token:e,providedIn:"root",factory:()=>null}),e})();class gi{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const $I=new gi("16.0.1"),vc={};function mi(e){for(;e;){e[G]|=64;const t=oi(e);if(ru(e)&&!t)return e;e=t}return null}function Cc(e){return e.ngOriginalError}class yr{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Cc(t);for(;n&&Cc(n);)n=Cc(n);return n||null}}const cm=new N("",{providedIn:"root",factory:()=>!1});function An(e){return e instanceof Function?e():e}class hm extends up{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(t){this._lView=t}onConsumerDependencyMayHaveChanged(){mi(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(t,n,r){const o=je(this);this.trackingVersion++;try{t(n,r)}finally{je(o)}}destroy(){this.trackingVersion++}}let ga=null;function pm(){return ga??=new hm,ga}function gm(e,t){return e[t]??pm()}function mm(e,t){const n=pm();n.hasReadASignal&&(e[t]=ga,n.lView=e,ga=new hm)}const z={};function R(e){ym(K(),_(),et()+e,!1)}function ym(e,t,n,r){if(!r)if(3==(3&t[G])){const i=e.preOrderCheckHooks;null!==i&&ks(t,i,n)}else{const i=e.preOrderHooks;null!==i&&Ls(t,i,0,n)}fr(n)}function _m(e,t=null,n=null,r){const o=wm(e,t,n,r);return o.resolveInjectorInitializers(),o}function wm(e,t=null,n=null,r,o=new Set){const i=[n||ee,gI(e)];return r=r||("object"==typeof e?void 0:Pe(e)),new ic(i,t||aa(),r||null,o)}let sn=(()=>{class e{static create(n,r){if(Array.isArray(n))return _m({name:""},r,n,"");{const o=n.name??"";return _m({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=Bo,e.NULL=new Wg,e.\u0275prov=O({token:e,providedIn:"any",factory:()=>A(zg)}),e.__NG_ELEMENT_ID__=-1,e})();function D(e,t=L.Default){const n=_();return null===n?A(e,t):zp(ze(),n,$(e),t)}function ma(e,t,n,r,o,i,s,a,l,u,c){const d=t.blueprint.slice();return d[Fe]=o,d[G]=140|r,(null!==u||e&&2048&e[G])&&(d[G]|=2048),vp(d),d[ve]=d[kr]=e,d[_e]=n,d[ur]=s||e&&e[ur],d[U]=a||e&&e[U],d[Fr]=l||e&&e[Fr]||null,d[Ze]=i,d[Zo]=function yS(){return mS++}(),d[bn]=c,d[rp]=u,d[Te]=2==t.type?e[Te]:d,d}function no(e,t,n,r,o){let i=e.data[t];if(null===i)i=function Dc(e,t,n,r,o){const i=bp(),s=uu(),l=e.data[t]=function u0(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return function jr(){return null!==H.skipHydrationRootTNode}()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?i:i&&i.parent,n,t,r,o);return null===e.firstChild&&(e.firstChild=l),null!==i&&(s?null==i.child&&null!==l.parent&&(i.child=l):null===i.next&&(i.next=l,l.prev=i)),l}(e,t,n,r,o),function CM(){return H.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function Qo(){const e=H.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return nn(i,!0),i}function yi(e,t,n,r){if(0===n)return-1;const o=t.length;for(let i=0;iX&&ym(e,t,X,!1),tn(a?2:0,o),a)i.runInContext(n,r,o);else{const u=je(null);try{n(r,o)}finally{je(u)}}}finally{a&&null===t[Es]&&mm(t,Es),fr(s),tn(a?3:1,o)}}function _c(e,t,n){if(nu(t)){const r=je(null);try{const i=t.directiveEnd;for(let s=t.directiveStart;snull;function Im(e,t,n,r){for(let o in e)if(e.hasOwnProperty(o)){n=null===n?{}:n;const i=e[o];null===r?Tm(n,t,o,i):r.hasOwnProperty(o)&&Tm(n,t,r[o],i)}return n}function Tm(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function bt(e,t,n,r,o,i,s,a){const l=ut(t,n);let c,u=t.inputs;!a&&null!=u&&(c=u[r])?(Ac(e,n,c,r,o),cr(t)&&function f0(e,t){const n=ct(t,e);16&n[G]||(n[G]|=64)}(n,t.index)):3&t.type&&(r=function d0(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,t.value||"",r):o,i.setProperty(l,r,o))}function Mc(e,t,n,r){if(Ep()){const o=null===r?null:{"":-1},i=function v0(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let i=0;i0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,yi(e,n,o.hostVars,z),o)}function an(e,t,n,r,o,i){const s=ut(e,t);!function Ic(e,t,n,r,o,i,s){if(null==i)e.removeAttribute(t,o,n);else{const a=null==s?B(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}(t[U],s,i,e.value,n,r,o)}function b0(e,t,n,r,o,i){const s=i[t];if(null!==s)for(let a=0;a{class e{constructor(){this.all=new Set,this.queue=new Map}create(n,r,o){const i=typeof Zone>"u"?null:Zone.current,s=new Kb(n,u=>{this.all.has(u)&&this.queue.set(u,i)},o);let a;this.all.add(s),s.notify();const l=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=r?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[n,r]of this.queue)this.queue.delete(n),r?r.run(()=>n.run()):n.run()}get isQueueEmpty(){return 0===this.queue.size}}return e.\u0275prov=O({token:e,providedIn:"root",factory:()=>new e}),e})();function va(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s0&&Rc(n)}}function Rc(e){for(let r=ku(e);null!==r;r=Lu(r))for(let o=Ue;o0&&Rc(i)}const n=e[I].components;if(null!==n)for(let r=0;r0&&Rc(o)}}class Ci{get rootNodes(){const t=this._lView,n=t[I];return vi(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[_e]}set context(t){this._lView[_e]=t}get destroyed(){return 256==(256&this._lView[G])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[ve];if(lt(t)){const n=t[Ms],r=n?n.indexOf(this):-1;r>-1&&(Hu(t,r),zs(n,r))}this._attachedToViewContainer=!1}Cg(this._lView[I],this._lView)}onDestroy(t){!function _p(e,t){if(256==(256&e[G]))throw new w(911,!1);null===e[Bn]&&(e[Bn]=[]),e[Bn].push(t)}(this._lView,t)}markForCheck(){mi(this._cdRefInjectingView||this._lView)}detach(){this._lView[G]&=-129}reattach(){this._lView[G]|=128}detectChanges(){Ca(this._lView[I],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new w(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function RS(e,t){si(e,t,t[U],2,null,null)}(this._lView[I],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new w(902,!1);this._appRef=t}}class L0 extends Ci{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Ca(t[I],t,t[_e],!1)}checkNoChanges(){}get context(){return null}}class Hm extends ha{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=ne(t);return new Di(n,this.ngModule)}}function jm(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class H0{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Ds(r);const o=this.injector.get(t,vc,r);return o!==vc||n===vc?o:this.parentInjector.get(t,n,r)}}class Di extends im{get inputs(){return jm(this.componentDef.inputs)}get outputs(){return jm(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Pb(e){return e.map(xb).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof on?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new H0(t,i):t,a=s.get(am,null);if(null===a)throw new w(407,!1);const c={rendererFactory:a,sanitizer:s.get(jI,null),effectManager:s.get(Vm,null)},d=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",h=r?function r0(e,t,n,r){const i=r.get(cm,!1)||n===Ct.ShadowDom,s=e.selectRootElement(t,i);return function o0(e){Sm(e)}(s),s}(d,r,this.componentDef.encapsulation,s):Js(d,f,function V0(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(f)),p=this.componentDef.onPush?576:528,m=bc(0,null,null,1,0,null,null,null,null,null,null),v=ma(null,m,null,p,null,null,c,d,s,null,null);let E,g;pu(v);try{const M=this.componentDef;let x,Y=null;M.findHostDirectiveDefs?(x=[],Y=new Map,M.findHostDirectiveDefs(M,x,Y),x.push(M)):x=[M];const he=function $0(e,t){const n=e[I],r=X;return e[r]=t,no(n,r,2,"#host",null)}(v,h),Lo=function B0(e,t,n,r,o,i,s){const a=o[I];!function U0(e,t,n,r){for(const o of e)t.mergedAttrs=Go(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(va(t,t.mergedAttrs,!0),null!==n&&Rg(r,n,t))}(r,e,t,s);let l=null;null!==t&&(l=nm(t,o[Fr]));const u=i.rendererFactory.createRenderer(t,n),c=ma(o,Mm(n),null,n.onPush?64:16,o[e.index],e,i,u,null,null,l);return a.firstCreatePass&&Sc(a,e,r.length-1),ya(o,c),o[e.index]=c}(he,h,M,x,v,c,d);g=yp(m,X),h&&function G0(e,t,n,r){if(r)eu(e,n,["ng-version",$I.full]);else{const{attrs:o,classes:i}=function Fb(e){const t=[],n=[];let r=1,o=2;for(;r0&&Ng(e,n,i.join(" "))}}(d,M,h,r),void 0!==n&&function W0(e,t,n){const r=e.projection=[];for(let o=0;o=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Go(o.hostAttrs,n=Go(n,o.hostAttrs))}}(r)}function Oc(e){return e===wn?{}:e===ee?[]:e}function Y0(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function Q0(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function X0(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function _a(e){return!!function xc(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function ln(e,t,n){return e[t]=n}function Qe(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function vr(e,t,n,r){const o=Qe(e,t,n);return Qe(e,t+1,r)||o}function un(e,t,n,r){const o=_();return Qe(o,$r(),t)&&(K(),an(Ce(),o,e,t,n,r)),un}function oo(e,t,n,r){return Qe(e,$r(),n)?t+B(n)+r:z}function io(e,t,n,r,o,i){const a=vr(e,function Mn(){return H.lFrame.bindingIndex}(),n,o);return Sn(2),a?t+B(n)+r+B(o)+i:z}function Rn(e,t,n,r,o,i,s,a){const l=_(),u=K(),c=e+X,d=u.firstCreatePass?function wT(e,t,n,r,o,i,s,a,l){const u=t.consts,c=no(t,e,4,s||null,Un(u,a));Mc(t,n,c,Un(u,l)),Fs(t,c);const d=c.tView=bc(2,c,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,u,l,t,n,r,o,i,s):u.data[c];nn(d,!1);const f=ry(u,l,d,e);Ps()&&ta(u,l,f,d),Ye(f,l),ya(l,l[c]=Om(f,l,f,d)),Ss(d)&&wc(u,l,d),null!=s&&Ec(l,d,a)}let ry=function oy(e,t,n,r){return zn(!0),t[U].createComment("")};function W(e,t,n){const r=_();return Qe(r,$r(),t)&&bt(K(),Ce(),r,e,t,r[U],n,!1),W}function Hc(e,t,n,r,o){const s=o?"class":"style";Ac(e,n,t.inputs[s],s,r)}function y(e,t,n,r){const o=_(),i=K(),s=X+e,a=o[U],l=i.firstCreatePass?function IT(e,t,n,r,o,i){const s=t.consts,l=no(t,e,2,r,Un(s,o));return Mc(t,n,l,Un(s,i)),null!==l.attrs&&va(l,l.attrs,!1),null!==l.mergedAttrs&&va(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,i,o,t,n,r):i.data[s],u=iy(i,o,l,a,t,e);o[s]=u;const c=Ss(l);return nn(l,!0),Rg(a,u,l),32!=(32&l.flags)&&Ps()&&ta(i,o,u,l),0===function cM(){return H.lFrame.elementDepthCount}()&&Ye(u,o),function dM(){H.lFrame.elementDepthCount++}(),c&&(wc(i,o,l),_c(i,l,o)),null!==r&&Ec(o,l),y}function C(){let e=ze();uu()?function cu(){H.lFrame.isParent=!1}():(e=e.parent,nn(e,!1));const t=e;(function hM(e){return H.skipHydrationRootTNode===e})(t)&&function yM(){H.skipHydrationRootTNode=null}(),function fM(){H.lFrame.elementDepthCount--}();const n=K();return n.firstCreatePass&&(Fs(n,e),nu(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function OM(e){return 0!=(8&e.flags)}(t)&&Hc(n,t,_(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function xM(e){return 0!=(16&e.flags)}(t)&&Hc(n,t,_(),t.stylesWithoutHost,!1),C}function de(e,t,n,r){return y(e,t,n,r),C(),de}let iy=(e,t,n,r,o,i)=>(zn(!0),Js(r,o,function Pp(){return H.lFrame.currentNamespace}()));function Sa(){return _()}function Mi(e){return!!e&&"function"==typeof e.then}function ly(e){return!!e&&"function"==typeof e.subscribe}function P(e,t,n,r){const o=_(),i=K(),s=ze();return function cy(e,t,n,r,o,i,s){const a=Ss(r),u=e.firstCreatePass&&Fm(e),c=t[_e],d=Pm(t);let f=!0;if(3&r.type||s){const m=ut(r,t),v=s?s(m):m,E=d.length,g=s?x=>s(pe(x[r.index])):r.index;let M=null;if(!s&&a&&(M=function xT(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;il?a[l]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==M)(M.__ngLastListenerFn__||M).__ngNextListenerFn__=i,M.__ngLastListenerFn__=i,f=!1;else{i=fy(r,t,c,i,!1);const x=n.listen(v,o,i);d.push(i,x),u&&u.push(o,g,E,E+1)}}else i=fy(r,t,c,i,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[o])){const m=p.length;if(m)for(let v=0;v-1?ct(e.index,t):t);let l=dy(t,n,r,s),u=i.__ngNextListenerFn__;for(;u;)l=dy(t,n,u,s)&&l,u=u.__ngNextListenerFn__;return o&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function Si(e=1){return function EM(e){return(H.lFrame.contextLView=function bM(e,t){for(;e>0;)t=t[kr],e--;return t}(e,H.lFrame.contextLView))[_e]}(e)}function Ia(e,t,n,r,o){const i=_(),s=oo(i,t,n,r);return s!==z&&bt(K(),Ce(),i,e,s,i[U],o,!1),Ia}function Ta(e,t){return e<<17|t<<2}function Wn(e){return e>>17&32767}function Bc(e){return 2|e}function Cr(e){return(131068&e)>>2}function Uc(e,t){return-131069&e|t<<2}function zc(e){return 1|e}function wy(e,t,n,r,o){const i=e[n+1],s=null===t;let a=r?Wn(i):Cr(i),l=!1;for(;0!==a&&(!1===l||s);){const c=e[a+1];BT(e[a],t)&&(l=!0,e[a+1]=r?zc(c):Bc(c)),a=r?Wn(c):Cr(c)}l&&(e[n+1]=r?Bc(i):zc(i))}function BT(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Zr(e,t)>=0}function Aa(e,t){return function $t(e,t,n,r){const o=_(),i=K(),s=Sn(2);i.firstUpdatePass&&function Ry(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[et()],s=function Ny(e,t){return t>=e.expandoStartIndex}(e,n);(function Fy(e,t){return 0!=(e.flags&(t?8:16))})(i,r)&&null===t&&!s&&(t=!1),t=function XT(e,t,n,r){const o=function fu(e){const t=H.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=Ii(n=Gc(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=Gc(o,e,t,n,r),null===i){let l=function KT(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Cr(r))return e[Wn(r)]}(e,t,r);void 0!==l&&Array.isArray(l)&&(l=Gc(null,e,t,l[1],r),l=Ii(l,t.attrs,r),function JT(e,t,n,r){e[Wn(n?t.classBindings:t.styleBindings)]=r}(e,t,r,l))}else i=function eA(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(u=!0)):c=n,o)if(0!==l){const f=Wn(e[a+1]);e[r+1]=Ta(f,a),0!==f&&(e[f+1]=Uc(e[f+1],r)),e[a+1]=function VT(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=Ta(a,0),0!==a&&(e[a+1]=Uc(e[a+1],r)),a=r;else e[r+1]=Ta(l,0),0===a?a=r:e[l+1]=Uc(e[l+1],r),l=r;u&&(e[r+1]=Bc(e[r+1])),wy(e,c,r,!0),wy(e,c,r,!1),function $T(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&Zr(i,t)>=0&&(n[r+1]=zc(n[r+1]))}(t,c,e,r,i),s=Ta(a,l),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==z&&Qe(o,s,t)&&function xy(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const l=e.data,u=l[a+1],c=function HT(e){return 1==(1&e)}(u)?Py(l,t,n,o,Cr(u),s):void 0;Na(c)||(Na(i)||function LT(e){return 2==(2&e)}(u)&&(i=Py(l,null,n,o,a,s)),function $S(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:dt.DashCase;null==o?e.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=dt.Important),e.setStyle(n,r,o,i))}}(r,s,Ns(et(),n),o,i))}(i,i.data[et()],o,o[U],e,o[s+1]=function oA(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Pe(Gn(e)))),e}(t,n),r,s)}(e,t,null,!0),Aa}function Gc(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const l=e[o],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let f=n[o+1];f===z&&(f=d?ee:void 0);let h=d?bu(f,r):c===r?f:void 0;if(u&&!Na(h)&&(h=bu(l,r)),Na(h)&&(a=h,s))return a;const p=e[o+1];o=s?Wn(p):Cr(p)}if(null!==t){let l=i?t.residualClasses:t.residualStyles;null!=l&&(a=bu(l,r))}return a}function Na(e){return void 0!==e}function b(e,t=""){const n=_(),r=K(),o=e+X,i=r.firstCreatePass?no(r,o,1,t,null):r.data[o],s=ky(r,n,i,t,e);n[o]=s,Ps()&&ta(r,n,s,i),nn(i,!1)}let ky=(e,t,n,r,o)=>(zn(!0),function Ks(e,t){return e.createText(t)}(t[U],r));function ht(e){return tt("",e,""),ht}function tt(e,t,n){const r=_(),o=oo(r,e,t,n);return o!==z&&Nn(r,et(),o),tt}function Ra(e,t,n,r,o){const i=_(),s=io(i,e,t,n,r,o);return s!==z&&Nn(i,et(),s),Ra}const Dr=void 0;var SA=["en",[["a","p"],["AM","PM"],Dr],[["AM","PM"],Dr,Dr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Dr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Dr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Dr,"{1} 'at' {0}",Dr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function MA(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let po={};function nt(e){const t=function IA(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=nv(t);if(n)return n;const r=t.split("-")[0];if(n=nv(r),n)return n;if("en"===r)return SA;throw new w(701,!1)}function nv(e){return e in po||(po[e]=ce.ng&&ce.ng.common&&ce.ng.common.locales&&ce.ng.common.locales[e]),po[e]}var T=(()=>((T=T||{})[T.LocaleId=0]="LocaleId",T[T.DayPeriodsFormat=1]="DayPeriodsFormat",T[T.DayPeriodsStandalone=2]="DayPeriodsStandalone",T[T.DaysFormat=3]="DaysFormat",T[T.DaysStandalone=4]="DaysStandalone",T[T.MonthsFormat=5]="MonthsFormat",T[T.MonthsStandalone=6]="MonthsStandalone",T[T.Eras=7]="Eras",T[T.FirstDayOfWeek=8]="FirstDayOfWeek",T[T.WeekendRange=9]="WeekendRange",T[T.DateFormat=10]="DateFormat",T[T.TimeFormat=11]="TimeFormat",T[T.DateTimeFormat=12]="DateTimeFormat",T[T.NumberSymbols=13]="NumberSymbols",T[T.NumberFormats=14]="NumberFormats",T[T.CurrencyCode=15]="CurrencyCode",T[T.CurrencySymbol=16]="CurrencySymbol",T[T.CurrencyName=17]="CurrencyName",T[T.Currencies=18]="Currencies",T[T.Directionality=19]="Directionality",T[T.PluralCase=20]="PluralCase",T[T.ExtraData=21]="ExtraData",T))();const go="en-US";let rv=go;function Zc(e,t,n,r,o){if(e=$(e),Array.isArray(e))for(let i=0;i>20;if(gr(e)||!e.multi){const h=new Xo(l,o,D),p=Qc(a,t,o?c:c+f,d);-1===p?(_u($s(u,s),i,a),Yc(i,e,t.length),t.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=Qc(a,t,c+f,d),p=Qc(a,t,c,c+f),v=p>=0&&n[p];if(o&&!v||!o&&!(h>=0&&n[h])){_u($s(u,s),i,a);const E=function bN(e,t,n,r,o){const i=new Xo(e,n,D);return i.multi=[],i.index=t,i.componentProviders=0,Tv(i,o,r&&!n),i}(o?EN:wN,n.length,o,r,l);!o&&v&&(n[p].providerFactory=E),Yc(i,e,t.length,0),t.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(E),s.push(E)}else Yc(i,e,h>-1?h:p,Tv(n[o?p:h],l,!o&&r));!o&&r&&v&&n[p].componentProviders++}}}function Yc(e,t,n,r){const o=gr(t),i=function yI(e){return!!e.useClass}(t);if(o||i){const l=(i?$(t.useClass):t).prototype.ngOnDestroy;if(l){const u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const c=u.indexOf(n);-1===c?u.push(n,[r,l]):u[c+1].push(r,l)}else u.push(n,l)}}}function Tv(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Qc(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function _N(e,t,n){const r=K();if(r.firstCreatePass){const o=jt(e);Zc(n,r.data,r.blueprint,o,!0),Zc(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class mo{}class Av{}class Kc extends mo{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Hm(this);const o=Dt(t);this._bootstrapComponents=An(o.bootstrap),this._r3Injector=wm(t,n,[{provide:mo,useValue:this},{provide:ha,useValue:this.componentFactoryResolver},...r],Pe(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Jc extends Av{constructor(t){super(),this.moduleType=t}create(t){return new Kc(this.moduleType,t,[])}}class Nv extends mo{constructor(t){super(),this.componentFactoryResolver=new Hm(this),this.instance=null;const n=new ic([...t.providers,{provide:mo,useValue:this},{provide:ha,useValue:this.componentFactoryResolver}],t.parent||aa(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function ed(e,t,n=null){return new Nv({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let IN=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n.id)){const r=qg(0,n.type),o=r.length>0?ed([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n.id,o)}return this.cachedInjectors.get(n.id)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=O({token:e,providedIn:"environment",factory:()=>new e(A(on))}),e})();function Rv(e){e.getStandaloneInjector=t=>t.get(IN).getOrCreateStandaloneInjector(e)}function nd(e,t,n){const r=Je()+e,o=_();return o[r]===z?ln(o,r,n?t.call(n):t()):function _i(e,t){return e[t]}(o,r)}function rd(e,t,n,r){return function Vv(e,t,n,r,o,i){const s=t+n;return Qe(e,s,o)?ln(e,s+1,i?r.call(i,o):r(o)):xi(e,s+1)}(_(),Je(),e,t,n,r)}function xi(e,t){const n=e[t];return n===z?void 0:n}function Pi(e,t){const n=K();let r;const o=e+X;n.firstCreatePass?(r=function zN(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];const i=r.factory||(r.factory=dr(r.type)),s=it(D);try{const a=js(!1),l=i();return js(a),function MT(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,_(),o,l),l}finally{it(s)}}function Fi(e,t,n,r){const o=e+X,i=_(),s=function Hr(e,t){return e[t]}(i,o);return function ki(e,t){return e[I].data[t].pure}(i,o)?function Hv(e,t,n,r,o,i,s){const a=t+n;return vr(e,a,o,i)?ln(e,a+2,s?r.call(s,o,i):r(o,i)):xi(e,a+2)}(i,Je(),t,s.transform,n,r,s):s.transform(n,r)}function od(e){return t=>{setTimeout(e,void 0,t)}}const Ee=class YN extends Cn{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const l=t;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=od(i),o&&(o=od(o)),s&&(s=od(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof It&&t.add(a),a}};function QN(){return this._results[Symbol.iterator]()}class id{get changes(){return this._changes||(this._changes=new Ee)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=id.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=QN)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const o=function Ot(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function zM(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r{class e{}return e.__NG_ELEMENT_ID__=JN,e})();const XN=On,KN=class extends XN{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n,null)}createEmbeddedViewImpl(t,n,r){const o=this._declarationTContainer.tView,i=ma(this._declarationLView,o,t,16,null,o.declTNode,null,null,null,n||null,r||null);i[qo]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[Kt];return null!==a&&(i[Kt]=a.createEmbeddedView(o)),Nc(o,i,t),new Ci(i)}};function JN(){return ka(ze(),_())}function ka(e,t){return 4&e.type?new KN(t,e,eo(e,t)):null}let Ut=(()=>{class e{}return e.__NG_ELEMENT_ID__=sR,e})();function sR(){return Zv(ze(),_())}const aR=Ut,Wv=class extends aR{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return eo(this._hostTNode,this._hostLView)}get injector(){return new Ur(this._hostTNode,this._hostLView)}get parentInjector(){const t=Du(this._hostTNode,this._hostLView);if(Vp(t)){const n=Hs(t,this._hostLView),r=Vs(t);return new Ur(n[I].data[r+8],n)}return new Ur(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=qv(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Ue}createEmbeddedView(t,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=t.createEmbeddedViewImpl(n||{},i,null);return this.insertImpl(a,o,false),a}createComponent(t,n,r,o,i){const s=t&&!function Jo(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const m=n||{};a=m.index,r=m.injector,o=m.projectableNodes,i=m.environmentInjector||m.ngModuleRef}const l=s?t:new Di(ne(t)),u=r||this.parentInjector;if(!i&&null==l.ngModule){const v=(s?u:this.parentInjector).get(on,null);v&&(i=v)}ne(l.componentType??{});const h=l.create(u,o,null,i);return this.insertImpl(h.hostView,a,false),h}insert(t,n){return this.insertImpl(t,n,!1)}insertImpl(t,n,r){const o=t._lView,i=o[I];if(function aM(e){return lt(e[ve])}(o)){const l=this.indexOf(t);if(-1!==l)this.detach(l);else{const u=o[ve],c=new Wv(u,u[Ze],u[ve]);c.detach(c.indexOf(t))}}const s=this._adjustIndex(n),a=this._lContainer;if(function xS(e,t,n,r){const o=Ue+r,i=n.length;r>0&&(n[o-1][Ht]=t),r0)r.push(s[a/2]);else{const u=i[a+1],c=t[-l];for(let d=Ue;d{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=S(Cd,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const i=o();if(Mi(i))n.push(i);else if(ly(i)){const s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});n.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),CC=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const xn=new N("LocaleId",{providedIn:"root",factory:()=>S(xn,L.Optional|L.SkipSelf)||function VR(){return typeof $localize<"u"&&$localize.locale||go}()});class jR{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let DC=(()=>{class e{compileModuleSync(n){return new Jc(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=An(Dt(n).declarations).reduce((s,a)=>{const l=ne(a);return l&&s.push(new Di(l)),s},[]);return new jR(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const UR=(()=>Promise.resolve(0))();function _d(e){typeof Zone>"u"?UR.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}function EC(...e){}class ye{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ee(!1),this.onMicrotaskEmpty=new Ee(!1),this.onStable=new Ee(!1),this.onError=new Ee(!1),typeof Zone>"u")throw new w(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function zR(){let e=ce.requestAnimationFrame,t=ce.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function qR(e){const t=()=>{!function WR(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ce,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Ed(e),e.isCheckStableRunning=!0,wd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Ed(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return bC(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),MC(e)}},onInvoke:(n,r,o,i,s,a,l)=>{try{return bC(e),n.invoke(o,i,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),MC(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Ed(e),wd(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ye.isInAngularZone())throw new w(909,!1)}static assertNotInAngularZone(){if(ye.isInAngularZone())throw new w(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,GR,EC,EC);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const GR={};function wd(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Ed(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function bC(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function MC(e){e._nesting--,wd(e)}class ZR{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ee,this.onMicrotaskEmpty=new Ee,this.onStable=new Ee,this.onError=new Ee}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}const SC=new N("",{providedIn:"root",factory:IC});function IC(){const e=S(ye);let t=!0;return function sb(...e){const t=$o(e),n=function JE(e,t){return"number"==typeof $l(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?Tt(r[0]):Rr(n)(xe(r,t)):Qt}(new be(o=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(t),o.complete()})}),new be(o=>{let i;e.runOutsideAngular(()=>{i=e.onStable.subscribe(()=>{ye.assertNotInAngularZone(),_d(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,o.next(!0))})})});const s=e.onUnstable.subscribe(()=>{ye.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}}).pipe(function ab(e={}){const{connector:t=(()=>new Cn),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,l,u=0,c=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=l=void 0,c=d=!1},p=()=>{const m=s;h(),m?.unsubscribe()};return $e((m,v)=>{u++,!d&&!c&&f();const E=l=l??t();v.add(()=>{u--,0===u&&!d&&!c&&(a=Bl(p,o))}),E.subscribe(v),!s&&u>0&&(s=new jo({next:g=>E.next(g),error:g=>{d=!0,f(),a=Bl(h,n,g),E.error(g)},complete:()=>{c=!0,f(),a=Bl(h,r),E.complete()}}),Tt(m).subscribe(s))})(i)}}()))}const TC=new N(""),ja=new N("");let Sd,bd=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Sd||(function YR(e){Sd=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ye.assertNotInAngularZone(),_d(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())_d(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(A(ye),A(Md),A(ja))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})(),Md=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return Sd?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),qn=null;const AC=new N("AllowMultipleToken"),Id=new N("PlatformDestroyListeners"),Td=new N("appBootstrapListener");class RC{constructor(t,n){this.name=t,this.token=n}}function xC(e,t,n=[]){const r=`Platform: ${t}`,o=new N(r);return(i=[])=>{let s=Ad();if(!s||s.injector.get(AC,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function KR(e){if(qn&&!qn.get(AC,!1))throw new w(400,!1);(function NC(){!function Qb(e){cp=e}(()=>{throw new w(600,!1)})})(),qn=e;const t=e.get(FC);(function OC(e){e.get(Kg,null)?.forEach(n=>n())})(e)}(function PC(e=[],t){return sn.create({name:t,providers:[{provide:rc,useValue:"platform"},{provide:Id,useValue:new Set([()=>qn=null])},...e]})}(a,r))}return function eO(e){const t=Ad();if(!t)throw new w(401,!1);return t}()}}function Ad(){return qn?.get(FC)??null}let FC=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function tO(e="zone.js",t){return"noop"===e?new ZR:"zone.js"===e?new ye(t):e}(r?.ngZone,function kC(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function SN(e,t,n){return new Kc(e,t,n)}(n.moduleType,this.injector,function $C(e){return[{provide:ye,useFactory:e},{provide:di,multi:!0,useFactory:()=>{const t=S(rO,{optional:!0});return()=>t.initialize()}},{provide:jC,useFactory:nO},{provide:SC,useFactory:IC}]}(()=>o)),s=i.injector.get(yr,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:l=>{s.handleError(l)}});i.onDestroy(()=>{$a(this._modules,i),a.unsubscribe()})}),function LC(e,t,n){try{const r=n();return Mi(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,o,()=>{const a=i.injector.get(Dd);return a.runInitializers(),a.donePromise.then(()=>(function ov(e){At(e,"Expected localeId to be defined"),"string"==typeof e&&(rv=e.toLowerCase().replace(/_/g,"-"))}(i.injector.get(xn,go)||go),this._moduleDoBootstrap(i),i))})})}bootstrapModule(n,r=[]){const o=VC({},r);return function QR(e,t,n){const r=new Jc(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(Co);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new w(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new w(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(Id,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(A(sn))},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function VC(e,t){return Array.isArray(t)?t.reduce(VC,e):{...e,...t}}let Co=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=S(jC),this.componentTypes=[],this.components=[],this.isStable=S(SC),this._injector=S(on)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof im;if(!this._injector.get(Dd).done)throw!o&&function xr(e){const t=ne(e)||qe(e)||at(e);return null!==t&&t.standalone}(n),new w(405,!1);let s;s=o?n:this._injector.get(ha).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function XR(e){return e.isBoundToModule}(s)?void 0:this._injector.get(mo),u=s.create(sn.NULL,[],r||s.selector,a),c=u.location.nativeElement,d=u.injector.get(TC,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),$a(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new w(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;$a(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(Td,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>$a(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new w(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function $a(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const jC=new N("",{providedIn:"root",factory:()=>S(yr).handleError.bind(void 0)});function nO(){const e=S(ye),t=S(yr);return n=>e.runOutsideAngular(()=>t.handleError(n))}let rO=(()=>{class e{constructor(){this.zone=S(ye),this.applicationRef=S(Co)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();let Ba=(()=>{class e{}return e.__NG_ELEMENT_ID__=iO,e})();function iO(e){return function sO(e,t,n){if(cr(e)&&!n){const r=ct(e.index,t);return new Ci(r,r)}return 47&e.type?new Ci(t[Te],t):null}(ze(),_(),16==(16&e))}class GC{constructor(){}supports(t){return _a(t)}create(t){return new fO(t)}}const dO=(e,t)=>t;class fO{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||dO}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new hO(n,r),i,o),t}_verifyReinsertion(t,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,i=t._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new WC),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new WC),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class hO{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class pO{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class WC{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new pO,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function qC(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||YC()),deps:[[e,new qs,new Ws]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new w(901,!1)}}return e.\u0275prov=O({token:e,providedIn:"root",factory:YC}),e})();const CO=xC(null,"core",[]);let DO=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(A(Co))},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({}),e})(),nD=(()=>{class e{get whenAllTasksComplete(){return 0===this.collection.size&&this.complete(),this.promise}constructor(){this.taskId=0,this.collection=new Set,this.ngZone=S(ye),this.completed=!1,this.ngZone.runOutsideAngular(()=>{this.promise=new Promise(n=>{this.resolve=n})})}add(){if(this.completed)return-1;const n=this.taskId++;return this.collection.add(n),n}remove(n){this.completed||(this.collection.delete(n),0===this.collection.size&&this.complete())}ngOnDestroy(){this.complete(),this.collection.clear()}complete(){this.completed=!0,this.resolve()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Do(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let kd=null;function Zn(){return kd}class OO{}const Mt=new N("DocumentToken");let Ld=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:function(){return S(PO)},providedIn:"platform"}),e})();const xO=new N("Location Initialized");let PO=(()=>{class e extends Ld{constructor(){super(),this._doc=S(Mt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Zn().getBaseHref(this._doc)}onPopState(n){const r=Zn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Zn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:function(){return new e},providedIn:"platform"}),e})();function Vd(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function oD(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function Pn(e){return e&&"?"!==e[0]?"?"+e:e}let Yn=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:function(){return S(sD)},providedIn:"root"}),e})();const iD=new N("appBaseHref");let sD=(()=>{class e extends Yn{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??S(Mt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Vd(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+Pn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+Pn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+Pn(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(A(Ld),A(iD,8))},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),aD=(()=>{class e extends Yn{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=Vd(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Pn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Pn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(A(Ld),A(iD,8))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})(),Hd=(()=>{class e{constructor(n){this._subject=new Ee,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function LO(e){if(new RegExp("^(https?:)?//").test(e)){const[,n]=e.split(/\/\/[^\/]+/);return n}return e}(oD(lD(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Pn(r))}normalize(n){return e.stripTrailingSlash(function kO(e,t){if(!e||!t.startsWith(e))return t;const n=t.substring(e.length);return""===n||["/",";","?","#"].includes(n[0])?n:t}(this._basePath,lD(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Pn(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Pn(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}}return e.normalizeQueryParams=Pn,e.joinWithSlash=Vd,e.stripTrailingSlash=oD,e.\u0275fac=function(n){return new(n||e)(A(Yn))},e.\u0275prov=O({token:e,factory:function(){return function FO(){return new Hd(A(Yn))}()},providedIn:"root"}),e})();function lD(e){return e.replace(/\/index.html$/,"")}var Me=(()=>((Me=Me||{})[Me.Format=0]="Format",Me[Me.Standalone=1]="Standalone",Me))(),Q=(()=>((Q=Q||{})[Q.Narrow=0]="Narrow",Q[Q.Abbreviated=1]="Abbreviated",Q[Q.Wide=2]="Wide",Q[Q.Short=3]="Short",Q))(),De=(()=>((De=De||{})[De.Short=0]="Short",De[De.Medium=1]="Medium",De[De.Long=2]="Long",De[De.Full=3]="Full",De))(),k=(()=>((k=k||{})[k.Decimal=0]="Decimal",k[k.Group=1]="Group",k[k.List=2]="List",k[k.PercentSign=3]="PercentSign",k[k.PlusSign=4]="PlusSign",k[k.MinusSign=5]="MinusSign",k[k.Exponential=6]="Exponential",k[k.SuperscriptingExponent=7]="SuperscriptingExponent",k[k.PerMille=8]="PerMille",k[k.Infinity=9]="Infinity",k[k.NaN=10]="NaN",k[k.TimeSeparator=11]="TimeSeparator",k[k.CurrencyDecimal=12]="CurrencyDecimal",k[k.CurrencyGroup=13]="CurrencyGroup",k))();function qa(e,t){return Ft(nt(e)[T.DateFormat],t)}function Za(e,t){return Ft(nt(e)[T.TimeFormat],t)}function Ya(e,t){return Ft(nt(e)[T.DateTimeFormat],t)}function Pt(e,t){const n=nt(e),r=n[T.NumberSymbols][t];if(typeof r>"u"){if(t===k.CurrencyDecimal)return n[T.NumberSymbols][k.Decimal];if(t===k.CurrencyGroup)return n[T.NumberSymbols][k.Group]}return r}function cD(e){if(!e[T.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[T.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ft(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function $d(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const QO=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Hi={},XO=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Ve=(()=>((Ve=Ve||{})[Ve.Short=0]="Short",Ve[Ve.ShortGMT=1]="ShortGMT",Ve[Ve.Long=2]="Long",Ve[Ve.Extended=3]="Extended",Ve))(),V=(()=>((V=V||{})[V.FullYear=0]="FullYear",V[V.Month=1]="Month",V[V.Date=2]="Date",V[V.Hours=3]="Hours",V[V.Minutes=4]="Minutes",V[V.Seconds=5]="Seconds",V[V.FractionalSeconds=6]="FractionalSeconds",V[V.Day=7]="Day",V))(),Z=(()=>((Z=Z||{})[Z.DayPeriods=0]="DayPeriods",Z[Z.Days=1]="Days",Z[Z.Months=2]="Months",Z[Z.Eras=3]="Eras",Z))();function KO(e,t,n,r){let o=function ax(e){if(hD(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[o,i=1,s=1]=e.split("-").map(a=>+a);return Qa(o,i-1,s)}const n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(QO))return function lx(e){const t=new Date(0);let n=0,r=0;const o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,l=Number(e[6]||0),u=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return i.call(t,s,a,l,u),t}(r)}const t=new Date(e);if(!hD(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=Fn(n,t)||t;let a,s=[];for(;t;){if(a=XO.exec(t),!a){s.push(t);break}{s=s.concat(a.slice(1));const c=s.pop();if(!c)break;t=c}}let l=o.getTimezoneOffset();r&&(l=fD(r,l),o=function sx(e,t,n){const r=n?-1:1,o=e.getTimezoneOffset();return function ix(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,r*(fD(t,o)-o))}(o,r,!0));let u="";return s.forEach(c=>{const d=function ox(e){if(Ud[e])return Ud[e];let t;switch(e){case"G":case"GG":case"GGG":t=fe(Z.Eras,Q.Abbreviated);break;case"GGGG":t=fe(Z.Eras,Q.Wide);break;case"GGGGG":t=fe(Z.Eras,Q.Narrow);break;case"y":t=Re(V.FullYear,1,0,!1,!0);break;case"yy":t=Re(V.FullYear,2,0,!0,!0);break;case"yyy":t=Re(V.FullYear,3,0,!1,!0);break;case"yyyy":t=Re(V.FullYear,4,0,!1,!0);break;case"Y":t=el(1);break;case"YY":t=el(2,!0);break;case"YYY":t=el(3);break;case"YYYY":t=el(4);break;case"M":case"L":t=Re(V.Month,1,1);break;case"MM":case"LL":t=Re(V.Month,2,1);break;case"MMM":t=fe(Z.Months,Q.Abbreviated);break;case"MMMM":t=fe(Z.Months,Q.Wide);break;case"MMMMM":t=fe(Z.Months,Q.Narrow);break;case"LLL":t=fe(Z.Months,Q.Abbreviated,Me.Standalone);break;case"LLLL":t=fe(Z.Months,Q.Wide,Me.Standalone);break;case"LLLLL":t=fe(Z.Months,Q.Narrow,Me.Standalone);break;case"w":t=Bd(1);break;case"ww":t=Bd(2);break;case"W":t=Bd(1,!0);break;case"d":t=Re(V.Date,1);break;case"dd":t=Re(V.Date,2);break;case"c":case"cc":t=Re(V.Day,1);break;case"ccc":t=fe(Z.Days,Q.Abbreviated,Me.Standalone);break;case"cccc":t=fe(Z.Days,Q.Wide,Me.Standalone);break;case"ccccc":t=fe(Z.Days,Q.Narrow,Me.Standalone);break;case"cccccc":t=fe(Z.Days,Q.Short,Me.Standalone);break;case"E":case"EE":case"EEE":t=fe(Z.Days,Q.Abbreviated);break;case"EEEE":t=fe(Z.Days,Q.Wide);break;case"EEEEE":t=fe(Z.Days,Q.Narrow);break;case"EEEEEE":t=fe(Z.Days,Q.Short);break;case"a":case"aa":case"aaa":t=fe(Z.DayPeriods,Q.Abbreviated);break;case"aaaa":t=fe(Z.DayPeriods,Q.Wide);break;case"aaaaa":t=fe(Z.DayPeriods,Q.Narrow);break;case"b":case"bb":case"bbb":t=fe(Z.DayPeriods,Q.Abbreviated,Me.Standalone,!0);break;case"bbbb":t=fe(Z.DayPeriods,Q.Wide,Me.Standalone,!0);break;case"bbbbb":t=fe(Z.DayPeriods,Q.Narrow,Me.Standalone,!0);break;case"B":case"BB":case"BBB":t=fe(Z.DayPeriods,Q.Abbreviated,Me.Format,!0);break;case"BBBB":t=fe(Z.DayPeriods,Q.Wide,Me.Format,!0);break;case"BBBBB":t=fe(Z.DayPeriods,Q.Narrow,Me.Format,!0);break;case"h":t=Re(V.Hours,1,-12);break;case"hh":t=Re(V.Hours,2,-12);break;case"H":t=Re(V.Hours,1);break;case"HH":t=Re(V.Hours,2);break;case"m":t=Re(V.Minutes,1);break;case"mm":t=Re(V.Minutes,2);break;case"s":t=Re(V.Seconds,1);break;case"ss":t=Re(V.Seconds,2);break;case"S":t=Re(V.FractionalSeconds,1);break;case"SS":t=Re(V.FractionalSeconds,2);break;case"SSS":t=Re(V.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Ka(Ve.Short);break;case"ZZZZZ":t=Ka(Ve.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Ka(Ve.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Ka(Ve.Long);break;default:return null}return Ud[e]=t,t}(c);u+=d?d(o,n,l):"''"===c?"'":c.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function Qa(e,t,n){const r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Fn(e,t){const n=function VO(e){return nt(e)[T.LocaleId]}(e);if(Hi[n]=Hi[n]||{},Hi[n][t])return Hi[n][t];let r="";switch(t){case"shortDate":r=qa(e,De.Short);break;case"mediumDate":r=qa(e,De.Medium);break;case"longDate":r=qa(e,De.Long);break;case"fullDate":r=qa(e,De.Full);break;case"shortTime":r=Za(e,De.Short);break;case"mediumTime":r=Za(e,De.Medium);break;case"longTime":r=Za(e,De.Long);break;case"fullTime":r=Za(e,De.Full);break;case"short":const o=Fn(e,"shortTime"),i=Fn(e,"shortDate");r=Xa(Ya(e,De.Short),[o,i]);break;case"medium":const s=Fn(e,"mediumTime"),a=Fn(e,"mediumDate");r=Xa(Ya(e,De.Medium),[s,a]);break;case"long":const l=Fn(e,"longTime"),u=Fn(e,"longDate");r=Xa(Ya(e,De.Long),[l,u]);break;case"full":const c=Fn(e,"fullTime"),d=Fn(e,"fullDate");r=Xa(Ya(e,De.Full),[c,d])}return r&&(Hi[n][t]=r),r}function Xa(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return null!=t&&r in t?t[r]:n})),e}function Gt(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=1-e:(e=-e,i=n));let s=String(e);for(;s.length0||a>-n)&&(a+=n),e===V.Hours)0===a&&-12===n&&(a=12);else if(e===V.FractionalSeconds)return function JO(e,t){return Gt(e,3).substring(0,t)}(a,t);const l=Pt(s,k.MinusSign);return Gt(a,t,l,r,o)}}function fe(e,t,n=Me.Format,r=!1){return function(o,i){return function tx(e,t,n,r,o,i){switch(n){case Z.Months:return function $O(e,t,n){const r=nt(e),i=Ft([r[T.MonthsFormat],r[T.MonthsStandalone]],t);return Ft(i,n)}(t,o,r)[e.getMonth()];case Z.Days:return function jO(e,t,n){const r=nt(e),i=Ft([r[T.DaysFormat],r[T.DaysStandalone]],t);return Ft(i,n)}(t,o,r)[e.getDay()];case Z.DayPeriods:const s=e.getHours(),a=e.getMinutes();if(i){const u=function GO(e){const t=nt(e);return cD(t),(t[T.ExtraData][2]||[]).map(r=>"string"==typeof r?$d(r):[$d(r[0]),$d(r[1])])}(t),c=function WO(e,t,n){const r=nt(e);cD(r);const i=Ft([r[T.ExtraData][0],r[T.ExtraData][1]],t)||[];return Ft(i,n)||[]}(t,o,r),d=u.findIndex(f=>{if(Array.isArray(f)){const[h,p]=f,m=s>=h.hours&&a>=h.minutes,v=s0?Math.floor(o/60):Math.ceil(o/60);switch(e){case Ve.Short:return(o>=0?"+":"")+Gt(s,2,i)+Gt(Math.abs(o%60),2,i);case Ve.ShortGMT:return"GMT"+(o>=0?"+":"")+Gt(s,1,i);case Ve.Long:return"GMT"+(o>=0?"+":"")+Gt(s,2,i)+":"+Gt(Math.abs(o%60),2,i);case Ve.Extended:return 0===r?"Z":(o>=0?"+":"")+Gt(s,2,i)+":"+Gt(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}const nx=0,Ja=4;function dD(e){return Qa(e.getFullYear(),e.getMonth(),e.getDate()+(Ja-e.getDay()))}function Bd(e,t=!1){return function(n,r){let o;if(t){const i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{const i=dD(n),s=function rx(e){const t=Qa(e,nx,1).getDay();return Qa(e,0,1+(t<=Ja?Ja:Ja+7)-t)}(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Gt(o,e,Pt(r,k.MinusSign))}}function el(e,t=!1){return function(n,r){return Gt(dD(n).getFullYear(),e,Pt(r,k.MinusSign),t)}}const Ud={};function fD(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function hD(e){return e instanceof Date&&!isNaN(e.valueOf())}function yD(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}class wx{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let wr=(()=>{class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new wx(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),DD(a,o)}});for(let o=0,i=r.length;o{DD(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(D(Ut),D(On),D(Ga))},e.\u0275dir=j({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function DD(e,t){e.context.$implicit=t.item}let _D=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new Ex,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){wD("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){wD("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(D(Ut),D(On))},e.\u0275dir=j({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class Ex{constructor(){this.$implicit=null,this.ngIf=null}}function wD(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Pe(t)}'.`)}const kx=new N("DATE_PIPE_DEFAULT_TIMEZONE"),Lx=new N("DATE_PIPE_DEFAULT_OPTIONS");let $i=(()=>{class e{constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(null==n||""===n||n!=n)return null;try{return KO(n,r??this.defaultOptions?.dateFormat??"mediumDate",i||this.locale,o??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw function Wt(e,t){return new w(2100,!1)}()}}}return e.\u0275fac=function(n){return new(n||e)(D(xn,16),D(kx,24),D(Lx,24))},e.\u0275pipe=st({name:"date",type:e,pure:!0,standalone:!0}),e})(),qx=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({}),e})();function SD(e){return"server"===e}let Xx=(()=>{class e{}return e.\u0275prov=O({token:e,providedIn:"root",factory:()=>new Kx(A(Mt),window)}),e})();class Kx{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const n=function Jx(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=t)}}scrollToElement(t){const n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=ID(this.window.history)||ID(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function ID(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class TD{}class S1 extends OO{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class nf extends S1{static makeCurrent(){!function RO(e){kd||(kd=e)}(new nf)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function I1(){return Ui=Ui||document.querySelector("base"),Ui?Ui.getAttribute("href"):null}();return null==n?null:function T1(e){ol=ol||document.createElement("a"),ol.setAttribute("href",e);const t=ol.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){Ui=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return yD(document.cookie,t)}}let ol,Ui=null,N1=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();const rf=new N("EventManagerPlugins");let xD=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new w(5101,!1);return this._eventNameToPlugin.set(n,r),r}}return e.\u0275fac=function(n){return new(n||e)(A(rf),A(ye))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();class PD{constructor(t){this._doc=t}}const sf="ng-app-id";let FD=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=SD(i),this.resetHostNodes()}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${sf}="${this.appId}"]`);if(n?.length){const r=new Map;return n.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){const o=this.styleRef;if(o.has(n)){const i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(sf),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(sf,this.appId),s}}addStyleToHost(n,r){const o=this.getStyleElement(n,r);n.appendChild(o);const i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return e.\u0275fac=function(n){return new(n||e)(A(Mt),A(la),A(Jg,8),A(mr))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();const af={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},lf=/%COMP%/g,P1=new N("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function LD(e,t){return t.map(n=>n.replace(lf,e))}let VD=(()=>{class e{constructor(n,r,o,i,s,a,l,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestory=i,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=SD(a),this.defaultRenderer=new uf(n,s,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ct.ShadowDom&&(r={...r,encapsulation:Ct.Emulated});const o=this.getOrCreateRenderer(n,r);return o instanceof jD?o.applyToHost(n):o instanceof cf&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.doc,a=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,c=this.removeStylesOnCompDestory,d=this.platformIsServer;switch(r.encapsulation){case Ct.Emulated:i=new jD(l,u,r,this.appId,c,s,a,d);break;case Ct.ShadowDom:return new V1(l,u,n,r,s,a,this.nonce,d);default:i=new cf(l,u,r,c,s,a,d)}i.onDestroy=()=>o.delete(r.id),o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}}return e.\u0275fac=function(n){return new(n||e)(A(xD),A(FD),A(la),A(P1),A(Mt),A(mr),A(ye),A(Jg))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();class uf{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(af[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(HD(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(HD(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?this.doc.querySelector(t):t;if(!r)throw new w(5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=af[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=af[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(dt.DashCase|dt.Important)?t.style.setProperty(n,r,o&dt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&dt.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){if("string"==typeof t&&!(t=Zn().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if("__ngUnwrap__"===n)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))&&(n.preventDefault(),n.returnValue=!1)}}}function HD(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class V1 extends uf{constructor(t,n,r,o,i,s,a,l){super(t,i,s,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=LD(o.id,o.styles);for(const c of u){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=c,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class cf extends uf{constructor(t,n,r,o,i,s,a,l){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=l?LD(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class jD extends cf{constructor(t,n,r,o,i,s,a,l){const u=o+"-"+r.id;super(t,n,r,i,s,a,l,u),this.contentAttr=function F1(e){return"_ngcontent-%COMP%".replace(lf,e)}(u),this.hostAttr=function k1(e){return"_nghost-%COMP%".replace(lf,e)}(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let H1=(()=>{class e extends PD{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return e.\u0275fac=function(n){return new(n||e)(A(Mt))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();const $D=["alt","control","meta","shift"],j1={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},$1={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let B1=(()=>{class e extends PD{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Zn().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),$D.forEach(u=>{const c=r.indexOf(u);c>-1&&(r.splice(c,1),s+=u+".")}),s+=i,0!=r.length||0===i.length)return null;const l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(n,r){let o=j1[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),$D.forEach(s=>{s!==o&&(0,$1[s])(n)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(A(Mt))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();const W1=xC(CO,"browser",[{provide:mr,useValue:"browser"},{provide:Kg,useValue:function U1(){nf.makeCurrent()},multi:!0},{provide:Mt,useFactory:function G1(){return function WS(e){Wu=e}(document),document},deps:[]}]),q1=new N(""),zD=[{provide:ja,useClass:class A1{addToWindow(t){ce.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new w(5103,!1);return i},ce.getAllAngularTestabilities=()=>t.getAllTestabilities(),ce.getAllAngularRootElements=()=>t.getAllRootElements(),ce.frameworkStabilizers||(ce.frameworkStabilizers=[]),ce.frameworkStabilizers.push(r=>{const o=ce.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(l){s=s||l,i--,0==i&&r(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?Zn().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:TC,useClass:bd,deps:[ye,Md,ja]},{provide:bd,useClass:bd,deps:[ye,Md,ja]}],GD=[{provide:rc,useValue:"root"},{provide:yr,useFactory:function z1(){return new yr},deps:[]},{provide:rf,useClass:H1,multi:!0,deps:[Mt,ye,mr]},{provide:rf,useClass:B1,multi:!0,deps:[Mt]},VD,FD,xD,{provide:am,useExisting:VD},{provide:TD,useClass:N1,deps:[]},[]];let Z1=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:la,useValue:n.appId}]}}}return e.\u0275fac=function(n){return new(n||e)(A(q1,12))},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({providers:[...GD,...zD],imports:[qx,DO]}),e})(),WD=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return e.\u0275fac=function(n){return new(n||e)(A(Mt))},e.\u0275prov=O({token:e,factory:function(n){let r=null;return r=n?new n:function Q1(){return new WD(A(Mt))}(),r},providedIn:"root"}),e})();typeof window<"u"&&window;const{isArray:tP}=Array,{getPrototypeOf:nP,prototype:rP,keys:oP}=Object;function QD(e){if(1===e.length){const t=e[0];if(tP(t))return{args:t,keys:null};if(function iP(e){return e&&"object"==typeof e&&nP(e)===rP}(t)){const n=oP(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}const{isArray:sP}=Array;function XD(e){return te(t=>function aP(e,t){return sP(t)?e(...t):e(t)}(e,t))}function KD(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}let JD=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return e.\u0275fac=function(n){return new(n||e)(D(Tn),D(Et))},e.\u0275dir=j({type:e}),e})(),Er=(()=>{class e extends JD{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ge(e)))(r||e)}}(),e.\u0275dir=j({type:e,features:[se]}),e})();const fn=new N("NgValueAccessor"),uP={provide:fn,useExisting:ue(()=>ff),multi:!0};let ff=(()=>{class e extends Er{writeValue(n){this.setProperty("checked",n)}}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ge(e)))(r||e)}}(),e.\u0275dir=j({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,r){1&n&&P("change",function(i){return r.onChange(i.target.checked)})("blur",function(){return r.onTouched()})},features:[me([uP]),se]}),e})();const cP={provide:fn,useExisting:ue(()=>hn),multi:!0},fP=new N("CompositionEventMode");let hn=(()=>{class e extends JD{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function dP(){const e=Zn()?Zn().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",n??"")}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return e.\u0275fac=function(n){return new(n||e)(D(Tn),D(Et),D(fP,8))},e.\u0275dir=j({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){1&n&&P("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},features:[me([cP]),se]}),e})();const Xe=new N("NgValidators"),Kn=new N("NgAsyncValidators");function u_(e){return null!=e}function c_(e){return Mi(e)?xe(e):e}function d_(e){let t={};return e.forEach(n=>{t=null!=n?{...t,...n}:t}),0===Object.keys(t).length?null:t}function f_(e,t){return t.map(n=>n(e))}function h_(e){return e.map(t=>function pP(e){return!e.validate}(t)?t:n=>t.validate(n))}function hf(e){return null!=e?function p_(e){if(!e)return null;const t=e.filter(u_);return 0==t.length?null:function(n){return d_(f_(n,t))}}(h_(e)):null}function pf(e){return null!=e?function g_(e){if(!e)return null;const t=e.filter(u_);return 0==t.length?null:function(n){return function lP(...e){const t=Rh(e),{args:n,keys:r}=QD(e),o=new be(i=>{const{length:s}=n;if(!s)return void i.complete();const a=new Array(s);let l=s,u=s;for(let c=0;c{d||(d=!0,u--),a[c]=f},()=>l--,void 0,()=>{(!l||!d)&&(u||i.next(r?KD(r,a):a),i.complete())}))}});return t?o.pipe(XD(t)):o}(f_(n,t).map(c_)).pipe(te(d_))}}(h_(e)):null}function m_(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function gf(e){return e?Array.isArray(e)?e:[e]:[]}function sl(e,t){return Array.isArray(e)?e.includes(t):e===t}function C_(e,t){const n=gf(t);return gf(e).forEach(o=>{sl(n,o)||n.push(o)}),n}function D_(e,t){return gf(t).filter(n=>!sl(e,n))}class __{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=hf(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=pf(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return!!this.control&&this.control.hasError(t,n)}getError(t,n){return this.control?this.control.getError(t,n):null}}class ot extends __{get formDirective(){return null}get path(){return null}}class Jn extends __{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class w_{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let er=(()=>{class e extends w_{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(D(Jn,2))},e.\u0275dir=j({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&Aa("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[se]}),e})(),E_=(()=>{class e extends w_{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(D(ot,10))},e.\u0275dir=j({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){2&n&&Aa("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[se]}),e})();const zi="VALID",ll="INVALID",_o="PENDING",Gi="DISABLED";function vf(e){return(ul(e)?e.validators:e)||null}function Cf(e,t){return(ul(t)?t.asyncValidators:e)||null}function ul(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class I_{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===zi}get invalid(){return this.status===ll}get pending(){return this.status==_o}get disabled(){return this.status===Gi}get enabled(){return this.status!==Gi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(C_(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(C_(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(D_(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(D_(t,this._rawAsyncValidators))}hasValidator(t){return sl(this._rawValidators,t)}hasAsyncValidator(t){return sl(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=_o,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Gi,this.errors=null,this._forEachChild(r=>{r.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=zi,this._forEachChild(r=>{r.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===zi||this.status===_o)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Gi:zi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=_o,this._hasOwnPendingAsyncValidator=!0;const n=c_(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}get(t){let n=t;return null==n||(Array.isArray(n)||(n=n.split(".")),0===n.length)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Ee,this.statusChanges=new Ee}_calculateStatus(){return this._allControlsDisabled()?Gi:this.errors?ll:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(_o)?_o:this._anyControlsHaveStatus(ll)?ll:zi}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ul(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function vP(e){return Array.isArray(e)?hf(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function CP(e){return Array.isArray(e)?pf(e):e||null}(this._rawAsyncValidators)}}class Df extends I_{constructor(t,n,r){super(vf(n),Cf(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){(function S_(e,t,n){e._forEachChild((r,o)=>{if(void 0===n[o])throw new w(1002,"")})})(this,0,t),Object.keys(t).forEach(r=>{(function M_(e,t,n){const r=e.controls;if(!(t?Object.keys(r):r).length)throw new w(1e3,"");if(!r[n])throw new w(1001,"")})(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(Object.keys(t).forEach(r=>{const o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}const wo=new N("CallSetDisabledState",{providedIn:"root",factory:()=>cl}),cl="always";function Wi(e,t,n=cl){_f(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===n)&&t.valueAccessor.setDisabledState?.(e.disabled),function wP(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&T_(e,t)})}(e,t),function bP(e,t){const n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function EP(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&T_(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function _P(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function hl(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function _f(e,t){const n=function y_(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(m_(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=function v_(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(m_(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();hl(t._rawValidators,o),hl(t._rawAsyncValidators,o)}function T_(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}const AP={provide:ot,useExisting:ue(()=>gl)},qi=(()=>Promise.resolve())();let gl=(()=>{class e extends ot{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Ee,this.form=new Df({},hf(n),pf(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){qi.then(()=>{const r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),Wi(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){qi.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){qi.then(()=>{const r=this._findContainer(n.path),o=new Df({});(function A_(e,t){_f(e,t)})(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){qi.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){qi.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,function N_(e,t){e._syncPendingControls(),t.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(n),"dialog"===n?.target?.method}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}}return e.\u0275fac=function(n){return new(n||e)(D(Xe,10),D(Kn,10),D(wo,8))},e.\u0275dir=j({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){1&n&&P("submit",function(i){return r.onSubmit(i)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[me([AP]),se]}),e})();function R_(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function O_(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const x_=class extends I_{constructor(t=null,n,r){super(vf(n),Cf(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ul(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=O_(t)?t.value:t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){R_(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){R_(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){O_(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},OP={provide:Jn,useExisting:ue(()=>kn)},k_=(()=>Promise.resolve())();let kn=(()=>{class e extends Jn{constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new x_,this._registered=!1,this.name="",this.update=new Ee,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function bf(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===hn?n=i:function IP(e){return Object.getPrototypeOf(e.constructor)===Er}(i)?r=i:o=i}),o||r||n||null}(0,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){const r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),function Ef(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Wi(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(n){k_.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=0!==r&&Do(r);k_.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function dl(e,t){return[...t.path,e]}(n,this._parent):[n]}}return e.\u0275fac=function(n){return new(n||e)(D(ot,9),D(Xe,10),D(Kn,10),D(fn,10),D(Ba,8),D(wo,8))},e.\u0275dir=j({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[me([OP]),se,Rt]}),e})(),L_=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=j({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})(),H_=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({}),e})(),nF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({imports:[H_]}),e})(),oF=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:wo,useValue:n.callSetDisabledState??cl}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({imports:[nF]}),e})();function F(...e){return xe(e,$o(e))}function Eo(e,t){return le(t)?Be(e,t,1):Be(e,1)}function Ln(e,t){return $e((n,r)=>{let o=0;n.subscribe(He(r,i=>e.call(t,i,o++)&&r.next(i)))})}function pn(e,t){return $e((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(He(r,l=>{o?.unsubscribe();let u=0;const c=i++;Tt(e(l,c)).subscribe(o=He(r,d=>r.next(t?t(l,d,c,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}class ml{}class Rf{}class Ke{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{let o;if(o="string"==typeof r?[r]:"number"==typeof r?[r.toString()]:r.map(i=>i.toString()),o.length>0){const i=n.toLowerCase();this.headers.set(i,o),this.maybeSetNormalizedName(n,i)}})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof Ke?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){const n=new Ke;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof Ke?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){const n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,n);const o=("a"===t.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=t.value;if(i){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}}class iF{encodeKey(t){return rw(t)}encodeValue(t){return rw(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const aF=/%(\d[a-f0-9])/gi,lF={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function rw(e){return encodeURIComponent(e).replace(aF,(t,n)=>lF[n]??t)}function yl(e){return`${e}`}class tr{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new iF,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function sF(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],l=n.get(s)||[];l.push(a),n.set(s,l)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{const r=t.fromObject[n],o=Array.isArray(r)?r.map(yl):[yl(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){const n=[];return Object.keys(t).forEach(r=>{const o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const n=new tr({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const n=("a"===t.op?this.map.get(t.param):void 0)||[];n.push(yl(t.value)),this.map.set(t.param,n);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const o=r.indexOf(yl(t.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class uF{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function ow(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function iw(e){return typeof Blob<"u"&&e instanceof Blob}function sw(e){return typeof FormData<"u"&&e instanceof FormData}class Zi{constructor(t,n,r,o){let i;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function cF(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new Ke),this.context||(this.context=new uF),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":ad.set(f,t.setHeaders[f]),l)),t.setParams&&(u=Object.keys(t.setParams).reduce((d,f)=>d.set(f,t.setParams[f]),u)),new Zi(n,r,i,{params:u,headers:l,context:c,reportProgress:a,responseType:o,withCredentials:s})}}var Oe=(()=>((Oe=Oe||{})[Oe.Sent=0]="Sent",Oe[Oe.UploadProgress=1]="UploadProgress",Oe[Oe.ResponseHeader=2]="ResponseHeader",Oe[Oe.DownloadProgress=3]="DownloadProgress",Oe[Oe.Response=4]="Response",Oe[Oe.User=5]="User",Oe))();class Of{constructor(t,n=200,r="OK"){this.headers=t.headers||new Ke,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class xf extends Of{constructor(t={}){super(t),this.type=Oe.ResponseHeader}clone(t={}){return new xf({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class bo extends Of{constructor(t={}){super(t),this.type=Oe.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new bo({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class aw extends Of{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Pf(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Mr=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Zi)i=n;else{let l,u;l=o.headers instanceof Ke?o.headers:new Ke(o.headers),o.params&&(u=o.params instanceof tr?o.params:new tr({fromObject:o.params})),i=new Zi(n,r,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=F(i).pipe(Eo(l=>this.handler.handle(l)));if(n instanceof Zi||"events"===o.observe)return s;const a=s.pipe(Ln(l=>l instanceof bo));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(te(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(te(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(te(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(te(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new tr).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Pf(o,r))}post(n,r,o={}){return this.request("POST",n,Pf(o,r))}put(n,r,o={}){return this.request("PUT",n,Pf(o,r))}}return e.\u0275fac=function(n){return new(n||e)(A(ml))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();function lw(e,t){return t(e)}function fF(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}const uw=new N(""),Yi=new N(""),cw=new N("");function pF(){let e=null;return(t,n)=>(null===e&&(e=(S(uw,{optional:!0})??[]).reduceRight(fF,lw)),e(t,n))}let dw=(()=>{class e extends ml{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(Yi),...this.injector.get(cw,[])]));this.chain=r.reduceRight((o,i)=>function hF(e,t,n){return(r,o)=>n.runInContext(()=>t(r,i=>e(i,o)))}(o,i,this.injector),lw)}return this.chain(n,r=>this.backend.handle(r))}}return e.\u0275fac=function(n){return new(n||e)(A(Rf),A(on))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();const vF=/^\)\]\}',?\n/;let hw=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");const r=this.xhrFactory;return(r.\u0275loadImpl?xe(r.\u0275loadImpl()):F(null)).pipe(pn(()=>new be(i=>{const s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((g,M)=>s.setRequestHeader(g,M.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const g=n.detectContentTypeHeader();null!==g&&s.setRequestHeader("Content-Type",g)}if(n.responseType){const g=n.responseType.toLowerCase();s.responseType="json"!==g?g:"text"}const a=n.serializeBody();let l=null;const u=()=>{if(null!==l)return l;const g=s.statusText||"OK",M=new Ke(s.getAllResponseHeaders()),x=function CF(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||n.url;return l=new xf({headers:M,status:s.status,statusText:g,url:x}),l},c=()=>{let{headers:g,status:M,statusText:x,url:Y}=u(),he=null;204!==M&&(he=typeof s.response>"u"?s.responseText:s.response),0===M&&(M=he?200:0);let Lo=M>=200&&M<300;if("json"===n.responseType&&"string"==typeof he){const EV=he;he=he.replace(vF,"");try{he=""!==he?JSON.parse(he):null}catch(bV){he=EV,Lo&&(Lo=!1,he={error:bV,text:he})}}Lo?(i.next(new bo({body:he,headers:g,status:M,statusText:x,url:Y||void 0})),i.complete()):i.error(new aw({error:he,headers:g,status:M,statusText:x,url:Y||void 0}))},d=g=>{const{url:M}=u(),x=new aw({error:g,status:s.status||0,statusText:s.statusText||"Unknown Error",url:M||void 0});i.error(x)};let f=!1;const h=g=>{f||(i.next(u()),f=!0);let M={type:Oe.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(M.total=g.total),"text"===n.responseType&&s.responseText&&(M.partialText=s.responseText),i.next(M)},p=g=>{let M={type:Oe.UploadProgress,loaded:g.loaded};g.lengthComputable&&(M.total=g.total),i.next(M)};let m;s.addEventListener("load",c),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",h),null!==a&&s.upload&&s.upload.addEventListener("progress",p));const v=()=>{m??=function _F(){const e=setTimeout(()=>{},DF);return()=>clearTimeout(e)}()},E=()=>{m?.()};return s.addEventListener("loadstart",v),s.addEventListener("loadend",E),s.send(a),i.next({type:Oe.Sent}),()=>{s.removeEventListener("loadstart",v),s.removeEventListener("loadend",E),s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",c),s.removeEventListener("timeout",d),m?.(),n.reportProgress&&(s.removeEventListener("progress",h),null!==a&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}}return e.\u0275fac=function(n){return new(n||e)(A(TD))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();const DF=2147483647,Ff=new N("XSRF_ENABLED"),pw=new N("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),gw=new N("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class mw{}let bF=(()=>{class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=yD(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(A(Mt),A(mr),A(pw))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();function MF(e,t){const n=e.url.toLowerCase();if(!S(Ff)||"GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t(e);const r=S(mw).getToken(),o=S(gw);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var Ie=(()=>((Ie=Ie||{})[Ie.Interceptors=0]="Interceptors",Ie[Ie.LegacyInterceptors=1]="LegacyInterceptors",Ie[Ie.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Ie[Ie.NoXsrfProtection=3]="NoXsrfProtection",Ie[Ie.JsonpSupport=4]="JsonpSupport",Ie[Ie.RequestsMadeViaParent=5]="RequestsMadeViaParent",Ie))();function Mo(e,t){return{\u0275kind:e,\u0275providers:t}}function SF(...e){const t=[Mr,hw,dw,{provide:ml,useExisting:dw},{provide:Rf,useExisting:hw},{provide:Yi,useValue:MF,multi:!0},{provide:Ff,useValue:!0},{provide:mw,useClass:bF}];for(const n of e)t.push(...n.\u0275providers);return function Ju(e){return{\u0275providers:e}}(t)}const yw=new N("LEGACY_INTERCEPTOR_FN");let TF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({providers:[SF(Mo(Ie.LegacyInterceptors,[{provide:yw,useFactory:pF},{provide:Yi,useExisting:yw,multi:!0}]))]}),e})();function J(e,t,n){const r=le(e)||t||n?{next:e,error:t,complete:n}:e;return r?$e((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(He(i,l=>{var u;null===(u=r.next)||void 0===u||u.call(r,l),i.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),i.complete()},l=>{var u;a=!1,null===(u=r.error)||void 0===u||u.call(r,l),i.error(l)},()=>{var l,u;a&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(u=r.finalize)||void 0===u||u.call(r)}))}):sr}function ge(e){return $e((t,n)=>{let i,r=null,o=!1;r=t.subscribe(He(n,void 0,void 0,s=>{i=Tt(e(s,ge(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}const Sr_restServerUrl="https://tds.truyen.network";let So=(()=>{class e{constructor(){this.messages=[]}add(n){this.messages.push((new Date).toLocaleTimeString()+") "+n)}clear(){this.messages=[]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class gn{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ke({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),F(n))}log(t){this.appMessageService.add(`ChatMessagesService: ${t}`)}getChatMessages(){return this.http.get(gn.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} messages`)),ge(this.handleError("getChatMessages",[])))}addChatMessage(t,n){return this.http.post(gn.REST_URL,{author:t,text:n},this.httpOptions).pipe(J(o=>this.log(`added message w/ id=${o.id}`)),ge(this.handleError("addChatMessage")))}}gn.REST_URL=Sr_restServerUrl+"/api/chat",gn.\u0275fac=function(t){return new(t||gn)(A(Mr),A(So))},gn.\u0275prov=O({token:gn,factory:gn.\u0275fac,providedIn:"root"});class qt extends Cn{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function kf(...e){const t=$o(e),n=Rh(e),{args:r,keys:o}=QD(e);if(0===r.length)return xe([],t);const i=new be(function FF(e,t,n=sr){return r=>{vw(t,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let l=0;l{const u=xe(e[l],t);let c=!1;u.subscribe(He(r,d=>{i[l]=d,c||(c=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,o?s=>KD(o,s):sr));return n?i.pipe(XD(n)):i}function vw(e,t,n){e?Dn(n,e,t):t()}const vl=Vo(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Lf(...e){return function kF(){return Rr(1)}()(xe(e,$o(e)))}function Cw(e){return new be(t=>{Tt(e()).subscribe(t)})}function Xi(e,t){const n=le(e)?e:()=>e,r=o=>o.error(n());return new be(t?o=>t.schedule(r,0,o):r)}function Vf(){return $e((e,t)=>{let n=null;e._refCount++;const r=He(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(n=null);const o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}class Dw extends be{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,yh(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new It;const n=this.getSubject();t.add(this.source.subscribe(He(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=It.EMPTY)}return t}refCount(){return Vf()(this)}}function Io(e){return e<=0?()=>Qt:$e((t,n)=>{let r=0;t.subscribe(He(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Cl(e){return $e((t,n)=>{let r=!1;t.subscribe(He(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function _w(e=VF){return $e((t,n)=>{let r=!1;t.subscribe(He(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function VF(){return new vl}function Ir(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Ln((o,i)=>e(o,i,r)):sr,Io(1),n?Cl(t):_w(()=>new vl))}function Hf(e){return e<=0?()=>Qt:$e((t,n)=>{let r=[];t.subscribe(He(n,o=>{r.push(o),e{for(const o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function jf(e){return $e((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}const q="primary",Ki=Symbol("RouteTitle");class UF{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function To(e){return new UF(e)}function zF(e,t,n){const r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.lengthr[i]===o)}return e===t}function Ew(e){return e.length>0?e[e.length-1]:null}function nr(e){return function PF(e){return!!e&&(e instanceof be||le(e.lift)&&le(e.subscribe))}(e)?e:Mi(e)?xe(Promise.resolve(e)):F(e)}const WF={exact:function Sw(e,t,n){if(!Tr(e.segments,t.segments)||!Dl(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!Sw(e.children[r],t.children[r],n))return!1;return!0},subset:Iw},bw={exact:function qF(e,t){return mn(e,t)},subset:function ZF(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>ww(e[n],t[n]))},ignored:()=>!0};function Mw(e,t,n){return WF[n.paths](e.root,t.root,n.matrixParams)&&bw[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function Iw(e,t,n){return Tw(e,t,t.segments,n)}function Tw(e,t,n,r){if(e.segments.length>n.length){const o=e.segments.slice(0,n.length);return!(!Tr(o,n)||t.hasChildren()||!Dl(o,n,r))}if(e.segments.length===n.length){if(!Tr(e.segments,n)||!Dl(e.segments,n,r))return!1;for(const o in t.children)if(!e.children[o]||!Iw(e.children[o],t.children[o],r))return!1;return!0}{const o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!!(Tr(e.segments,o)&&Dl(e.segments,o,r)&&e.children[q])&&Tw(e.children[q],t,i,r)}}function Dl(e,t,n){return t.every((r,o)=>bw[n](e[o].parameters,r.parameters))}class Ao{constructor(t=new ae([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=To(this.queryParams)),this._queryParamMap}toString(){return XF.serialize(this)}}class ae{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return _l(this)}}class Ji{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=To(this.parameters)),this._parameterMap}toString(){return Rw(this)}}function Tr(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let es=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:function(){return new $f},providedIn:"root"}),e})();class $f{parse(t){const n=new lk(t);return new Ao(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${ts(t.root,!0)}`,r=function ek(e){const t=Object.keys(e).map(n=>{const r=e[n];return Array.isArray(r)?r.map(o=>`${wl(n)}=${wl(o)}`).join("&"):`${wl(n)}=${wl(r)}`}).filter(n=>!!n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function KF(e){return encodeURI(e)}(t.fragment)}`:""}`}}const XF=new $f;function _l(e){return e.segments.map(t=>Rw(t)).join("/")}function ts(e,t){if(!e.hasChildren())return _l(e);if(t){const n=e.children[q]?ts(e.children[q],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==q&&r.push(`${o}:${ts(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function QF(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===q&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==q&&(n=n.concat(t(o,r)))}),n}(e,(r,o)=>o===q?[ts(e.children[q],!1)]:[`${o}:${ts(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[q]?`${_l(e)}/${n[0]}`:`${_l(e)}/(${n.join("//")})`}}function Aw(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function wl(e){return Aw(e).replace(/%3B/gi,";")}function Bf(e){return Aw(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function El(e){return decodeURIComponent(e)}function Nw(e){return El(e.replace(/\+/g,"%20"))}function Rw(e){return`${Bf(e.path)}${function JF(e){return Object.keys(e).map(t=>`;${Bf(t)}=${Bf(e[t])}`).join("")}(e.parameters)}`}const tk=/^[^\/()?;#]+/;function Uf(e){const t=e.match(tk);return t?t[0]:""}const nk=/^[^\/()?;=#]+/,ok=/^[^=?&#]+/,sk=/^[^&#]+/;class lk{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ae([],{}):new ae([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[q]=new ae(t,n)),r}parseSegment(){const t=Uf(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new w(4009,!1);return this.capture(t),new Ji(El(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=function rk(e){const t=e.match(nk);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=Uf(this.remaining);o&&(r=o,this.capture(r))}t[El(n)]=El(r)}parseQueryParam(t){const n=function ik(e){const t=e.match(ok);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function ak(e){const t=e.match(sk);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=Nw(n),i=Nw(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Uf(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new w(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=q);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[q]:new ae([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new w(4011,!1)}}function Ow(e){return e.segments.length>0?new ae([],{[q]:e}):e}function xw(e){const t={};for(const r of Object.keys(e.children)){const i=xw(e.children[r]);if(r===q&&0===i.segments.length&&i.hasChildren())for(const[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}return function uk(e){if(1===e.numberOfChildren&&e.children[q]){const t=e.children[q];return new ae(e.segments.concat(t.segments),t.children)}return e}(new ae(e.segments,t))}function Ar(e){return e instanceof Ao}function Pw(e){let t;const o=Ow(function n(i){const s={};for(const l of i.children){const u=n(l);s[l.outlet]=u}const a=new ae(i.url,s);return i===e&&(t=a),a}(e.root));return t??o}function Fw(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(0===t.length)return zf(o,o,o,n,r);const i=function dk(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Lw(!0,0,e);let t=0,n=!1;const r=e.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return Object.entries(i.outlets).forEach(([l,u])=>{a[l]="string"==typeof u?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?n=!0:".."===a?t++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new Lw(n,t,r)}(t);if(i.toRoot())return zf(o,o,new ae([],{}),n,r);const s=function fk(e,t,n){if(e.isAbsolute)return new Ml(t,!0,0);if(!n)return new Ml(t,!1,NaN);if(null===n.parent)return new Ml(n,!0,0);const r=bl(e.commands[0])?0:1;return function hk(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new w(4005,!1);o=r.segments.length}return new Ml(r,!1,o-i)}(n,n.segments.length-1+r,e.numberOfDoubleDots)}(i,o,e),a=s.processChildren?rs(s.segmentGroup,s.index,i.commands):Vw(s.segmentGroup,s.index,i.commands);return zf(o,s.segmentGroup,a,n,r)}function bl(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function ns(e){return"object"==typeof e&&null!=e&&e.outlets}function zf(e,t,n,r,o){let s,i={};r&&Object.entries(r).forEach(([l,u])=>{i[l]=Array.isArray(u)?u.map(c=>`${c}`):`${u}`}),s=e===t?n:kw(e,t,n);const a=Ow(xw(s));return new Ao(a,i,o)}function kw(e,t,n){const r={};return Object.entries(e.children).forEach(([o,i])=>{r[o]=i===t?n:kw(i,t,n)}),new ae(e.segments,r)}class Lw{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&bl(r[0]))throw new w(4003,!1);const o=r.find(ns);if(o&&o!==Ew(r))throw new w(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ml{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function Vw(e,t,n){if(e||(e=new ae([],{})),0===e.segments.length&&e.hasChildren())return rs(e,t,n);const r=function gk(e,t,n){let r=0,o=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;const s=e.segments[o],a=n[r];if(ns(a))break;const l=`${a}`,u=r0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!jw(l,u,s))return i;r+=2}else{if(!jw(l,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof s&&(s=[s]),null!==s&&(o[i]=Vw(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{void 0===r[i]&&(o[i]=s)}),new ae(e.segments,o)}}function Gf(e,t,n){const r=e.segments.slice(0,t);let o=0;for(;o{"string"==typeof r&&(r=[r]),null!==r&&(t[n]=Gf(new ae([],{}),0,r))}),t}function Hw(e){const t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function jw(e,t,n){return e==n.path&&mn(t,n.parameters)}const os="imperative";class yn{constructor(t,n){this.id=t,this.url=n}}class Wf extends yn{constructor(t,n,r="imperative",o=null){super(t,n),this.type=0,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Nr extends yn{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Sl extends yn{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class is extends yn{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=16}}class qf extends yn{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class yk extends yn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vk extends yn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ck extends yn{constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Dk extends yn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _k extends yn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wk{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ek{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class bk{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Mk{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Sk{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ik{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $w{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Tk{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new ss,this.attachRef=null}}let ss=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){const r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Tk,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class Bw{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){const n=Zf(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=Zf(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=Yf(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Yf(t,this._root).map(n=>n.value)}}function Zf(e,t){if(e===t.value)return t;for(const n of t.children){const r=Zf(e,n);if(r)return r}return null}function Yf(e,t){if(e===t.value)return[t];for(const n of t.children){const r=Yf(e,n);if(r.length)return r.unshift(t),r}return[]}class Vn{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function No(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class Uw extends Bw{constructor(t,n){super(t),this.snapshot=n,Qf(this,t)}toString(){return this.snapshot.toString()}}function zw(e,t){const n=function Ak(e,t){const s=new Il([],{},{},"",{},q,t,null,{});return new Ww("",new Vn(s,[]))}(0,t),r=new qt([new Ji("",{})]),o=new qt({}),i=new qt({}),s=new qt({}),a=new qt(""),l=new rr(r,o,s,a,i,q,t,n.root);return l.snapshot=n.root,new Uw(new Vn(l,[]),n)}class rr{constructor(t,n,r,o,i,s,a,l){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(te(u=>u[Ki]))??F(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(te(t=>To(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(te(t=>To(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Gw(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const o=n[r],i=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function Nk(e){return e.reduce((t,n)=>({params:{...t.params,...n.params},data:{...t.data,...n.data},resolve:{...n.data,...t.resolve,...n.routeConfig?.data,...n._resolvedData}}),{params:{},data:{},resolve:{}})}(n.slice(r))}class Il{get title(){return this.data?.[Ki]}constructor(t,n,r,o,i,s,a,l,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=l,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||(this._paramMap=To(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=To(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ww extends Bw{constructor(t,n){super(n),this.url=t,Qf(this,n)}toString(){return qw(this._root)}}function Qf(e,t){t.value._routerState=e,t.children.forEach(n=>Qf(e,n))}function qw(e){const t=e.children.length>0?` { ${e.children.map(qw).join(", ")} } `:"";return`${e.value}${t}`}function Xf(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,mn(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),mn(t.params,n.params)||e.paramsSubject.next(n.params),function GF(e,t){if(e.length!==t.length)return!1;for(let n=0;nmn(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||Kf(e.parent,t.parent))}let Jf=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=q,this.activateEvents=new Ee,this.deactivateEvents=new Ee,this.attachEvents=new Ee,this.detachEvents=new Ee,this.parentContexts=S(ss),this.location=S(Ut),this.changeDetector=S(Ba),this.environmentInjector=S(on),this.inputBinder=S(Tl,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){const{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new w(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new w(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new w(4012,!1);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new w(4013,!1);this._activatedRoute=n;const o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new Rk(n,a,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:l,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=j({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Rt]}),e})();class Rk{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===rr?this.route:t===ss?this.childContexts:this.parent.get(t,n)}}const Tl=new N("");let Zw=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){const{activatedRoute:r}=n,o=kf([r.queryParams,r.params,r.data]).pipe(pn(([i,s,a],l)=>(a={...i,...s,...a},0===l?F(a):Promise.resolve(a)))).subscribe(i=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(n);const s=function NO(e){const t=ne(e);if(!t)return null;const n=new Di(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone}}}(r.component);if(s)for(const{templateName:a}of s.inputs)n.activatedComponentRef.setInput(a,i[a]);else this.unsubscribeFromRouteData(n)});this.outletDataSubscriptions.set(n,o)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();function as(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const o=function xk(e,t,n){return t.children.map(r=>{for(const o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return as(e,r,o);return as(e,r)})}(e,t,n);return new Vn(r,o)}{if(e.shouldAttach(t.value)){const i=e.retrieve(t.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>as(e,a)),s}}const r=function Pk(e){return new rr(new qt(e.url),new qt(e.params),new qt(e.queryParams),new qt(e.fragment),new qt(e.data),e.outlet,e.component,e)}(t.value),o=t.children.map(i=>as(e,i));return new Vn(r,o)}}const eh="ngNavigationCancelingError";function Yw(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=Ar(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=Qw(!1,0,t);return o.url=n,o.navigationBehaviorOptions=r,o}function Qw(e,t,n){const r=new Error("NavigationCancelingError: "+(e||""));return r[eh]=!0,r.cancellationCode=t,n&&(r.url=n),r}function Xw(e){return Kw(e)&&Ar(e.url)}function Kw(e){return e&&e[eh]}let Jw=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Lt({type:e,selectors:[["ng-component"]],standalone:!0,features:[Rv],decls:1,vars:0,template:function(n,r){1&n&&de(0,"router-outlet")},dependencies:[Jf],encapsulation:2}),e})();function th(e){const t=e.children&&e.children.map(th),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==q&&(n.component=Jw),n}function Zt(e){return e.outlet||q}function ls(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}class $k{constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Xf(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const o=No(n);t.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=No(t);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=No(t);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){const o=No(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Ik(i.value.snapshot))}),t.children.length&&this.forwardEvent(new Mk(t.value.snapshot))}activateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(Xf(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Xf(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=ls(o.snapshot);s.attachRef=null,s.route=o,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}}class eE{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Al{constructor(t,n){this.component=t,this.route=n}}function Bk(e,t,n){const r=e._root;return us(r,t?t._root:null,n,[r.value])}function Ro(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function pb(e){return null!==ys(e)}(e)?t.get(e):e:r}function us(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=No(t);return e.children.forEach(s=>{(function zk(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const l=function Gk(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Tr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Tr(e.url,t.url)||!mn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Kf(e,t)||!mn(e.queryParams,t.queryParams);default:return!Kf(e,t)}}(s,i,i.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new eE(r)):(i.data=s.data,i._resolvedData=s._resolvedData),us(e,t,i.component?a?a.children:null:n,r,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Al(a.outlet.component,s))}else s&&cs(t,a,o),o.canActivateChecks.push(new eE(r)),us(e,null,i.component?a?a.children:null:n,r,o)})(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>cs(a,n.getContext(s),o)),o}function cs(e,t,n){const r=No(e),o=e.value;Object.entries(r).forEach(([i,s])=>{cs(s,o.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new Al(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}function ds(e){return"function"==typeof e}function tE(e){return e instanceof vl||"EmptyError"===e?.name}const Nl=Symbol("INITIAL_VALUE");function Oo(){return pn(e=>kf(e.map(t=>t.pipe(Io(1),function LF(...e){const t=$o(e);return $e((n,r)=>{(t?Lf(e,n,t):Lf(e,n)).subscribe(r)})}(Nl)))).pipe(te(t=>{for(const n of t)if(!0!==n){if(n===Nl)return Nl;if(!1===n||n instanceof Ao)return n}return!0}),Ln(t=>t!==Nl),Io(1)))}function nE(e){return function xE(...e){return ph(e)}(J(t=>{if(Ar(t))throw Yw(0,t)}),te(t=>!0===t))}class Rl{constructor(t){this.segmentGroup=t||null}}class rE{constructor(t){this.urlTree=t}}function xo(e){return Xi(new Rl(e))}function oE(e){return Xi(new rE(e))}class dL{constructor(t,n){this.urlSerializer=t,this.urlTree=n}noMatchError(t){return new w(4002,!1)}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return F(r);if(o.numberOfChildren>1||!o.children[q])return Xi(new w(4e3,!1));o=o.children[q]}}applyRedirectCommands(t,n,r){return this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r)}applyRedirectCreateUrlTree(t,n,r,o){const i=this.createSegmentGroup(t,n.root,r,o);return new Ao(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){const r={};return Object.entries(t).forEach(([o,i])=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){const i=this.createSegments(t,n.segments,r,o);let s={};return Object.entries(n.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(t,l,r,o)}),new ae(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path.startsWith(":")?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){const o=r[n.path.substring(1)];if(!o)throw new w(4001,!1);return o}findOrReturn(t,n){let r=0;for(const o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}}const nh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function fL(e,t,n,r,o){const i=rh(e,t,n);return i.matched?(r=function Fk(e,t){return e.providers&&!e._injector&&(e._injector=ed(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,r),function lL(e,t,n,r){const o=t.canMatch;return o&&0!==o.length?F(o.map(s=>{const a=Ro(s,e);return nr(function Xk(e){return e&&ds(e.canMatch)}(a)?a.canMatch(t,n):e.runInContext(()=>a(t,n)))})).pipe(Oo(),nE()):F(!0)}(r,t,n).pipe(te(s=>!0===s?i:{...nh}))):F(i)}function rh(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...nh}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const o=(t.matcher||zF)(n,e,t);if(!o)return{...nh};const i={};Object.entries(o.posParams??{}).forEach(([a,l])=>{i[a]=l.path});const s=o.consumed.length>0?{...i,...o.consumed[o.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function iE(e,t,n,r){return n.length>0&&function gL(e,t,n){return n.some(r=>Ol(e,t,r)&&Zt(r)!==q)}(e,n,r)?{segmentGroup:new ae(t,pL(r,new ae(n,e.children))),slicedSegments:[]}:0===n.length&&function mL(e,t,n){return n.some(r=>Ol(e,t,r))}(e,n,r)?{segmentGroup:new ae(e.segments,hL(e,0,n,r,e.children)),slicedSegments:n}:{segmentGroup:new ae(e.segments,e.children),slicedSegments:n}}function hL(e,t,n,r,o){const i={};for(const s of r)if(Ol(e,n,s)&&!o[Zt(s)]){const a=new ae([],{});i[Zt(s)]=a}return{...o,...i}}function pL(e,t){const n={};n[q]=t;for(const r of e)if(""===r.path&&Zt(r)!==q){const o=new ae([],{});n[Zt(r)]=o}return n}function Ol(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}class DL{constructor(t,n,r,o,i,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new dL(this.urlSerializer,this.urlTree)}noMatchError(t){return new w(4002,!1)}recognize(){const t=iE(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,q).pipe(ge(n=>{if(n instanceof rE)return this.allowRedirects=!1,this.urlTree=n.urlTree,this.match(n.urlTree);throw n instanceof Rl?this.noMatchError(n):n}),te(n=>{const r=new Il([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},q,this.rootComponentType,null,{}),o=new Vn(r,n),i=new Ww("",o),s=function ck(e,t,n=null,r=null){return Fw(Pw(e),t,n,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(i._root),{state:i,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t.root,q).pipe(ge(r=>{throw r instanceof Rl?this.noMatchError(r):r}))}inheritParamsAndData(t){const n=t.value,r=Gw(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(t,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(t,n,r):this.processSegment(t,n,r,r.segments,o,!0)}processChildren(t,n,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return xe(o).pipe(Eo(i=>{const s=r.children[i],a=function Hk(e,t){const n=e.filter(r=>Zt(r)===t);return n.push(...e.filter(r=>Zt(r)!==t)),n}(n,i);return this.processSegmentGroup(t,a,s,i)}),function jF(e,t){return $e(function HF(e,t,n,r,o){return(i,s)=>{let a=n,l=t,u=0;i.subscribe(He(s,c=>{const d=u++;l=a?e(l,c,d):(a=!0,c),r&&s.next(l)},o&&(()=>{a&&s.next(l),s.complete()})))}}(e,t,arguments.length>=2,!0))}((i,s)=>(i.push(...s),i)),Cl(null),function $F(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Ln((o,i)=>e(o,i,r)):sr,Hf(1),n?Cl(t):_w(()=>new vl))}(),Be(i=>{if(null===i)return xo(r);const s=sE(i);return function _L(e){e.sort((t,n)=>t.value.outlet===q?-1:n.value.outlet===q?1:t.value.outlet.localeCompare(n.value.outlet))}(s),F(s)}))}processSegment(t,n,r,o,i,s){return xe(n).pipe(Eo(a=>this.processSegmentAgainstRoute(a._injector??t,n,a,r,o,i,s).pipe(ge(l=>{if(l instanceof Rl)return F(null);throw l}))),Ir(a=>!!a),ge(a=>{if(tE(a))return function vL(e,t,n){return 0===t.length&&!e.children[n]}(r,o,i)?F([]):xo(r);throw a}))}processSegmentAgainstRoute(t,n,r,o,i,s,a){return function yL(e,t,n,r){return!!(Zt(e)===r||r!==q&&Ol(t,n,e))&&("**"===e.path||rh(t,e,n).matched)}(r,o,i,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,o,r,i,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s):xo(o):xo(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o){const i=this.applyRedirects.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?oE(i):this.applyRedirects.lineralizeSegments(r,i).pipe(Be(s=>{const a=new ae(s,{});return this.processSegment(t,n,a,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){const{matched:a,consumedSegments:l,remainingSegments:u,positionalParamSegments:c}=rh(n,o,i);if(!a)return xo(n);const d=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,c);return o.redirectTo.startsWith("/")?oE(d):this.applyRedirects.lineralizeSegments(o,d).pipe(Be(f=>this.processSegment(t,r,n,f.concat(u),s,!1)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a;if("**"===r.path){const l=o.length>0?Ew(o).parameters:{};a=F({snapshot:new Il(o,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,aE(r),Zt(r),r.component??r._loadedComponent??null,r,lE(r)),consumedSegments:[],remainingSegments:[]}),n.children={}}else a=fL(n,r,o,t).pipe(te(({matched:l,consumedSegments:u,remainingSegments:c,parameters:d})=>l?{snapshot:new Il(u,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,aE(r),Zt(r),r.component??r._loadedComponent??null,r,lE(r)),consumedSegments:u,remainingSegments:c}:null));return a.pipe(pn(l=>null===l?xo(n):this.getChildConfig(t=r._injector??t,r,o).pipe(pn(({routes:u})=>{const c=r._loadedInjector??t,{snapshot:d,consumedSegments:f,remainingSegments:h}=l,{segmentGroup:p,slicedSegments:m}=iE(n,f,h,u);if(0===m.length&&p.hasChildren())return this.processChildren(c,u,p).pipe(te(E=>null===E?null:[new Vn(d,E)]));if(0===u.length&&0===m.length)return F([new Vn(d,[])]);const v=Zt(r)===i;return this.processSegment(c,u,p,m,v?q:i,!0).pipe(te(E=>[new Vn(d,E)]))}))))}getChildConfig(t,n,r){return n.children?F({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?F({routes:n._loadedRoutes,injector:n._loadedInjector}):function aL(e,t,n,r){const o=t.canLoad;return void 0===o||0===o.length?F(!0):F(o.map(s=>{const a=Ro(s,e);return nr(function qk(e){return e&&ds(e.canLoad)}(a)?a.canLoad(t,n):e.runInContext(()=>a(t,n)))})).pipe(Oo(),nE())}(t,n,r).pipe(Be(o=>o?this.configLoader.loadChildren(t,n).pipe(J(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):function cL(e){return Xi(Qw(!1,3))}())):F({routes:[],injector:t})}}function wL(e){const t=e.value.routeConfig;return t&&""===t.path}function sE(e){const t=[],n=new Set;for(const r of e){if(!wL(r)){t.push(r);continue}const o=t.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),n.add(o)):t.push(r)}for(const r of n){const o=sE(r.children);t.push(new Vn(r.value,o))}return t.filter(r=>!n.has(r))}function aE(e){return e.data||{}}function lE(e){return e.resolve||{}}function uE(e){return"string"==typeof e.title||null===e.title}function oh(e){return pn(t=>{const n=e(t);return n?xe(n).pipe(te(()=>t)):F(t)})}const Po=new N("ROUTES");let ih=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=S(DC)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return F(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=nr(n.loadComponent()).pipe(te(cE),J(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),jf(()=>{this.componentLoaders.delete(n)})),o=new Dw(r,()=>new Cn).pipe(Vf());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return F({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(te(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,u;return Array.isArray(a)?u=a:(l=a.create(n).injector,u=l.get(Po,[],L.Self|L.Optional).flat()),{routes:u.map(th),injector:l}}),jf(()=>{this.childrenLoaders.delete(r)})),s=new Dw(i,()=>new Cn).pipe(Vf());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(n){return nr(n()).pipe(te(cE),Be(r=>r instanceof Av||Array.isArray(r)?F(r):xe(this.compiler.compileModuleAsync(r))))}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function cE(e){return function AL(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let xl=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new Cn,this.configLoader=S(ih),this.environmentInjector=S(on),this.urlSerializer=S(es),this.rootContexts=S(ss),this.inputBindingEnabled=null!==S(Tl,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>F(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new Ek(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new wk(o))}complete(){this.transitions?.complete()}handleNavigationRequest(n){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...n,id:r})}setupNavigations(n){return this.transitions=new qt({id:0,currentUrlTree:n.currentUrlTree,currentRawUrl:n.currentUrlTree,extractedUrl:n.urlHandlingStrategy.extract(n.currentUrlTree),urlAfterRedirects:n.urlHandlingStrategy.extract(n.currentUrlTree),rawUrl:n.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:os,restoredState:null,currentSnapshot:n.routerState.snapshot,targetSnapshot:null,currentRouterState:n.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ln(r=>0!==r.id),te(r=>({...r,extractedUrl:n.urlHandlingStrategy.extract(r.rawUrl)})),pn(r=>{let o=!1,i=!1;return F(r).pipe(J(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),pn(s=>{const a=n.browserUrlTree.toString(),l=!n.navigated||s.extractedUrl.toString()!==a||a!==n.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const c="";return this.events.next(new is(s.id,n.serializeUrl(r.rawUrl),c,0)),n.rawUrlTree=s.rawUrl,s.resolve(null),Qt}if(n.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return dE(s.source)&&(n.browserUrlTree=s.extractedUrl),F(s).pipe(pn(c=>{const d=this.transitions?.getValue();return this.events.next(new Wf(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),d!==this.transitions?.getValue()?Qt:Promise.resolve(c)}),function EL(e,t,n,r,o,i){return Be(s=>function CL(e,t,n,r,o,i,s="emptyOnly"){return new DL(e,t,n,r,o,s,i).recognize()}(e,t,n,r,s.extractedUrl,o,i).pipe(te(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),J(c=>{if(r.targetSnapshot=c.targetSnapshot,r.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},"eager"===n.urlUpdateStrategy){if(!c.extras.skipLocationChange){const f=n.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl);n.setBrowserUrl(f,c)}n.browserUrlTree=c.urlAfterRedirects}const d=new yk(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}));if(l&&n.urlHandlingStrategy.shouldProcessUrl(n.rawUrlTree)){const{id:c,extractedUrl:d,source:f,restoredState:h,extras:p}=s,m=new Wf(c,this.urlSerializer.serialize(d),f,h);this.events.next(m);const v=zw(0,this.rootComponentType).snapshot;return F(r={...s,targetSnapshot:v,urlAfterRedirects:d,extras:{...p,skipLocationChange:!1,replaceUrl:!1}})}{const c="";return this.events.next(new is(s.id,n.serializeUrl(r.extractedUrl),c,1)),n.rawUrlTree=s.rawUrl,s.resolve(null),Qt}}),J(s=>{const a=new vk(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),te(s=>r={...s,guards:Bk(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function Jk(e,t){return Be(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?F({...n,guardsResult:!0}):function eL(e,t,n,r){return xe(e).pipe(Be(o=>function sL(e,t,n,r,o){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?F(i.map(a=>{const l=ls(t)??o,u=Ro(a,l);return nr(function Qk(e){return e&&ds(e.canDeactivate)}(u)?u.canDeactivate(e,t,n,r):l.runInContext(()=>u(e,t,n,r))).pipe(Ir())})).pipe(Oo()):F(!0)}(o.component,o.route,n,t,r)),Ir(o=>!0!==o,!0))}(s,r,o,e).pipe(Be(a=>a&&function Wk(e){return"boolean"==typeof e}(a)?function tL(e,t,n,r){return xe(t).pipe(Eo(o=>Lf(function rL(e,t){return null!==e&&t&&t(new bk(e)),F(!0)}(o.route.parent,r),function nL(e,t){return null!==e&&t&&t(new Sk(e)),F(!0)}(o.route,r),function iL(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>function Uk(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>Cw(()=>F(s.guards.map(l=>{const u=ls(s.node)??n,c=Ro(l,u);return nr(function Yk(e){return e&&ds(e.canActivateChild)}(c)?c.canActivateChild(r,e):u.runInContext(()=>c(r,e))).pipe(Ir())})).pipe(Oo())));return F(i).pipe(Oo())}(e,o.path,n),function oL(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return F(!0);const o=r.map(i=>Cw(()=>{const s=ls(t)??n,a=Ro(i,s);return nr(function Zk(e){return e&&ds(e.canActivate)}(a)?a.canActivate(t,e):s.runInContext(()=>a(t,e))).pipe(Ir())}));return F(o).pipe(Oo())}(e,o.route,n))),Ir(o=>!0!==o,!0))}(r,i,e,t):F(a)),te(a=>({...n,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),J(s=>{if(r.guardsResult=s.guardsResult,Ar(s.guardsResult))throw Yw(0,s.guardsResult);const a=new Ck(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),Ln(s=>!!s.guardsResult||(n.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),oh(s=>{if(s.guards.canActivateChecks.length)return F(s).pipe(J(a=>{const l=new Dk(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),pn(a=>{let l=!1;return F(a).pipe(function bL(e,t){return Be(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return F(n);let i=0;return xe(o).pipe(Eo(s=>function ML(e,t,n,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!uE(o)&&(i[Ki]=o.title),function SL(e,t,n,r){const o=function IL(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===o.length)return F({});const i={};return xe(o).pipe(Be(s=>function TL(e,t,n,r){const o=ls(t)??r,i=Ro(e,o);return nr(i.resolve?i.resolve(t,n):o.runInContext(()=>i(t,n)))}(e[s],t,n,r).pipe(Ir(),J(a=>{i[s]=a}))),Hf(1),function BF(e){return te(()=>e)}(i),ge(s=>tE(s)?Qt:Xi(s)))}(i,e,t,r).pipe(te(s=>(e._resolvedData=s,e.data=Gw(e,n).resolve,o&&uE(o)&&(e.data[Ki]=o.title),null)))}(s.route,r,e,t)),J(()=>i++),Hf(1),Be(s=>i===o.length?F(n):Qt))})}(n.paramsInheritanceStrategy,this.environmentInjector),J({next:()=>l=!0,complete:()=>{l||(n.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),J(a=>{const l=new _k(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),oh(s=>{const a=l=>{const u=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(l.routeConfig).pipe(J(c=>{l.component=c}),te(()=>{})));for(const c of l.children)u.push(...a(c));return u};return kf(a(s.targetSnapshot.root)).pipe(Cl(),Io(1))}),oh(()=>this.afterPreactivation()),te(s=>{const a=function Ok(e,t,n){const r=as(e,t._root,n?n._root:void 0);return new Uw(r,t)}(n.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),J(s=>{n.currentUrlTree=s.urlAfterRedirects,n.rawUrlTree=n.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),n.routerState=s.targetRouterState,"deferred"===n.urlUpdateStrategy&&(s.extras.skipLocationChange||n.setBrowserUrl(n.rawUrlTree,s),n.browserUrlTree=s.urlAfterRedirects)}),((e,t,n,r)=>te(o=>(new $k(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)))(this.rootContexts,n.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),Io(1),J({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,n.navigated=!0,this.events.next(new Nr(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(n.currentUrlTree))),n.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),jf(()=>{o||i||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),ge(s=>{if(i=!0,Kw(s)){Xw(s)||(n.navigated=!0,n.restoreHistory(r,!0));const a=new Sl(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),Xw(s)){const l=n.urlHandlingStrategy.merge(s.url,n.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===n.urlUpdateStrategy||dE(r.source)};n.scheduleNavigation(l,os,null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{n.restoreHistory(r,!0);const a=new qf(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);this.events.next(a);try{r.resolve(n.errorHandler(s))}catch(l){r.reject(l)}}return Qt}))}))}cancelNavigationTransition(n,r,o){const i=new Sl(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function dE(e){return e!==os}let fE=(()=>{class e{buildTitle(n){let r,o=n.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===q);return r}getResolvedTitleForRoute(n){return n.data[Ki]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:function(){return S(NL)},providedIn:"root"}),e})(),NL=(()=>{class e extends fE{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}}return e.\u0275fac=function(n){return new(n||e)(A(WD))},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),RL=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:function(){return S(xL)},providedIn:"root"}),e})();class OL{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}let xL=(()=>{class e extends OL{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ge(e)))(r||e)}}(),e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Pl=new N("",{providedIn:"root",factory:()=>({})});let PL=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:function(){return S(FL)},providedIn:"root"}),e})(),FL=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var St=(()=>((St=St||{})[St.COMPLETE=0]="COMPLETE",St[St.FAILED=1]="FAILED",St[St.REDIRECTING=2]="REDIRECTING",St))();function hE(e,t){e.events.pipe(Ln(n=>n instanceof Nr||n instanceof Sl||n instanceof qf||n instanceof is),te(n=>n instanceof Nr||n instanceof is?St.COMPLETE:n instanceof Sl&&(0===n.code||1===n.code)?St.REDIRECTING:St.FAILED),Ln(n=>n!==St.REDIRECTING),Io(1)).subscribe(()=>{t()})}function kL(e){throw e}function LL(e,t,n){return t.parse("/")}const VL={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},HL={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let We=(()=>{class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=S(CC),this.isNgZoneEnabled=!1,this.options=S(Pl,{optional:!0})||{},this.pendingTasks=S(nD),this.errorHandler=this.options.errorHandler||kL,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||LL,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=S(PL),this.routeReuseStrategy=S(RL),this.titleStrategy=S(fE),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=S(Po,{optional:!0})?.flat()??[],this.navigationTransitions=S(xl),this.urlSerializer=S(es),this.location=S(Hd),this.componentInputBindingEnabled=!!S(Tl,{optional:!0}),this.isNgZoneEnabled=S(ye)instanceof ye&&ye.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Ao,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=zw(0,null),this.navigationTransitions.setupNavigations(this).subscribe(n=>{this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId??0},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const n=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),os,n)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(n.url,r,n.state)},0)}))}navigateToSyncWithBrowser(n,r,o){const i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(i.state=l)}const a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(th),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(n,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,u=l?this.currentUrlTree.fragment:s;let d,c=null;switch(a){case"merge":c={...this.currentUrlTree.queryParams,...i};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}null!==c&&(c=this.removeEmptyProps(c));try{d=Pw(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),d=this.currentUrlTree.root}return Fw(d,n,c,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=Ar(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,os,null,r)}navigate(n,r={skipLocationChange:!1}){return function jL(e){for(let t=0;t{const i=n[o];return null!=i&&(r[o]=i),r},{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,l,u;s?(a=s.resolve,l=s.reject,u=s.promise):u=new Promise((d,f)=>{a=d,l=f});const c=this.pendingTasks.add();return hE(this,()=>{Promise.resolve().then(()=>this.pendingTasks.remove(c))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(o,"",s)}else{const i={...r.extras.state,...this.generateNgRouterState(r.id,(this.browserPageId??0)+1)};this.location.go(o,"",i)}}restoreHistory(n,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-(this.browserPageId??this.currentPageId);0!==i?this.location.historyGo(i):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===i&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Fo=(()=>{class e{constructor(n,r,o,i,s,a){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new Cn;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof Nr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(n){this._preserveFragment=Do(n)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(n){this._skipLocationChange=Do(n)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(n){this._replaceUrl=Do(n)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(n){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){null!=n?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,r,o,i,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==n||r||o||i||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const n=null===this.href?null:function Ug(e,t,n){return function pI(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Bg:Ku}(t,n)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(n,r){const o=this.renderer,i=this.el.nativeElement;null!==r?o.setAttribute(i,n,r):o.removeAttribute(i,n)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return e.\u0275fac=function(n){return new(n||e)(D(We),D(rr),function Us(e){return function LM(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let o=0;for(;o{class e{get isActive(){return this._isActive}constructor(n,r,o,i,s){this.router=n,this.element=r,this.renderer=o,this.cdr=i,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new Ee,this.routerEventsSubscription=n.events.subscribe(a=>{a instanceof Nr&&this.update()})}ngAfterContentInit(){F(this.links.changes,F(null)).pipe(Rr()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=xe(n).pipe(Rr()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){const r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const n=this.hasActiveLinks();this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),n&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(n))})}isLinkActive(n){const r=function $L(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>!!o.urlTree&&n.isActive(o.urlTree,r)}hasActiveLinks(){const n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}}return e.\u0275fac=function(n){return new(n||e)(D(We),D(Et),D(Tn),D(Ba),D(Fo,8))},e.\u0275dir=j({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(n,r,o){if(1&n&&function Jv(e,t,n,r){const o=K();if(o.firstCreatePass){const i=ze();tC(o,new Xv(t,n,r),i.index),function mR(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(o,e),2==(2&n)&&(o.staticContentQueries=!0)}eC(o,_(),n)}(o,Fo,5),2&n){let i;La(i=Va())&&(r.links=i)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Rt]}),e})();class gE{}let BL=(()=>{class e{constructor(n,r,o,i,s){this.router=n,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Ln(n=>n instanceof Nr),Eo(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=ed(i.providers,n,`Route: ${i.path}`));const s=i._injector??n,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&void 0===i.canLoad||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return xe(o).pipe(Rr())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):F(null);const i=o.pipe(Be(s=>null===s?F(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));return r.loadComponent&&!r._loadedComponent?xe([i,this.loader.loadComponent(r)]).pipe(Rr()):i})}}return e.\u0275fac=function(n){return new(n||e)(A(We),A(DC),A(on),A(gE),A(ih))},e.\u0275prov=O({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const sh=new N("");let mE=(()=>{class e{constructor(n,r,o,i,s={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Wf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Nr?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof is&&0===n.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof $w&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new $w(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return e.\u0275fac=function(n){!function Em(){throw new Error("invalid")}()},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})();function Hn(e,t){return{\u0275kind:e,\u0275providers:t}}function vE(){const e=S(sn);return t=>{const n=e.get(Co);if(t!==n.components[0])return;const r=e.get(We),o=e.get(CE);1===e.get(ah)&&r.initialNavigation(),e.get(DE,null,L.Optional)?.setUpPreloading(),e.get(sh,null,L.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const CE=new N("",{factory:()=>new Cn}),ah=new N("",{providedIn:"root",factory:()=>1}),DE=new N("");function WL(e){return Hn(0,[{provide:DE,useExisting:BL},{provide:gE,useExisting:e}])}const _E=new N("ROUTER_FORROOT_GUARD"),ZL=[Hd,{provide:es,useClass:$f},We,ss,{provide:rr,useFactory:function yE(e){return e.routerState.root},deps:[We]},ih,[]];function YL(){return new RC("Router",We)}let wE=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[ZL,[],{provide:Po,multi:!0,useValue:n},{provide:_E,useFactory:JL,deps:[[We,new Ws,new qs]]},{provide:Pl,useValue:r||{}},r?.useHash?{provide:Yn,useClass:aD}:{provide:Yn,useClass:sD},{provide:sh,useFactory:()=>{const e=S(Xx),t=S(ye),n=S(Pl),r=S(xl),o=S(es);return n.scrollOffset&&e.setOffset(n.scrollOffset),new mE(o,r,e,t,n)}},r?.preloadingStrategy?WL(r.preloadingStrategy).\u0275providers:[],{provide:RC,multi:!0,useFactory:YL},r?.initialNavigation?eV(r):[],r?.bindToComponentInputs?Hn(8,[Zw,{provide:Tl,useExisting:Zw}]).\u0275providers:[],[{provide:EE,useFactory:vE},{provide:Td,multi:!0,useExisting:EE}]]}}static forChild(n){return{ngModule:e,providers:[{provide:Po,multi:!0,useValue:n}]}}}return e.\u0275fac=function(n){return new(n||e)(A(_E,8))},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({}),e})();function JL(e){return"guarded"}function eV(e){return["disabled"===e.initialNavigation?Hn(3,[{provide:Cd,multi:!0,useFactory:()=>{const t=S(We);return()=>{t.setUpLocationChangeListener()}}},{provide:ah,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Hn(2,[{provide:ah,useValue:0},{provide:Cd,multi:!0,deps:[sn],useFactory:t=>{const n=t.get(xO,Promise.resolve());return()=>n.then(()=>new Promise(r=>{const o=t.get(We),i=t.get(CE);hE(o,()=>{r(!0)}),t.get(xl).afterPreactivation=()=>(r(!0),i.closed?F(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const EE=new N("");class gt{constructor(t,n,r){this.http=t,this.router=n,this.appMessageService=r,this.authenticated=!1,this.credentials={username:"",password:""},this.authority="none"}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),r)}log(t){this.appMessageService.add(`LoginService: ${t}`)}isAuthenticated(){return this.authenticated}getAuthorizationToken(){return`Basic ${window.btoa(this.credentials.username+":"+this.credentials.password)}`}getUsername(){return this.credentials.username}authenticate(t){this.log(`Authenticating: ${t.username}`),this.credentials=t;const n=new Ke({"Content-Type":"application/json",Accept:"application/json",Authorization:this.getAuthorizationToken()});return this.http.get(gt.REST_URL,{headers:n}).pipe(J(r=>this.authorizationRecieved(r)),ge(this.handleError("authenticate")))}logout(){this.authenticated=!1,this.log("Logged out"),this.router.navigateByUrl("/").then(()=>{})}authorizationRecieved(t){this.authenticated=!0;let n=t.authorities[0].authority;n=n.substring(n.indexOf("_")+1),this.authority=n,this.log(`Authenticated '${t.name}' as '${n}'`),console.log(`Authenticated as ${JSON.stringify(t)}`)}}gt.REST_URL=Sr_restServerUrl+"/api/user",gt.\u0275fac=function(t){return new(t||gt)(A(Mr),A(We),A(So))},gt.\u0275prov=O({token:gt,factory:gt.\u0275fac,providedIn:"root"});const nV=["scrollMe"];function rV(e,t){if(1&e&&(y(0,"li")(1,"div",7)(2,"span",8),b(3),C(),y(4,"span",9),b(5),Pi(6,"date"),C(),y(7,"span",10),b(8),C()(),y(9,"span",11),b(10),C()()),2&e){const n=t.$implicit;R(3),ht(n.id),R(2),ht(Fi(6,4,n.dateCreated,"dd-MM-yyyy HH:mm:ss")),R(3),ht(n.author),R(2),ht(n.text)}}function oV(e,t){if(1&e){const n=Sa();y(0,"ul",4,5),P("scroll",function(){return Os(n),xs(Si().onScroll())}),Rn(2,rV,11,7,"li",6),C()}if(2&e){const n=Si();R(2),W("ngForOf",n.messages)}}let lh=(()=>{class e{constructor(n,r){this.chatService=n,this.loginService=r,this.disableScrollDown=!1,this.messages=[],this.newMessage=""}getChatMessages(){this.chatService.getChatMessages().subscribe(n=>{this.messages=n,this.disableScrollDown=!1,this.scrollToBottom()})}ngOnInit(){this.loginService.isAuthenticated()&&this.getChatMessages()}sendMessage(){this.chatService.addChatMessage(this.loginService.getUsername(),this.newMessage).subscribe(()=>this.getChatMessages()),this.newMessage=""}ngAfterViewChecked(){this.scrollToBottom()}onScroll(){let n=this.myScrollContainer.nativeElement;this.disableScrollDown=!(this.disableScrollDown&&n.scrollHeight-n.scrollTop===n.clientHeight)}scrollToBottom(){if(!this.disableScrollDown)try{this.myScrollContainer.nativeElement.scrollTop=this.myScrollContainer.nativeElement.scrollHeight}catch{}}}return e.\u0275fac=function(n){return new(n||e)(D(gn),D(gt))},e.\u0275cmp=Lt({type:e,selectors:[["app-chat"]],viewQuery:function(n,r){if(1&n&&hd(nV,5),2&n){let o;La(o=Va())&&(r.myScrollContainer=o.first)}},decls:7,vars:2,consts:[["class","chat",3,"scroll",4,"ngIf"],[1,"input"],["id","message-text","placeholder","hello",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"chat",3,"scroll"],["scrollMe",""],[4,"ngFor","ngForOf"],[1,"message-title"],[1,"badge"],[1,"date"],[1,"author"],[1,"text"]],template:function(n,r){1&n&&(Rn(0,oV,3,1,"ul",0),y(1,"div",1)(2,"input",2),P("ngModelChange",function(i){return r.newMessage=i})("keydown.enter",function(){return r.sendMessage()}),C(),y(3,"button",3),P("click",function(){return r.sendMessage()}),b(4,"Send"),C(),y(5,"button",3),P("click",function(){return r.getChatMessages()}),b(6,"Reload"),C()()),2&n&&(W("ngIf",r.messages.length),R(2),W("ngModel",r.newMessage))},dependencies:[wr,_D,hn,er,kn,$i],styles:[".chat[_ngcontent-%COMP%]{margin:0;list-style-type:none;padding:.1em;max-height:20em;overflow:auto}.chat[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;left:0;margin:.1em;padding:0;border-radius:4px;border:solid 1px darkblue}.chat[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#e6e6e688}.message-title[_ngcontent-%COMP%]{display:block;text-align:left;font-size:x-small}.message-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;color:#fff}.badge[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#405061;border-radius:2px 0 0}.date[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#605061}.author[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#a0b0b1;border-radius:0 0 2px}.chat[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{align-self:center;margin:0 .1em .1em}.input[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{left:0;padding:0}.input[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;padding-right:.2em}"]}),e})();const bE=function(){return{exact:!0}};let iV=(()=>{class e{constructor(n){this.loginService=n,this.title="Familie TDS",this.chatLoaded=!1,this.chatHidden=!0,this.pos1=0,this.pos2=0,this.pos3=0,this.pos4=0,this.target=null}isAuthenticated(){return this.loginService.isAuthenticated()}username(){return this.loginService.getUsername()}logout(){localStorage.setItem("username",""),localStorage.setItem("password",""),this.loginService.logout()}toggleChatHidden(){this.chatHidden=!this.chatHidden,!this.chatHidden&&!this.chatLoaded&&(this.chatComponent.getChatMessages(),this.chatLoaded=!0)}isChatHidden(){return this.chatHidden}startMouseDragging(n){0===n.button&&(n.preventDefault(),this.pos3=n.clientX,this.pos4=n.clientY,document.onmouseup=()=>this.endMouseDrag(),document.onmousemove=r=>this.mouseDragElement(r),this.target=document.getElementById("chatwindow"))}mouseDragElement(n){n.preventDefault(),this.pos1=this.pos3-n.clientX,this.pos2=this.pos4-n.clientY,this.pos3=n.clientX,this.pos4=n.clientY,this.target.style.top=this.target.offsetTop-this.pos2+"px",this.target.style.left=this.target.offsetLeft-this.pos1+"px"}endMouseDrag(){document.onmouseup=null,document.onmousemove=null,this.target=null}startTouchDragging(n){n.preventDefault(),this.pos3=n.targetTouches[0].clientX,this.pos4=n.targetTouches[0].clientY,document.ontouchend=()=>this.endTouchDrag(),document.ontouchmove=r=>this.touchDragElement(r),this.target=document.getElementById("chatwindow")}touchDragElement(n){n.preventDefault(),this.pos1=this.pos3-n.targetTouches[0].clientX,this.pos2=this.pos4-n.targetTouches[0].clientY,this.pos3=n.targetTouches[0].clientX,this.pos4=n.targetTouches[0].clientY,this.target.style.top=this.target.offsetTop-this.pos2+"px",this.target.style.left=this.target.offsetLeft-this.pos1+"px"}endTouchDrag(){document.ontouchend=null,document.ontouchmove=null,this.target=null}toggleTheme(){const n="theme-dark",r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.toggle(n),r.classList.contains(n)?localStorage.setItem("theme",n):localStorage.setItem("theme","theme-light")}setTheme(n){const r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.add(n),localStorage.setItem("theme",n)}detectTheme(){const n=localStorage.getItem("theme");"theme-dark"!==n&&"theme-light"!==n?window.matchMedia("(prefers-color-scheme: dark)").matches?this.setTheme("theme-dark"):(window.matchMedia("(prefers-color-scheme: light)"),this.setTheme("theme-light")):this.setTheme(n)}ngOnInit(){this.detectTheme()}}return e.\u0275fac=function(n){return new(n||e)(D(gt))},e.\u0275cmp=Lt({type:e,selectors:[["app-root"]],viewQuery:function(n,r){if(1&n&&hd(lh,5),2&n){let o;La(o=Va())&&(r.chatComponent=o.first)}},decls:36,vars:10,consts:[["title","Dark theme on/off",3,"click"],[3,"hidden"],["routerLinkActive","active-link","routerLink","/",3,"routerLinkActiveOptions"],["routerLinkActive","active-link","routerLink","/login"],["routerLinkActive","active-link","routerLink","/checklists"],["routerLinkActive","active-link","routerLink","/contacts"],["routerLinkActive","active-link","routerLink","/todo"],["id","logout",3,"click"],["id","tools",3,"hidden"],["id","toolbar"],[3,"click"],["id","chatwindow",3,"hidden"],["id","chattitlebar",3,"mousedown","touchstart"],[1,"close-button",3,"click"],["id","chatcontent"]],template:function(n,r){1&n&&(y(0,"nav")(1,"button",0),P("click",function(){return r.toggleTheme()}),b(2,"\u2600"),C(),y(3,"span",1)(4,"h1"),b(5),C(),y(6,"a",2),b(7,"Home"),C(),y(8,"a",3),b(9,"Login"),C()(),y(10,"span",1)(11,"h1"),b(12),C(),y(13,"a",2),b(14,"Home"),C(),y(15,"a",4),b(16,"Checklists"),C(),y(17,"a",5),b(18,"Contacts"),C(),y(19,"a",6),b(20,"Todo"),C(),y(21,"a",7),P("click",function(){return r.logout()}),b(22,"Logout"),C()()(),y(23,"div",8)(24,"div",9)(25,"button",10),P("click",function(){return r.toggleChatHidden()}),b(26,"Open Chat"),C()(),y(27,"div",11)(28,"div",12),P("mousedown",function(i){return r.startMouseDragging(i)})("touchstart",function(i){return r.startTouchDragging(i)}),b(29,"Chat"),y(30,"button",13),P("click",function(){return r.toggleChatHidden()}),b(31,"\u2716"),C()(),y(32,"div",14),de(33,"app-chat"),C()()(),y(34,"main"),de(35,"router-outlet"),C()),2&n&&(R(3),W("hidden",r.isAuthenticated()),R(2),ht(r.title),R(1),W("routerLinkActiveOptions",nd(8,bE)),R(4),W("hidden",!r.isAuthenticated()),R(2),ht(r.username()),R(1),W("routerLinkActiveOptions",nd(9,bE)),R(10),W("hidden",!r.isAuthenticated()),R(4),W("hidden",r.isChatHidden()))},dependencies:[Jf,Fo,pE,lh],styles:["h1[_ngcontent-%COMP%]{margin:0;float:right}nav[_ngcontent-%COMP%]{display:block;background:#93c6f948 linear-gradient(80deg,rgb(132,168,205) 0%,rgb(167,205,243) 30%,rgba(0,0,0,0) 100%);border-bottom:1px solid #336699;padding:.5em}nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:.2rem .3rem;text-decoration:none;display:inline-block;color:#3d3d3d;border-radius:2px}nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#fff;background-color:#42545c;-webkit-text-decoration:underline #93c6f9;text-decoration:underline #93c6f9}.active-link[_ngcontent-%COMP%]{background-color:#00000048}#logout[_ngcontent-%COMP%]{color:#ef4040;cursor:pointer;float:right;margin-right:1em;font-size:large}#logout[_ngcontent-%COMP%]:hover{background-color:#604040}#toolbar[_ngcontent-%COMP%]{margin-top:-.8em;margin-bottom:-.8em;margin-left:.2em}#chatwindow[_ngcontent-%COMP%]{border:1px solid black;z-index:9990;background:#f0f0f080;border-radius:2px;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);box-shadow:3px 3px 3px #0006;position:fixed;top:5em;left:5em}#chattitlebar[_ngcontent-%COMP%]{border-bottom:1px solid black;padding:2px;background:#d0d0d080;cursor:grab}#chatcontent[_ngcontent-%COMP%]{padding:2px}.close-button[_ngcontent-%COMP%]{padding:0 4px;margin:0;float:right}"]}),e})();class Yt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ke({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),F(n))}log(t){this.appMessageService.add(`TodoService: ${t}`)}getTodos(){return this.http.get(Yt.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} todos`)),ge(this.handleError("getTodos",[])))}addTodo(t){return this.http.post(Yt.REST_URL,{text:t},this.httpOptions).pipe(J(r=>this.log(`added todo w/ id=${r.id}`)),ge(this.handleError("addTodo")))}deleteTodo(t){return this.http.delete(`${Yt.REST_URL}/${t}`,this.httpOptions).pipe(J(r=>this.log(`deleted todo id=${t}`)),ge(this.handleError("deleteTodo")))}}function sV(e,t){if(1&e){const n=Sa();y(0,"li")(1,"div",6)(2,"span",7),b(3),C(),y(4,"span",8),b(5),Pi(6,"date"),C(),y(7,"button",9),P("click",function(){const i=Os(n).$implicit;return xs(Si().delete(i))}),b(8,"x"),C()(),y(9,"span",10),b(10),C()()}if(2&e){const n=t.$implicit;R(3),ht(n.id),R(2),ht(Fi(6,3,n.dateCreated,"dd-MM-yyyy HH:mm:ss")),R(5),ht(n.text)}}Yt.REST_URL=Sr_restServerUrl+"/api/todos",Yt.\u0275fac=function(t){return new(t||Yt)(A(Mr),A(So))},Yt.\u0275prov=O({token:Yt,factory:Yt.\u0275fac,providedIn:"root"});let aV=(()=>{class e{constructor(n){this.todoService=n,this.todos=[],this.newTodo=""}getTodos(){this.todoService.getTodos().subscribe(n=>this.todos=n)}ngOnInit(){this.getTodos()}sendTodo(){this.todoService.addTodo(this.newTodo).subscribe(()=>this.getTodos()),this.newTodo=""}delete(n){this.todoService.deleteTodo(n.id).subscribe(()=>this.todos=this.todos.filter(r=>r!==n))}}return e.\u0275fac=function(n){return new(n||e)(D(Yt))},e.\u0275cmp=Lt({type:e,selectors:[["app-todo"]],decls:13,vars:2,consts:[[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-text"],["id","input-text","placeholder","text",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"element-title"],[1,"badge"],[1,"date"],["type","button","title","Delete todo",1,"delete",3,"click"],[1,"text"]],template:function(n,r){1&n&&(y(0,"h2"),b(1,"Todos"),C(),y(2,"ol",0),Rn(3,sV,11,6,"li",1),C(),y(4,"h2"),b(5,"New Todo:"),C(),y(6,"div",2)(7,"div")(8,"label",3),b(9,"Text:"),C(),y(10,"input",4),P("ngModelChange",function(i){return r.newTodo=i})("keydown.enter",function(){return r.sendTodo()}),C(),y(11,"button",5),P("click",function(){return r.sendTodo()}),b(12,"Send"),C()()()),2&n&&(R(3),W("ngForOf",r.todos),R(7),W("ngModel",r.newTodo))},dependencies:[wr,hn,er,kn,$i],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.element-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:0;border-radius:4px;border:solid 1px #808080}.element-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}.element-title[_ngcontent-%COMP%]{display:block;text-align:left;font-size:x-small}.element-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;color:#fff}.element-title[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:small;padding:1px 6px;margin:0;border-radius:2px;float:right;background-color:#ff000080}.badge[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#405061;border-radius:2px 0 0}.date[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#605061;border-radius:0 0 2px}.text[_ngcontent-%COMP%]{align-self:center;margin:0 .1em .1em}.input[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{left:0;margin:0 0 .2em;padding:0}.input[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;width:4em;text-align:right;padding-right:.2em}"]}),e})();class vn{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ke({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),F(n))}log(t){this.appMessageService.add(`NewsService: ${t}`)}getNewsPosts(){return this.http.get(vn.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} news posts`)),ge(this.handleError("getNews",[])))}addNewsPost(t,n){return this.http.post(vn.REST_URL,{author:t,text:n},this.httpOptions).pipe(J(o=>this.log(`added message w/ id=${o.id}`)),ge(this.handleError("addNewsPost")))}}function lV(e,t){if(1&e&&(y(0,"p"),b(1),C()),2&e){const n=t.$implicit;R(1),ht(n.text)}}vn.REST_URL=Sr_restServerUrl+"/api/news",vn.\u0275fac=function(t){return new(t||vn)(A(Mr),A(So))},vn.\u0275prov=O({token:vn,factory:vn.\u0275fac,providedIn:"root"});let uV=(()=>{class e{constructor(n,r){this.loginService=n,this.newsService=r,this.messages=[]}getNews(){this.loginService.isAuthenticated()&&this.newsService.getNewsPosts().subscribe(n=>this.messages=n)}ngOnInit(){this.getNews()}isAuthenticated(){return this.loginService.isAuthenticated()}username(){return this.loginService.getUsername()}}return e.\u0275fac=function(n){return new(n||e)(D(gt),D(vn))},e.\u0275cmp=Lt({type:e,selectors:[["app-home"]],decls:9,vars:4,consts:[[3,"hidden"],[1,"context"],[4,"ngFor","ngForOf"]],template:function(n,r){1&n&&(y(0,"span",0)(1,"p"),b(2),C(),y(3,"h3"),b(4,"News"),C(),y(5,"div",1),Rn(6,lV,2,1,"p",2),C()(),y(7,"p",0),b(8,"Welcome to our family site! Please login."),C()),2&n&&(W("hidden",!r.isAuthenticated()),R(2),tt("Welcome, ",r.username(),"!"),R(4),W("ngForOf",r.messages),R(1),W("hidden",r.isAuthenticated()))},dependencies:[wr],styles:[".context[_ngcontent-%COMP%]{margin-left:1em}"]}),e})(),cV=(()=>{class e{constructor(n,r){this.app=n,this.router=r,this.error=!1,this.rememberme=!1,this.credentials={username:"",password:""},this.checkPreviousLogin()}ngOnInit(){}checkPreviousLogin(){this.credentials.username=localStorage.getItem("username"),this.credentials.password=localStorage.getItem("password"),this.credentials.username&&this.credentials.password&&this.login()}login(){return this.app.authenticate(this.credentials).subscribe({next:()=>{this.rememberme&&(localStorage.setItem("username",this.credentials.username),localStorage.setItem("password",this.credentials.password)),this.router.navigateByUrl("/").then(n=>{})},error:n=>{console.log("Login failed",n),this.error=!0}}),!1}}return e.\u0275fac=function(n){return new(n||e)(D(gt),D(We))},e.\u0275cmp=Lt({type:e,selectors:[["app-login"]],decls:19,vars:4,consts:[[1,"alert",3,"hidden"],["role","form",3,"submit"],[1,"form-group"],["for","username"],["type","text","id","username","name","username","placeholder","username",1,"form-control",3,"ngModel","ngModelChange"],["for","password"],["type","password","id","password","name","password","placeholder","password",1,"form-control",3,"ngModel","ngModelChange"],["for","rememberme"],["type","checkbox","id","rememberme","name","rememberme",1,"form-control",3,"ngModel","ngModelChange"],["type","submit",1,"btn","btn-primary"]],template:function(n,r){1&n&&(y(0,"h2"),b(1,"Login form"),C(),y(2,"p",0),b(3," There was a problem logging in. Please try again.\n"),C(),y(4,"form",1),P("submit",function(){return r.login()}),y(5,"div",2)(6,"label",3),b(7,"Username:"),C(),y(8,"input",4),P("ngModelChange",function(i){return r.credentials.username=i}),C()(),y(9,"div",2)(10,"label",5),b(11,"Password:"),C(),y(12,"input",6),P("ngModelChange",function(i){return r.credentials.password=i}),C()(),y(13,"div",2)(14,"label",7),b(15,"Remember me:"),C(),y(16,"input",8),P("ngModelChange",function(i){return r.rememberme=i}),C()(),y(17,"button",9),b(18,"Login"),C()()),2&n&&(R(2),W("hidden",!r.error),R(6),W("ngModel",r.credentials.username),R(4),W("ngModel",r.credentials.password),R(4),W("ngModel",r.rememberme))},dependencies:[L_,hn,ff,er,E_,kn,gl],styles:[".form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;width:8em;padding-right:.2em}.form-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin:0 0 .2em}.alert[_ngcontent-%COMP%]{color:red}button[_ngcontent-%COMP%]{border:revert}"]}),e})();const ko=(e,t)=>{const n=S(gt),r=S(We);return!!n.isAuthenticated()||r.parseUrl("/login")};class mt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ke({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),F(n))}log(t){this.appMessageService.add(`TodoService: ${t}`)}getContacts(){return this.http.get(mt.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} contacts`)),ge(this.handleError("getContacts",[])))}getContact(t){return this.http.get(`${mt.REST_URL}/${t}`,this.httpOptions).pipe(J(n=>this.log(`fetched Contact ${n.id}`)),ge(this.handleError("getContact",{})))}addContact(t){return this.http.post(mt.REST_URL,t,this.httpOptions).pipe(J(n=>this.log(`added contact w/ id=${n.id}`)),ge(this.handleError("addContact")))}saveContact(t){return this.http.post(mt.REST_URL,t,this.httpOptions).pipe(J(n=>this.log(`added todo w/ id=${n.id}`)),ge(this.handleError("addContact")))}deleteContact(t){return this.http.delete(`${mt.REST_URL}/${t}`,this.httpOptions).pipe(J(r=>this.log(`deleted contact id=${t}`)),ge(this.handleError("deleteContact")))}}mt.REST_URL=Sr_restServerUrl+"/api/contacts",mt.\u0275fac=function(t){return new(t||mt)(A(Mr),A(So))},mt.\u0275prov=O({token:mt,factory:mt.\u0275fac,providedIn:"root"});const dV=function(e){return["/contact",e]};function fV(e,t){if(1&e&&(y(0,"li")(1,"div",18)(2,"span")(3,"a",19),b(4),C()()(),y(5,"span",20),b(6),de(7,"br"),b(8),de(9,"br"),b(10),de(11,"br"),b(12,"Website: "),y(13,"a",21),b(14),C(),de(15,"br"),b(16),C()()),2&e){const n=t.$implicit;R(3),W("routerLink",rd(9,dV,n.id)),R(1),Ra("",n.firstName," ",n.lastName,""),R(2),tt(" Telephone: ",n.telephone," "),R(2),tt("E-mail: ",n.email," "),R(2),tt("Address: ",n.address," "),R(3),Ia("href","https://",n.website,"",Ku),R(1),ht(n.website),R(2),tt("Description: ",n.description,"")}}let hV=(()=>{class e{constructor(n){this.contactsService=n,this.contacts=[],this.newContact={}}getContacts(){this.contactsService.getContacts().subscribe(n=>this.contacts=n)}ngOnInit(){this.getContacts()}sendContact(){this.contactsService.addContact(this.newContact).subscribe(()=>this.getContacts()),this.newContact={}}}return e.\u0275fac=function(n){return new(n||e)(D(mt))},e.\u0275cmp=Lt({type:e,selectors:[["app-contacts"]],decls:38,vars:8,consts:[[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-firstName"],["id","input-firstName","placeholder","firstname",3,"ngModel","ngModelChange"],["for","input-lastName"],["id","input-lastName","placeholder","lastname",3,"ngModel","ngModelChange"],["for","input-telephone"],["id","input-telephone","placeholder","telephone",3,"ngModel","ngModelChange"],["for","input-email"],["id","input-email","placeholder","email",3,"ngModel","ngModelChange"],["for","input-website"],["id","input-website","placeholder","website",3,"ngModel","ngModelChange"],["for","input-address"],["id","input-address","placeholder","address",3,"ngModel","ngModelChange"],["for","input-description"],["id","input-description","placeholder","description",3,"ngModel","ngModelChange"],[3,"click"],[1,"element-title"],[3,"routerLink"],[1,"text"],["target","_blank",3,"href"]],template:function(n,r){1&n&&(y(0,"h2"),b(1,"Contacts"),C(),y(2,"ol",0),Rn(3,fV,17,11,"li",1),C(),y(4,"h2"),b(5,"New Contact:"),C(),y(6,"div",2)(7,"div")(8,"label",3),b(9,"Firstname:"),C(),y(10,"input",4),P("ngModelChange",function(i){return r.newContact.firstName=i}),C(),de(11,"br"),y(12,"label",5),b(13,"Lastname:"),C(),y(14,"input",6),P("ngModelChange",function(i){return r.newContact.lastName=i}),C(),de(15,"br"),y(16,"label",7),b(17,"Telephone:"),C(),y(18,"input",8),P("ngModelChange",function(i){return r.newContact.telephone=i}),C(),de(19,"br"),y(20,"label",9),b(21,"Email:"),C(),y(22,"input",10),P("ngModelChange",function(i){return r.newContact.email=i}),C(),de(23,"br"),y(24,"label",11),b(25,"Website:"),C(),y(26,"input",12),P("ngModelChange",function(i){return r.newContact.website=i}),C(),de(27,"br"),y(28,"label",13),b(29,"Address:"),C(),y(30,"input",14),P("ngModelChange",function(i){return r.newContact.address=i}),C(),de(31,"br"),y(32,"label",15),b(33,"Description:"),C(),y(34,"input",16),P("ngModelChange",function(i){return r.newContact.description=i}),C(),de(35,"br"),y(36,"button",17),P("click",function(){return r.sendContact()}),b(37,"Send"),C()()()),2&n&&(R(3),W("ngForOf",r.contacts),R(7),W("ngModel",r.newContact.firstName),R(4),W("ngModel",r.newContact.lastName),R(4),W("ngModel",r.newContact.telephone),R(4),W("ngModel",r.newContact.email),R(4),W("ngModel",r.newContact.website),R(4),W("ngModel",r.newContact.address),R(4),W("ngModel",r.newContact.description))},dependencies:[wr,hn,er,kn,Fo]}),e})();class yt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ke({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),F(n))}log(t){this.appMessageService.add(`ChecklistService: ${t}`)}getChecklists(){return this.http.get(yt.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} checklists`)),ge(this.handleError("getChecklists",[])))}getChecklist(t){return this.http.get(`${yt.REST_URL}/${t}`,this.httpOptions).pipe(J(n=>this.log(`fetched checklist ${n.id}`)),ge(this.handleError("getChecklist",{})))}addChecklist(t){return this.http.post(yt.REST_URL,{name:t},this.httpOptions).pipe(J(r=>this.log(`added todo w/ id=${r.id}`)),ge(this.handleError("addChecklist")))}saveChecklist(t){return this.http.post(yt.REST_URL,t,this.httpOptions).pipe(J(n=>this.log(`added todo w/ id=${n.id}`)),ge(this.handleError("addChecklist")))}deleteChecklist(t){return this.http.delete(`${yt.REST_URL}/${t}`,this.httpOptions).pipe(J(r=>this.log(`deleted checklist id=${t}`)),ge(this.handleError("deleteChecklist")))}}function pV(e,t){if(1&e&&(y(0,"li"),b(1),C()),2&e){const n=t.$implicit;R(1),tt(" ",n," ")}}yt.REST_URL=Sr_restServerUrl+"/api/checklists",yt.\u0275fac=function(t){return new(t||yt)(A(Mr),A(So))},yt.\u0275prov=O({token:yt,factory:yt.\u0275fac,providedIn:"root"});const gV=function(e){return["/checklist",e]};function mV(e,t){if(1&e&&(y(0,"li")(1,"span",6)(2,"a",7),b(3),C(),y(4,"ul",8),Rn(5,pV,2,1,"li",1),C()()()),2&e){const n=t.$implicit;R(2),W("routerLink",rd(3,gV,n.id)),R(1),ht(n.name),R(2),W("ngForOf",n.checks)}}let yV=(()=>{class e{constructor(n){this.checklistService=n,this.checklists=[],this.newChecklist=""}getChecklists(){this.checklistService.getChecklists().subscribe(n=>this.checklists=n)}ngOnInit(){this.getChecklists()}sendChecklist(){""!==this.newChecklist&&(this.checklistService.addChecklist(this.newChecklist).subscribe(()=>this.getChecklists()),this.newChecklist="")}}return e.\u0275fac=function(n){return new(n||e)(D(yt))},e.\u0275cmp=Lt({type:e,selectors:[["app-checklists"]],decls:13,vars:2,consts:[[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-name"],["id","input-name","placeholder","myChecklist",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"text"],[3,"routerLink"],[1,"item-list"]],template:function(n,r){1&n&&(y(0,"h2"),b(1,"Checklists"),C(),y(2,"ol",0),Rn(3,mV,6,5,"li",1),C(),y(4,"h2"),b(5,"New Checklist:"),C(),y(6,"div",2)(7,"div")(8,"label",3),b(9,"name:"),C(),y(10,"input",4),P("ngModelChange",function(i){return r.newChecklist=i})("keydown.enter",function(){return r.sendChecklist()}),C(),y(11,"button",5),P("click",function(){return r.sendChecklist()}),b(12,"Send"),C()()()),2&n&&(R(3),W("ngForOf",r.checklists),R(7),W("ngModel",r.newChecklist))},dependencies:[wr,hn,er,kn,Fo]}),e})();function vV(e,t){if(1&e){const n=Sa();y(0,"li"),b(1),y(2,"button",8),P("click",function(){const i=Os(n).index;return xs(Si().removeItem(i))}),b(3,"x"),C()()}if(2&e){const n=t.$implicit;R(1),tt("",n," ")}}const CV=[{path:"",component:uV,pathMatch:"full"},{path:"login",component:cV},{path:"chat",component:lh,canActivate:[ko]},{path:"todo",component:aV,canActivate:[ko]},{path:"contacts",component:hV,canActivate:[ko]},{path:"contact/:id",component:(()=>{class e{constructor(n,r){this.contactsService=n,this.router=r,this.route=S(rr),this.contactId=-1,this.contact={},this.contactId=Number(this.route.snapshot.params.id)}getChecklist(){this.contactsService.getContact(this.contactId).subscribe(n=>this.contact=n)}ngOnInit(){this.getChecklist()}saveContact(){this.contactsService.saveContact(this.contact).subscribe()}deleteContact(){this.contactsService.deleteContact(this.contactId).subscribe(),this.router.navigateByUrl("/contacts").then(n=>{})}}return e.\u0275fac=function(n){return new(n||e)(D(mt),D(We))},e.\u0275cmp=Lt({type:e,selectors:[["app-edit-contact"]],decls:43,vars:14,consts:[["type","button","title","Delete contact",1,"delete",3,"click"],[1,"input"],["for","input-firstName"],["id","input-firstName","placeholder","firstname",3,"ngModel","ngModelChange"],["for","input-lastName"],["id","input-lastName","placeholder","lastname",3,"ngModel","ngModelChange"],["for","input-telephone"],["id","input-telephone","placeholder","telephone",3,"ngModel","ngModelChange"],["for","input-email"],["id","input-email","placeholder","email",3,"ngModel","ngModelChange"],["for","input-website"],["id","input-website","placeholder","website",3,"ngModel","ngModelChange"],["for","input-address"],["id","input-address","placeholder","address",3,"ngModel","ngModelChange"],["for","input-description"],["id","input-description","placeholder","description",3,"ngModel","ngModelChange"],[3,"click"]],template:function(n,r){1&n&&(y(0,"h2"),b(1),C(),y(2,"p"),b(3),Pi(4,"date"),y(5,"button",0),P("click",function(){return r.deleteContact()}),b(6,"Delete contact"),C(),de(7,"br"),b(8),C(),de(9,"p"),y(10,"h3"),b(11,"Details:"),C(),y(12,"div",1)(13,"label",2),b(14,"Firstname:"),C(),y(15,"input",3),P("ngModelChange",function(i){return r.contact.firstName=i}),C(),de(16,"br"),y(17,"label",4),b(18,"Lastname:"),C(),y(19,"input",5),P("ngModelChange",function(i){return r.contact.lastName=i}),C(),de(20,"br"),y(21,"label",6),b(22,"Telephone:"),C(),y(23,"input",7),P("ngModelChange",function(i){return r.contact.telephone=i}),C(),de(24,"br"),y(25,"label",8),b(26,"Email:"),C(),y(27,"input",9),P("ngModelChange",function(i){return r.contact.email=i}),C(),de(28,"br"),y(29,"label",10),b(30,"Website:"),C(),y(31,"input",11),P("ngModelChange",function(i){return r.contact.website=i}),C(),de(32,"br"),y(33,"label",12),b(34,"Address:"),C(),y(35,"input",13),P("ngModelChange",function(i){return r.contact.address=i}),C(),de(36,"br"),y(37,"label",14),b(38,"Description:"),C(),y(39,"input",15),P("ngModelChange",function(i){return r.contact.description=i}),C(),de(40,"br"),y(41,"button",16),P("click",function(){return r.saveContact()}),b(42,"Save"),C()()),2&n&&(R(1),Ra("Editing contact: ",r.contact.firstName," ",r.contact.lastName,""),R(2),tt("Created on: ",Fi(4,11,r.contact.dateCreated,"dd-MM-yyyy HH:mm:ss")," "),R(5),tt("Id: ",r.contact.id,"\n"),R(7),W("ngModel",r.contact.firstName),R(4),W("ngModel",r.contact.lastName),R(4),W("ngModel",r.contact.telephone),R(4),W("ngModel",r.contact.email),R(4),W("ngModel",r.contact.website),R(4),W("ngModel",r.contact.address),R(4),W("ngModel",r.contact.description))},dependencies:[hn,er,kn,$i],styles:[".delete[_ngcontent-%COMP%]{background-color:#ff000080}"]}),e})(),canActivate:[ko]},{path:"checklists",component:yV,canActivate:[ko]},{path:"checklist/:id",component:(()=>{class e{constructor(n,r){this.checklistService=n,this.router=r,this.route=S(rr),this.checklistId=-1,this.checklist={},this.newItem="",this.checklistId=Number(this.route.snapshot.params.id)}getChecklist(){this.checklistService.getChecklist(this.checklistId).subscribe(n=>this.checklist=n)}ngOnInit(){this.getChecklist()}addItem(){""!==this.newItem&&(this.checklist.checks.push(this.newItem),this.newItem="",this.saveCheckList())}removeItem(n){(this.checklist.checks[n]||""===this.checklist.checks[n])&&(this.checklist.checks.splice(n,1),this.saveCheckList())}saveCheckList(){this.checklistService.saveChecklist(this.checklist).subscribe()}deleteChecklist(){this.checklistService.deleteChecklist(this.checklistId).subscribe(),this.router.navigateByUrl("/checklists").then(n=>{})}}return e.\u0275fac=function(n){return new(n||e)(D(yt),D(We))},e.\u0275cmp=Lt({type:e,selectors:[["app-edit-checklist"]],decls:31,vars:9,consts:[["type","button","title","Delete checklist",1,"delete",3,"click"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-item"],["id","input-item","placeholder","Remember x",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],["for","input-checklist-name"],["id","input-checklist-name","placeholder","myChecklist",3,"ngModel","ngModelChange","keydown.enter"],["type","button","title","Delete item",1,"delete",3,"click"]],template:function(n,r){1&n&&(y(0,"h2"),b(1),C(),y(2,"p"),b(3),Pi(4,"date"),y(5,"button",0),P("click",function(){return r.deleteChecklist()}),b(6,"Delete checklist"),C(),de(7,"br"),b(8),C(),y(9,"h3"),b(10,"Items:"),C(),y(11,"ol"),Rn(12,vV,4,1,"li",1),C(),y(13,"h2"),b(14,"add item:"),C(),y(15,"div",2)(16,"div")(17,"label",3),b(18,"item:"),C(),y(19,"input",4),P("ngModelChange",function(i){return r.newItem=i})("keydown.enter",function(){return r.addItem()}),C(),y(20,"button",5),P("click",function(){return r.addItem()}),b(21,"Add"),C()()(),y(22,"h2"),b(23,"change checklist name:"),C(),y(24,"div",2)(25,"div")(26,"label",6),b(27,"newName:"),C(),y(28,"input",7),P("ngModelChange",function(i){return r.checklist.name=i})("keydown.enter",function(){return r.saveCheckList()}),C(),y(29,"button",5),P("click",function(){return r.saveCheckList()}),b(30,"Save"),C()()()),2&n&&(R(1),tt("Editing checklist: ",r.checklist.name,""),R(2),tt("Created on: ",Fi(4,6,r.checklist.dateCreated,"dd-MM-yyyy HH:mm:ss")," "),R(5),tt("Id: ",r.checklist.id,"\n"),R(4),W("ngForOf",r.checklist.checks),R(7),W("ngModel",r.newItem),R(9),W("ngModel",r.checklist.name))},dependencies:[wr,hn,er,kn,$i],styles:[".delete[_ngcontent-%COMP%]{background-color:#ff000080}"]}),e})(),canActivate:[ko]}];let DV=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Nt({imports:[wE.forRoot(CV),wE]}),e})(),_V=(()=>{class e{constructor(n){this.auth=n}intercept(n,r){if(this.auth.isAuthenticated()){const o=this.auth.getAuthorizationToken(),i=n.clone({headers:n.headers.set("Authorization",o)});return r.handle(i)}return r.handle(n)}}return e.\u0275fac=function(n){return new(n||e)(A(gt))},e.\u0275prov=O({token:e,factory:e.\u0275fac}),e})(),wV=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e,bootstrap:[iV]}),e.\u0275inj=Nt({providers:[{provide:uw,useClass:_V,multi:!0},{provide:Yn,useClass:aD}],imports:[Z1,oF,TF,DV]}),e})();W1().bootstrapModule(wV).catch(e=>console.error(e))}},le=>{le(le.s=534)}]); \ No newline at end of file diff --git a/front/dist/familySite1/main.2f6df5d029e719c0.js b/front/dist/familySite1/main.2f6df5d029e719c0.js deleted file mode 100644 index b822206..0000000 --- a/front/dist/familySite1/main.2f6df5d029e719c0.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkfamilySite1=self.webpackChunkfamilySite1||[]).push([[179],{830:()=>{function le(e){return"function"==typeof e}function jo(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const ps=jo(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function $o(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class St{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(le(r))try{r()}catch(i){t=i instanceof ps?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{dh(i)}catch(s){t=t??[],s instanceof ps?t=[...t,...s.errors]:t.push(s)}}if(t)throw new ps(t)}}add(t){var n;if(t&&t!==this)if(this.closed)dh(t);else{if(t instanceof St){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&$o(n,t)}remove(t){const{_finalizers:n}=this;n&&$o(n,t),t instanceof St&&t._removeParent(this)}}St.EMPTY=(()=>{const e=new St;return e.closed=!0,e})();const uh=St.EMPTY;function ch(e){return e instanceof St||e&&"closed"in e&&le(e.remove)&&le(e.add)&&le(e.unsubscribe)}function dh(e){le(e)?e():e.unsubscribe()}const sr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},gs={setTimeout(e,t,...n){const{delegate:r}=gs;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=gs;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function fh(e){gs.setTimeout(()=>{const{onUnhandledError:t}=sr;if(!t)throw e;t(e)})}function hh(){}const ME=Ol("C",void 0,void 0);function Ol(e,t,n){return{kind:e,value:t,error:n}}let ar=null;function ms(e){if(sr.useDeprecatedSynchronousErrorHandling){const t=!ar;if(t&&(ar={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=ar;if(ar=null,n)throw r}}else e()}class xl extends St{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,ch(t)&&t.add(this)):this.destination=OE}static create(t,n,r){return new Bo(t,n,r)}next(t){this.isStopped?Fl(function IE(e){return Ol("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Fl(function SE(e){return Ol("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Fl(ME,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const AE=Function.prototype.bind;function Pl(e,t){return AE.call(e,t)}class NE{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){ys(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){ys(r)}else ys(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){ys(n)}}}class Bo extends xl{constructor(t,n,r){let o;if(super(),le(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&sr.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Pl(t.next,i),error:t.error&&Pl(t.error,i),complete:t.complete&&Pl(t.complete,i)}):o=t}this.destination=new NE(o)}}function ys(e){sr.useDeprecatedSynchronousErrorHandling?function TE(e){sr.useDeprecatedSynchronousErrorHandling&&ar&&(ar.errorThrown=!0,ar.error=e)}(e):fh(e)}function Fl(e,t){const{onStoppedNotification:n}=sr;n&&gs.setTimeout(()=>n(e,t))}const OE={closed:!0,next:hh,error:function RE(e){throw e},complete:hh},kl="function"==typeof Symbol&&Symbol.observable||"@@observable";function lr(e){return e}function ph(e){return 0===e.length?lr:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}let Ee=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function FE(e){return e&&e instanceof xl||function PE(e){return e&&le(e.next)&&le(e.error)&&le(e.complete)}(e)&&ch(e)}(n)?n:new Bo(n,r,o);return ms(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=gh(r))((o,i)=>{const s=new Bo({next:a=>{try{n(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[kl](){return this}pipe(...n){return ph(n)(this)}toPromise(n){return new(n=gh(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function gh(e){var t;return null!==(t=e??sr.Promise)&&void 0!==t?t:Promise}const kE=jo(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Cn=(()=>{class e extends Ee{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new mh(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new kE}next(n){ms(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){ms(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){ms(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?uh:(this.currentObservers=null,i.push(n),new St(()=>{this.currentObservers=null,$o(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new Ee;return n.source=this,n}}return e.create=(t,n)=>new mh(t,n),e})();class mh extends Cn{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:uh}}function yh(e){return le(e?.lift)}function $e(e){return t=>{if(yh(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function He(e,t,n,r,o){return new LE(e,t,n,r,o)}class LE extends xl{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){t.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function ee(e,t){return $e((n,r)=>{let o=0;n.subscribe(He(r,i=>{r.next(e.call(t,i,o++))}))})}function ur(e){return this instanceof ur?(this.v=e,this):new ur(e)}function $E(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function Ch(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,l){!function o(i,s,a,l){Promise.resolve(l).then(function(u){i({value:u,done:a})},s)}(a,l,(s=e[i](s)).done,s.value)})}}}const _h=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function wh(e){return le(e?.then)}function Eh(e){return le(e[kl])}function bh(e){return Symbol.asyncIterator&&le(e?.[Symbol.asyncIterator])}function Mh(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const Sh=function UE(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Ih(e){return le(e?.[Sh])}function Th(e){return function jE(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(h){return new Promise(function(p,m){i.push([f,h,p,m])>1||a(f,h)})})}function a(f,h){try{!function l(f){f.value instanceof ur?Promise.resolve(f.value.v).then(u,c):d(i[0][2],f)}(r[f](h))}catch(p){d(i[0][3],p)}}function u(f){a("next",f)}function c(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield ur(n.read());if(o)return yield ur(void 0);yield yield ur(r)}}finally{n.releaseLock()}})}function Ah(e){return le(e?.getReader)}function It(e){if(e instanceof Ee)return e;if(null!=e){if(Eh(e))return function zE(e){return new Ee(t=>{const n=e[kl]();if(le(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(_h(e))return function GE(e){return new Ee(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,fh)})}(e);if(bh(e))return Nh(e);if(Ih(e))return function qE(e){return new Ee(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(Ah(e))return function ZE(e){return Nh(Th(e))}(e)}throw Mh(e)}function Nh(e){return new Ee(t=>{(function YE(e,t){var n,r,o,i;return function VE(e,t,n,r){return new(n||(n=Promise))(function(i,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?i(c.value):function o(i){return i instanceof n?i:new n(function(s){s(i)})}(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=$E(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function _n(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Be(e,t,n=1/0){return le(t)?Be((r,o)=>ee((i,s)=>t(r,i,o,s))(It(e(r,o))),n):("number"==typeof t&&(n=t),$e((r,o)=>function QE(e,t,n,r,o,i,s,a){const l=[];let u=0,c=0,d=!1;const f=()=>{d&&!l.length&&!u&&t.complete()},h=m=>u{i&&t.next(m),u++;let y=!1;It(n(m,c++)).subscribe(He(t,w=>{o?.(w),i?h(w):t.next(w)},()=>{y=!0},void 0,()=>{if(y)try{for(u--;l.length&&up(w)):p(w)}f()}catch(w){t.error(w)}}))};return e.subscribe(He(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}function kr(e=1/0){return Be(lr,e)}const Xt=new Ee(e=>e.complete());function Vl(e){return e[e.length-1]}function Rh(e){return le(Vl(e))?e.pop():void 0}function Uo(e){return function KE(e){return e&&le(e.schedule)}(Vl(e))?e.pop():void 0}function Oh(e,t=0){return $e((n,r)=>{n.subscribe(He(r,o=>_n(r,e,()=>r.next(o),t),()=>_n(r,e,()=>r.complete(),t),o=>_n(r,e,()=>r.error(o),t)))})}function xh(e,t=0){return $e((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Ph(e,t){if(!e)throw new Error("Iterable cannot be null");return new Ee(n=>{_n(n,t,()=>{const r=e[Symbol.asyncIterator]();_n(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Oe(e,t){return t?function ib(e,t){if(null!=e){if(Eh(e))return function eb(e,t){return It(e).pipe(xh(t),Oh(t))}(e,t);if(_h(e))return function nb(e,t){return new Ee(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(wh(e))return function tb(e,t){return It(e).pipe(xh(t),Oh(t))}(e,t);if(bh(e))return Ph(e,t);if(Ih(e))return function rb(e,t){return new Ee(n=>{let r;return _n(n,t,()=>{r=e[Sh](),_n(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>le(r?.return)&&r.return()})}(e,t);if(Ah(e))return function ob(e,t){return Ph(Th(e),t)}(e,t)}throw Mh(e)}(e,t):It(e)}function Hl(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new Bo({next:()=>{r.unsubscribe(),e()}});return It(t(...n)).subscribe(r)}function ie(e){for(let t in e)if(e[t]===ie)return t;throw Error("Could not find renamed property on target object.")}function jl(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function xe(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(xe).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function $l(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const lb=ie({__forward_ref__:ie});function ue(e){return e.__forward_ref__=ue,e.toString=function(){return xe(this())},e}function j(e){return Bl(e)?e():e}function Bl(e){return"function"==typeof e&&e.hasOwnProperty(lb)&&e.__forward_ref__===ue}function Ul(e){return e&&!!e.\u0275providers}const Fh="https://g.co/ng/security#xss";class C extends Error{constructor(t,n){super(function zl(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function $(e){return"string"==typeof e?e:null==e?"":String(e)}function vs(e,t){throw new C(-201,!1)}function Tt(e,t){null==e&&function oe(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function R(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function At(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ds(e){return kh(e,Cs)||kh(e,Vh)}function kh(e,t){return e.hasOwnProperty(t)?e[t]:null}function Lh(e){return e&&(e.hasOwnProperty(Gl)||e.hasOwnProperty(mb))?e[Gl]:null}const Cs=ie({\u0275prov:ie}),Gl=ie({\u0275inj:ie}),Vh=ie({ngInjectableDef:ie}),mb=ie({ngInjectorDef:ie});var k=(()=>((k=k||{})[k.Default=0]="Default",k[k.Host=1]="Host",k[k.Self=2]="Self",k[k.SkipSelf=4]="SkipSelf",k[k.Optional=8]="Optional",k))();let Wl;function it(e){const t=Wl;return Wl=e,t}function jh(e,t,n){const r=Ds(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&k.Optional?null:void 0!==t?t:void vs(xe(e))}const ce=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),zo={},ql="__NG_DI_FLAG__",_s="ngTempTokenPath",vb=/\n/gm,$h="__source";let Lr;function $n(e){const t=Lr;return Lr=e,t}function _b(e,t=k.Default){if(void 0===Lr)throw new C(-203,!1);return null===Lr?jh(e,void 0,t):Lr.get(e,t&k.Optional?null:void 0,t)}function T(e,t=k.Default){return(function Hh(){return Wl}()||_b)(j(e),t)}function A(e,t=k.Default){return T(e,ws(t))}function ws(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Zl(e){const t=[];for(let n=0;n((Kt=Kt||{})[Kt.OnPush=0]="OnPush",Kt[Kt.Default=1]="Default",Kt))(),yt=(()=>{return(e=yt||(yt={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",yt;var e})();const En={},J=[],Es=ie({\u0275cmp:ie}),Yl=ie({\u0275dir:ie}),Ql=ie({\u0275pipe:ie}),Uh=ie({\u0275mod:ie}),bn=ie({\u0275fac:ie}),Wo=ie({__NG_ELEMENT_ID__:ie}),zh=ie({__NG_ENV_ID__:ie});function Gh(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}function Xl(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;ii?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==Gh(h,u,0)||2&r&&u!==f){if(Ft(r))return!1;s=!0}}}}else{if(!s&&!Ft(r)&&!Ft(l))return!1;if(s&&Ft(l))continue;s=!1,r=l|1&r}}return Ft(r)||s}function Ft(e){return 0==(1&e)}function Tb(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Ft(s)&&(t+=Kh(i,o),o=""),r=s,i=i||!Ft(r);n++}return""!==o&&(t+=Kh(i,o)),t}function kt(e){return wn(()=>{const t=ep(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Kt.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||yt.Emulated,styles:e.styles||J,_:null,schemas:e.schemas||null,tView:null,id:""};tp(n);const r=e.dependencies;return n.directiveDefs=bs(r,!1),n.pipeDefs=bs(r,!0),n.id=function $b(e){let t=0;const n=JSON.stringify([e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.exportAs,e.inputs,e.outputs,Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery]);for(const o of n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function Lb(e){return te(e)||We(e)}function Vb(e){return null!==e}function Lt(e){return wn(()=>({type:e.type,bootstrap:e.bootstrap||J,declarations:e.declarations||J,imports:e.imports||J,exports:e.exports||J,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Jh(e,t){if(null==e)return En;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}function H(e){return wn(()=>{const t=ep(e);return tp(t),t})}function st(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function te(e){return e[Es]||null}function We(e){return e[Yl]||null}function at(e){return e[Ql]||null}function vt(e,t){const n=e[Uh]||null;if(!n&&!0===t)throw new Error(`Type ${xe(e)} does not have '\u0275mod' property.`);return n}function ep(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,exportAs:e.exportAs||null,standalone:!0===e.standalone,selectors:e.selectors||J,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Jh(e.inputs,t),outputs:Jh(e.outputs)}}function tp(e){e.features?.forEach(t=>t(e))}function bs(e,t){if(!e)return null;const n=t?at:Lb;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(Vb)}const Pe=0,S=1,G=2,me=3,Vt=4,cr=5,qe=6,Hr=7,Ce=8,jr=9,dr=10,U=11,Zo=12,np=13,$r=14,Ie=15,Yo=16,Br=17,Jt=18,Qo=19,rp=20,Bn=21,Mn=22,Ms=23,Ss=24,Q=25,Kl=1,op=2,en=7,Is=8,Ur=9,Ue=11;function Dt(e){return Array.isArray(e)&&"object"==typeof e[Kl]}function lt(e){return Array.isArray(e)&&!0===e[Kl]}function Jl(e){return 0!=(4&e.flags)}function fr(e){return e.componentOffset>-1}function Ts(e){return 1==(1&e.flags)}function Ht(e){return!!e.template}function eu(e){return 0!=(512&e[G])}function hr(e,t){return e.hasOwnProperty(bn)?e[bn]:null}let Wb=ce.WeakRef??class Gb{constructor(t){this.ref=t}deref(){return this.ref}},Zb=0,tn=null,As=!1;function je(e){const t=tn;return tn=e,t}class up{constructor(){this.id=Zb++,this.ref=function qb(e){return new Wb(e)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[t,n]of this.producers){const r=n.producerNode.deref();if(void 0!==r&&n.atTrackingVersion===this.trackingVersion){if(r.producerPollStatus(n.seenValueVersion))return!0}else this.producers.delete(t),r?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const t=As;As=!0;try{for(const[n,r]of this.consumers){const o=r.consumerNode.deref();void 0!==o&&o.trackingVersion===r.atTrackingVersion?o.onConsumerDependencyMayHaveChanged():(this.consumers.delete(n),o?.producers.delete(this.id))}}finally{As=t}}producerAccessed(){if(As)throw new Error("");if(null===tn)return;let t=tn.producers.get(this.id);void 0===t?(t={consumerNode:tn.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:tn.trackingVersion},tn.producers.set(this.id,t),this.consumers.set(tn.id,t)):(t.seenValueVersion=this.valueVersion,t.atTrackingVersion=tn.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==tn?.consumerAllowSignalWrites}producerPollStatus(t){return this.valueVersion!==t||(this.onProducerUpdateValueVersion(),this.valueVersion!==t)}}let cp=null;const dp=()=>{};class Kb extends up{constructor(t,n,r){super(),this.watch=t,this.schedule=n,this.dirty=!1,this.cleanupFn=dp,this.registerOnCleanup=o=>{this.cleanupFn=o},this.consumerAllowSignalWrites=r}notify(){this.dirty||this.schedule(this),this.dirty=!0}onConsumerDependencyMayHaveChanged(){this.notify()}onProducerUpdateValueVersion(){}run(){if(this.dirty=!1,0!==this.trackingVersion&&!this.consumerPollProducersForChange())return;const t=je(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=dp,this.watch(this.registerOnCleanup)}finally{je(t)}}cleanup(){this.cleanupFn()}}class Jb{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Nt(){return fp}function fp(e){return e.type.prototype.ngOnChanges&&(e.setInput=tM),eM}function eM(){const e=pp(this),t=e?.current;if(t){const n=e.previous;if(n===En)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function tM(e,t,n,r){const o=this.declaredInputs[n],i=pp(e)||function nM(e,t){return e[hp]=t}(e,{previous:En,current:null}),s=i.current||(i.current={}),a=i.previous,l=a[o];s[o]=new Jb(l&&l.currentValue,t,a===En),e[r]=t}Nt.ngInherit=!0;const hp="__ngSimpleChanges__";function pp(e){return e[hp]||null}const nn=function(e,t,n){};function he(e){for(;Array.isArray(e);)e=e[Pe];return e}function Os(e,t){return he(t[e])}function ut(e,t){return he(t[e.index])}function yp(e,t){return e.data[t]}function ct(e,t){const n=t[e];return Dt(n)?n:n[Pe]}function xs(e){return 128==(128&e[G])}function Un(e,t){return null==t?null:e[t]}function vp(e){e[Br]=0}function lM(e){1024&e[G]||(e[G]|=1024,Cp(e,1))}function Dp(e){1024&e[G]&&(e[G]&=-1025,Cp(e,-1))}function Cp(e,t){let n=e[me];if(null===n)return;n[cr]+=t;let r=n;for(n=n[me];null!==n&&(1===t&&1===r[cr]||-1===t&&0===r[cr]);)n[cr]+=t,r=n,n=n[me]}const V={lFrame:Rp(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Ep(){return V.bindingsEnabled}function D(){return V.lFrame.lView}function K(){return V.lFrame.tView}function zn(e){return V.lFrame.contextLView=e,e[Ce]}function Gn(e){return V.lFrame.contextLView=null,e}function ze(){let e=bp();for(;null!==e&&64===e.type;)e=e.parent;return e}function bp(){return V.lFrame.currentTNode}function rn(e,t){const n=V.lFrame;n.currentTNode=e,n.isParent=t}function su(){return V.lFrame.isParent}function Ke(){const e=V.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Wr(){return V.lFrame.bindingIndex++}function In(e){const t=V.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function CM(e,t){const n=V.lFrame;n.bindingIndex=n.bindingRootIndex=e,lu(t)}function lu(e){V.lFrame.currentDirectiveIndex=e}function Tp(){return V.lFrame.currentQueryIndex}function cu(e){V.lFrame.currentQueryIndex=e}function wM(e){const t=e[S];return 2===t.type?t.declTNode:1===t.type?e[qe]:null}function Ap(e,t,n){if(n&k.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&k.Host||(o=wM(i),null===o||(i=i[$r],10&o.type))););if(null===o)return!1;t=o,e=i}const r=V.lFrame=Np();return r.currentTNode=t,r.lView=e,!0}function du(e){const t=Np(),n=e[S];V.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Np(){const e=V.lFrame,t=null===e?null:e.child;return null===t?Rp(e):t}function Rp(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Op(){const e=V.lFrame;return V.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const xp=Op;function fu(){const e=Op();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Je(){return V.lFrame.selectedIndex}function pr(e){V.lFrame.selectedIndex=e}function ye(){const e=V.lFrame;return yp(e.tView,e.selectedIndex)}let Fp=!0;function Ps(){return Fp}function Wn(e){Fp=e}function Fs(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[l]<0&&(e[Br]+=65536),(a>12>16&&(3&e[G])===t&&(e[G]+=4096,Lp(a,i)):Lp(a,i)}const qr=-1;class Jo{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Vp(e){return e!==qr}function Vs(e){return 32767&e}function Hs(e,t){let n=function PM(e){return e>>16}(e),r=t;for(;n>0;)r=r[$r],n--;return r}let gu=!0;function js(e){const t=gu;return gu=e,t}const Hp=255,jp=5;let FM=0;const on={};function $s(e,t){const n=$p(e,t);if(-1!==n)return n;const r=t[S];r.firstCreatePass&&(e.injectorIndex=t.length,mu(r.data,e),mu(t,null),mu(r.blueprint,null));const o=yu(e,t),i=e.injectorIndex;if(Vp(o)){const s=Vs(o),a=Hs(o,t),l=a[S].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|l[s+u]}return t[i+8]=o,i}function mu(e,t){e.push(0,0,0,0,0,0,0,0,t)}function $p(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function yu(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=Zp(o),null===r)return qr;if(n++,o=o[$r],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return qr}function vu(e,t,n){!function kM(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Wo)&&(r=n[Wo]),null==r&&(r=n[Wo]=FM++);const o=r&Hp;t.data[e+(o>>jp)]|=1<=0?t&Hp:jM:t}(n);if("function"==typeof i){if(!Ap(t,e,r))return r&k.Host?Bp(o,0,r):Up(t,n,r,o);try{const s=i(r);if(null!=s||r&k.Optional)return s;vs()}finally{xp()}}else if("number"==typeof i){let s=null,a=$p(e,t),l=qr,u=r&k.Host?t[Ie][qe]:null;for((-1===a||r&k.SkipSelf)&&(l=-1===a?yu(e,t):t[a+8],l!==qr&&qp(r,!1)?(s=t[S],a=Vs(l),t=Hs(l,t)):a=-1);-1!==a;){const c=t[S];if(Wp(i,a,c.data)){const d=VM(a,t,n,s,r,u);if(d!==on)return d}l=t[a+8],l!==qr&&qp(r,t[S].data[a+8]===u)&&Wp(i,a,t)?(s=c,a=Vs(l),t=Hs(l,t)):a=-1}}return o}function VM(e,t,n,r,o,i){const s=t[S],a=s.data[e+8],c=Bs(a,s,n,null==r?fr(a)&&gu:r!=s&&0!=(3&a.type),o&k.Host&&i===a);return null!==c?gr(t,s,c,a):on}function Bs(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,l=e.directiveStart,c=i>>20,f=o?a+c:e.directiveEnd;for(let h=r?a:a+c;h=l&&p.type===n)return h}if(o){const h=s[l];if(h&&Ht(h)&&h.type===n)return l}return null}function gr(e,t,n,r){let o=e[n];const i=t.data;if(function RM(e){return e instanceof Jo}(o)){const s=o;s.resolving&&function ub(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new C(-200,`Circular dependency in DI detected for ${e}${n}`)}(function re(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():$(e)}(i[n]));const a=js(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?it(s.injectImpl):null;Ap(e,r,k.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function AM(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=fp(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}(n,i[n],t)}finally{null!==l&&it(l),js(a),s.resolving=!1,xp()}}return o}function Wp(e,t,n){return!!(n[t+(e>>jp)]&1<{const t=e.prototype.constructor,n=t[bn]||Du(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[bn]||Du(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Du(e){return Bl(e)?()=>{const t=Du(j(e));return t&&t()}:hr(e)}function Zp(e){const t=e[S],n=t.type;return 2===n?t.declTNode:1===n?e[qe]:null}const Qr="__parameters__";function Kr(e,t,n){return wn(()=>{const r=function Cu(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(l,u,c){const d=l.hasOwnProperty(Qr)?l[Qr]:Object.defineProperty(l,Qr,{value:[]})[Qr];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),l}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function ni(e,t){e.forEach(n=>Array.isArray(n)?ni(n,t):t(n))}function Qp(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function zs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ct(e,t,n){let r=Jr(e,t);return r>=0?e[1|r]=n:(r=~r,function WM(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function _u(e,t){const n=Jr(e,t);if(n>=0)return e[1|n]}function Jr(e,t){return function Xp(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<((dt=dt||{})[dt.Important=1]="Important",dt[dt.DashCase=2]="DashCase",dt))();const Tu=new Map;let mS=0;const Nu="__ngContext__";function Ze(e,t){Dt(t)?(e[Nu]=t[Qo],function vS(e){Tu.set(e[Qo],e)}(t)):e[Nu]=t}let Ru;function Ou(e,t){return Ru(e,t)}function si(e){const t=e[me];return lt(t)?t[me]:t}function xu(e){return mg(e[Zo])}function Pu(e){return mg(e[Vt])}function mg(e){for(;null!==e&&!lt(e);)e=e[Vt];return e}function no(e,t,n,r,o){if(null!=r){let i,s=!1;lt(r)?i=r:Dt(r)&&(s=!0,r=r[Pe]);const a=he(r);0===e&&null!==n?null==o?_g(t,n,a):mr(t,n,a,o||null,!0):1===e&&null!==n?mr(t,n,a,o||null,!0):2===e?function na(e,t,n){const r=ea(e,t);r&&function LS(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function jS(e,t,n,r,o){const i=n[en];i!==he(n)&&no(t,e,r,i,o);for(let a=Ue;a0&&(e[n-1][Vt]=r[Vt]);const i=zs(e,Ue+t);!function AS(e,t){li(e,t,t[U],2,null,null),t[Pe]=null,t[qe]=null}(r[S],r);const s=i[Jt];null!==s&&s.detachView(i[S]),r[me]=null,r[Vt]=null,r[G]&=-129}return r}function Dg(e,t){if(!(256&t[G])){const n=t[U];t[Ms]?.destroy(),t[Ss]?.destroy(),n.destroyNode&&li(e,t,n,3,null,null),function OS(e){let t=e[Zo];if(!t)return Lu(e[S],e);for(;t;){let n=null;if(Dt(t))n=t[Zo];else{const r=t[Ue];r&&(n=r)}if(!n){for(;t&&!t[Vt]&&t!==e;)Dt(t)&&Lu(t[S],t),t=t[me];null===t&&(t=e),Dt(t)&&Lu(t[S],t),n=t&&t[Vt]}t=n}}(t)}}function Lu(e,t){if(!(256&t[G])){t[G]&=-129,t[G]|=256,function kS(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);null!==r&&(t[Hr]=null);const o=t[Bn];if(null!==o){for(let i=0;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===yt.None||i===yt.Emulated)return null}return ut(r,n)}}(e,t.parent,n)}function mr(e,t,n,r,o){e.insertBefore(t,n,r,o)}function _g(e,t,n){e.appendChild(t,n)}function wg(e,t,n,r,o){null!==r?mr(e,t,n,r,o):_g(e,t,n)}function ea(e,t){return e.parentNode(t)}let Hu,Uu,oa,Mg=function bg(e,t,n){return 40&e.type?ut(e,n):null};function ta(e,t,n,r){const o=Vu(e,r,t),i=t[U],a=function Eg(e,t,n){return Mg(e,t,n)}(r.parent||t[qe],r,t);if(null!=o)if(Array.isArray(n))for(let l=0;le,createScript:e=>e,createScriptURL:e=>e})}catch{}return oa}()?.createScriptURL(e)||e}class Fg{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Fh})`}}function qn(e){return e instanceof Fg?e.changingThisBreaksApplicationSecurity:e}function ci(e,t){const n=function KS(e){return e instanceof Fg&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Fh})`)}return n===t}const nI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var Te=(()=>((Te=Te||{})[Te.NONE=0]="NONE",Te[Te.HTML=1]="HTML",Te[Te.STYLE=2]="STYLE",Te[Te.SCRIPT=3]="SCRIPT",Te[Te.URL=4]="URL",Te[Te.RESOURCE_URL=5]="RESOURCE_URL",Te))();function Yu(e){const t=fi();return t?t.sanitize(Te.URL,e)||"":ci(e,"URL")?qn(e):function Gu(e){return(e=String(e)).match(nI)?e:"unsafe:"+e}($(e))}function Bg(e){const t=fi();if(t)return Pg(t.sanitize(Te.RESOURCE_URL,e)||"");if(ci(e,"ResourceURL"))return Pg(qn(e));throw new C(904,!1)}function fi(){const e=D();return e&&e[dr].sanitizer}class N{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=R({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const hi=new N("ENVIRONMENT_INITIALIZER"),zg=new N("INJECTOR",-1),Gg=new N("INJECTOR_DEF_TYPES");class Wg{get(t,n=zo){if(n===zo){const r=new Error(`NullInjectorError: No provider for ${xe(t)}!`);throw r.name="NullInjectorError",r}return n}}function gI(...e){return{\u0275providers:qg(0,e),\u0275fromNgModule:!0}}function qg(e,...t){const n=[],r=new Set;let o;return ni(t,i=>{const s=i;Xu(s,n,[],r)&&(o||=[],o.push(s))}),void 0!==o&&Zg(o,n),n}function Zg(e,t){for(let n=0;n{t.push(i)})}}function Xu(e,t,n,r){if(!(e=j(e)))return!1;let o=null,i=Lh(e);const s=!i&&te(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const l=e.ngModule;if(i=Lh(l),!i)return!1;o=l}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of l)Xu(u,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let u;r.add(o);try{ni(i.imports,c=>{Xu(c,t,n,r)&&(u||=[],u.push(c))})}finally{}void 0!==u&&Zg(u,t)}if(!a){const u=hr(o)||(()=>new o);t.push({provide:o,useFactory:u,deps:J},{provide:Gg,useValue:o,multi:!0},{provide:hi,useValue:()=>T(o),multi:!0})}const l=i.providers;null==l||a||Ku(l,c=>{t.push(c)})}}return o!==e&&void 0!==e.providers}function Ku(e,t){for(let n of e)Ul(n)&&(n=n.\u0275providers),Array.isArray(n)?Ku(n,t):t(n)}const mI=ie({provide:String,useValue:ie});function Ju(e){return null!==e&&"object"==typeof e&&mI in e}function yr(e){return"function"==typeof e}const ec=new N("Set Injector scope."),sa={},vI={};let tc;function aa(){return void 0===tc&&(tc=new Wg),tc}class sn{}class nc extends sn{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,oc(t,s=>this.processProvider(s)),this.records.set(zg,oo(void 0,this)),o.has("environment")&&this.records.set(sn,oo(void 0,this));const i=this.records.get(ec);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Gg.multi,J,k.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=$n(this),r=it(void 0);try{return t()}finally{$n(n),it(r)}}get(t,n=zo,r=k.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(zh))return t[zh](this);r=ws(r);const o=$n(this),i=it(void 0);try{if(!(r&k.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function EI(e){return"function"==typeof e||"object"==typeof e&&e instanceof N}(t)&&Ds(t);a=l&&this.injectableDefInScope(l)?oo(rc(t),sa):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&k.Self?aa():this.parent).get(t,n=r&k.Optional&&n===zo?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[_s]=s[_s]||[]).unshift(xe(t)),o)throw s;return function Eb(e,t,n,r){const o=e[_s];throw t[$h]&&o.unshift(t[$h]),e.message=function bb(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=xe(t);if(Array.isArray(t))o=t.map(xe).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):xe(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(vb,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[_s]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{it(i),$n(o)}}resolveInjectorInitializers(){const t=$n(this),n=it(void 0);try{const r=this.get(hi.multi,J,k.Self);for(const o of r)o()}finally{$n(t),it(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(xe(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new C(205,!1)}processProvider(t){let n=yr(t=j(t))?t:j(t&&t.provide);const r=function CI(e){return Ju(e)?oo(void 0,e.useValue):oo(Xg(e),sa)}(t);if(yr(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=oo(void 0,sa,!0),o.factory=()=>Zl(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===sa&&(n.value=vI,n.value=n.factory()),"object"==typeof n.value&&n.value&&function wI(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=j(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function rc(e){const t=Ds(e),n=null!==t?t.factory:hr(e);if(null!==n)return n;if(e instanceof N)throw new C(204,!1);if(e instanceof Function)return function DI(e){const t=e.length;if(t>0)throw function ri(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new C(204,!1)}function Xg(e,t,n){let r;if(yr(e)){const o=j(e);return hr(o)||rc(o)}if(Ju(e))r=()=>j(e.useValue);else if(function Qg(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Zl(e.deps||[]));else if(function Yg(e){return!(!e||!e.useExisting)}(e))r=()=>T(j(e.useExisting));else{const o=j(e&&(e.useClass||e.provide));if(!function _I(e){return!!e.deps}(e))return hr(o)||rc(o);r=()=>new o(...Zl(e.deps))}return r}function oo(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function oc(e,t){for(const n of e)Array.isArray(n)?oc(n,t):n&&Ul(n)?oc(n.\u0275providers,t):t(n)}const la=new N("AppId",{providedIn:"root",factory:()=>bI}),bI="ng",Kg=new N("Platform Initializer"),vr=new N("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Jg=new N("CSP nonce",{providedIn:"root",factory:()=>function ui(){if(void 0!==Uu)return Uu;if(typeof document<"u")return document;throw new C(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let tm=(e,t)=>null;function nm(e,t){return tm(e,t)}class PI{}class im{}class kI{resolveComponentFactory(t){throw function FI(e){const t=Error(`No component factory found for ${xe(e)}.`);return t.ngComponent=e,t}(t)}}let ha=(()=>{class e{}return e.NULL=new kI,e})();function LI(){return io(ze(),D())}function io(e,t){return new _t(ut(e,t))}let _t=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=LI,e})();function VI(e){return e instanceof _t?e.nativeElement:e}class am{}let An=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function HI(){const e=D(),n=ct(ze().index,e);return(Dt(n)?n:e)[U]}(),e})(),jI=(()=>{class e{}return e.\u0275prov=R({token:e,providedIn:"root",factory:()=>null}),e})();class yi{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const $I=new yi("16.0.1"),gc={};function vi(e){for(;e;){e[G]|=64;const t=si(e);if(eu(e)&&!t)return e;e=t}return null}function mc(e){return e.ngOriginalError}class Dr{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&mc(t);for(;n&&mc(n);)n=mc(n);return n||null}}const cm=new N("",{providedIn:"root",factory:()=>!1});function Nn(e){return e instanceof Function?e():e}class hm extends up{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(t){this._lView=t}onConsumerDependencyMayHaveChanged(){vi(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(t,n,r){const o=je(this);this.trackingVersion++;try{t(n,r)}finally{je(o)}}destroy(){this.trackingVersion++}}let ga=null;function pm(){return ga??=new hm,ga}function gm(e,t){return e[t]??pm()}function mm(e,t){const n=pm();n.hasReadASignal&&(e[t]=ga,n.lView=e,ga=new hm)}const z={};function O(e){ym(K(),D(),Je()+e,!1)}function ym(e,t,n,r){if(!r)if(3==(3&t[G])){const i=e.preOrderCheckHooks;null!==i&&ks(t,i,n)}else{const i=e.preOrderHooks;null!==i&&Ls(t,i,0,n)}pr(n)}function _m(e,t=null,n=null,r){const o=wm(e,t,n,r);return o.resolveInjectorInitializers(),o}function wm(e,t=null,n=null,r,o=new Set){const i=[n||J,gI(e)];return r=r||("object"==typeof e?void 0:xe(e)),new nc(i,t||aa(),r||null,o)}let an=(()=>{class e{static create(n,r){if(Array.isArray(n))return _m({name:""},r,n,"");{const o=n.name??"";return _m({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=zo,e.NULL=new Wg,e.\u0275prov=R({token:e,providedIn:"any",factory:()=>T(zg)}),e.__NG_ELEMENT_ID__=-1,e})();function v(e,t=k.Default){const n=D();return null===n?T(e,t):zp(ze(),n,j(e),t)}function ma(e,t,n,r,o,i,s,a,l,u,c){const d=t.blueprint.slice();return d[Pe]=o,d[G]=140|r,(null!==u||e&&2048&e[G])&&(d[G]|=2048),vp(d),d[me]=d[$r]=e,d[Ce]=n,d[dr]=s||e&&e[dr],d[U]=a||e&&e[U],d[jr]=l||e&&e[jr]||null,d[qe]=i,d[Qo]=function yS(){return mS++}(),d[Mn]=c,d[rp]=u,d[Ie]=2==t.type?e[Ie]:d,d}function ao(e,t,n,r,o){let i=e.data[t];if(null===i)i=function yc(e,t,n,r,o){const i=bp(),s=su(),l=e.data[t]=function u0(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return function Gr(){return null!==V.skipHydrationRootTNode}()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?i:i&&i.parent,n,t,r,o);return null===e.firstChild&&(e.firstChild=l),null!==i&&(s?null==i.child&&null!==l.parent&&(i.child=l):null===i.next&&(i.next=l,l.prev=i)),l}(e,t,n,r,o),function DM(){return V.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function Ko(){const e=V.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return rn(i,!0),i}function Di(e,t,n,r){if(0===n)return-1;const o=t.length;for(let i=0;iQ&&ym(e,t,Q,!1),nn(a?2:0,o),a)i.runInContext(n,r,o);else{const u=je(null);try{n(r,o)}finally{je(u)}}}finally{a&&null===t[Ms]&&mm(t,Ms),pr(s),nn(a?3:1,o)}}function vc(e,t,n){if(Jl(t)){const r=je(null);try{const i=t.directiveEnd;for(let s=t.directiveStart;snull;function Im(e,t,n,r){for(let o in e)if(e.hasOwnProperty(o)){n=null===n?{}:n;const i=e[o];null===r?Tm(n,t,o,i):r.hasOwnProperty(o)&&Tm(n,t,r[o],i)}return n}function Tm(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function wt(e,t,n,r,o,i,s,a){const l=ut(t,n);let c,u=t.inputs;!a&&null!=u&&(c=u[r])?(Sc(e,n,c,r,o),fr(t)&&function f0(e,t){const n=ct(t,e);16&n[G]||(n[G]|=64)}(n,t.index)):3&t.type&&(r=function d0(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,t.value||"",r):o,i.setProperty(l,r,o))}function wc(e,t,n,r){if(Ep()){const o=null===r?null:{"":-1},i=function v0(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let i=0;i0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,Di(e,n,o.hostVars,z),o)}function ln(e,t,n,r,o,i){const s=ut(e,t);!function bc(e,t,n,r,o,i,s){if(null==i)e.removeAttribute(t,o,n);else{const a=null==s?$(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}(t[U],s,i,e.value,n,r,o)}function b0(e,t,n,r,o,i){const s=i[t];if(null!==s)for(let a=0;a{class e{constructor(){this.all=new Set,this.queue=new Map}create(n,r,o){const i=typeof Zone>"u"?null:Zone.current,s=new Kb(n,u=>{this.all.has(u)&&this.queue.set(u,i)},o);let a;this.all.add(s),s.notify();const l=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=r?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[n,r]of this.queue)this.queue.delete(n),r?r.run(()=>n.run()):n.run()}get isQueueEmpty(){return 0===this.queue.size}}return e.\u0275prov=R({token:e,providedIn:"root",factory:()=>new e}),e})();function va(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s0&&Tc(n)}}function Tc(e){for(let r=xu(e);null!==r;r=Pu(r))for(let o=Ue;o0&&Tc(i)}const n=e[S].components;if(null!==n)for(let r=0;r0&&Tc(o)}}class _i{get rootNodes(){const t=this._lView,n=t[S];return Ci(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Ce]}set context(t){this._lView[Ce]=t}get destroyed(){return 256==(256&this._lView[G])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[me];if(lt(t)){const n=t[Is],r=n?n.indexOf(this):-1;r>-1&&(ku(t,r),zs(n,r))}this._attachedToViewContainer=!1}Dg(this._lView[S],this._lView)}onDestroy(t){!function _p(e,t){if(256==(256&e[G]))throw new C(911,!1);null===e[Bn]&&(e[Bn]=[]),e[Bn].push(t)}(this._lView,t)}markForCheck(){vi(this._cdRefInjectingView||this._lView)}detach(){this._lView[G]&=-129}reattach(){this._lView[G]|=128}detectChanges(){Da(this._lView[S],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new C(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function RS(e,t){li(e,t,t[U],2,null,null)}(this._lView[S],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new C(902,!1);this._appRef=t}}class L0 extends _i{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Da(t[S],t,t[Ce],!1)}checkNoChanges(){}get context(){return null}}class Hm extends ha{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=te(t);return new wi(n,this.ngModule)}}function jm(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class H0{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=ws(r);const o=this.injector.get(t,gc,r);return o!==gc||n===gc?o:this.parentInjector.get(t,n,r)}}class wi extends im{get inputs(){return jm(this.componentDef.inputs)}get outputs(){return jm(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function Pb(e){return e.map(xb).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof sn?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new H0(t,i):t,a=s.get(am,null);if(null===a)throw new C(407,!1);const c={rendererFactory:a,sanitizer:s.get(jI,null),effectManager:s.get(Vm,null)},d=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",h=r?function r0(e,t,n,r){const i=r.get(cm,!1)||n===yt.ShadowDom,s=e.selectRootElement(t,i);return function o0(e){Sm(e)}(s),s}(d,r,this.componentDef.encapsulation,s):Js(d,f,function V0(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(f)),p=this.componentDef.onPush?576:528,m=_c(0,null,null,1,0,null,null,null,null,null,null),y=ma(null,m,null,p,null,null,c,d,s,null,null);let w,g;du(y);try{const b=this.componentDef;let x,Z=null;b.findHostDirectiveDefs?(x=[],Z=new Map,b.findHostDirectiveDefs(b,x,Z),x.push(b)):x=[b];const fe=function $0(e,t){const n=e[S],r=Q;return e[r]=t,ao(n,r,2,"#host",null)}(y,h),Ho=function B0(e,t,n,r,o,i,s){const a=o[S];!function U0(e,t,n,r){for(const o of e)t.mergedAttrs=qo(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(va(t,t.mergedAttrs,!0),null!==n&&Rg(r,n,t))}(r,e,t,s);let l=null;null!==t&&(l=nm(t,o[jr]));const u=i.rendererFactory.createRenderer(t,n),c=ma(o,Mm(n),null,n.onPush?64:16,o[e.index],e,i,u,null,null,l);return a.firstCreatePass&&Ec(a,e,r.length-1),ya(o,c),o[e.index]=c}(fe,h,b,x,y,c,d);g=yp(m,Q),h&&function G0(e,t,n,r){if(r)Xl(e,n,["ng-version",$I.full]);else{const{attrs:o,classes:i}=function Fb(e){const t=[],n=[];let r=1,o=2;for(;r0&&Ng(e,n,i.join(" "))}}(d,b,h,r),void 0!==n&&function W0(e,t,n){const r=e.projection=[];for(let o=0;o=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=qo(o.hostAttrs,n=qo(n,o.hostAttrs))}}(r)}function Ac(e){return e===En?{}:e===J?[]:e}function Y0(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function Q0(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function X0(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function _a(e){return!!function Nc(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function un(e,t,n){return e[t]=n}function Ye(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Cr(e,t,n,r){const o=Ye(e,t,n);return Ye(e,t+1,r)||o}function cn(e,t,n,r){const o=D();return Ye(o,Wr(),t)&&(K(),ln(ye(),o,e,t,n,r)),cn}function uo(e,t,n,r){return Ye(e,Wr(),n)?t+$(n)+r:z}function co(e,t,n,r,o,i){const a=Cr(e,function Sn(){return V.lFrame.bindingIndex}(),n,o);return In(2),a?t+$(n)+r+$(o)+i:z}function jt(e,t,n,r,o,i,s,a){const l=D(),u=K(),c=e+Q,d=u.firstCreatePass?function wT(e,t,n,r,o,i,s,a,l){const u=t.consts,c=ao(t,e,4,s||null,Un(u,a));wc(t,n,c,Un(u,l)),Fs(t,c);const d=c.tView=_c(2,c,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,u,l,t,n,r,o,i,s):u.data[c];rn(d,!1);const f=ry(u,l,d,e);Ps()&&ta(u,l,f,d),Ze(f,l),ya(l,l[c]=Om(f,l,f,d)),Ts(d)&&Dc(u,l,d),null!=s&&Cc(l,d,a)}let ry=function oy(e,t,n,r){return Wn(!0),t[U].createComment("")};function X(e,t,n){const r=D();return Ye(r,Wr(),t)&&wt(K(),ye(),r,e,t,r[U],n,!1),X}function kc(e,t,n,r,o){const s=o?"class":"style";Sc(e,n,t.inputs[s],s,r)}function _(e,t,n,r){const o=D(),i=K(),s=Q+e,a=o[U],l=i.firstCreatePass?function IT(e,t,n,r,o,i){const s=t.consts,l=ao(t,e,2,r,Un(s,o));return wc(t,n,l,Un(s,i)),null!==l.attrs&&va(l,l.attrs,!1),null!==l.mergedAttrs&&va(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,i,o,t,n,r):i.data[s],u=iy(i,o,l,a,t,e);o[s]=u;const c=Ts(l);return rn(l,!0),Rg(a,u,l),32!=(32&l.flags)&&Ps()&&ta(i,o,u,l),0===function cM(){return V.lFrame.elementDepthCount}()&&Ze(u,o),function dM(){V.lFrame.elementDepthCount++}(),c&&(Dc(i,o,l),vc(i,l,o)),null!==r&&Cc(o,l),_}function E(){let e=ze();su()?function au(){V.lFrame.isParent=!1}():(e=e.parent,rn(e,!1));const t=e;(function hM(e){return V.skipHydrationRootTNode===e})(t)&&function yM(){V.skipHydrationRootTNode=null}(),function fM(){V.lFrame.elementDepthCount--}();const n=K();return n.firstCreatePass&&(Fs(n,e),Jl(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function OM(e){return 0!=(8&e.flags)}(t)&&kc(n,t,D(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function xM(e){return 0!=(16&e.flags)}(t)&&kc(n,t,D(),t.stylesWithoutHost,!1),E}function ke(e,t,n,r){return _(e,t,n,r),E(),ke}let iy=(e,t,n,r,o,i)=>(Wn(!0),Js(r,o,function Pp(){return V.lFrame.currentNamespace}()));function _r(){return D()}function Ii(e){return!!e&&"function"==typeof e.then}function ly(e){return!!e&&"function"==typeof e.subscribe}function B(e,t,n,r){const o=D(),i=K(),s=ze();return function cy(e,t,n,r,o,i,s){const a=Ts(r),u=e.firstCreatePass&&Fm(e),c=t[Ce],d=Pm(t);let f=!0;if(3&r.type||s){const m=ut(r,t),y=s?s(m):m,w=d.length,g=s?x=>s(he(x[r.index])):r.index;let b=null;if(!s&&a&&(b=function xT(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;il?a[l]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==b)(b.__ngLastListenerFn__||b).__ngNextListenerFn__=i,b.__ngLastListenerFn__=i,f=!1;else{i=fy(r,t,c,i,!1);const x=n.listen(y,o,i);d.push(i,x),u&&u.push(o,g,w,w+1)}}else i=fy(r,t,c,i,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[o])){const m=p.length;if(m)for(let y=0;y-1?ct(e.index,t):t);let l=dy(t,n,r,s),u=i.__ngNextListenerFn__;for(;u;)l=dy(t,n,u,s)&&l,u=u.__ngNextListenerFn__;return o&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function dn(e=1){return function EM(e){return(V.lFrame.contextLView=function bM(e,t){for(;e>0;)t=t[$r],e--;return t}(e,V.lFrame.contextLView))[Ce]}(e)}function Sa(e,t,n,r,o){const i=D(),s=uo(i,t,n,r);return s!==z&&wt(K(),ye(),i,e,s,i[U],o,!1),Sa}function Ia(e,t){return e<<17|t<<2}function Zn(e){return e>>17&32767}function Hc(e){return 2|e}function wr(e){return(131068&e)>>2}function jc(e,t){return-131069&e|t<<2}function $c(e){return 1|e}function wy(e,t,n,r,o){const i=e[n+1],s=null===t;let a=r?Zn(i):wr(i),l=!1;for(;0!==a&&(!1===l||s);){const c=e[a+1];BT(e[a],t)&&(l=!0,e[a+1]=r?$c(c):Hc(c)),a=r?Zn(c):wr(c)}l&&(e[n+1]=r?Hc(i):$c(i))}function BT(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Jr(e,t)>=0}function Ta(e,t){return function $t(e,t,n,r){const o=D(),i=K(),s=In(2);i.firstUpdatePass&&function Ry(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[Je()],s=function Ny(e,t){return t>=e.expandoStartIndex}(e,n);(function Fy(e,t){return 0!=(e.flags&(t?8:16))})(i,r)&&null===t&&!s&&(t=!1),t=function XT(e,t,n,r){const o=function uu(e){const t=V.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=Ti(n=Bc(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=Bc(o,e,t,n,r),null===i){let l=function KT(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==wr(r))return e[Zn(r)]}(e,t,r);void 0!==l&&Array.isArray(l)&&(l=Bc(null,e,t,l[1],r),l=Ti(l,t.attrs,r),function JT(e,t,n,r){e[Zn(n?t.classBindings:t.styleBindings)]=r}(e,t,r,l))}else i=function eA(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(u=!0)):c=n,o)if(0!==l){const f=Zn(e[a+1]);e[r+1]=Ia(f,a),0!==f&&(e[f+1]=jc(e[f+1],r)),e[a+1]=function VT(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=Ia(a,0),0!==a&&(e[a+1]=jc(e[a+1],r)),a=r;else e[r+1]=Ia(l,0),0===a?a=r:e[l+1]=jc(e[l+1],r),l=r;u&&(e[r+1]=Hc(e[r+1])),wy(e,c,r,!0),wy(e,c,r,!1),function $T(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&Jr(i,t)>=0&&(n[r+1]=$c(n[r+1]))}(t,c,e,r,i),s=Ia(a,l),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==z&&Ye(o,s,t)&&function xy(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const l=e.data,u=l[a+1],c=function HT(e){return 1==(1&e)}(u)?Py(l,t,n,o,wr(u),s):void 0;Aa(c)||(Aa(i)||function LT(e){return 2==(2&e)}(u)&&(i=Py(l,null,n,o,a,s)),function $S(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:dt.DashCase;null==o?e.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=dt.Important),e.setStyle(n,r,o,i))}}(r,s,Os(Je(),n),o,i))}(i,i.data[Je()],o,o[U],e,o[s+1]=function oA(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=xe(qn(e)))),e}(t,n),r,s)}(e,t,null,!0),Ta}function Bc(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const l=e[o],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let f=n[o+1];f===z&&(f=d?J:void 0);let h=d?_u(f,r):c===r?f:void 0;if(u&&!Aa(h)&&(h=_u(l,r)),Aa(h)&&(a=h,s))return a;const p=e[o+1];o=s?Zn(p):wr(p)}if(null!==t){let l=i?t.residualClasses:t.residualStyles;null!=l&&(a=_u(l,r))}return a}function Aa(e){return void 0!==e}function M(e,t=""){const n=D(),r=K(),o=e+Q,i=r.firstCreatePass?ao(r,o,1,t,null):r.data[o],s=ky(r,n,i,t,e);n[o]=s,Ps()&&ta(r,n,s,i),rn(i,!1)}let ky=(e,t,n,r,o)=>(Wn(!0),function Ks(e,t){return e.createText(t)}(t[U],r));function et(e){return Et("",e,""),et}function Et(e,t,n){const r=D(),o=uo(r,e,t,n);return o!==z&&Rn(r,Je(),o),Et}function Uc(e,t,n,r,o){const i=D(),s=co(i,e,t,n,r,o);return s!==z&&Rn(i,Je(),s),Uc}const Er=void 0;var SA=["en",[["a","p"],["AM","PM"],Er],[["AM","PM"],Er,Er],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Er,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Er,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Er,"{1} 'at' {0}",Er],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function MA(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let Do={};function tt(e){const t=function IA(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=nv(t);if(n)return n;const r=t.split("-")[0];if(n=nv(r),n)return n;if("en"===r)return SA;throw new C(701,!1)}function nv(e){return e in Do||(Do[e]=ce.ng&&ce.ng.common&&ce.ng.common.locales&&ce.ng.common.locales[e]),Do[e]}var I=(()=>((I=I||{})[I.LocaleId=0]="LocaleId",I[I.DayPeriodsFormat=1]="DayPeriodsFormat",I[I.DayPeriodsStandalone=2]="DayPeriodsStandalone",I[I.DaysFormat=3]="DaysFormat",I[I.DaysStandalone=4]="DaysStandalone",I[I.MonthsFormat=5]="MonthsFormat",I[I.MonthsStandalone=6]="MonthsStandalone",I[I.Eras=7]="Eras",I[I.FirstDayOfWeek=8]="FirstDayOfWeek",I[I.WeekendRange=9]="WeekendRange",I[I.DateFormat=10]="DateFormat",I[I.TimeFormat=11]="TimeFormat",I[I.DateTimeFormat=12]="DateTimeFormat",I[I.NumberSymbols=13]="NumberSymbols",I[I.NumberFormats=14]="NumberFormats",I[I.CurrencyCode=15]="CurrencyCode",I[I.CurrencySymbol=16]="CurrencySymbol",I[I.CurrencyName=17]="CurrencyName",I[I.Currencies=18]="Currencies",I[I.Directionality=19]="Directionality",I[I.PluralCase=20]="PluralCase",I[I.ExtraData=21]="ExtraData",I))();const Co="en-US";let rv=Co;function Wc(e,t,n,r,o){if(e=j(e),Array.isArray(e))for(let i=0;i>20;if(yr(e)||!e.multi){const h=new Jo(l,o,v),p=Zc(a,t,o?c:c+f,d);-1===p?(vu($s(u,s),i,a),qc(i,e,t.length),t.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=Zc(a,t,c+f,d),p=Zc(a,t,c,c+f),y=p>=0&&n[p];if(o&&!y||!o&&!(h>=0&&n[h])){vu($s(u,s),i,a);const w=function bN(e,t,n,r,o){const i=new Jo(e,n,v);return i.multi=[],i.index=t,i.componentProviders=0,Tv(i,o,r&&!n),i}(o?EN:wN,n.length,o,r,l);!o&&y&&(n[p].providerFactory=w),qc(i,e,t.length,0),t.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(w),s.push(w)}else qc(i,e,h>-1?h:p,Tv(n[o?p:h],l,!o&&r));!o&&r&&y&&n[p].componentProviders++}}}function qc(e,t,n,r){const o=yr(t),i=function yI(e){return!!e.useClass}(t);if(o||i){const l=(i?j(t.useClass):t).prototype.ngOnDestroy;if(l){const u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const c=u.indexOf(n);-1===c?u.push(n,[r,l]):u[c+1].push(r,l)}else u.push(n,l)}}}function Tv(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Zc(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function _N(e,t,n){const r=K();if(r.firstCreatePass){const o=Ht(e);Wc(n,r.data,r.blueprint,o,!0),Wc(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class _o{}class Av{}class Qc extends _o{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Hm(this);const o=vt(t);this._bootstrapComponents=Nn(o.bootstrap),this._r3Injector=wm(t,n,[{provide:_o,useValue:this},{provide:ha,useValue:this.componentFactoryResolver},...r],xe(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Xc extends Av{constructor(t){super(),this.moduleType=t}create(t){return new Qc(this.moduleType,t,[])}}class Nv extends _o{constructor(t){super(),this.componentFactoryResolver=new Hm(this),this.instance=null;const n=new nc([...t.providers,{provide:_o,useValue:this},{provide:ha,useValue:this.componentFactoryResolver}],t.parent||aa(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Kc(e,t,n=null){return new Nv({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let IN=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n.id)){const r=qg(0,n.type),o=r.length>0?Kc([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n.id,o)}return this.cachedInjectors.get(n.id)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=R({token:e,providedIn:"environment",factory:()=>new e(T(sn))}),e})();function Rv(e){e.getStandaloneInjector=t=>t.get(IN).getOrCreateStandaloneInjector(e)}function ed(e,t,n){const r=Ke()+e,o=D();return o[r]===z?un(o,r,n?t.call(n):t()):function Ei(e,t){return e[t]}(o,r)}function Vv(e,t,n,r){return function Hv(e,t,n,r,o,i){const s=t+n;return Ye(e,s,o)?un(e,s+1,i?r.call(i,o):r(o)):Pi(e,s+1)}(D(),Ke(),e,t,n,r)}function Pi(e,t){const n=e[t];return n===z?void 0:n}function td(e,t){const n=K();let r;const o=e+Q;n.firstCreatePass?(r=function zN(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];const i=r.factory||(r.factory=hr(r.type)),s=it(v);try{const a=js(!1),l=i();return js(a),function MT(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,D(),o,l),l}finally{it(s)}}function nd(e,t,n,r){const o=e+Q,i=D(),s=function zr(e,t){return e[t]}(i,o);return function Fi(e,t){return e[S].data[t].pure}(i,o)?function jv(e,t,n,r,o,i,s){const a=t+n;return Cr(e,a,o,i)?un(e,a+2,s?r.call(s,o,i):r(o,i)):Pi(e,a+2)}(i,Ke(),t,s.transform,n,r,s):s.transform(n,r)}function rd(e){return t=>{setTimeout(e,void 0,t)}}const we=class YN extends Cn{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const l=t;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=rd(i),o&&(o=rd(o)),s&&(s=rd(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof St&&t.add(a),a}};function QN(){return this._results[Symbol.iterator]()}class od{get changes(){return this._changes||(this._changes=new we)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=od.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=QN)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const o=function Rt(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function zM(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r{class e{}return e.__NG_ELEMENT_ID__=JN,e})();const XN=On,KN=class extends XN{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n,null)}createEmbeddedViewImpl(t,n,r){const o=this._declarationTContainer.tView,i=ma(this._declarationLView,o,t,16,null,o.declTNode,null,null,null,n||null,r||null);i[Yo]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[Jt];return null!==a&&(i[Jt]=a.createEmbeddedView(o)),Ic(o,i,t),new _i(i)}};function JN(){return Pa(ze(),D())}function Pa(e,t){return 4&e.type?new KN(t,e,io(e,t)):null}let Ut=(()=>{class e{}return e.__NG_ELEMENT_ID__=sR,e})();function sR(){return Yv(ze(),D())}const aR=Ut,qv=class extends aR{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return io(this._hostTNode,this._hostLView)}get injector(){return new Zr(this._hostTNode,this._hostLView)}get parentInjector(){const t=yu(this._hostTNode,this._hostLView);if(Vp(t)){const n=Hs(t,this._hostLView),r=Vs(t);return new Zr(n[S].data[r+8],n)}return new Zr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=Zv(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Ue}createEmbeddedView(t,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=t.createEmbeddedViewImpl(n||{},i,null);return this.insertImpl(a,o,false),a}createComponent(t,n,r,o,i){const s=t&&!function ti(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const m=n||{};a=m.index,r=m.injector,o=m.projectableNodes,i=m.environmentInjector||m.ngModuleRef}const l=s?t:new wi(te(t)),u=r||this.parentInjector;if(!i&&null==l.ngModule){const y=(s?u:this.parentInjector).get(sn,null);y&&(i=y)}te(l.componentType??{});const h=l.create(u,o,null,i);return this.insertImpl(h.hostView,a,false),h}insert(t,n){return this.insertImpl(t,n,!1)}insertImpl(t,n,r){const o=t._lView,i=o[S];if(function aM(e){return lt(e[me])}(o)){const l=this.indexOf(t);if(-1!==l)this.detach(l);else{const u=o[me],c=new qv(u,u[qe],u[me]);c.detach(c.indexOf(t))}}const s=this._adjustIndex(n),a=this._lContainer;if(function xS(e,t,n,r){const o=Ue+r,i=n.length;r>0&&(n[o-1][Vt]=t),r0)r.push(s[a/2]);else{const u=i[a+1],c=t[-l];for(let d=Ue;d{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=A(yd,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const i=o();if(Ii(i))n.push(i);else if(ly(i)){const s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});n.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),CD=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const xn=new N("LocaleId",{providedIn:"root",factory:()=>A(xn,k.Optional|k.SkipSelf)||function VR(){return typeof $localize<"u"&&$localize.locale||Co}()});class jR{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let _D=(()=>{class e{compileModuleSync(n){return new Xc(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=Nn(vt(n).declarations).reduce((s,a)=>{const l=te(a);return l&&s.push(new wi(l)),s},[]);return new jR(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const UR=(()=>Promise.resolve(0))();function Dd(e){typeof Zone>"u"?UR.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}function bD(...e){}class ge{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new we(!1),this.onMicrotaskEmpty=new we(!1),this.onStable=new we(!1),this.onError=new we(!1),typeof Zone>"u")throw new C(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function zR(){let e=ce.requestAnimationFrame,t=ce.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function qR(e){const t=()=>{!function WR(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(ce,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,_d(e),e.isCheckStableRunning=!0,Cd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),_d(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return MD(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),SD(e)}},onInvoke:(n,r,o,i,s,a,l)=>{try{return MD(e),n.invoke(o,i,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),SD(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,_d(e),Cd(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ge.isInAngularZone())throw new C(909,!1)}static assertNotInAngularZone(){if(ge.isInAngularZone())throw new C(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,GR,bD,bD);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const GR={};function Cd(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function _d(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function MD(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function SD(e){e._nesting--,Cd(e)}class ZR{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new we,this.onMicrotaskEmpty=new we,this.onStable=new we,this.onError=new we}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}const ID=new N("",{providedIn:"root",factory:TD});function TD(){const e=A(ge);let t=!0;return function sb(...e){const t=Uo(e),n=function JE(e,t){return"number"==typeof Vl(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?It(r[0]):kr(n)(Oe(r,t)):Xt}(new Ee(o=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(t),o.complete()})}),new Ee(o=>{let i;e.runOutsideAngular(()=>{i=e.onStable.subscribe(()=>{ge.assertNotInAngularZone(),Dd(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,o.next(!0))})})});const s=e.onUnstable.subscribe(()=>{ge.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}}).pipe(function ab(e={}){const{connector:t=(()=>new Cn),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,l,u=0,c=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=l=void 0,c=d=!1},p=()=>{const m=s;h(),m?.unsubscribe()};return $e((m,y)=>{u++,!d&&!c&&f();const w=l=l??t();y.add(()=>{u--,0===u&&!d&&!c&&(a=Hl(p,o))}),w.subscribe(y),!s&&u>0&&(s=new Bo({next:g=>w.next(g),error:g=>{d=!0,f(),a=Hl(h,n,g),w.error(g)},complete:()=>{c=!0,f(),a=Hl(h,r),w.complete()}}),It(m).subscribe(s))})(i)}}()))}const AD=new N(""),La=new N("");let bd,wd=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,bd||(function YR(e){bd=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ge.assertNotInAngularZone(),Dd(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Dd(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(T(ge),T(Ed),T(La))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})(),Ed=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return bd?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),Yn=null;const ND=new N("AllowMultipleToken"),Md=new N("PlatformDestroyListeners"),Sd=new N("appBootstrapListener");class OD{constructor(t,n){this.name=t,this.token=n}}function PD(e,t,n=[]){const r=`Platform: ${t}`,o=new N(r);return(i=[])=>{let s=Id();if(!s||s.injector.get(ND,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function KR(e){if(Yn&&!Yn.get(ND,!1))throw new C(400,!1);(function RD(){!function Qb(e){cp=e}(()=>{throw new C(600,!1)})})(),Yn=e;const t=e.get(kD);(function xD(e){e.get(Kg,null)?.forEach(n=>n())})(e)}(function FD(e=[],t){return an.create({name:t,providers:[{provide:ec,useValue:"platform"},{provide:Md,useValue:new Set([()=>Yn=null])},...e]})}(a,r))}return function eO(e){const t=Id();if(!t)throw new C(401,!1);return t}()}}function Id(){return Yn?.get(kD)??null}let kD=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function tO(e="zone.js",t){return"noop"===e?new ZR:"zone.js"===e?new ge(t):e}(r?.ngZone,function LD(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function SN(e,t,n){return new Qc(e,t,n)}(n.moduleType,this.injector,function BD(e){return[{provide:ge,useFactory:e},{provide:hi,multi:!0,useFactory:()=>{const t=A(rO,{optional:!0});return()=>t.initialize()}},{provide:$D,useFactory:nO},{provide:ID,useFactory:TD}]}(()=>o)),s=i.injector.get(Dr,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:l=>{s.handleError(l)}});i.onDestroy(()=>{Va(this._modules,i),a.unsubscribe()})}),function VD(e,t,n){try{const r=n();return Ii(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,o,()=>{const a=i.injector.get(vd);return a.runInitializers(),a.donePromise.then(()=>(function ov(e){Tt(e,"Expected localeId to be defined"),"string"==typeof e&&(rv=e.toLowerCase().replace(/_/g,"-"))}(i.injector.get(xn,Co)||Co),this._moduleDoBootstrap(i),i))})})}bootstrapModule(n,r=[]){const o=HD({},r);return function QR(e,t,n){const r=new Xc(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(bo);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new C(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new C(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(Md,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(T(an))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function HD(e,t){return Array.isArray(t)?t.reduce(HD,e):{...e,...t}}let bo=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=A($D),this.componentTypes=[],this.components=[],this.isStable=A(ID),this._injector=A(sn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof im;if(!this._injector.get(vd).done)throw!o&&function Vr(e){const t=te(e)||We(e)||at(e);return null!==t&&t.standalone}(n),new C(405,!1);let s;s=o?n:this._injector.get(ha).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function XR(e){return e.isBoundToModule}(s)?void 0:this._injector.get(_o),u=s.create(an.NULL,[],r||s.selector,a),c=u.location.nativeElement,d=u.injector.get(AD,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),Va(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new C(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Va(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(Sd,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Va(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new C(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Va(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const $D=new N("",{providedIn:"root",factory:()=>A(Dr).handleError.bind(void 0)});function nO(){const e=A(ge),t=A(Dr);return n=>e.runOutsideAngular(()=>t.handleError(n))}let rO=(()=>{class e{constructor(){this.zone=A(ge),this.applicationRef=A(bo)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();let Ha=(()=>{class e{}return e.__NG_ELEMENT_ID__=iO,e})();function iO(e){return function sO(e,t,n){if(fr(e)&&!n){const r=ct(e.index,t);return new _i(r,r)}return 47&e.type?new _i(t[Ie],t):null}(ze(),D(),16==(16&e))}class WD{constructor(){}supports(t){return _a(t)}create(t){return new fO(t)}}const dO=(e,t)=>t;class fO{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||dO}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new hO(n,r),i,o),t}_verifyReinsertion(t,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,i=t._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new qD),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new qD),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class hO{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class pO{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class qD{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new pO,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function ZD(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||QD()),deps:[[e,new qs,new Ws]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new C(901,!1)}}return e.\u0275prov=R({token:e,providedIn:"root",factory:QD}),e})();const DO=PD(null,"core",[]);let CO=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(T(bo))},e.\u0275mod=Lt({type:e}),e.\u0275inj=At({}),e})(),rC=(()=>{class e{get whenAllTasksComplete(){return 0===this.collection.size&&this.complete(),this.promise}constructor(){this.taskId=0,this.collection=new Set,this.ngZone=A(ge),this.completed=!1,this.ngZone.runOutsideAngular(()=>{this.promise=new Promise(n=>{this.resolve=n})})}add(){if(this.completed)return-1;const n=this.taskId++;return this.collection.add(n),n}remove(n){this.completed||(this.collection.delete(n),0===this.collection.size&&this.complete())}ngOnDestroy(){this.complete(),this.collection.clear()}complete(){this.completed=!0,this.resolve()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Mo(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let Pd=null;function Qn(){return Pd}class OO{}const bt=new N("DocumentToken");let Fd=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:function(){return A(PO)},providedIn:"platform"}),e})();const xO=new N("Location Initialized");let PO=(()=>{class e extends Fd{constructor(){super(),this._doc=A(bt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Qn().getBaseHref(this._doc)}onPopState(n){const r=Qn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Qn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:function(){return new e},providedIn:"platform"}),e})();function kd(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function iC(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function Pn(e){return e&&"?"!==e[0]?"?"+e:e}let Xn=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:function(){return A(aC)},providedIn:"root"}),e})();const sC=new N("appBaseHref");let aC=(()=>{class e extends Xn{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??A(bt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return kd(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+Pn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+Pn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+Pn(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(T(Fd),T(sC,8))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),lC=(()=>{class e extends Xn{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=kd(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Pn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Pn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(T(Fd),T(sC,8))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})(),Ld=(()=>{class e{constructor(n){this._subject=new we,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function LO(e){if(new RegExp("^(https?:)?//").test(e)){const[,n]=e.split(/\/\/[^\/]+/);return n}return e}(iC(uC(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Pn(r))}normalize(n){return e.stripTrailingSlash(function kO(e,t){if(!e||!t.startsWith(e))return t;const n=t.substring(e.length);return""===n||["/",";","?","#"].includes(n[0])?n:t}(this._basePath,uC(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Pn(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Pn(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}}return e.normalizeQueryParams=Pn,e.joinWithSlash=kd,e.stripTrailingSlash=iC,e.\u0275fac=function(n){return new(n||e)(T(Xn))},e.\u0275prov=R({token:e,factory:function(){return function FO(){return new Ld(T(Xn))}()},providedIn:"root"}),e})();function uC(e){return e.replace(/\/index.html$/,"")}var be=(()=>((be=be||{})[be.Format=0]="Format",be[be.Standalone=1]="Standalone",be))(),Y=(()=>((Y=Y||{})[Y.Narrow=0]="Narrow",Y[Y.Abbreviated=1]="Abbreviated",Y[Y.Wide=2]="Wide",Y[Y.Short=3]="Short",Y))(),ve=(()=>((ve=ve||{})[ve.Short=0]="Short",ve[ve.Medium=1]="Medium",ve[ve.Long=2]="Long",ve[ve.Full=3]="Full",ve))(),F=(()=>((F=F||{})[F.Decimal=0]="Decimal",F[F.Group=1]="Group",F[F.List=2]="List",F[F.PercentSign=3]="PercentSign",F[F.PlusSign=4]="PlusSign",F[F.MinusSign=5]="MinusSign",F[F.Exponential=6]="Exponential",F[F.SuperscriptingExponent=7]="SuperscriptingExponent",F[F.PerMille=8]="PerMille",F[F.Infinity=9]="Infinity",F[F.NaN=10]="NaN",F[F.TimeSeparator=11]="TimeSeparator",F[F.CurrencyDecimal=12]="CurrencyDecimal",F[F.CurrencyGroup=13]="CurrencyGroup",F))();function za(e,t){return Pt(tt(e)[I.DateFormat],t)}function Ga(e,t){return Pt(tt(e)[I.TimeFormat],t)}function Wa(e,t){return Pt(tt(e)[I.DateTimeFormat],t)}function xt(e,t){const n=tt(e),r=n[I.NumberSymbols][t];if(typeof r>"u"){if(t===F.CurrencyDecimal)return n[I.NumberSymbols][F.Decimal];if(t===F.CurrencyGroup)return n[I.NumberSymbols][F.Group]}return r}function dC(e){if(!e[I.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[I.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Pt(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function Hd(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const QO=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ji={},XO=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Ve=(()=>((Ve=Ve||{})[Ve.Short=0]="Short",Ve[Ve.ShortGMT=1]="ShortGMT",Ve[Ve.Long=2]="Long",Ve[Ve.Extended=3]="Extended",Ve))(),L=(()=>((L=L||{})[L.FullYear=0]="FullYear",L[L.Month=1]="Month",L[L.Date=2]="Date",L[L.Hours=3]="Hours",L[L.Minutes=4]="Minutes",L[L.Seconds=5]="Seconds",L[L.FractionalSeconds=6]="FractionalSeconds",L[L.Day=7]="Day",L))(),q=(()=>((q=q||{})[q.DayPeriods=0]="DayPeriods",q[q.Days=1]="Days",q[q.Months=2]="Months",q[q.Eras=3]="Eras",q))();function KO(e,t,n,r){let o=function ax(e){if(pC(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[o,i=1,s=1]=e.split("-").map(a=>+a);return qa(o,i-1,s)}const n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(QO))return function lx(e){const t=new Date(0);let n=0,r=0;const o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,l=Number(e[6]||0),u=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return i.call(t,s,a,l,u),t}(r)}const t=new Date(e);if(!pC(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=Fn(n,t)||t;let a,s=[];for(;t;){if(a=XO.exec(t),!a){s.push(t);break}{s=s.concat(a.slice(1));const c=s.pop();if(!c)break;t=c}}let l=o.getTimezoneOffset();r&&(l=hC(r,l),o=function sx(e,t,n){const r=n?-1:1,o=e.getTimezoneOffset();return function ix(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,r*(hC(t,o)-o))}(o,r,!0));let u="";return s.forEach(c=>{const d=function ox(e){if($d[e])return $d[e];let t;switch(e){case"G":case"GG":case"GGG":t=de(q.Eras,Y.Abbreviated);break;case"GGGG":t=de(q.Eras,Y.Wide);break;case"GGGGG":t=de(q.Eras,Y.Narrow);break;case"y":t=Ne(L.FullYear,1,0,!1,!0);break;case"yy":t=Ne(L.FullYear,2,0,!0,!0);break;case"yyy":t=Ne(L.FullYear,3,0,!1,!0);break;case"yyyy":t=Ne(L.FullYear,4,0,!1,!0);break;case"Y":t=Xa(1);break;case"YY":t=Xa(2,!0);break;case"YYY":t=Xa(3);break;case"YYYY":t=Xa(4);break;case"M":case"L":t=Ne(L.Month,1,1);break;case"MM":case"LL":t=Ne(L.Month,2,1);break;case"MMM":t=de(q.Months,Y.Abbreviated);break;case"MMMM":t=de(q.Months,Y.Wide);break;case"MMMMM":t=de(q.Months,Y.Narrow);break;case"LLL":t=de(q.Months,Y.Abbreviated,be.Standalone);break;case"LLLL":t=de(q.Months,Y.Wide,be.Standalone);break;case"LLLLL":t=de(q.Months,Y.Narrow,be.Standalone);break;case"w":t=jd(1);break;case"ww":t=jd(2);break;case"W":t=jd(1,!0);break;case"d":t=Ne(L.Date,1);break;case"dd":t=Ne(L.Date,2);break;case"c":case"cc":t=Ne(L.Day,1);break;case"ccc":t=de(q.Days,Y.Abbreviated,be.Standalone);break;case"cccc":t=de(q.Days,Y.Wide,be.Standalone);break;case"ccccc":t=de(q.Days,Y.Narrow,be.Standalone);break;case"cccccc":t=de(q.Days,Y.Short,be.Standalone);break;case"E":case"EE":case"EEE":t=de(q.Days,Y.Abbreviated);break;case"EEEE":t=de(q.Days,Y.Wide);break;case"EEEEE":t=de(q.Days,Y.Narrow);break;case"EEEEEE":t=de(q.Days,Y.Short);break;case"a":case"aa":case"aaa":t=de(q.DayPeriods,Y.Abbreviated);break;case"aaaa":t=de(q.DayPeriods,Y.Wide);break;case"aaaaa":t=de(q.DayPeriods,Y.Narrow);break;case"b":case"bb":case"bbb":t=de(q.DayPeriods,Y.Abbreviated,be.Standalone,!0);break;case"bbbb":t=de(q.DayPeriods,Y.Wide,be.Standalone,!0);break;case"bbbbb":t=de(q.DayPeriods,Y.Narrow,be.Standalone,!0);break;case"B":case"BB":case"BBB":t=de(q.DayPeriods,Y.Abbreviated,be.Format,!0);break;case"BBBB":t=de(q.DayPeriods,Y.Wide,be.Format,!0);break;case"BBBBB":t=de(q.DayPeriods,Y.Narrow,be.Format,!0);break;case"h":t=Ne(L.Hours,1,-12);break;case"hh":t=Ne(L.Hours,2,-12);break;case"H":t=Ne(L.Hours,1);break;case"HH":t=Ne(L.Hours,2);break;case"m":t=Ne(L.Minutes,1);break;case"mm":t=Ne(L.Minutes,2);break;case"s":t=Ne(L.Seconds,1);break;case"ss":t=Ne(L.Seconds,2);break;case"S":t=Ne(L.FractionalSeconds,1);break;case"SS":t=Ne(L.FractionalSeconds,2);break;case"SSS":t=Ne(L.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=Ya(Ve.Short);break;case"ZZZZZ":t=Ya(Ve.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=Ya(Ve.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=Ya(Ve.Long);break;default:return null}return $d[e]=t,t}(c);u+=d?d(o,n,l):"''"===c?"'":c.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function qa(e,t,n){const r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Fn(e,t){const n=function VO(e){return tt(e)[I.LocaleId]}(e);if(ji[n]=ji[n]||{},ji[n][t])return ji[n][t];let r="";switch(t){case"shortDate":r=za(e,ve.Short);break;case"mediumDate":r=za(e,ve.Medium);break;case"longDate":r=za(e,ve.Long);break;case"fullDate":r=za(e,ve.Full);break;case"shortTime":r=Ga(e,ve.Short);break;case"mediumTime":r=Ga(e,ve.Medium);break;case"longTime":r=Ga(e,ve.Long);break;case"fullTime":r=Ga(e,ve.Full);break;case"short":const o=Fn(e,"shortTime"),i=Fn(e,"shortDate");r=Za(Wa(e,ve.Short),[o,i]);break;case"medium":const s=Fn(e,"mediumTime"),a=Fn(e,"mediumDate");r=Za(Wa(e,ve.Medium),[s,a]);break;case"long":const l=Fn(e,"longTime"),u=Fn(e,"longDate");r=Za(Wa(e,ve.Long),[l,u]);break;case"full":const c=Fn(e,"fullTime"),d=Fn(e,"fullDate");r=Za(Wa(e,ve.Full),[c,d])}return r&&(ji[n][t]=r),r}function Za(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return null!=t&&r in t?t[r]:n})),e}function Gt(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=1-e:(e=-e,i=n));let s=String(e);for(;s.length0||a>-n)&&(a+=n),e===L.Hours)0===a&&-12===n&&(a=12);else if(e===L.FractionalSeconds)return function JO(e,t){return Gt(e,3).substring(0,t)}(a,t);const l=xt(s,F.MinusSign);return Gt(a,t,l,r,o)}}function de(e,t,n=be.Format,r=!1){return function(o,i){return function tx(e,t,n,r,o,i){switch(n){case q.Months:return function $O(e,t,n){const r=tt(e),i=Pt([r[I.MonthsFormat],r[I.MonthsStandalone]],t);return Pt(i,n)}(t,o,r)[e.getMonth()];case q.Days:return function jO(e,t,n){const r=tt(e),i=Pt([r[I.DaysFormat],r[I.DaysStandalone]],t);return Pt(i,n)}(t,o,r)[e.getDay()];case q.DayPeriods:const s=e.getHours(),a=e.getMinutes();if(i){const u=function GO(e){const t=tt(e);return dC(t),(t[I.ExtraData][2]||[]).map(r=>"string"==typeof r?Hd(r):[Hd(r[0]),Hd(r[1])])}(t),c=function WO(e,t,n){const r=tt(e);dC(r);const i=Pt([r[I.ExtraData][0],r[I.ExtraData][1]],t)||[];return Pt(i,n)||[]}(t,o,r),d=u.findIndex(f=>{if(Array.isArray(f)){const[h,p]=f,m=s>=h.hours&&a>=h.minutes,y=s0?Math.floor(o/60):Math.ceil(o/60);switch(e){case Ve.Short:return(o>=0?"+":"")+Gt(s,2,i)+Gt(Math.abs(o%60),2,i);case Ve.ShortGMT:return"GMT"+(o>=0?"+":"")+Gt(s,1,i);case Ve.Long:return"GMT"+(o>=0?"+":"")+Gt(s,2,i)+":"+Gt(Math.abs(o%60),2,i);case Ve.Extended:return 0===r?"Z":(o>=0?"+":"")+Gt(s,2,i)+":"+Gt(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}const nx=0,Qa=4;function fC(e){return qa(e.getFullYear(),e.getMonth(),e.getDate()+(Qa-e.getDay()))}function jd(e,t=!1){return function(n,r){let o;if(t){const i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{const i=fC(n),s=function rx(e){const t=qa(e,nx,1).getDay();return qa(e,0,1+(t<=Qa?Qa:Qa+7)-t)}(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Gt(o,e,xt(r,F.MinusSign))}}function Xa(e,t=!1){return function(n,r){return Gt(fC(n).getFullYear(),e,xt(r,F.MinusSign),t)}}const $d={};function hC(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function pC(e){return e instanceof Date&&!isNaN(e.valueOf())}function vC(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}class wx{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Kn=(()=>{class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new wx(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),_C(a,o)}});for(let o=0,i=r.length;o{_C(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(v(Ut),v(On),v(Ba))},e.\u0275dir=H({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function _C(e,t){e.context.$implicit=t.item}let Zd=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new Ex,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){wC("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){wC("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(v(Ut),v(On))},e.\u0275dir=H({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class Ex{constructor(){this.$implicit=null,this.ngIf=null}}function wC(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${xe(t)}'.`)}const kx=new N("DATE_PIPE_DEFAULT_TIMEZONE"),Lx=new N("DATE_PIPE_DEFAULT_OPTIONS");let Xd=(()=>{class e{constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(null==n||""===n||n!=n)return null;try{return KO(n,r??this.defaultOptions?.dateFormat??"mediumDate",i||this.locale,o??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw function Wt(e,t){return new C(2100,!1)}()}}}return e.\u0275fac=function(n){return new(n||e)(v(xn,16),v(kx,24),v(Lx,24))},e.\u0275pipe=st({name:"date",type:e,pure:!0,standalone:!0}),e})(),qx=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Lt({type:e}),e.\u0275inj=At({}),e})();function SC(e){return"server"===e}let Xx=(()=>{class e{}return e.\u0275prov=R({token:e,providedIn:"root",factory:()=>new Kx(T(bt),window)}),e})();class Kx{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const n=function Jx(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=t)}}scrollToElement(t){const n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=IC(this.window.history)||IC(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function IC(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class TC{}class SP extends OO{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class nf extends SP{static makeCurrent(){!function RO(e){Pd||(Pd=e)}(new nf)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function IP(){return Ui=Ui||document.querySelector("base"),Ui?Ui.getAttribute("href"):null}();return null==n?null:function TP(e){tl=tl||document.createElement("a"),tl.setAttribute("href",e);const t=tl.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){Ui=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return vC(document.cookie,t)}}let tl,Ui=null,NP=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})();const rf=new N("EventManagerPlugins");let xC=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new C(5101,!1);return this._eventNameToPlugin.set(n,r),r}}return e.\u0275fac=function(n){return new(n||e)(T(rf),T(ge))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})();class PC{constructor(t){this._doc=t}}const sf="ng-app-id";let FC=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=SC(i),this.resetHostNodes()}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${sf}="${this.appId}"]`);if(n?.length){const r=new Map;return n.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){const o=this.styleRef;if(o.has(n)){const i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(sf),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(sf,this.appId),s}}addStyleToHost(n,r){const o=this.getStyleElement(n,r);n.appendChild(o);const i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return e.\u0275fac=function(n){return new(n||e)(T(bt),T(la),T(Jg,8),T(vr))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})();const af={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},lf=/%COMP%/g,PP=new N("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function LC(e,t){return t.map(n=>n.replace(lf,e))}let VC=(()=>{class e{constructor(n,r,o,i,s,a,l,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestory=i,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=SC(a),this.defaultRenderer=new uf(n,s,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===yt.ShadowDom&&(r={...r,encapsulation:yt.Emulated});const o=this.getOrCreateRenderer(n,r);return o instanceof jC?o.applyToHost(n):o instanceof cf&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.doc,a=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,c=this.removeStylesOnCompDestory,d=this.platformIsServer;switch(r.encapsulation){case yt.Emulated:i=new jC(l,u,r,this.appId,c,s,a,d);break;case yt.ShadowDom:return new VP(l,u,n,r,s,a,this.nonce,d);default:i=new cf(l,u,r,c,s,a,d)}i.onDestroy=()=>o.delete(r.id),o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}}return e.\u0275fac=function(n){return new(n||e)(T(xC),T(FC),T(la),T(PP),T(bt),T(vr),T(ge),T(Jg))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})();class uf{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(af[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(HC(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(HC(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?this.doc.querySelector(t):t;if(!r)throw new C(5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=af[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=af[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(dt.DashCase|dt.Important)?t.style.setProperty(n,r,o&dt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&dt.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){if("string"==typeof t&&!(t=Qn().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if("__ngUnwrap__"===n)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))&&(n.preventDefault(),n.returnValue=!1)}}}function HC(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class VP extends uf{constructor(t,n,r,o,i,s,a,l){super(t,i,s,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=LC(o.id,o.styles);for(const c of u){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=c,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class cf extends uf{constructor(t,n,r,o,i,s,a,l){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=l?LC(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class jC extends cf{constructor(t,n,r,o,i,s,a,l){const u=o+"-"+r.id;super(t,n,r,i,s,a,l,u),this.contentAttr=function FP(e){return"_ngcontent-%COMP%".replace(lf,e)}(u),this.hostAttr=function kP(e){return"_nghost-%COMP%".replace(lf,e)}(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let HP=(()=>{class e extends PC{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return e.\u0275fac=function(n){return new(n||e)(T(bt))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})();const $C=["alt","control","meta","shift"],jP={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},$P={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let BP=(()=>{class e extends PC{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Qn().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),$C.forEach(u=>{const c=r.indexOf(u);c>-1&&(r.splice(c,1),s+=u+".")}),s+=i,0!=r.length||0===i.length)return null;const l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(n,r){let o=jP[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),$C.forEach(s=>{s!==o&&(0,$P[s])(n)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(T(bt))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})();const WP=PD(DO,"browser",[{provide:vr,useValue:"browser"},{provide:Kg,useValue:function UP(){nf.makeCurrent()},multi:!0},{provide:bt,useFactory:function GP(){return function WS(e){Uu=e}(document),document},deps:[]}]),qP=new N(""),zC=[{provide:La,useClass:class AP{addToWindow(t){ce.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new C(5103,!1);return i},ce.getAllAngularTestabilities=()=>t.getAllTestabilities(),ce.getAllAngularRootElements=()=>t.getAllRootElements(),ce.frameworkStabilizers||(ce.frameworkStabilizers=[]),ce.frameworkStabilizers.push(r=>{const o=ce.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(l){s=s||l,i--,0==i&&r(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?Qn().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:AD,useClass:wd,deps:[ge,Ed,La]},{provide:wd,useClass:wd,deps:[ge,Ed,La]}],GC=[{provide:ec,useValue:"root"},{provide:Dr,useFactory:function zP(){return new Dr},deps:[]},{provide:rf,useClass:HP,multi:!0,deps:[bt,ge,vr]},{provide:rf,useClass:BP,multi:!0,deps:[bt]},VC,FC,xC,{provide:am,useExisting:VC},{provide:TC,useClass:NP,deps:[]},[]];let ZP=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:la,useValue:n.appId}]}}}return e.\u0275fac=function(n){return new(n||e)(T(qP,12))},e.\u0275mod=Lt({type:e}),e.\u0275inj=At({providers:[...GC,...zC],imports:[qx,CO]}),e})(),WC=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return e.\u0275fac=function(n){return new(n||e)(T(bt))},e.\u0275prov=R({token:e,factory:function(n){let r=null;return r=n?new n:function QP(){return new WC(T(bt))}(),r},providedIn:"root"}),e})();typeof window<"u"&&window;const{isArray:tF}=Array,{getPrototypeOf:nF,prototype:rF,keys:oF}=Object;function QC(e){if(1===e.length){const t=e[0];if(tF(t))return{args:t,keys:null};if(function iF(e){return e&&"object"==typeof e&&nF(e)===rF}(t)){const n=oF(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}const{isArray:sF}=Array;function XC(e){return ee(t=>function aF(e,t){return sF(t)?e(...t):e(t)}(e,t))}function KC(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}let JC=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return e.\u0275fac=function(n){return new(n||e)(v(An),v(_t))},e.\u0275dir=H({type:e}),e})(),Mr=(()=>{class e extends JC{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ge(e)))(r||e)}}(),e.\u0275dir=H({type:e,features:[se]}),e})();const pn=new N("NgValueAccessor"),uF={provide:pn,useExisting:ue(()=>ff),multi:!0};let ff=(()=>{class e extends Mr{writeValue(n){this.setProperty("checked",n)}}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ge(e)))(r||e)}}(),e.\u0275dir=H({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,r){1&n&&B("change",function(i){return r.onChange(i.target.checked)})("blur",function(){return r.onTouched()})},features:[pe([uF]),se]}),e})();const cF={provide:pn,useExisting:ue(()=>kn),multi:!0},fF=new N("CompositionEventMode");let kn=(()=>{class e extends JC{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function dF(){const e=Qn()?Qn().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",n??"")}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return e.\u0275fac=function(n){return new(n||e)(v(An),v(_t),v(fF,8))},e.\u0275dir=H({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){1&n&&B("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},features:[pe([cF]),se]}),e})();const Qe=new N("NgValidators"),tr=new N("NgAsyncValidators");function u_(e){return null!=e}function c_(e){return Ii(e)?Oe(e):e}function d_(e){let t={};return e.forEach(n=>{t=null!=n?{...t,...n}:t}),0===Object.keys(t).length?null:t}function f_(e,t){return t.map(n=>n(e))}function h_(e){return e.map(t=>function pF(e){return!e.validate}(t)?t:n=>t.validate(n))}function hf(e){return null!=e?function p_(e){if(!e)return null;const t=e.filter(u_);return 0==t.length?null:function(n){return d_(f_(n,t))}}(h_(e)):null}function pf(e){return null!=e?function g_(e){if(!e)return null;const t=e.filter(u_);return 0==t.length?null:function(n){return function lF(...e){const t=Rh(e),{args:n,keys:r}=QC(e),o=new Ee(i=>{const{length:s}=n;if(!s)return void i.complete();const a=new Array(s);let l=s,u=s;for(let c=0;c{d||(d=!0,u--),a[c]=f},()=>l--,void 0,()=>{(!l||!d)&&(u||i.next(r?KC(r,a):a),i.complete())}))}});return t?o.pipe(XC(t)):o}(f_(n,t).map(c_)).pipe(ee(d_))}}(h_(e)):null}function m_(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function gf(e){return e?Array.isArray(e)?e:[e]:[]}function rl(e,t){return Array.isArray(e)?e.includes(t):e===t}function D_(e,t){const n=gf(t);return gf(e).forEach(o=>{rl(n,o)||n.push(o)}),n}function C_(e,t){return gf(t).filter(n=>!rl(e,n))}class __{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=hf(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=pf(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return!!this.control&&this.control.hasError(t,n)}getError(t,n){return this.control?this.control.getError(t,n):null}}class rt extends __{get formDirective(){return null}get path(){return null}}class nr extends __{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class w_{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Sr=(()=>{class e extends w_{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(v(nr,2))},e.\u0275dir=H({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&Ta("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[se]}),e})(),E_=(()=>{class e extends w_{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(v(rt,10))},e.\u0275dir=H({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){2&n&&Ta("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[se]}),e})();const zi="VALID",il="INVALID",So="PENDING",Gi="DISABLED";function vf(e){return(sl(e)?e.validators:e)||null}function Df(e,t){return(sl(t)?t.asyncValidators:e)||null}function sl(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class I_{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===zi}get invalid(){return this.status===il}get pending(){return this.status==So}get disabled(){return this.status===Gi}get enabled(){return this.status!==Gi}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(D_(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(D_(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(C_(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(C_(t,this._rawAsyncValidators))}hasValidator(t){return rl(this._rawValidators,t)}hasAsyncValidator(t){return rl(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=So,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Gi,this.errors=null,this._forEachChild(r=>{r.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=zi,this._forEachChild(r=>{r.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===zi||this.status===So)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Gi:zi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=So,this._hasOwnPendingAsyncValidator=!0;const n=c_(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}get(t){let n=t;return null==n||(Array.isArray(n)||(n=n.split(".")),0===n.length)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new we,this.statusChanges=new we}_calculateStatus(){return this._allControlsDisabled()?Gi:this.errors?il:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(So)?So:this._anyControlsHaveStatus(il)?il:zi}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){sl(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function vF(e){return Array.isArray(e)?hf(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function DF(e){return Array.isArray(e)?pf(e):e||null}(this._rawAsyncValidators)}}class Cf extends I_{constructor(t,n,r){super(vf(n),Df(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){(function S_(e,t,n){e._forEachChild((r,o)=>{if(void 0===n[o])throw new C(1002,"")})})(this,0,t),Object.keys(t).forEach(r=>{(function M_(e,t,n){const r=e.controls;if(!(t?Object.keys(r):r).length)throw new C(1e3,"");if(!r[n])throw new C(1001,"")})(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(Object.keys(t).forEach(r=>{const o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}const Io=new N("CallSetDisabledState",{providedIn:"root",factory:()=>al}),al="always";function Wi(e,t,n=al){_f(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===n)&&t.valueAccessor.setDisabledState?.(e.disabled),function wF(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&T_(e,t)})}(e,t),function bF(e,t){const n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function EF(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&T_(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function _F(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function cl(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function _f(e,t){const n=function y_(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(m_(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=function v_(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(m_(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();cl(t._rawValidators,o),cl(t._rawAsyncValidators,o)}function T_(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}const AF={provide:rt,useExisting:ue(()=>fl)},qi=(()=>Promise.resolve())();let fl=(()=>{class e extends rt{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new we,this.form=new Cf({},hf(n),pf(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){qi.then(()=>{const r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),Wi(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){qi.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){qi.then(()=>{const r=this._findContainer(n.path),o=new Cf({});(function A_(e,t){_f(e,t)})(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){qi.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){qi.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,function N_(e,t){e._syncPendingControls(),t.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(n),"dialog"===n?.target?.method}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}}return e.\u0275fac=function(n){return new(n||e)(v(Qe,10),v(tr,10),v(Io,8))},e.\u0275dir=H({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){1&n&&B("submit",function(i){return r.onSubmit(i)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[pe([AF]),se]}),e})();function R_(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function O_(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const x_=class extends I_{constructor(t=null,n,r){super(vf(n),Df(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),sl(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=O_(t)?t.value:t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){R_(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){R_(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){O_(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},OF={provide:nr,useExisting:ue(()=>rr)},k_=(()=>Promise.resolve())();let rr=(()=>{class e extends nr{constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new x_,this._registered=!1,this.name="",this.update=new we,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function bf(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===kn?n=i:function IF(e){return Object.getPrototypeOf(e.constructor)===Mr}(i)?r=i:o=i}),o||r||n||null}(0,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){const r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),function Ef(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Wi(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(n){k_.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=0!==r&&Mo(r);k_.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function ll(e,t){return[...t.path,e]}(n,this._parent):[n]}}return e.\u0275fac=function(n){return new(n||e)(v(rt,9),v(Qe,10),v(tr,10),v(pn,10),v(Ha,8),v(Io,8))},e.\u0275dir=H({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[pe([OF]),se,Nt]}),e})(),L_=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=H({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})(),H_=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Lt({type:e}),e.\u0275inj=At({}),e})(),n1=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Lt({type:e}),e.\u0275inj=At({imports:[H_]}),e})(),o1=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Io,useValue:n.callSetDisabledState??al}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Lt({type:e}),e.\u0275inj=At({imports:[n1]}),e})();function P(...e){return Oe(e,Uo(e))}function To(e,t){return le(t)?Be(e,t,1):Be(e,1)}function Ln(e,t){return $e((n,r)=>{let o=0;n.subscribe(He(r,i=>e.call(t,i,o++)&&r.next(i)))})}function gn(e,t){return $e((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(He(r,l=>{o?.unsubscribe();let u=0;const c=i++;It(e(l,c)).subscribe(o=He(r,d=>r.next(t?t(l,d,c,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}class hl{}class Rf{}class Xe{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.entries(t).forEach(([n,r])=>{let o;if(o="string"==typeof r?[r]:"number"==typeof r?[r.toString()]:r.map(i=>i.toString()),o.length>0){const i=n.toLowerCase();this.headers.set(i,o),this.maybeSetNormalizedName(n,i)}})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof Xe?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){const n=new Xe;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof Xe?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){const n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,n);const o=("a"===t.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=t.value;if(i){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}}class i1{encodeKey(t){return rw(t)}encodeValue(t){return rw(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const a1=/%(\d[a-f0-9])/gi,l1={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function rw(e){return encodeURIComponent(e).replace(a1,(t,n)=>l1[n]??t)}function pl(e){return`${e}`}class or{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new i1,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function s1(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],l=n.get(s)||[];l.push(a),n.set(s,l)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{const r=t.fromObject[n],o=Array.isArray(r)?r.map(pl):[pl(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){const n=[];return Object.keys(t).forEach(r=>{const o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const n=new or({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const n=("a"===t.op?this.map.get(t.param):void 0)||[];n.push(pl(t.value)),this.map.set(t.param,n);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const o=r.indexOf(pl(t.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class u1{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function ow(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function iw(e){return typeof Blob<"u"&&e instanceof Blob}function sw(e){return typeof FormData<"u"&&e instanceof FormData}class Zi{constructor(t,n,r,o){let i;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function c1(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new Xe),this.context||(this.context=new u1),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":ad.set(f,t.setHeaders[f]),l)),t.setParams&&(u=Object.keys(t.setParams).reduce((d,f)=>d.set(f,t.setParams[f]),u)),new Zi(n,r,i,{params:u,headers:l,context:c,reportProgress:a,responseType:o,withCredentials:s})}}var Re=(()=>((Re=Re||{})[Re.Sent=0]="Sent",Re[Re.UploadProgress=1]="UploadProgress",Re[Re.ResponseHeader=2]="ResponseHeader",Re[Re.DownloadProgress=3]="DownloadProgress",Re[Re.Response=4]="Response",Re[Re.User=5]="User",Re))();class Of{constructor(t,n=200,r="OK"){this.headers=t.headers||new Xe,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class xf extends Of{constructor(t={}){super(t),this.type=Re.ResponseHeader}clone(t={}){return new xf({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Ao extends Of{constructor(t={}){super(t),this.type=Re.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Ao({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class aw extends Of{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Pf(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Tr=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof Zi)i=n;else{let l,u;l=o.headers instanceof Xe?o.headers:new Xe(o.headers),o.params&&(u=o.params instanceof or?o.params:new or({fromObject:o.params})),i=new Zi(n,r,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=P(i).pipe(To(l=>this.handler.handle(l)));if(n instanceof Zi||"events"===o.observe)return s;const a=s.pipe(Ln(l=>l instanceof Ao));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(ee(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(ee(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(ee(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ee(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new or).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Pf(o,r))}post(n,r,o={}){return this.request("POST",n,Pf(o,r))}put(n,r,o={}){return this.request("PUT",n,Pf(o,r))}}return e.\u0275fac=function(n){return new(n||e)(T(hl))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})();function lw(e,t){return t(e)}function f1(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}const uw=new N(""),Yi=new N(""),cw=new N("");function p1(){let e=null;return(t,n)=>(null===e&&(e=(A(uw,{optional:!0})??[]).reduceRight(f1,lw)),e(t,n))}let dw=(()=>{class e extends hl{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(Yi),...this.injector.get(cw,[])]));this.chain=r.reduceRight((o,i)=>function h1(e,t,n){return(r,o)=>n.runInContext(()=>t(r,i=>e(i,o)))}(o,i,this.injector),lw)}return this.chain(n,r=>this.backend.handle(r))}}return e.\u0275fac=function(n){return new(n||e)(T(Rf),T(sn))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})();const v1=/^\)\]\}',?\n/;let hw=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");const r=this.xhrFactory;return(r.\u0275loadImpl?Oe(r.\u0275loadImpl()):P(null)).pipe(gn(()=>new Ee(i=>{const s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((g,b)=>s.setRequestHeader(g,b.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const g=n.detectContentTypeHeader();null!==g&&s.setRequestHeader("Content-Type",g)}if(n.responseType){const g=n.responseType.toLowerCase();s.responseType="json"!==g?g:"text"}const a=n.serializeBody();let l=null;const u=()=>{if(null!==l)return l;const g=s.statusText||"OK",b=new Xe(s.getAllResponseHeaders()),x=function D1(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||n.url;return l=new xf({headers:b,status:s.status,statusText:g,url:x}),l},c=()=>{let{headers:g,status:b,statusText:x,url:Z}=u(),fe=null;204!==b&&(fe=typeof s.response>"u"?s.responseText:s.response),0===b&&(b=fe?200:0);let Ho=b>=200&&b<300;if("json"===n.responseType&&"string"==typeof fe){const SV=fe;fe=fe.replace(v1,"");try{fe=""!==fe?JSON.parse(fe):null}catch(IV){fe=SV,Ho&&(Ho=!1,fe={error:IV,text:fe})}}Ho?(i.next(new Ao({body:fe,headers:g,status:b,statusText:x,url:Z||void 0})),i.complete()):i.error(new aw({error:fe,headers:g,status:b,statusText:x,url:Z||void 0}))},d=g=>{const{url:b}=u(),x=new aw({error:g,status:s.status||0,statusText:s.statusText||"Unknown Error",url:b||void 0});i.error(x)};let f=!1;const h=g=>{f||(i.next(u()),f=!0);let b={type:Re.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(b.total=g.total),"text"===n.responseType&&s.responseText&&(b.partialText=s.responseText),i.next(b)},p=g=>{let b={type:Re.UploadProgress,loaded:g.loaded};g.lengthComputable&&(b.total=g.total),i.next(b)};let m;s.addEventListener("load",c),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",h),null!==a&&s.upload&&s.upload.addEventListener("progress",p));const y=()=>{m??=function _1(){const e=setTimeout(()=>{},C1);return()=>clearTimeout(e)}()},w=()=>{m?.()};return s.addEventListener("loadstart",y),s.addEventListener("loadend",w),s.send(a),i.next({type:Re.Sent}),()=>{s.removeEventListener("loadstart",y),s.removeEventListener("loadend",w),s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",c),s.removeEventListener("timeout",d),m?.(),n.reportProgress&&(s.removeEventListener("progress",h),null!==a&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}}return e.\u0275fac=function(n){return new(n||e)(T(TC))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})();const C1=2147483647,Ff=new N("XSRF_ENABLED"),pw=new N("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),gw=new N("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class mw{}let b1=(()=>{class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=vC(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(T(bt),T(vr),T(pw))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})();function M1(e,t){const n=e.url.toLowerCase();if(!A(Ff)||"GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t(e);const r=A(mw).getToken(),o=A(gw);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var Se=(()=>((Se=Se||{})[Se.Interceptors=0]="Interceptors",Se[Se.LegacyInterceptors=1]="LegacyInterceptors",Se[Se.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Se[Se.NoXsrfProtection=3]="NoXsrfProtection",Se[Se.JsonpSupport=4]="JsonpSupport",Se[Se.RequestsMadeViaParent=5]="RequestsMadeViaParent",Se))();function No(e,t){return{\u0275kind:e,\u0275providers:t}}function S1(...e){const t=[Tr,hw,dw,{provide:hl,useExisting:dw},{provide:Rf,useExisting:hw},{provide:Yi,useValue:M1,multi:!0},{provide:Ff,useValue:!0},{provide:mw,useClass:b1}];for(const n of e)t.push(...n.\u0275providers);return function Qu(e){return{\u0275providers:e}}(t)}const yw=new N("LEGACY_INTERCEPTOR_FN");let T1=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Lt({type:e}),e.\u0275inj=At({providers:[S1(No(Se.LegacyInterceptors,[{provide:yw,useFactory:p1},{provide:Yi,useExisting:yw,multi:!0}]))]}),e})();function ne(e,t,n){const r=le(e)||t||n?{next:e,error:t,complete:n}:e;return r?$e((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(He(i,l=>{var u;null===(u=r.next)||void 0===u||u.call(r,l),i.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),i.complete()},l=>{var u;a=!1,null===(u=r.error)||void 0===u||u.call(r,l),i.error(l)},()=>{var l,u;a&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(u=r.finalize)||void 0===u||u.call(r)}))}):lr}function De(e){return $e((t,n)=>{let i,r=null,o=!1;r=t.subscribe(He(n,void 0,void 0,s=>{i=It(e(s,De(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}const Ar_restServerUrl="https://tds.truyen.network";let Nr=(()=>{class e{constructor(){this.messages=[]}add(n){this.messages.push((new Date).toLocaleTimeString()+") "+n)}clear(){this.messages=[]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class mn{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Xe({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),P(n))}log(t){this.appMessageService.add(`ChatMessagesService: ${t}`)}getChatMessages(){return this.http.get(mn.REST_URL,this.httpOptions).pipe(ne(t=>this.log(`fetched ${t.length} messages`)),De(this.handleError("getChatMessages",[])))}addChatMessage(t,n){return this.http.post(mn.REST_URL,{author:t,text:n},this.httpOptions).pipe(ne(o=>this.log(`added message w/ id=${o.id}`)),De(this.handleError("addChatMessage")))}}mn.REST_URL=Ar_restServerUrl+"/api/chat",mn.\u0275fac=function(t){return new(t||mn)(T(Tr),T(Nr))},mn.\u0275prov=R({token:mn,factory:mn.\u0275fac,providedIn:"root"});class qt extends Cn{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function kf(...e){const t=Uo(e),n=Rh(e),{args:r,keys:o}=QC(e);if(0===r.length)return Oe([],t);const i=new Ee(function F1(e,t,n=lr){return r=>{vw(t,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let l=0;l{const u=Oe(e[l],t);let c=!1;u.subscribe(He(r,d=>{i[l]=d,c||(c=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,o?s=>KC(o,s):lr));return n?i.pipe(XC(n)):i}function vw(e,t,n){e?_n(n,e,t):t()}const gl=jo(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Lf(...e){return function k1(){return kr(1)}()(Oe(e,Uo(e)))}function Dw(e){return new Ee(t=>{It(e()).subscribe(t)})}function Xi(e,t){const n=le(e)?e:()=>e,r=o=>o.error(n());return new Ee(t?o=>t.schedule(r,0,o):r)}function Vf(){return $e((e,t)=>{let n=null;e._refCount++;const r=He(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(n=null);const o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}class Cw extends Ee{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,yh(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new St;const n=this.getSubject();t.add(this.source.subscribe(He(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=St.EMPTY)}return t}refCount(){return Vf()(this)}}function Ro(e){return e<=0?()=>Xt:$e((t,n)=>{let r=0;t.subscribe(He(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function ml(e){return $e((t,n)=>{let r=!1;t.subscribe(He(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function _w(e=V1){return $e((t,n)=>{let r=!1;t.subscribe(He(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function V1(){return new gl}function Rr(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Ln((o,i)=>e(o,i,r)):lr,Ro(1),n?ml(t):_w(()=>new gl))}function Hf(e){return e<=0?()=>Xt:$e((t,n)=>{let r=[];t.subscribe(He(n,o=>{r.push(o),e{for(const o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function jf(e){return $e((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}const W="primary",Ki=Symbol("RouteTitle");class U1{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function Oo(e){return new U1(e)}function z1(e,t,n){const r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.lengthr[i]===o)}return e===t}function Ew(e){return e.length>0?e[e.length-1]:null}function ir(e){return function P1(e){return!!e&&(e instanceof Ee||le(e.lift)&&le(e.subscribe))}(e)?e:Ii(e)?Oe(Promise.resolve(e)):P(e)}const W1={exact:function Sw(e,t,n){if(!Or(e.segments,t.segments)||!yl(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!Sw(e.children[r],t.children[r],n))return!1;return!0},subset:Iw},bw={exact:function q1(e,t){return yn(e,t)},subset:function Z1(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>ww(e[n],t[n]))},ignored:()=>!0};function Mw(e,t,n){return W1[n.paths](e.root,t.root,n.matrixParams)&&bw[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function Iw(e,t,n){return Tw(e,t,t.segments,n)}function Tw(e,t,n,r){if(e.segments.length>n.length){const o=e.segments.slice(0,n.length);return!(!Or(o,n)||t.hasChildren()||!yl(o,n,r))}if(e.segments.length===n.length){if(!Or(e.segments,n)||!yl(e.segments,n,r))return!1;for(const o in t.children)if(!e.children[o]||!Iw(e.children[o],t.children[o],r))return!1;return!0}{const o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!!(Or(e.segments,o)&&yl(e.segments,o,r)&&e.children[W])&&Tw(e.children[W],t,i,r)}}function yl(e,t,n){return t.every((r,o)=>bw[n](e[o].parameters,r.parameters))}class xo{constructor(t=new ae([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Oo(this.queryParams)),this._queryParamMap}toString(){return X1.serialize(this)}}class ae{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vl(this)}}class Ji{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=Oo(this.parameters)),this._parameterMap}toString(){return Rw(this)}}function Or(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let es=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:function(){return new $f},providedIn:"root"}),e})();class $f{parse(t){const n=new lk(t);return new xo(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${ts(t.root,!0)}`,r=function ek(e){const t=Object.keys(e).map(n=>{const r=e[n];return Array.isArray(r)?r.map(o=>`${Dl(n)}=${Dl(o)}`).join("&"):`${Dl(n)}=${Dl(r)}`}).filter(n=>!!n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function K1(e){return encodeURI(e)}(t.fragment)}`:""}`}}const X1=new $f;function vl(e){return e.segments.map(t=>Rw(t)).join("/")}function ts(e,t){if(!e.hasChildren())return vl(e);if(t){const n=e.children[W]?ts(e.children[W],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==W&&r.push(`${o}:${ts(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function Q1(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===W&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==W&&(n=n.concat(t(o,r)))}),n}(e,(r,o)=>o===W?[ts(e.children[W],!1)]:[`${o}:${ts(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[W]?`${vl(e)}/${n[0]}`:`${vl(e)}/(${n.join("//")})`}}function Aw(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Dl(e){return Aw(e).replace(/%3B/gi,";")}function Bf(e){return Aw(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Cl(e){return decodeURIComponent(e)}function Nw(e){return Cl(e.replace(/\+/g,"%20"))}function Rw(e){return`${Bf(e.path)}${function J1(e){return Object.keys(e).map(t=>`;${Bf(t)}=${Bf(e[t])}`).join("")}(e.parameters)}`}const tk=/^[^\/()?;#]+/;function Uf(e){const t=e.match(tk);return t?t[0]:""}const nk=/^[^\/()?;=#]+/,ok=/^[^=?&#]+/,sk=/^[^&#]+/;class lk{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ae([],{}):new ae([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[W]=new ae(t,n)),r}parseSegment(){const t=Uf(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new C(4009,!1);return this.capture(t),new Ji(Cl(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=function rk(e){const t=e.match(nk);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=Uf(this.remaining);o&&(r=o,this.capture(r))}t[Cl(n)]=Cl(r)}parseQueryParam(t){const n=function ik(e){const t=e.match(ok);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function ak(e){const t=e.match(sk);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=Nw(n),i=Nw(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Uf(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new C(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=W);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[W]:new ae([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new C(4011,!1)}}function Ow(e){return e.segments.length>0?new ae([],{[W]:e}):e}function xw(e){const t={};for(const r of Object.keys(e.children)){const i=xw(e.children[r]);if(r===W&&0===i.segments.length&&i.hasChildren())for(const[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}return function uk(e){if(1===e.numberOfChildren&&e.children[W]){const t=e.children[W];return new ae(e.segments.concat(t.segments),t.children)}return e}(new ae(e.segments,t))}function xr(e){return e instanceof xo}function Pw(e){let t;const o=Ow(function n(i){const s={};for(const l of i.children){const u=n(l);s[l.outlet]=u}const a=new ae(i.url,s);return i===e&&(t=a),a}(e.root));return t??o}function Fw(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(0===t.length)return zf(o,o,o,n,r);const i=function dk(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new Lw(!0,0,e);let t=0,n=!1;const r=e.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return Object.entries(i.outlets).forEach(([l,u])=>{a[l]="string"==typeof u?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?n=!0:".."===a?t++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new Lw(n,t,r)}(t);if(i.toRoot())return zf(o,o,new ae([],{}),n,r);const s=function fk(e,t,n){if(e.isAbsolute)return new wl(t,!0,0);if(!n)return new wl(t,!1,NaN);if(null===n.parent)return new wl(n,!0,0);const r=_l(e.commands[0])?0:1;return function hk(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new C(4005,!1);o=r.segments.length}return new wl(r,!1,o-i)}(n,n.segments.length-1+r,e.numberOfDoubleDots)}(i,o,e),a=s.processChildren?rs(s.segmentGroup,s.index,i.commands):Vw(s.segmentGroup,s.index,i.commands);return zf(o,s.segmentGroup,a,n,r)}function _l(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function ns(e){return"object"==typeof e&&null!=e&&e.outlets}function zf(e,t,n,r,o){let s,i={};r&&Object.entries(r).forEach(([l,u])=>{i[l]=Array.isArray(u)?u.map(c=>`${c}`):`${u}`}),s=e===t?n:kw(e,t,n);const a=Ow(xw(s));return new xo(a,i,o)}function kw(e,t,n){const r={};return Object.entries(e.children).forEach(([o,i])=>{r[o]=i===t?n:kw(i,t,n)}),new ae(e.segments,r)}class Lw{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&_l(r[0]))throw new C(4003,!1);const o=r.find(ns);if(o&&o!==Ew(r))throw new C(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class wl{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function Vw(e,t,n){if(e||(e=new ae([],{})),0===e.segments.length&&e.hasChildren())return rs(e,t,n);const r=function gk(e,t,n){let r=0,o=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;const s=e.segments[o],a=n[r];if(ns(a))break;const l=`${a}`,u=r0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!jw(l,u,s))return i;r+=2}else{if(!jw(l,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof s&&(s=[s]),null!==s&&(o[i]=Vw(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{void 0===r[i]&&(o[i]=s)}),new ae(e.segments,o)}}function Gf(e,t,n){const r=e.segments.slice(0,t);let o=0;for(;o{"string"==typeof r&&(r=[r]),null!==r&&(t[n]=Gf(new ae([],{}),0,r))}),t}function Hw(e){const t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function jw(e,t,n){return e==n.path&&yn(t,n.parameters)}const os="imperative";class vn{constructor(t,n){this.id=t,this.url=n}}class Wf extends vn{constructor(t,n,r="imperative",o=null){super(t,n),this.type=0,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Pr extends vn{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class El extends vn{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class is extends vn{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=16}}class qf extends vn{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class yk extends vn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class vk extends vn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Dk extends vn{constructor(t,n,r,o,i){super(t,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ck extends vn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _k extends vn{constructor(t,n,r,o){super(t,n),this.urlAfterRedirects=r,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class wk{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Ek{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class bk{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Mk{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Sk{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ik{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class $w{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Tk{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new ss,this.attachRef=null}}let ss=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){const r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Tk,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class Bw{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){const n=Zf(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=Zf(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=Yf(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return Yf(t,this._root).map(n=>n.value)}}function Zf(e,t){if(e===t.value)return t;for(const n of t.children){const r=Zf(e,n);if(r)return r}return null}function Yf(e,t){if(e===t.value)return[t];for(const n of t.children){const r=Yf(e,n);if(r.length)return r.unshift(t),r}return[]}class Vn{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function Po(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class Uw extends Bw{constructor(t,n){super(t),this.snapshot=n,Qf(this,t)}toString(){return this.snapshot.toString()}}function zw(e,t){const n=function Ak(e,t){const s=new bl([],{},{},"",{},W,t,null,{});return new Ww("",new Vn(s,[]))}(0,t),r=new qt([new Ji("",{})]),o=new qt({}),i=new qt({}),s=new qt({}),a=new qt(""),l=new Fr(r,o,s,a,i,W,t,n.root);return l.snapshot=n.root,new Uw(new Vn(l,[]),n)}class Fr{constructor(t,n,r,o,i,s,a,l){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(ee(u=>u[Ki]))??P(void 0),this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(ee(t=>Oo(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ee(t=>Oo(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Gw(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const o=n[r],i=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function Nk(e){return e.reduce((t,n)=>({params:{...t.params,...n.params},data:{...t.data,...n.data},resolve:{...n.data,...t.resolve,...n.routeConfig?.data,...n._resolvedData}}),{params:{},data:{},resolve:{}})}(n.slice(r))}class bl{get title(){return this.data?.[Ki]}constructor(t,n,r,o,i,s,a,l,u){this.url=t,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=l,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||(this._paramMap=Oo(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Oo(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ww extends Bw{constructor(t,n){super(n),this.url=t,Qf(this,n)}toString(){return qw(this._root)}}function Qf(e,t){t.value._routerState=e,t.children.forEach(n=>Qf(e,n))}function qw(e){const t=e.children.length>0?` { ${e.children.map(qw).join(", ")} } `:"";return`${e.value}${t}`}function Xf(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,yn(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),yn(t.params,n.params)||e.paramsSubject.next(n.params),function G1(e,t){if(e.length!==t.length)return!1;for(let n=0;nyn(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||Kf(e.parent,t.parent))}let Jf=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=W,this.activateEvents=new we,this.deactivateEvents=new we,this.attachEvents=new we,this.detachEvents=new we,this.parentContexts=A(ss),this.location=A(Ut),this.changeDetector=A(Ha),this.environmentInjector=A(sn),this.inputBinder=A(Ml,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){const{firstChange:r,previousValue:o}=n.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new C(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new C(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new C(4012,!1);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new C(4013,!1);this._activatedRoute=n;const o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new Rk(n,a,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:l,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=H({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Nt]}),e})();class Rk{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===Fr?this.route:t===ss?this.childContexts:this.parent.get(t,n)}}const Ml=new N("");let Zw=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){const{activatedRoute:r}=n,o=kf([r.queryParams,r.params,r.data]).pipe(gn(([i,s,a],l)=>(a={...i,...s,...a},0===l?P(a):Promise.resolve(a)))).subscribe(i=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(n);const s=function NO(e){const t=te(e);if(!t)return null;const n=new wi(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone}}}(r.component);if(s)for(const{templateName:a}of s.inputs)n.activatedComponentRef.setInput(a,i[a]);else this.unsubscribeFromRouteData(n)});this.outletDataSubscriptions.set(n,o)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})();function as(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const o=function xk(e,t,n){return t.children.map(r=>{for(const o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return as(e,r,o);return as(e,r)})}(e,t,n);return new Vn(r,o)}{if(e.shouldAttach(t.value)){const i=e.retrieve(t.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>as(e,a)),s}}const r=function Pk(e){return new Fr(new qt(e.url),new qt(e.params),new qt(e.queryParams),new qt(e.fragment),new qt(e.data),e.outlet,e.component,e)}(t.value),o=t.children.map(i=>as(e,i));return new Vn(r,o)}}const eh="ngNavigationCancelingError";function Yw(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=xr(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=Qw(!1,0,t);return o.url=n,o.navigationBehaviorOptions=r,o}function Qw(e,t,n){const r=new Error("NavigationCancelingError: "+(e||""));return r[eh]=!0,r.cancellationCode=t,n&&(r.url=n),r}function Xw(e){return Kw(e)&&xr(e.url)}function Kw(e){return e&&e[eh]}let Jw=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=kt({type:e,selectors:[["ng-component"]],standalone:!0,features:[Rv],decls:1,vars:0,template:function(n,r){1&n&&ke(0,"router-outlet")},dependencies:[Jf],encapsulation:2}),e})();function th(e){const t=e.children&&e.children.map(th),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==W&&(n.component=Jw),n}function Zt(e){return e.outlet||W}function ls(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}class $k{constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),Xf(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const o=Po(n);t.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Po(t);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Po(t);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(t,n,r){const o=Po(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Ik(i.value.snapshot))}),t.children.length&&this.forwardEvent(new Mk(t.value.snapshot))}activateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(Xf(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Xf(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=ls(o.snapshot);s.attachRef=null,s.route=o,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}}class eE{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Sl{constructor(t,n){this.component=t,this.route=n}}function Bk(e,t,n){const r=e._root;return us(r,t?t._root:null,n,[r.value])}function Fo(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function pb(e){return null!==Ds(e)}(e)?t.get(e):e:r}function us(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=Po(t);return e.children.forEach(s=>{(function zk(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const l=function Gk(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Or(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Or(e.url,t.url)||!yn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Kf(e,t)||!yn(e.queryParams,t.queryParams);default:return!Kf(e,t)}}(s,i,i.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new eE(r)):(i.data=s.data,i._resolvedData=s._resolvedData),us(e,t,i.component?a?a.children:null:n,r,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Sl(a.outlet.component,s))}else s&&cs(t,a,o),o.canActivateChecks.push(new eE(r)),us(e,null,i.component?a?a.children:null:n,r,o)})(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>cs(a,n.getContext(s),o)),o}function cs(e,t,n){const r=Po(e),o=e.value;Object.entries(r).forEach(([i,s])=>{cs(s,o.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new Sl(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}function ds(e){return"function"==typeof e}function tE(e){return e instanceof gl||"EmptyError"===e?.name}const Il=Symbol("INITIAL_VALUE");function ko(){return gn(e=>kf(e.map(t=>t.pipe(Ro(1),function L1(...e){const t=Uo(e);return $e((n,r)=>{(t?Lf(e,n,t):Lf(e,n)).subscribe(r)})}(Il)))).pipe(ee(t=>{for(const n of t)if(!0!==n){if(n===Il)return Il;if(!1===n||n instanceof xo)return n}return!0}),Ln(t=>t!==Il),Ro(1)))}function nE(e){return function xE(...e){return ph(e)}(ne(t=>{if(xr(t))throw Yw(0,t)}),ee(t=>!0===t))}class Tl{constructor(t){this.segmentGroup=t||null}}class rE{constructor(t){this.urlTree=t}}function Lo(e){return Xi(new Tl(e))}function oE(e){return Xi(new rE(e))}class dL{constructor(t,n){this.urlSerializer=t,this.urlTree=n}noMatchError(t){return new C(4002,!1)}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return P(r);if(o.numberOfChildren>1||!o.children[W])return Xi(new C(4e3,!1));o=o.children[W]}}applyRedirectCommands(t,n,r){return this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r)}applyRedirectCreateUrlTree(t,n,r,o){const i=this.createSegmentGroup(t,n.root,r,o);return new xo(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){const r={};return Object.entries(t).forEach(([o,i])=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){const i=this.createSegments(t,n.segments,r,o);let s={};return Object.entries(n.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(t,l,r,o)}),new ae(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path.startsWith(":")?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){const o=r[n.path.substring(1)];if(!o)throw new C(4001,!1);return o}findOrReturn(t,n){let r=0;for(const o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}}const nh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function fL(e,t,n,r,o){const i=rh(e,t,n);return i.matched?(r=function Fk(e,t){return e.providers&&!e._injector&&(e._injector=Kc(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,r),function lL(e,t,n,r){const o=t.canMatch;return o&&0!==o.length?P(o.map(s=>{const a=Fo(s,e);return ir(function Xk(e){return e&&ds(e.canMatch)}(a)?a.canMatch(t,n):e.runInContext(()=>a(t,n)))})).pipe(ko(),nE()):P(!0)}(r,t,n).pipe(ee(s=>!0===s?i:{...nh}))):P(i)}function rh(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...nh}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const o=(t.matcher||z1)(n,e,t);if(!o)return{...nh};const i={};Object.entries(o.posParams??{}).forEach(([a,l])=>{i[a]=l.path});const s=o.consumed.length>0?{...i,...o.consumed[o.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function iE(e,t,n,r){return n.length>0&&function gL(e,t,n){return n.some(r=>Al(e,t,r)&&Zt(r)!==W)}(e,n,r)?{segmentGroup:new ae(t,pL(r,new ae(n,e.children))),slicedSegments:[]}:0===n.length&&function mL(e,t,n){return n.some(r=>Al(e,t,r))}(e,n,r)?{segmentGroup:new ae(e.segments,hL(e,0,n,r,e.children)),slicedSegments:n}:{segmentGroup:new ae(e.segments,e.children),slicedSegments:n}}function hL(e,t,n,r,o){const i={};for(const s of r)if(Al(e,n,s)&&!o[Zt(s)]){const a=new ae([],{});i[Zt(s)]=a}return{...o,...i}}function pL(e,t){const n={};n[W]=t;for(const r of e)if(""===r.path&&Zt(r)!==W){const o=new ae([],{});n[Zt(r)]=o}return n}function Al(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}class CL{constructor(t,n,r,o,i,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new dL(this.urlSerializer,this.urlTree)}noMatchError(t){return new C(4002,!1)}recognize(){const t=iE(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,W).pipe(De(n=>{if(n instanceof rE)return this.allowRedirects=!1,this.urlTree=n.urlTree,this.match(n.urlTree);throw n instanceof Tl?this.noMatchError(n):n}),ee(n=>{const r=new bl([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},W,this.rootComponentType,null,{}),o=new Vn(r,n),i=new Ww("",o),s=function ck(e,t,n=null,r=null){return Fw(Pw(e),t,n,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(i._root),{state:i,tree:s}}))}match(t){return this.processSegmentGroup(this.injector,this.config,t.root,W).pipe(De(r=>{throw r instanceof Tl?this.noMatchError(r):r}))}inheritParamsAndData(t){const n=t.value,r=Gw(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(t,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(t,n,r):this.processSegment(t,n,r,r.segments,o,!0)}processChildren(t,n,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return Oe(o).pipe(To(i=>{const s=r.children[i],a=function Hk(e,t){const n=e.filter(r=>Zt(r)===t);return n.push(...e.filter(r=>Zt(r)!==t)),n}(n,i);return this.processSegmentGroup(t,a,s,i)}),function j1(e,t){return $e(function H1(e,t,n,r,o){return(i,s)=>{let a=n,l=t,u=0;i.subscribe(He(s,c=>{const d=u++;l=a?e(l,c,d):(a=!0,c),r&&s.next(l)},o&&(()=>{a&&s.next(l),s.complete()})))}}(e,t,arguments.length>=2,!0))}((i,s)=>(i.push(...s),i)),ml(null),function $1(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Ln((o,i)=>e(o,i,r)):lr,Hf(1),n?ml(t):_w(()=>new gl))}(),Be(i=>{if(null===i)return Lo(r);const s=sE(i);return function _L(e){e.sort((t,n)=>t.value.outlet===W?-1:n.value.outlet===W?1:t.value.outlet.localeCompare(n.value.outlet))}(s),P(s)}))}processSegment(t,n,r,o,i,s){return Oe(n).pipe(To(a=>this.processSegmentAgainstRoute(a._injector??t,n,a,r,o,i,s).pipe(De(l=>{if(l instanceof Tl)return P(null);throw l}))),Rr(a=>!!a),De(a=>{if(tE(a))return function vL(e,t,n){return 0===t.length&&!e.children[n]}(r,o,i)?P([]):Lo(r);throw a}))}processSegmentAgainstRoute(t,n,r,o,i,s,a){return function yL(e,t,n,r){return!!(Zt(e)===r||r!==W&&Al(t,n,e))&&("**"===e.path||rh(t,e,n).matched)}(r,o,i,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,o,r,i,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s):Lo(o):Lo(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o){const i=this.applyRedirects.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?oE(i):this.applyRedirects.lineralizeSegments(r,i).pipe(Be(s=>{const a=new ae(s,{});return this.processSegment(t,n,a,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){const{matched:a,consumedSegments:l,remainingSegments:u,positionalParamSegments:c}=rh(n,o,i);if(!a)return Lo(n);const d=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,c);return o.redirectTo.startsWith("/")?oE(d):this.applyRedirects.lineralizeSegments(o,d).pipe(Be(f=>this.processSegment(t,r,n,f.concat(u),s,!1)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a;if("**"===r.path){const l=o.length>0?Ew(o).parameters:{};a=P({snapshot:new bl(o,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,aE(r),Zt(r),r.component??r._loadedComponent??null,r,lE(r)),consumedSegments:[],remainingSegments:[]}),n.children={}}else a=fL(n,r,o,t).pipe(ee(({matched:l,consumedSegments:u,remainingSegments:c,parameters:d})=>l?{snapshot:new bl(u,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,aE(r),Zt(r),r.component??r._loadedComponent??null,r,lE(r)),consumedSegments:u,remainingSegments:c}:null));return a.pipe(gn(l=>null===l?Lo(n):this.getChildConfig(t=r._injector??t,r,o).pipe(gn(({routes:u})=>{const c=r._loadedInjector??t,{snapshot:d,consumedSegments:f,remainingSegments:h}=l,{segmentGroup:p,slicedSegments:m}=iE(n,f,h,u);if(0===m.length&&p.hasChildren())return this.processChildren(c,u,p).pipe(ee(w=>null===w?null:[new Vn(d,w)]));if(0===u.length&&0===m.length)return P([new Vn(d,[])]);const y=Zt(r)===i;return this.processSegment(c,u,p,m,y?W:i,!0).pipe(ee(w=>[new Vn(d,w)]))}))))}getChildConfig(t,n,r){return n.children?P({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?P({routes:n._loadedRoutes,injector:n._loadedInjector}):function aL(e,t,n,r){const o=t.canLoad;return void 0===o||0===o.length?P(!0):P(o.map(s=>{const a=Fo(s,e);return ir(function qk(e){return e&&ds(e.canLoad)}(a)?a.canLoad(t,n):e.runInContext(()=>a(t,n)))})).pipe(ko(),nE())}(t,n,r).pipe(Be(o=>o?this.configLoader.loadChildren(t,n).pipe(ne(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):function cL(e){return Xi(Qw(!1,3))}())):P({routes:[],injector:t})}}function wL(e){const t=e.value.routeConfig;return t&&""===t.path}function sE(e){const t=[],n=new Set;for(const r of e){if(!wL(r)){t.push(r);continue}const o=t.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),n.add(o)):t.push(r)}for(const r of n){const o=sE(r.children);t.push(new Vn(r.value,o))}return t.filter(r=>!n.has(r))}function aE(e){return e.data||{}}function lE(e){return e.resolve||{}}function uE(e){return"string"==typeof e.title||null===e.title}function oh(e){return gn(t=>{const n=e(t);return n?Oe(n).pipe(ee(()=>t)):P(t)})}const Vo=new N("ROUTES");let ih=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=A(_D)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return P(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=ir(n.loadComponent()).pipe(ee(cE),ne(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),jf(()=>{this.componentLoaders.delete(n)})),o=new Cw(r,()=>new Cn).pipe(Vf());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return P({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(ee(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,u;return Array.isArray(a)?u=a:(l=a.create(n).injector,u=l.get(Vo,[],k.Self|k.Optional).flat()),{routes:u.map(th),injector:l}}),jf(()=>{this.childrenLoaders.delete(r)})),s=new Cw(i,()=>new Cn).pipe(Vf());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(n){return ir(n()).pipe(ee(cE),Be(r=>r instanceof Av||Array.isArray(r)?P(r):Oe(this.compiler.compileModuleAsync(r))))}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function cE(e){return function AL(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let Nl=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new Cn,this.configLoader=A(ih),this.environmentInjector=A(sn),this.urlSerializer=A(es),this.rootContexts=A(ss),this.inputBindingEnabled=null!==A(Ml,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>P(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new Ek(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new wk(o))}complete(){this.transitions?.complete()}handleNavigationRequest(n){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...n,id:r})}setupNavigations(n){return this.transitions=new qt({id:0,currentUrlTree:n.currentUrlTree,currentRawUrl:n.currentUrlTree,extractedUrl:n.urlHandlingStrategy.extract(n.currentUrlTree),urlAfterRedirects:n.urlHandlingStrategy.extract(n.currentUrlTree),rawUrl:n.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:os,restoredState:null,currentSnapshot:n.routerState.snapshot,targetSnapshot:null,currentRouterState:n.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Ln(r=>0!==r.id),ee(r=>({...r,extractedUrl:n.urlHandlingStrategy.extract(r.rawUrl)})),gn(r=>{let o=!1,i=!1;return P(r).pipe(ne(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),gn(s=>{const a=n.browserUrlTree.toString(),l=!n.navigated||s.extractedUrl.toString()!==a||a!==n.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const c="";return this.events.next(new is(s.id,n.serializeUrl(r.rawUrl),c,0)),n.rawUrlTree=s.rawUrl,s.resolve(null),Xt}if(n.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return dE(s.source)&&(n.browserUrlTree=s.extractedUrl),P(s).pipe(gn(c=>{const d=this.transitions?.getValue();return this.events.next(new Wf(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),d!==this.transitions?.getValue()?Xt:Promise.resolve(c)}),function EL(e,t,n,r,o,i){return Be(s=>function DL(e,t,n,r,o,i,s="emptyOnly"){return new CL(e,t,n,r,o,s,i).recognize()}(e,t,n,r,s.extractedUrl,o,i).pipe(ee(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),ne(c=>{if(r.targetSnapshot=c.targetSnapshot,r.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},"eager"===n.urlUpdateStrategy){if(!c.extras.skipLocationChange){const f=n.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl);n.setBrowserUrl(f,c)}n.browserUrlTree=c.urlAfterRedirects}const d=new yk(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}));if(l&&n.urlHandlingStrategy.shouldProcessUrl(n.rawUrlTree)){const{id:c,extractedUrl:d,source:f,restoredState:h,extras:p}=s,m=new Wf(c,this.urlSerializer.serialize(d),f,h);this.events.next(m);const y=zw(0,this.rootComponentType).snapshot;return P(r={...s,targetSnapshot:y,urlAfterRedirects:d,extras:{...p,skipLocationChange:!1,replaceUrl:!1}})}{const c="";return this.events.next(new is(s.id,n.serializeUrl(r.extractedUrl),c,1)),n.rawUrlTree=s.rawUrl,s.resolve(null),Xt}}),ne(s=>{const a=new vk(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),ee(s=>r={...s,guards:Bk(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function Jk(e,t){return Be(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?P({...n,guardsResult:!0}):function eL(e,t,n,r){return Oe(e).pipe(Be(o=>function sL(e,t,n,r,o){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?P(i.map(a=>{const l=ls(t)??o,u=Fo(a,l);return ir(function Qk(e){return e&&ds(e.canDeactivate)}(u)?u.canDeactivate(e,t,n,r):l.runInContext(()=>u(e,t,n,r))).pipe(Rr())})).pipe(ko()):P(!0)}(o.component,o.route,n,t,r)),Rr(o=>!0!==o,!0))}(s,r,o,e).pipe(Be(a=>a&&function Wk(e){return"boolean"==typeof e}(a)?function tL(e,t,n,r){return Oe(t).pipe(To(o=>Lf(function rL(e,t){return null!==e&&t&&t(new bk(e)),P(!0)}(o.route.parent,r),function nL(e,t){return null!==e&&t&&t(new Sk(e)),P(!0)}(o.route,r),function iL(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>function Uk(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>Dw(()=>P(s.guards.map(l=>{const u=ls(s.node)??n,c=Fo(l,u);return ir(function Yk(e){return e&&ds(e.canActivateChild)}(c)?c.canActivateChild(r,e):u.runInContext(()=>c(r,e))).pipe(Rr())})).pipe(ko())));return P(i).pipe(ko())}(e,o.path,n),function oL(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return P(!0);const o=r.map(i=>Dw(()=>{const s=ls(t)??n,a=Fo(i,s);return ir(function Zk(e){return e&&ds(e.canActivate)}(a)?a.canActivate(t,e):s.runInContext(()=>a(t,e))).pipe(Rr())}));return P(o).pipe(ko())}(e,o.route,n))),Rr(o=>!0!==o,!0))}(r,i,e,t):P(a)),ee(a=>({...n,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),ne(s=>{if(r.guardsResult=s.guardsResult,xr(s.guardsResult))throw Yw(0,s.guardsResult);const a=new Dk(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),Ln(s=>!!s.guardsResult||(n.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),oh(s=>{if(s.guards.canActivateChecks.length)return P(s).pipe(ne(a=>{const l=new Ck(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),gn(a=>{let l=!1;return P(a).pipe(function bL(e,t){return Be(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return P(n);let i=0;return Oe(o).pipe(To(s=>function ML(e,t,n,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!uE(o)&&(i[Ki]=o.title),function SL(e,t,n,r){const o=function IL(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===o.length)return P({});const i={};return Oe(o).pipe(Be(s=>function TL(e,t,n,r){const o=ls(t)??r,i=Fo(e,o);return ir(i.resolve?i.resolve(t,n):o.runInContext(()=>i(t,n)))}(e[s],t,n,r).pipe(Rr(),ne(a=>{i[s]=a}))),Hf(1),function B1(e){return ee(()=>e)}(i),De(s=>tE(s)?Xt:Xi(s)))}(i,e,t,r).pipe(ee(s=>(e._resolvedData=s,e.data=Gw(e,n).resolve,o&&uE(o)&&(e.data[Ki]=o.title),null)))}(s.route,r,e,t)),ne(()=>i++),Hf(1),Be(s=>i===o.length?P(n):Xt))})}(n.paramsInheritanceStrategy,this.environmentInjector),ne({next:()=>l=!0,complete:()=>{l||(n.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),ne(a=>{const l=new _k(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),oh(s=>{const a=l=>{const u=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(l.routeConfig).pipe(ne(c=>{l.component=c}),ee(()=>{})));for(const c of l.children)u.push(...a(c));return u};return kf(a(s.targetSnapshot.root)).pipe(ml(),Ro(1))}),oh(()=>this.afterPreactivation()),ee(s=>{const a=function Ok(e,t,n){const r=as(e,t._root,n?n._root:void 0);return new Uw(r,t)}(n.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),ne(s=>{n.currentUrlTree=s.urlAfterRedirects,n.rawUrlTree=n.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),n.routerState=s.targetRouterState,"deferred"===n.urlUpdateStrategy&&(s.extras.skipLocationChange||n.setBrowserUrl(n.rawUrlTree,s),n.browserUrlTree=s.urlAfterRedirects)}),((e,t,n,r)=>ee(o=>(new $k(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)))(this.rootContexts,n.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),Ro(1),ne({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,n.navigated=!0,this.events.next(new Pr(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(n.currentUrlTree))),n.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),jf(()=>{o||i||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),De(s=>{if(i=!0,Kw(s)){Xw(s)||(n.navigated=!0,n.restoreHistory(r,!0));const a=new El(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),Xw(s)){const l=n.urlHandlingStrategy.merge(s.url,n.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===n.urlUpdateStrategy||dE(r.source)};n.scheduleNavigation(l,os,null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{n.restoreHistory(r,!0);const a=new qf(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);this.events.next(a);try{r.resolve(n.errorHandler(s))}catch(l){r.reject(l)}}return Xt}))}))}cancelNavigationTransition(n,r,o){const i=new El(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function dE(e){return e!==os}let fE=(()=>{class e{buildTitle(n){let r,o=n.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===W);return r}getResolvedTitleForRoute(n){return n.data[Ki]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:function(){return A(NL)},providedIn:"root"}),e})(),NL=(()=>{class e extends fE{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}}return e.\u0275fac=function(n){return new(n||e)(T(WC))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),RL=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:function(){return A(xL)},providedIn:"root"}),e})();class OL{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}let xL=(()=>{class e extends OL{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ge(e)))(r||e)}}(),e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Rl=new N("",{providedIn:"root",factory:()=>({})});let PL=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:function(){return A(FL)},providedIn:"root"}),e})(),FL=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Mt=(()=>((Mt=Mt||{})[Mt.COMPLETE=0]="COMPLETE",Mt[Mt.FAILED=1]="FAILED",Mt[Mt.REDIRECTING=2]="REDIRECTING",Mt))();function hE(e,t){e.events.pipe(Ln(n=>n instanceof Pr||n instanceof El||n instanceof qf||n instanceof is),ee(n=>n instanceof Pr||n instanceof is?Mt.COMPLETE:n instanceof El&&(0===n.code||1===n.code)?Mt.REDIRECTING:Mt.FAILED),Ln(n=>n!==Mt.REDIRECTING),Ro(1)).subscribe(()=>{t()})}function kL(e){throw e}function LL(e,t,n){return t.parse("/")}const VL={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},HL={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ot=(()=>{class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=A(CD),this.isNgZoneEnabled=!1,this.options=A(Rl,{optional:!0})||{},this.pendingTasks=A(rC),this.errorHandler=this.options.errorHandler||kL,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||LL,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=A(PL),this.routeReuseStrategy=A(RL),this.titleStrategy=A(fE),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=A(Vo,{optional:!0})?.flat()??[],this.navigationTransitions=A(Nl),this.urlSerializer=A(es),this.location=A(Ld),this.componentInputBindingEnabled=!!A(Ml,{optional:!0}),this.isNgZoneEnabled=A(ge)instanceof ge&&ge.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new xo,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=zw(0,null),this.navigationTransitions.setupNavigations(this).subscribe(n=>{this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId??0},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const n=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),os,n)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(n.url,r,n.state)},0)}))}navigateToSyncWithBrowser(n,r,o){const i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(i.state=l)}const a=this.parseUrl(n);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(n){this.config=n.map(th),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(n,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,u=l?this.currentUrlTree.fragment:s;let d,c=null;switch(a){case"merge":c={...this.currentUrlTree.queryParams,...i};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}null!==c&&(c=this.removeEmptyProps(c));try{d=Pw(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),d=this.currentUrlTree.root}return Fw(d,n,c,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=xr(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,os,null,r)}navigate(n,r={skipLocationChange:!1}){return function jL(e){for(let t=0;t{const i=n[o];return null!=i&&(r[o]=i),r},{})}scheduleNavigation(n,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,l,u;s?(a=s.resolve,l=s.reject,u=s.promise):u=new Promise((d,f)=>{a=d,l=f});const c=this.pendingTasks.add();return hE(this,()=>{Promise.resolve().then(()=>this.pendingTasks.remove(c))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(o,"",s)}else{const i={...r.extras.state,...this.generateNgRouterState(r.id,(this.browserPageId??0)+1)};this.location.go(o,"",i)}}restoreHistory(n,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-(this.browserPageId??this.currentPageId);0!==i?this.location.historyGo(i):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===i&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),fs=(()=>{class e{constructor(n,r,o,i,s,a){this.router=n,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new Cn;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof Pr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(n){this._preserveFragment=Mo(n)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(n){this._skipLocationChange=Mo(n)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(n){this._replaceUrl=Mo(n)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(n){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){null!=n?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,r,o,i,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==n||r||o||i||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const n=null===this.href?null:function Ug(e,t,n){return function pI(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Bg:Yu}(t,n)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(n,r){const o=this.renderer,i=this.el.nativeElement;null!==r?o.setAttribute(i,n,r):o.removeAttribute(i,n)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return e.\u0275fac=function(n){return new(n||e)(v(ot),v(Fr),function Us(e){return function LM(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let o=0;for(;o{class e{get isActive(){return this._isActive}constructor(n,r,o,i,s){this.router=n,this.element=r,this.renderer=o,this.cdr=i,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new we,this.routerEventsSubscription=n.events.subscribe(a=>{a instanceof Pr&&this.update()})}ngAfterContentInit(){P(this.links.changes,P(null)).pipe(kr()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=Oe(n).pipe(kr()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){const r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const n=this.hasActiveLinks();this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),n&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(n))})}isLinkActive(n){const r=function $L(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>!!o.urlTree&&n.isActive(o.urlTree,r)}hasActiveLinks(){const n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}}return e.\u0275fac=function(n){return new(n||e)(v(ot),v(_t),v(An),v(Ha),v(fs,8))},e.\u0275dir=H({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(n,r,o){if(1&n&&function eD(e,t,n,r){const o=K();if(o.firstCreatePass){const i=ze();nD(o,new Kv(t,n,r),i.index),function mR(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(o,e),2==(2&n)&&(o.staticContentQueries=!0)}tD(o,D(),n)}(o,fs,5),2&n){let i;ki(i=Li())&&(r.links=i)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Nt]}),e})();class gE{}let BL=(()=>{class e{constructor(n,r,o,i,s){this.router=n,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Ln(n=>n instanceof Pr),To(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=Kc(i.providers,n,`Route: ${i.path}`));const s=i._injector??n,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&void 0===i.canLoad||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return Oe(o).pipe(kr())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):P(null);const i=o.pipe(Be(s=>null===s?P(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));return r.loadComponent&&!r._loadedComponent?Oe([i,this.loader.loadComponent(r)]).pipe(kr()):i})}}return e.\u0275fac=function(n){return new(n||e)(T(ot),T(_D),T(sn),T(gE),T(ih))},e.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const sh=new N("");let mE=(()=>{class e{constructor(n,r,o,i,s={}){this.urlSerializer=n,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof Wf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Pr?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof is&&0===n.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof $w&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new $w(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return e.\u0275fac=function(n){!function Em(){throw new Error("invalid")}()},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})();function Hn(e,t){return{\u0275kind:e,\u0275providers:t}}function vE(){const e=A(an);return t=>{const n=e.get(bo);if(t!==n.components[0])return;const r=e.get(ot),o=e.get(DE);1===e.get(ah)&&r.initialNavigation(),e.get(CE,null,k.Optional)?.setUpPreloading(),e.get(sh,null,k.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const DE=new N("",{factory:()=>new Cn}),ah=new N("",{providedIn:"root",factory:()=>1}),CE=new N("");function WL(e){return Hn(0,[{provide:CE,useExisting:BL},{provide:gE,useExisting:e}])}const _E=new N("ROUTER_FORROOT_GUARD"),ZL=[Ld,{provide:es,useClass:$f},ot,ss,{provide:Fr,useFactory:function yE(e){return e.routerState.root},deps:[ot]},ih,[]];function YL(){return new OD("Router",ot)}let wE=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[ZL,[],{provide:Vo,multi:!0,useValue:n},{provide:_E,useFactory:JL,deps:[[ot,new Ws,new qs]]},{provide:Rl,useValue:r||{}},r?.useHash?{provide:Xn,useClass:lC}:{provide:Xn,useClass:aC},{provide:sh,useFactory:()=>{const e=A(Xx),t=A(ge),n=A(Rl),r=A(Nl),o=A(es);return n.scrollOffset&&e.setOffset(n.scrollOffset),new mE(o,r,e,t,n)}},r?.preloadingStrategy?WL(r.preloadingStrategy).\u0275providers:[],{provide:OD,multi:!0,useFactory:YL},r?.initialNavigation?eV(r):[],r?.bindToComponentInputs?Hn(8,[Zw,{provide:Ml,useExisting:Zw}]).\u0275providers:[],[{provide:EE,useFactory:vE},{provide:Sd,multi:!0,useExisting:EE}]]}}static forChild(n){return{ngModule:e,providers:[{provide:Vo,multi:!0,useValue:n}]}}}return e.\u0275fac=function(n){return new(n||e)(T(_E,8))},e.\u0275mod=Lt({type:e}),e.\u0275inj=At({}),e})();function JL(e){return"guarded"}function eV(e){return["disabled"===e.initialNavigation?Hn(3,[{provide:yd,multi:!0,useFactory:()=>{const t=A(ot);return()=>{t.setUpLocationChangeListener()}}},{provide:ah,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Hn(2,[{provide:ah,useValue:0},{provide:yd,multi:!0,deps:[an],useFactory:t=>{const n=t.get(xO,Promise.resolve());return()=>n.then(()=>new Promise(r=>{const o=t.get(ot),i=t.get(DE);hE(o,()=>{r(!0)}),t.get(Nl).afterPreactivation=()=>(r(!0),i.closed?P(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const EE=new N("");class pt{constructor(t,n,r){this.http=t,this.router=n,this.appMessageService=r,this.authenticated=!1,this.credentials={username:"",password:""},this.authority="none"}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),r)}log(t){this.appMessageService.add(`LoginService: ${t}`)}isAuthenticated(){return this.authenticated}getAuthorizationToken(){return`Basic ${window.btoa(this.credentials.username+":"+this.credentials.password)}`}getUsername(){return this.credentials.username}authenticate(t){this.log(`Authenticating: ${t.username}`),this.credentials=t;const n=new Xe({"Content-Type":"application/json",Accept:"application/json",Authorization:this.getAuthorizationToken()});return this.http.get(pt.REST_URL,{headers:n}).pipe(ne(r=>this.authorizationRecieved(r)),De(this.handleError("authenticate")))}logout(){this.authenticated=!1,this.log("Logged out"),this.router.navigateByUrl("/").then(()=>{})}authorizationRecieved(t){this.authenticated=!0;let n=t.authorities[0].authority;n=n.substring(n.indexOf("_")+1),this.authority=n,this.log(`Authenticated '${t.name}' as '${n}'`),console.log(`Authenticated as ${JSON.stringify(t)}`)}}pt.REST_URL=Ar_restServerUrl+"/api/user",pt.\u0275fac=function(t){return new(t||pt)(T(Tr),T(ot),T(Nr))},pt.\u0275prov=R({token:pt,factory:pt.\u0275fac,providedIn:"root"});const nV=["scrollMe"];function rV(e,t){if(1&e&&(_(0,"li")(1,"div",7)(2,"span",8),M(3),E(),_(4,"span",9),M(5),td(6,"date"),E(),_(7,"span",10),M(8),E()(),_(9,"span",11),M(10),E()()),2&e){const n=t.$implicit;O(3),et(n.id),O(2),et(nd(6,4,n.dateCreated,"dd-MM-yyyy HH:mm:ss")),O(3),et(n.author),O(2),et(n.text)}}function oV(e,t){if(1&e){const n=_r();_(0,"ul",4,5),B("scroll",function(){return zn(n),Gn(dn().onScroll())}),jt(2,rV,11,7,"li",6),E()}if(2&e){const n=dn();O(2),X("ngForOf",n.messages)}}let lh=(()=>{class e{constructor(n,r){this.chatService=n,this.loginService=r,this.disableScrollDown=!1,this.messages=[],this.newMessage=""}getChatMessages(){this.chatService.getChatMessages().subscribe(n=>{this.messages=n,this.disableScrollDown=!1,this.scrollToBottom()})}ngOnInit(){this.loginService.isAuthenticated()&&this.getChatMessages()}sendMessage(){this.chatService.addChatMessage(this.loginService.getUsername(),this.newMessage).subscribe(()=>this.getChatMessages()),this.newMessage=""}ngAfterViewChecked(){this.scrollToBottom()}onScroll(){let n=this.myScrollContainer.nativeElement;this.disableScrollDown=!(this.disableScrollDown&&n.scrollHeight-n.scrollTop===n.clientHeight)}scrollToBottom(){if(!this.disableScrollDown)try{this.myScrollContainer.nativeElement.scrollTop=this.myScrollContainer.nativeElement.scrollHeight}catch{}}}return e.\u0275fac=function(n){return new(n||e)(v(mn),v(pt))},e.\u0275cmp=kt({type:e,selectors:[["app-chat"]],viewQuery:function(n,r){if(1&n&&Fa(nV,5),2&n){let o;ki(o=Li())&&(r.myScrollContainer=o.first)}},decls:7,vars:2,consts:[["class","chat",3,"scroll",4,"ngIf"],[1,"input"],["id","message-text","placeholder","hello",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"chat",3,"scroll"],["scrollMe",""],[4,"ngFor","ngForOf"],[1,"message-title"],[1,"badge"],[1,"date"],[1,"author"],[1,"text"]],template:function(n,r){1&n&&(jt(0,oV,3,1,"ul",0),_(1,"div",1)(2,"input",2),B("ngModelChange",function(i){return r.newMessage=i})("keydown.enter",function(){return r.sendMessage()}),E(),_(3,"button",3),B("click",function(){return r.sendMessage()}),M(4,"Send"),E(),_(5,"button",3),B("click",function(){return r.getChatMessages()}),M(6,"Reload"),E()()),2&n&&(X("ngIf",r.messages.length),O(2),X("ngModel",r.newMessage))},dependencies:[Kn,Zd,kn,Sr,rr,Xd],styles:[".chat[_ngcontent-%COMP%]{margin:0;list-style-type:none;padding:.1em;max-height:20em;overflow:auto}.chat[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;left:0;margin:.1em;padding:0;border-radius:4px;border:solid 1px darkblue}.chat[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#e6e6e688}.message-title[_ngcontent-%COMP%]{display:block;text-align:left;font-size:x-small}.message-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;color:#fff}.badge[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#405061;border-radius:2px 0 0}.date[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#605061}.author[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#a0b0b1;border-radius:0 0 2px}.chat[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{align-self:center;margin:0 .1em .1em}.input[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{left:0;padding:0}.input[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;padding-right:.2em}"]}),e})();const iV=["scrollMe"];function sV(e,t){if(1&e&&(_(0,"p"),M(1),E()),2&e){const n=t.$implicit;O(1),et(n)}}function aV(e,t){if(1&e){const n=_r();_(0,"div",1)(1,"div")(2,"button",2),B("click",function(){return zn(n),Gn(dn().appMessagesService.clear())}),M(3,"Clear messages"),E(),_(4,"h2"),M(5,"App messages"),E()(),_(6,"div",3,4),B("scroll",function(){return zn(n),Gn(dn().onScroll())}),jt(8,sV,2,1,"p",5),E()()}if(2&e){const n=dn();O(8),X("ngForOf",n.appMessagesService.messages)}}let lV=(()=>{class e{constructor(n){this.appMessagesService=n,this.disableScrollDown=!1}ngAfterViewChecked(){this.scrollToBottom()}onScroll(){let n=this.myScrollContainer.nativeElement;this.disableScrollDown=!(this.disableScrollDown&&n.scrollHeight-n.scrollTop===n.clientHeight)}scrollToBottom(){if(!this.disableScrollDown)try{this.myScrollContainer.nativeElement.scrollTop=this.myScrollContainer.nativeElement.scrollHeight}catch{}}}return e.\u0275fac=function(n){return new(n||e)(v(Nr))},e.\u0275cmp=kt({type:e,selectors:[["app-messages"]],viewQuery:function(n,r){if(1&n&&Fa(iV,5),2&n){let o;ki(o=Li())&&(r.myScrollContainer=o.first)}},decls:1,vars:1,consts:[["class","app-messages",4,"ngIf"],[1,"app-messages"],["type","button",1,"clear",3,"click"],[1,"output",3,"scroll"],["scrollMe",""],[4,"ngFor","ngForOf"]],template:function(n,r){1&n&&jt(0,aV,9,1,"div",0),2&n&&X("ngIf",r.appMessagesService.messages.length)},dependencies:[Kn,Zd],styles:[".app-messages[_ngcontent-%COMP%]{font-size:small;color:#888;padding:.2em}.app-messages[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{float:right}h2[_ngcontent-%COMP%]{display:inline-block}.clear[_ngcontent-%COMP%]{margin:.4em}.output[_ngcontent-%COMP%]{border:2px solid #c0c0c0;min-height:4.5em;max-height:4.5em;margin:0 0 2px;padding:2px 4px;overflow-y:scroll;font-family:Monospace,Incosolata,Courier;font-size:12px;width:unset}.output[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 .1em}"]}),e})();const bE=function(){return{exact:!0}};let uV=(()=>{class e{constructor(n){this.loginService=n,this.title="Familie TDS",this.chatLoaded=!1,this.chatHidden=!0,this.pos1=0,this.pos2=0,this.pos3=0,this.pos4=0,this.target=null}isAuthenticated(){return this.loginService.isAuthenticated()}username(){return this.loginService.getUsername()}logout(){localStorage.setItem("username",""),localStorage.setItem("password",""),this.loginService.logout()}toggleChatHidden(){this.chatHidden=!this.chatHidden,!this.chatHidden&&!this.chatLoaded&&(this.chatComponent.getChatMessages(),this.chatLoaded=!0)}isChatHidden(){return this.chatHidden}startMouseDragging(n){0===n.button&&(n.preventDefault(),this.pos3=n.clientX,this.pos4=n.clientY,document.onmouseup=()=>this.endMouseDrag(),document.onmousemove=r=>this.mouseDragElement(r),this.target=document.getElementById("chatwindow"))}mouseDragElement(n){n.preventDefault(),this.pos1=this.pos3-n.clientX,this.pos2=this.pos4-n.clientY,this.pos3=n.clientX,this.pos4=n.clientY,this.target.style.top=this.target.offsetTop-this.pos2+"px",this.target.style.left=this.target.offsetLeft-this.pos1+"px"}endMouseDrag(){document.onmouseup=null,document.onmousemove=null,this.target=null}startTouchDragging(n){n.preventDefault(),this.pos3=n.targetTouches[0].clientX,this.pos4=n.targetTouches[0].clientY,document.ontouchend=()=>this.endTouchDrag(),document.ontouchmove=r=>this.touchDragElement(r),this.target=document.getElementById("chatwindow")}touchDragElement(n){n.preventDefault(),this.pos1=this.pos3-n.targetTouches[0].clientX,this.pos2=this.pos4-n.targetTouches[0].clientY,this.pos3=n.targetTouches[0].clientX,this.pos4=n.targetTouches[0].clientY,this.target.style.top=this.target.offsetTop-this.pos2+"px",this.target.style.left=this.target.offsetLeft-this.pos1+"px"}endTouchDrag(){document.ontouchend=null,document.ontouchmove=null,this.target=null}toggleTheme(){const n="theme-dark",r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.toggle(n),r.classList.contains(n)?localStorage.setItem("theme",n):localStorage.setItem("theme","theme-light")}setTheme(n){const r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.add(n),localStorage.setItem("theme",n)}detectTheme(){const n=localStorage.getItem("theme");"theme-dark"!==n&&"theme-light"!==n?window.matchMedia("(prefers-color-scheme: dark)").matches?this.setTheme("theme-dark"):(window.matchMedia("(prefers-color-scheme: light)"),this.setTheme("theme-light")):this.setTheme(n)}ngOnInit(){this.detectTheme()}}return e.\u0275fac=function(n){return new(n||e)(v(pt))},e.\u0275cmp=kt({type:e,selectors:[["app-root"]],viewQuery:function(n,r){if(1&n&&Fa(lh,5),2&n){let o;ki(o=Li())&&(r.chatComponent=o.first)}},decls:37,vars:10,consts:[["title","Dark theme on/off",3,"click"],[3,"hidden"],["routerLinkActive","active-link","routerLink","/",3,"routerLinkActiveOptions"],["routerLinkActive","active-link","routerLink","/login"],["routerLinkActive","active-link","routerLink","/checklists"],["routerLinkActive","active-link","routerLink","/contacts"],["routerLinkActive","active-link","routerLink","/todo"],["id","logout",3,"click"],["id","tools",3,"hidden"],["id","toolbar"],[3,"click"],["id","chatwindow",3,"hidden"],["id","chattitlebar",3,"mousedown","touchstart"],[1,"close-button",3,"click"],["id","chatcontent"],[1,"footer"]],template:function(n,r){1&n&&(_(0,"nav")(1,"button",0),B("click",function(){return r.toggleTheme()}),M(2,"\u2600"),E(),_(3,"span",1)(4,"h1"),M(5),E(),_(6,"a",2),M(7,"Home"),E(),_(8,"a",3),M(9,"Login"),E()(),_(10,"span",1)(11,"h1"),M(12),E(),_(13,"a",2),M(14,"Home"),E(),_(15,"a",4),M(16,"Checklists"),E(),_(17,"a",5),M(18,"Contacts"),E(),_(19,"a",6),M(20,"Todo"),E(),_(21,"a",7),B("click",function(){return r.logout()}),M(22,"Logout"),E()()(),_(23,"main"),ke(24,"router-outlet"),E(),_(25,"div",8)(26,"div",9)(27,"button",10),B("click",function(){return r.toggleChatHidden()}),M(28,"Open Chat"),E()(),_(29,"div",11)(30,"div",12),B("mousedown",function(i){return r.startMouseDragging(i)})("touchstart",function(i){return r.startTouchDragging(i)}),M(31,"Chat"),_(32,"button",13),B("click",function(){return r.toggleChatHidden()}),M(33,"\u2716"),E()(),_(34,"div",14),ke(35,"app-chat"),E()()(),ke(36,"app-messages",15)),2&n&&(O(3),X("hidden",r.isAuthenticated()),O(2),et(r.title),O(1),X("routerLinkActiveOptions",ed(8,bE)),O(4),X("hidden",!r.isAuthenticated()),O(2),et(r.username()),O(1),X("routerLinkActiveOptions",ed(9,bE)),O(12),X("hidden",!r.isAuthenticated()),O(4),X("hidden",r.isChatHidden()))},dependencies:[Jf,fs,pE,lV,lh],styles:["h1[_ngcontent-%COMP%]{margin:0;float:right;font-size:x-large}nav[_ngcontent-%COMP%]{display:block;background:#93c6f948 linear-gradient(80deg,rgb(132,168,205) 0%,rgb(167,205,243) 30%,rgba(0,0,0,0) 100%);border-bottom:1px solid #336699;padding:.5em}nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{padding:.2rem .3rem;text-decoration:none;display:inline-block;color:#3d3d3d;border-radius:2px}nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#fff;background-color:#42545c;-webkit-text-decoration:underline #93c6f9;text-decoration:underline #93c6f9}.active-link[_ngcontent-%COMP%]{background-color:#00000048}#logout[_ngcontent-%COMP%]{color:#ef4040;cursor:pointer;float:right;margin-right:1em;font-size:large}#logout[_ngcontent-%COMP%]:hover{background-color:#604040}#toolbar[_ngcontent-%COMP%]{position:absolute;left:0;top:2.2em}#chatwindow[_ngcontent-%COMP%]{border:1px solid black;z-index:9990;background:#f0f0f080;border-radius:2px;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);box-shadow:3px 3px 3px #0006;position:fixed;top:5em;left:5em}#chattitlebar[_ngcontent-%COMP%]{border-bottom:1px solid black;padding:2px;background:#d0d0d080;cursor:grab}#chatcontent[_ngcontent-%COMP%]{padding:2px}.close-button[_ngcontent-%COMP%]{padding:0 4px;margin:0;float:right}"]}),e})();class Yt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Xe({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),P(n))}log(t){this.appMessageService.add(`TodoService: ${t}`)}getTodos(){return this.http.get(Yt.REST_URL,this.httpOptions).pipe(ne(t=>this.log(`fetched ${t.length} todos`)),De(this.handleError("getTodos",[])))}addTodo(t){return this.http.post(Yt.REST_URL,{text:t},this.httpOptions).pipe(ne(r=>this.log(`added todo w/ id=${r.id}`)),De(this.handleError("addTodo")))}deleteTodo(t){return this.http.delete(`${Yt.REST_URL}/${t}`,this.httpOptions).pipe(ne(r=>this.log(`deleted todo id=${t}`)),De(this.handleError("deleteTodo")))}}function cV(e,t){if(1&e){const n=_r();_(0,"li")(1,"div",6)(2,"span",7),M(3),E(),_(4,"span",8),M(5),td(6,"date"),E(),_(7,"button",9),B("click",function(){const i=zn(n).$implicit;return Gn(dn().delete(i))}),M(8,"x"),E()(),_(9,"span",10),M(10),E()()}if(2&e){const n=t.$implicit;O(3),et(n.id),O(2),et(nd(6,3,n.dateCreated,"dd-MM-yyyy HH:mm:ss")),O(5),et(n.text)}}Yt.REST_URL=Ar_restServerUrl+"/api/todos",Yt.\u0275fac=function(t){return new(t||Yt)(T(Tr),T(Nr))},Yt.\u0275prov=R({token:Yt,factory:Yt.\u0275fac,providedIn:"root"});let dV=(()=>{class e{constructor(n){this.todoService=n,this.todos=[],this.newTodo=""}getTodos(){this.todoService.getTodos().subscribe(n=>this.todos=n)}ngOnInit(){this.getTodos()}sendTodo(){this.todoService.addTodo(this.newTodo).subscribe(()=>this.getTodos()),this.newTodo=""}delete(n){this.todoService.deleteTodo(n.id).subscribe(()=>this.todos=this.todos.filter(r=>r!==n))}}return e.\u0275fac=function(n){return new(n||e)(v(Yt))},e.\u0275cmp=kt({type:e,selectors:[["app-todo"]],decls:13,vars:2,consts:[[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-text"],["id","input-text","placeholder","text",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"element-title"],[1,"badge"],[1,"date"],["type","button","title","Delete todo",1,"delete",3,"click"],[1,"text"]],template:function(n,r){1&n&&(_(0,"h2"),M(1,"Todos"),E(),_(2,"ol",0),jt(3,cV,11,6,"li",1),E(),_(4,"h2"),M(5,"New Todo:"),E(),_(6,"div",2)(7,"div")(8,"label",3),M(9,"Text:"),E(),_(10,"input",4),B("ngModelChange",function(i){return r.newTodo=i})("keydown.enter",function(){return r.sendTodo()}),E(),_(11,"button",5),B("click",function(){return r.sendTodo()}),M(12,"Send"),E()()()),2&n&&(O(3),X("ngForOf",r.todos),O(7),X("ngModel",r.newTodo))},dependencies:[Kn,kn,Sr,rr,Xd],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.element-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:0;border-radius:4px;border:solid 1px #808080}.element-list[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}.element-title[_ngcontent-%COMP%]{display:block;text-align:left;font-size:x-small}.element-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;color:#fff}.element-title[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:small;padding:1px 6px;margin:0;border-radius:2px;float:right;background-color:#ff000080}.badge[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#405061;border-radius:2px 0 0}.date[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#605061;border-radius:0 0 2px}.text[_ngcontent-%COMP%]{align-self:center;margin:0 .1em .1em}.input[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{left:0;margin:0 0 .2em;padding:0}.input[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;width:4em;text-align:right;padding-right:.2em}"]}),e})();class Dn{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Xe({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),P(n))}log(t){this.appMessageService.add(`NewsService: ${t}`)}getNewsPosts(){return this.http.get(Dn.REST_URL,this.httpOptions).pipe(ne(t=>this.log(`fetched ${t.length} news posts`)),De(this.handleError("getNews",[])))}addNewsPost(t,n){return this.http.post(Dn.REST_URL,{author:t,text:n},this.httpOptions).pipe(ne(o=>this.log(`added message w/ id=${o.id}`)),De(this.handleError("addNewsPost")))}}function fV(e,t){if(1&e&&(_(0,"p"),M(1),E()),2&e){const n=t.$implicit;O(1),et(n.text)}}Dn.REST_URL=Ar_restServerUrl+"/api/news",Dn.\u0275fac=function(t){return new(t||Dn)(T(Tr),T(Nr))},Dn.\u0275prov=R({token:Dn,factory:Dn.\u0275fac,providedIn:"root"});let hV=(()=>{class e{constructor(n,r){this.loginService=n,this.newsService=r,this.messages=[]}getNews(){this.loginService.isAuthenticated()&&this.newsService.getNewsPosts().subscribe(n=>this.messages=n)}ngOnInit(){this.getNews()}isAuthenticated(){return this.loginService.isAuthenticated()}username(){return this.loginService.getUsername()}}return e.\u0275fac=function(n){return new(n||e)(v(pt),v(Dn))},e.\u0275cmp=kt({type:e,selectors:[["app-home"]],decls:9,vars:4,consts:[[3,"hidden"],[1,"context"],[4,"ngFor","ngForOf"]],template:function(n,r){1&n&&(_(0,"span",0)(1,"p"),M(2),E(),_(3,"h3"),M(4,"News"),E(),_(5,"div",1),jt(6,fV,2,1,"p",2),E()(),_(7,"p",0),M(8,"Welcome to our family site! Please login."),E()),2&n&&(X("hidden",!r.isAuthenticated()),O(2),Et("Welcome, ",r.username(),"!"),O(4),X("ngForOf",r.messages),O(1),X("hidden",r.isAuthenticated()))},dependencies:[Kn],styles:[".context[_ngcontent-%COMP%]{margin-left:1em}"]}),e})(),pV=(()=>{class e{constructor(n,r){this.app=n,this.router=r,this.error=!1,this.rememberme=!1,this.credentials={username:"",password:""}}ngOnInit(){this.credentials.username=localStorage.getItem("username"),this.credentials.password=localStorage.getItem("password"),this.credentials.username&&this.credentials.password&&this.login()}login(){return this.app.authenticate(this.credentials).subscribe({next:()=>{this.rememberme&&(localStorage.setItem("username",this.credentials.username),localStorage.setItem("password",this.credentials.password)),this.router.navigateByUrl("/").then(n=>{})},error:n=>{console.log("Login failed",n),this.error=!0}}),!1}}return e.\u0275fac=function(n){return new(n||e)(v(pt),v(ot))},e.\u0275cmp=kt({type:e,selectors:[["app-login"]],decls:19,vars:4,consts:[[1,"alert",3,"hidden"],["role","form",3,"submit"],[1,"form-group"],["for","username"],["type","text","id","username","name","username","placeholder","username",1,"form-control",3,"ngModel","ngModelChange"],["for","password"],["type","password","id","password","name","password","placeholder","password",1,"form-control",3,"ngModel","ngModelChange"],["for","rememberme"],["type","checkbox","id","rememberme","name","rememberme",1,"form-control",3,"ngModel","ngModelChange"],["type","submit",1,"btn","btn-primary"]],template:function(n,r){1&n&&(_(0,"h2"),M(1,"Login form"),E(),_(2,"p",0),M(3," There was a problem logging in. Please try again.\n"),E(),_(4,"form",1),B("submit",function(){return r.login()}),_(5,"div",2)(6,"label",3),M(7,"Username:"),E(),_(8,"input",4),B("ngModelChange",function(i){return r.credentials.username=i}),E()(),_(9,"div",2)(10,"label",5),M(11,"Password:"),E(),_(12,"input",6),B("ngModelChange",function(i){return r.credentials.password=i}),E()(),_(13,"div",2)(14,"label",7),M(15,"Remember me:"),E(),_(16,"input",8),B("ngModelChange",function(i){return r.rememberme=i}),E()(),_(17,"button",9),M(18,"Login"),E()()),2&n&&(O(2),X("hidden",!r.error),O(6),X("ngModel",r.credentials.username),O(4),X("ngModel",r.credentials.password),O(4),X("ngModel",r.rememberme))},dependencies:[L_,kn,ff,Sr,E_,rr,fl],styles:[".form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;width:8em;padding-right:.2em}.form-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin:0 0 .2em}.alert[_ngcontent-%COMP%]{color:red}button[_ngcontent-%COMP%]{border:revert}"]}),e})();const hs=(e,t)=>{const n=A(pt),r=A(ot);return!!n.isAuthenticated()||r.parseUrl("/login")};class Qt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Xe({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),P(n))}log(t){this.appMessageService.add(`TodoService: ${t}`)}getContacts(){return this.http.get(Qt.REST_URL,this.httpOptions).pipe(ne(t=>this.log(`fetched ${t.length} contacts`)),De(this.handleError("getContacts",[])))}addContact(t){return this.http.post(Qt.REST_URL,t,this.httpOptions).pipe(ne(n=>this.log(`added contact w/ id=${n.id}`)),De(this.handleError("addContact")))}deleteContact(t){return this.http.delete(`${Qt.REST_URL}/${t}`,this.httpOptions).pipe(ne(r=>this.log(`deleted contact id=${t}`)),De(this.handleError("deleteContact")))}}function gV(e,t){if(1&e){const n=_r();_(0,"li")(1,"div",18)(2,"span"),M(3),E(),_(4,"button",19),B("click",function(){const i=zn(n).$implicit;return Gn(dn().delete(i))}),M(5,"x"),E()(),_(6,"span",20),M(7),ke(8,"br"),M(9),ke(10,"br"),M(11),ke(12,"br"),M(13),ke(14,"br"),M(15),ke(16,"br"),M(17,"Website: "),_(18,"a",21),M(19),E(),ke(20,"br"),M(21),E()()}if(2&e){const n=t.$implicit;O(3),Uc("",n.firstName," ",n.lastName,""),O(4),Et("Firstname: ",n.firstName," "),O(2),Et("Lastname: ",n.lastName," "),O(2),Et("Telephone: ",n.telephone," "),O(2),Et("E-mail: ",n.email," "),O(2),Et("Address: ",n.address," "),O(3),Sa("href","https://",n.website,"",Yu),O(1),et(n.website),O(2),Et("Description: ",n.description,"")}}Qt.REST_URL=Ar_restServerUrl+"/api/contacts",Qt.\u0275fac=function(t){return new(t||Qt)(T(Tr),T(Nr))},Qt.\u0275prov=R({token:Qt,factory:Qt.\u0275fac,providedIn:"root"});let mV=(()=>{class e{constructor(n){this.contactsService=n,this.contacts=[],this.newContact={}}getContacts(){this.contactsService.getContacts().subscribe(n=>this.contacts=n)}ngOnInit(){this.getContacts()}sendContact(){this.contactsService.addContact(this.newContact).subscribe(()=>this.getContacts()),this.newContact={}}delete(n){this.contactsService.deleteContact(n.id).subscribe(()=>this.contacts=this.contacts.filter(r=>r!==n))}}return e.\u0275fac=function(n){return new(n||e)(v(Qt))},e.\u0275cmp=kt({type:e,selectors:[["app-contacts"]],decls:38,vars:8,consts:[[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-firstName"],["id","input-firstName","placeholder","firstname",3,"ngModel","ngModelChange"],["for","input-lastName"],["id","input-lastName","placeholder","lastname",3,"ngModel","ngModelChange"],["for","input-telephone"],["id","input-telephone","placeholder","telephone",3,"ngModel","ngModelChange"],["for","input-email"],["id","input-email","placeholder","email",3,"ngModel","ngModelChange"],["for","input-website"],["id","input-website","placeholder","website",3,"ngModel","ngModelChange"],["for","input-address"],["id","input-address","placeholder","address",3,"ngModel","ngModelChange"],["for","input-description"],["id","input-description","placeholder","description",3,"ngModel","ngModelChange"],[3,"click"],[1,"element-title"],["type","button","title","Delete contact",1,"delete",3,"click"],[1,"text"],["target","_blank",3,"href"]],template:function(n,r){1&n&&(_(0,"h2"),M(1,"Contacts"),E(),_(2,"ol",0),jt(3,gV,22,10,"li",1),E(),_(4,"h2"),M(5,"New Contact:"),E(),_(6,"div",2)(7,"div")(8,"label",3),M(9,"Firstname:"),E(),_(10,"input",4),B("ngModelChange",function(i){return r.newContact.firstName=i}),E(),ke(11,"br"),_(12,"label",5),M(13,"Lastname:"),E(),_(14,"input",6),B("ngModelChange",function(i){return r.newContact.lastName=i}),E(),ke(15,"br"),_(16,"label",7),M(17,"Telephone:"),E(),_(18,"input",8),B("ngModelChange",function(i){return r.newContact.telephone=i}),E(),ke(19,"br"),_(20,"label",9),M(21,"Email:"),E(),_(22,"input",10),B("ngModelChange",function(i){return r.newContact.email=i}),E(),ke(23,"br"),_(24,"label",11),M(25,"Website:"),E(),_(26,"input",12),B("ngModelChange",function(i){return r.newContact.website=i}),E(),ke(27,"br"),_(28,"label",13),M(29,"Address:"),E(),_(30,"input",14),B("ngModelChange",function(i){return r.newContact.address=i}),E(),ke(31,"br"),_(32,"label",15),M(33,"Description:"),E(),_(34,"input",16),B("ngModelChange",function(i){return r.newContact.description=i}),E(),ke(35,"br"),_(36,"button",17),B("click",function(){return r.sendContact()}),M(37,"Send"),E()()()),2&n&&(O(3),X("ngForOf",r.contacts),O(7),X("ngModel",r.newContact.firstName),O(4),X("ngModel",r.newContact.lastName),O(4),X("ngModel",r.newContact.telephone),O(4),X("ngModel",r.newContact.email),O(4),X("ngModel",r.newContact.website),O(4),X("ngModel",r.newContact.address),O(4),X("ngModel",r.newContact.description))},dependencies:[Kn,kn,Sr,rr]}),e})();class gt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Xe({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>(console.error(r),this.log(`Error @ ${t}: ${r.status} ${r.statusText}`),P(n))}log(t){this.appMessageService.add(`ChecklistsService: ${t}`)}getChecklists(){return this.http.get(gt.REST_URL,this.httpOptions).pipe(ne(t=>this.log(`fetched ${t.length} checklists`)),De(this.handleError("getChecklists",[])))}getChecklist(t){return this.http.get(`${gt.REST_URL}/${t}`,this.httpOptions).pipe(ne(n=>this.log(`fetched checklist ${n.id}`)),De(this.handleError("getChecklist",{})))}addChecklist(t){return this.http.post(gt.REST_URL,{name:t},this.httpOptions).pipe(ne(r=>this.log(`added todo w/ id=${r.id}`)),De(this.handleError("addChecklist")))}saveChecklist(t){return this.http.post(gt.REST_URL,t,this.httpOptions).pipe(ne(n=>this.log(`added todo w/ id=${n.id}`)),De(this.handleError("addChecklist")))}deleteChecklist(t){return this.http.delete(`${gt.REST_URL}/${t}`,this.httpOptions).pipe(ne(r=>this.log(`deleted checklist id=${t}`)),De(this.handleError("deleteChecklist")))}}function yV(e,t){if(1&e&&(_(0,"li"),M(1),E()),2&e){const n=t.$implicit;O(1),Et(" ",n," ")}}gt.REST_URL=Ar_restServerUrl+"/api/checklists",gt.\u0275fac=function(t){return new(t||gt)(T(Tr),T(Nr))},gt.\u0275prov=R({token:gt,factory:gt.\u0275fac,providedIn:"root"});const vV=function(e){return["/checklist",e]};function DV(e,t){if(1&e){const n=_r();_(0,"li")(1,"span",6)(2,"a",7),M(3),E(),_(4,"button",8),B("click",function(){const i=zn(n).$implicit;return Gn(dn().delete(i))}),M(5,"x"),E(),_(6,"ul",9),jt(7,yV,2,1,"li",1),E()()()}if(2&e){const n=t.$implicit;O(2),X("routerLink",Vv(3,vV,n.id)),O(1),et(n.name),O(4),X("ngForOf",n.checks)}}function _V(e,t){if(1&e){const n=_r();_(0,"li"),M(1),_(2,"button",5),B("click",function(){const i=zn(n).index;return Gn(dn().removeItem(i))}),M(3,"x"),E()()}if(2&e){const n=t.$implicit;O(1),Et("",n," ")}}const wV=[{path:"",component:hV,pathMatch:"full"},{path:"login",component:pV},{path:"chat",component:lh,canActivate:[hs]},{path:"todo",component:dV,canActivate:[hs]},{path:"contacts",component:mV,canActivate:[hs]},{path:"checklists",component:(()=>{class e{constructor(n){this.checklistsService=n,this.checklists=[],this.newChecklist=""}getChecklists(){this.checklistsService.getChecklists().subscribe(n=>this.checklists=n)}ngOnInit(){this.getChecklists()}sendChecklist(){this.checklistsService.addChecklist(this.newChecklist).subscribe(()=>this.getChecklists()),this.newChecklist=""}delete(n){this.checklistsService.deleteChecklist(n.id).subscribe(()=>this.checklists=this.checklists.filter(r=>r!==n))}}return e.\u0275fac=function(n){return new(n||e)(v(gt))},e.\u0275cmp=kt({type:e,selectors:[["app-checklists"]],decls:13,vars:2,consts:[[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-name"],["id","input-name","placeholder","name",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"text"],[3,"routerLink"],["type","button","title","Delete checklist",1,"delete",3,"click"],[1,"item-list"]],template:function(n,r){1&n&&(_(0,"h2"),M(1,"Checklists"),E(),_(2,"ol",0),jt(3,DV,8,5,"li",1),E(),_(4,"h2"),M(5,"New Checklist:"),E(),_(6,"div",2)(7,"div")(8,"label",3),M(9,"name:"),E(),_(10,"input",4),B("ngModelChange",function(i){return r.newChecklist=i})("keydown.enter",function(){return r.sendChecklist()}),E(),_(11,"button",5),B("click",function(){return r.sendChecklist()}),M(12,"Send"),E()()()),2&n&&(O(3),X("ngForOf",r.checklists),O(7),X("ngModel",r.newChecklist))},dependencies:[Kn,kn,Sr,rr,fs]}),e})(),canActivate:[hs]},{path:"checklist/:id",component:(()=>{class e{constructor(n){this.checklistsService=n,this.route=A(Fr),this.checklistId=-1,this.checklist={},this.newItem="",this.checklistId=Number(this.route.snapshot.params.id)}getChecklist(){this.checklistsService.getChecklist(this.checklistId).subscribe(n=>this.checklist=n)}ngOnInit(){this.getChecklist()}addItem(){this.checklist.checks.push(this.newItem),this.newItem="",this.saveCheckList()}removeItem(n){this.checklist.checks[n]&&(this.checklist.checks.splice(n,1),this.saveCheckList())}saveCheckList(){this.checklistsService.saveChecklist(this.checklist).subscribe()}}return e.\u0275fac=function(n){return new(n||e)(v(gt))},e.\u0275cmp=kt({type:e,selectors:[["app-edit-checklist"]],decls:13,vars:3,consts:[[4,"ngFor","ngForOf"],[1,"input"],["for","input-item"],["id","input-item","placeholder","item",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],["type","button","title","Delete item",1,"delete",3,"click"]],template:function(n,r){1&n&&(_(0,"h2"),M(1),E(),_(2,"ol"),jt(3,_V,4,1,"li",0),E(),_(4,"h2"),M(5,"add item:"),E(),_(6,"div",1)(7,"div")(8,"label",2),M(9,"item description:"),E(),_(10,"input",3),B("ngModelChange",function(i){return r.newItem=i})("keydown.enter",function(){return r.addItem()}),E(),_(11,"button",4),B("click",function(){return r.addItem()}),M(12,"Send"),E()()()),2&n&&(O(1),Et("Editing checklist: ",r.checklist.name,""),O(2),X("ngForOf",r.checklist.checks),O(7),X("ngModel",r.newItem))},dependencies:[Kn,kn,Sr,rr]}),e})(),canActivate:[hs]}];let EV=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Lt({type:e}),e.\u0275inj=At({imports:[wE.forRoot(wV),wE]}),e})(),bV=(()=>{class e{constructor(n){this.auth=n}intercept(n,r){if(this.auth.isAuthenticated()){const o=this.auth.getAuthorizationToken(),i=n.clone({headers:n.headers.set("Authorization",o)});return r.handle(i)}return r.handle(n)}}return e.\u0275fac=function(n){return new(n||e)(T(pt))},e.\u0275prov=R({token:e,factory:e.\u0275fac}),e})(),MV=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Lt({type:e,bootstrap:[uV]}),e.\u0275inj=At({providers:[{provide:uw,useClass:bV,multi:!0},{provide:Xn,useClass:lC}],imports:[ZP,o1,T1,EV]}),e})();WP().bootstrapModule(MV).catch(e=>console.error(e))}},le=>{le(le.s=830)}]); \ No newline at end of file diff --git a/front/dist/familySite1/styles.86694e71bdbfb83c.css b/front/dist/familySite1/styles.86694e71bdbfb83c.css deleted file mode 100644 index c0db6c1..0000000 --- a/front/dist/familySite1/styles.86694e71bdbfb83c.css +++ /dev/null @@ -1 +0,0 @@ -*{font-family:Arial,Helvetica,sans-serif}html,body{height:100%;margin:0}app-root{height:100%;display:flex;flex-direction:column}main{margin:1em auto;width:90%}h1{font-size:250%}h2,h3{font-weight:lighter;margin:.4em 0}body,button{font-family:Cambria,Georgia,serif}button{border:none;border-radius:4px;cursor:pointer;padding:.2rem .4rem;margin-right:.2rem;margin-bottom:.2rem;margin-top:.2rem}.footer{margin-top:auto}.theme-dark{color-scheme:light dark} diff --git a/front/dist/familySite1/styles.a8ea21a7b7265027.css b/front/dist/familySite1/styles.a8ea21a7b7265027.css new file mode 100644 index 0000000..e4378de --- /dev/null +++ b/front/dist/familySite1/styles.a8ea21a7b7265027.css @@ -0,0 +1 @@ +*{font-family:Arial,Helvetica,sans-serif}html,body{height:100%;margin:0}app-root{height:100%;display:flex;flex-direction:column}main{margin:1em auto;width:90%}h2,h3{font-weight:lighter;margin:.4em 0}body,button{font-family:Cambria,Georgia,serif}button{border:none;border-radius:4px;cursor:pointer;padding:.2rem .4rem;margin-right:.2rem;margin-bottom:.2rem;margin-top:.2rem}.footer{margin-top:auto}.theme-dark{color-scheme:light dark}