From 179e7e0d17137fdcd70c7e33b7da5599c9d461da Mon Sep 17 00:00:00 2001 From: grossmj Date: Wed, 21 Oct 2026 15:24:00 +0700 Subject: [PATCH] Bundle web-ui v3.1.0a7 --- .../static/web-ui/assets/console-ui.css | 26 + .../fonts/roboto/roboto-latin-400.woff2 | Bin 0 -> 15736 bytes .../fonts/roboto/roboto-latin-500.woff2 | Bin 0 -> 15872 bytes .../fonts/roboto/roboto-latin-700.woff2 | Bin 0 -> 15816 bytes .../web-ui/assets/vnc-console/index.html | 39 +- .../web-ui/assets/xpra-html5/js/Menu.js | 25 +- gns3server/static/web-ui/chunk-2EU4MCU2.js | 2 + .../{chunk-VB5QSUFX.js => chunk-2MJLPLTV.js} | 2 +- .../{chunk-UX44Z5PA.js => chunk-2WSNHQFF.js} | 2 +- gns3server/static/web-ui/chunk-ETQHA42W.js | 2 - .../{chunk-G7NALUVX.js => chunk-JPY5KHMK.js} | 24 +- .../{chunk-3DUTSYEG.js => chunk-YK4BK3GN.js} | 36 +- gns3server/static/web-ui/index.html | 4 +- gns3server/static/web-ui/main-2SCMRH5O.js | 4594 +++++++++ gns3server/static/web-ui/main-D46BBTLD.js | 4592 --------- .../web-ui/media/NotoSans-Bold-5GE4CF2E.ttf | Bin 515668 -> 0 bytes .../web-ui/media/NotoSans-Bold-RBKCPTHN.woff | Bin 257240 -> 0 bytes .../web-ui/media/NotoSans-Bold-SMQDUQ54.svg | 8453 ----------------- .../web-ui/media/NotoSans-Bold-U6VRRGSF.eot | Bin 515892 -> 0 bytes .../media/NotoSans-BoldItalic-F3VJXIBO.ttf | Bin 534108 -> 0 bytes .../media/NotoSans-BoldItalic-FOXTHNRZ.woff | Bin 264740 -> 0 bytes .../media/NotoSans-BoldItalic-I2S65SI5.svg | 8453 ----------------- .../media/NotoSans-BoldItalic-P7PPOO2H.eot | Bin 534360 -> 0 bytes .../web-ui/media/NotoSans-Italic-EGPORDS3.ttf | Bin 530044 -> 0 bytes .../web-ui/media/NotoSans-Italic-HVXXZ53S.svg | 8453 ----------------- .../media/NotoSans-Italic-O7GTQGFV.woff | Bin 265068 -> 0 bytes .../web-ui/media/NotoSans-Italic-QUMULBNO.eot | Bin 530276 -> 0 bytes .../media/NotoSans-Regular-4YJZZMLG.ttf | Bin 512588 -> 0 bytes .../media/NotoSans-Regular-CVVXLBAZ.eot | Bin 512824 -> 0 bytes .../media/NotoSans-Regular-LFPD6WDW.woff | Bin 258048 -> 0 bytes .../media/NotoSans-Regular-XM4E3356.svg | 8453 ----------------- .../media/roboto-latin-100-KOPQVFVU.woff2 | Bin 0 -> 15808 bytes .../media/roboto-latin-100-LOUZJWWD.woff | Bin 0 -> 20368 bytes .../roboto-latin-100italic-2YPH5CYH.woff | Bin 0 -> 21704 bytes .../roboto-latin-100italic-IG5GIIM4.woff2 | Bin 0 -> 17008 bytes .../media/roboto-latin-300-JWHYBBRD.woff2 | Bin 0 -> 15784 bytes .../media/roboto-latin-300-NQN4IYIE.woff | Bin 0 -> 20348 bytes .../roboto-latin-300italic-HJJJOUNF.woff | Bin 0 -> 22204 bytes .../roboto-latin-300italic-IULEMQ5T.woff2 | Bin 0 -> 17448 bytes .../media/roboto-latin-400-DYWU2ORH.woff2 | Bin 0 -> 15736 bytes .../media/roboto-latin-400-PZFAIW4T.woff | Bin 0 -> 20268 bytes .../roboto-latin-400italic-NBBRDGPF.woff | Bin 0 -> 21952 bytes .../roboto-latin-400italic-XM6GSVOE.woff2 | Bin 0 -> 17324 bytes .../media/roboto-latin-500-4IP6S76S.woff | Bin 0 -> 20464 bytes .../media/roboto-latin-500-DX54HW7Y.woff2 | Bin 0 -> 15872 bytes .../roboto-latin-500italic-OVB2IKYS.woff2 | Bin 0 -> 17316 bytes .../roboto-latin-500italic-VL7WQZYV.woff | Bin 0 -> 22020 bytes .../media/roboto-latin-700-AJRTAAYS.woff | Bin 0 -> 20356 bytes .../media/roboto-latin-700-CKETX7AH.woff2 | Bin 0 -> 15816 bytes .../roboto-latin-700italic-4UYGFYT4.woff | Bin 0 -> 21588 bytes .../roboto-latin-700italic-XRYXTYAE.woff2 | Bin 0 -> 17020 bytes .../media/roboto-latin-900-FAV2O762.woff2 | Bin 0 -> 15712 bytes .../media/roboto-latin-900-JFROQEGL.woff | Bin 0 -> 20392 bytes .../roboto-latin-900italic-EOKBGSTY.woff | Bin 0 -> 22304 bytes .../roboto-latin-900italic-TQPYBBAD.woff2 | Bin 0 -> 17520 bytes gns3server/static/web-ui/styles-2FY4FSR3.css | 1 - gns3server/static/web-ui/styles-NJDCODEZ.css | 1 + gns3server/static/web-ui/worker-457ML2XE.js | 1 + 58 files changed, 4717 insertions(+), 38446 deletions(-) create mode 100644 gns3server/static/web-ui/assets/console-ui.css create mode 100644 gns3server/static/web-ui/assets/fonts/roboto/roboto-latin-400.woff2 create mode 100644 gns3server/static/web-ui/assets/fonts/roboto/roboto-latin-500.woff2 create mode 100644 gns3server/static/web-ui/assets/fonts/roboto/roboto-latin-700.woff2 create mode 100644 gns3server/static/web-ui/chunk-2EU4MCU2.js rename gns3server/static/web-ui/{chunk-VB5QSUFX.js => chunk-2MJLPLTV.js} (92%) rename gns3server/static/web-ui/{chunk-UX44Z5PA.js => chunk-2WSNHQFF.js} (75%) delete mode 100644 gns3server/static/web-ui/chunk-ETQHA42W.js rename gns3server/static/web-ui/{chunk-G7NALUVX.js => chunk-JPY5KHMK.js} (53%) rename gns3server/static/web-ui/{chunk-3DUTSYEG.js => chunk-YK4BK3GN.js} (75%) create mode 100644 gns3server/static/web-ui/main-2SCMRH5O.js delete mode 100644 gns3server/static/web-ui/main-D46BBTLD.js delete mode 100644 gns3server/static/web-ui/media/NotoSans-Bold-5GE4CF2E.ttf delete mode 100644 gns3server/static/web-ui/media/NotoSans-Bold-RBKCPTHN.woff delete mode 100644 gns3server/static/web-ui/media/NotoSans-Bold-SMQDUQ54.svg delete mode 100644 gns3server/static/web-ui/media/NotoSans-Bold-U6VRRGSF.eot delete mode 100644 gns3server/static/web-ui/media/NotoSans-BoldItalic-F3VJXIBO.ttf delete mode 100644 gns3server/static/web-ui/media/NotoSans-BoldItalic-FOXTHNRZ.woff delete mode 100644 gns3server/static/web-ui/media/NotoSans-BoldItalic-I2S65SI5.svg delete mode 100644 gns3server/static/web-ui/media/NotoSans-BoldItalic-P7PPOO2H.eot delete mode 100644 gns3server/static/web-ui/media/NotoSans-Italic-EGPORDS3.ttf delete mode 100644 gns3server/static/web-ui/media/NotoSans-Italic-HVXXZ53S.svg delete mode 100644 gns3server/static/web-ui/media/NotoSans-Italic-O7GTQGFV.woff delete mode 100644 gns3server/static/web-ui/media/NotoSans-Italic-QUMULBNO.eot delete mode 100644 gns3server/static/web-ui/media/NotoSans-Regular-4YJZZMLG.ttf delete mode 100644 gns3server/static/web-ui/media/NotoSans-Regular-CVVXLBAZ.eot delete mode 100644 gns3server/static/web-ui/media/NotoSans-Regular-LFPD6WDW.woff delete mode 100644 gns3server/static/web-ui/media/NotoSans-Regular-XM4E3356.svg create mode 100644 gns3server/static/web-ui/media/roboto-latin-100-KOPQVFVU.woff2 create mode 100644 gns3server/static/web-ui/media/roboto-latin-100-LOUZJWWD.woff create mode 100644 gns3server/static/web-ui/media/roboto-latin-100italic-2YPH5CYH.woff create mode 100644 gns3server/static/web-ui/media/roboto-latin-100italic-IG5GIIM4.woff2 create mode 100644 gns3server/static/web-ui/media/roboto-latin-300-JWHYBBRD.woff2 create mode 100644 gns3server/static/web-ui/media/roboto-latin-300-NQN4IYIE.woff create mode 100644 gns3server/static/web-ui/media/roboto-latin-300italic-HJJJOUNF.woff create mode 100644 gns3server/static/web-ui/media/roboto-latin-300italic-IULEMQ5T.woff2 create mode 100644 gns3server/static/web-ui/media/roboto-latin-400-DYWU2ORH.woff2 create mode 100644 gns3server/static/web-ui/media/roboto-latin-400-PZFAIW4T.woff create mode 100644 gns3server/static/web-ui/media/roboto-latin-400italic-NBBRDGPF.woff create mode 100644 gns3server/static/web-ui/media/roboto-latin-400italic-XM6GSVOE.woff2 create mode 100644 gns3server/static/web-ui/media/roboto-latin-500-4IP6S76S.woff create mode 100644 gns3server/static/web-ui/media/roboto-latin-500-DX54HW7Y.woff2 create mode 100644 gns3server/static/web-ui/media/roboto-latin-500italic-OVB2IKYS.woff2 create mode 100644 gns3server/static/web-ui/media/roboto-latin-500italic-VL7WQZYV.woff create mode 100644 gns3server/static/web-ui/media/roboto-latin-700-AJRTAAYS.woff create mode 100644 gns3server/static/web-ui/media/roboto-latin-700-CKETX7AH.woff2 create mode 100644 gns3server/static/web-ui/media/roboto-latin-700italic-4UYGFYT4.woff create mode 100644 gns3server/static/web-ui/media/roboto-latin-700italic-XRYXTYAE.woff2 create mode 100644 gns3server/static/web-ui/media/roboto-latin-900-FAV2O762.woff2 create mode 100644 gns3server/static/web-ui/media/roboto-latin-900-JFROQEGL.woff create mode 100644 gns3server/static/web-ui/media/roboto-latin-900italic-EOKBGSTY.woff create mode 100644 gns3server/static/web-ui/media/roboto-latin-900italic-TQPYBBAD.woff2 delete mode 100644 gns3server/static/web-ui/styles-2FY4FSR3.css create mode 100644 gns3server/static/web-ui/styles-NJDCODEZ.css create mode 100644 gns3server/static/web-ui/worker-457ML2XE.js diff --git a/gns3server/static/web-ui/assets/console-ui.css b/gns3server/static/web-ui/assets/console-ui.css new file mode 100644 index 000000000..03c0385df --- /dev/null +++ b/gns3server/static/web-ui/assets/console-ui.css @@ -0,0 +1,26 @@ +/* Shared local typography for standalone console chrome. Remote framebuffer + pixels and terminal font preferences remain owned by the remote session. */ +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 400; + font-display: swap; + src: url('fonts/roboto/roboto-latin-400.woff2') format('woff2'); +} +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 500; + font-display: swap; + src: url('fonts/roboto/roboto-latin-500.woff2') format('woff2'); +} +@font-face { + font-family: 'Roboto'; + font-style: normal; + font-weight: 700; + font-display: swap; + src: url('fonts/roboto/roboto-latin-700.woff2') format('woff2'); +} +:root { + --gns3-font-code: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace; +} diff --git a/gns3server/static/web-ui/assets/fonts/roboto/roboto-latin-400.woff2 b/gns3server/static/web-ui/assets/fonts/roboto/roboto-latin-400.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..1a537015109f44983c26738a436c8f5edc44b9ae GIT binary patch literal 15736 zcmV-;J%_?~Pew8T0RR9106lmB5&!@I0FFoi06h`_0RR9100000000000000000000 z0000QWE+`e9D{rYU;u|~2viA!JP`~Ef!aKQ!cGf=asU#71OYYzBm;+F1Rw>1bO#^| zf=L@Re--1HRlvppz{t)PJ{w`X9gw6HyK{6P_BfE#t{nXTErH6AbrsVM@Yf?OO1g*A zVxPEl3WmZU5}%To;BZ&?A1z9YWpjkP4)Fosa#nzzf=AGpz?xh$!XDNi-0Wy4WeQJR zGFy2y+2KEWj}VQUdDLddUv~z!jr>VY-XWUX{fg0JL(m>5nNlegJ+jAOz{oV9WfIDU zN|d5f0)n(+AZCx}|J^U}caobo1z=Vcrpq%cK*yRtS{4dO(Hy^bKfh!G5BoYzDNQM# z@Gi01Z}dvL3e_rfz{dlRRC_qB97!XqRM)n?Tko~DUn*h`U|?tf3xJQ{0r&t0!1#V^ zd4wfOA@i;lNS)4Xk&+^*3R6X-^k289UCRmX9pL+|W%2_v3&$*rMzu!8h&`?5)#(b) zk`fk1_WpHRGqPluk*ouvn%hlvKwtkGvTL9uT42F6QqoCD(Hud4)m~3f%68z6Uw{Aq z{pyDW@Yvu87r)pl@T5Jy0t>vLS-0O*z{j`WZ@;)8CW%Ug)Cq;wW-fbPZnOb_0#^V3 zb@qOHw>4YXF^~*;Bg4B!-0_V z0!URl04!4?{a^m>*Im}{h>NoN{(t+m`rq80Mf8G4Jpa%(5(jBv#orF%gJ?2|c-s(( zgh;4c*~B4{2{h1%|D|fS|A8XsM2ePnor}tDU33dxl15iLRVDRBYH@&)2|7`Z3eKsz zkG()F?>vI&6zC8_n`7BrQQK^(v7)$@wGc8%ZvJOxs(C@TB89@xFa%POO#|Yb^Gt2Q$-5H?q2T2G1iuh)@)56? zaBva=0N@3w;Q-B;BoXRi7?!#u>vA41!zNjZrP$=#r7<;@$D6U&OgjgRd%Wo< z`-QI3O?!CH7$19CuPM>qU!nt3qP;B)jbU2S!#~cDQi`L>paZ`dQ#9%F*lT{XVjoKs z(u(3AAs~hjP*}0S5g)6Wir95ECa!2~w28{9rGIpq!Kyyh0>Uz8)Y;n9Gm@L24P zV*-j@Q1wd5uflm{3Wk_EkIl{PPg?c z7)Km3(+o)|t5kA8HE*eB+Xh^O399?fz~X(o2n~^S_8H=mSz+r4q(oR|%n(y7Kdlhh zanr`-EX4kW-*pQUNZ!YU;;ZT;TCaF z4WmX-hx+hdUfahrJjX%!8;tMxF-KMgdCL$+Fo7M4u!ns-!*d)ohBL;=kt`QnP;4ys z4RD0Fc!&3MM8YHo7PV+VlimkOC}S0Cc!Kp}R;KVQ0L#H`lEEP*T(EkhxktcTyu8-=2B?N%{#fsZ$$AQi`STix6=fFw@TvlTo#p}Gt z>T1$AIgHf};{w4qfbo?GbDYnIq~~&+O$5>@j{uC$Qmvnu_(zC@@;gyy?-(___by83 z!^(Y$-HThb{-?yQzmr$E)4R9a=oE->pARDJDvW2sufmZe}C;_HW2vhVJ zQmG10Q^5spaDh8;y9?z3Pzq}&U|5dQ!GB-jP5n+2f95J=^Q!l+?!U9TQ}sBY*tV30;Haq_{wDM_>#w+y498*v*9 zgxeVaz>C;QAOYlSQx1T3kGtT%<^Qma?#z$@2;nAFyhqI7ati~X1u*_C;6LEMs_Os` zdK&-$anhv1!-E4GdAdd`W-Py>LGMGfLI4=jf`kSDyEH9&^cpo|!Al=7Aem;T{)GVm0NCNRXw~bwF|!uE^0CP@ zYsHzi&M_}m_(HzkxaE5eoXG^Pi~|ft#IHuqQCX}0-upN7Z*Y$yzkI@3(xpk3U~eWC*g3*tq;SY+vv0uRr9srUGz3qautw9X|t^W?$f6 zgi%YcNj$MG%Z6>McI?Wr=Y^-g1fo|y*z2P_pL}=dho4A(`R7Cb6*$`w4E9xnj^u!> zLRYb?IVjX%-;!_u`;Y!|%sIlZroz9nHZv6@MZ-iGyYhe@+s#!h0MXT-NX(b8toD z+lzy%8vj-tT+{xCgD#En@7D-)6V)g~fdngjnRAxMlRf#a=C*#trU1ab_9X6J4?p;@ zmJ04Ff|*p@%W=nA8?I#x$Fczh000RfJ_BY;4I${=B8YM4wkKqU@9ho%5@+@o0?2a! zFmXVlZUAs`4gePjmbGI1TzsSBX)6Jr9~=WAurV42IeB&(VgMVxpv~H4{l& z0EqEI2>;m$tMTPXp-Usp?souEd}d&{;G!-mGK8QdabwQ0$5<_oF(G&8sTF0_;I*$W zI!rSrA0?VRv{G!P#I#ZuaC$Ca+bRwjWeh!^H@=0jgN-1tSddm5-~xU~XDkY088<;e zzw3irWGr26rsVR(i#v>zP>WT z`4t8JakwFtqH5dN#i6xqo@1LDio}E*Oe7}7e8b%!2NI0`FFDFbCjRj$!pnQS^+rv8 zWTY|U=jcqx-dpv|2(Cp82q~qDlOTA)R>KG^R0f>LVajxNutq&LBw?{htK`MgF~Qi0 zLQ>0B*#WU&=eIKNG{ec16ZO!x@(w9e>i3A$8h<*V;(Wkc@2tmJS)OIVD%9w`Xm*2B z=|rP-;{>8;)!9iFq#CWZda)R75_IN`s$5XJ%tdaMmM8_{tb>`Nsbtle43*Okr!3lN zqVao`3TLBkv29Qt4nwFB-=b1O2!l>StQ1;fvEDH^Itb@m9hq&E^6KWs$jPJDl~mDS zV^=GcHjSD+WxNo0;UrdApYRG>M689^yTPHbqA)tQ(Wjm%h#$+=PBYx}cQ9-(DCIc+ zFMqS2;!ir%=h2BIz;bky$l(yLWCKF{P(>2>O3ZpYdz^+?8M)Z@-17Ni!VmF2*t8lPH2yui2K)IzH| zf%3&IIGg&yrrZ;bVY(1O1j0wcJSkJA-2ji^ScWO>_sHPuGWYDC)5NTm9*sQ!b$jRC* zriZH1f7INY!EceyANNnve@o}=D6Tx6yR-jGsAKK?5``1G?ww)r5N)R&+Z(&~nz84p zAzZ1Zw7;%l4wqjAw4$R&05X+IAh&UL6hJ0_tF*~wLd;D|+xFomxf$A)uX*&%_#oLe zgT}p$r^7#PQd6hx-I|NO6ghiJ*!CUv_>$qK&pqZyE>hO2l8CP+G|`h|Nn9y%1~H|l zzYvqVXgaq+izO4CUXDT@^q$cXQrTp}u9#o%hHOgiGOhQXDm7B$YJd13naEYVO@Z15 zy8cr{5jXlOCo>si{~>bR5H}%l@m8rju}CG{VLO;h0ih1V%Wy(P&DmsoNnT zZ*9}g7KJ+;g&f=Dq&&G9ZbANR8H5rBS3E>!FJ9szOKFEf-ll|GeQ3@%zo)6Y?t=Ly z^Pvz}nFnenX@5*f_8}D7o$Fh*GE`3_#D$QHig`o`Q-<{pXv0CCrXKHbLJB>rMyXi) z=AQdsImsZ~={HsrR96KkA6LW;LQbZ&`sxN~7X#J5#|;ZI+LSiZP-DbaWL+O@+vFH? z8LCdg9<{iaDy7ZcrWoLt5N^x#c#sP!^{$%*Pq&F{ZNa)OuQq5Xr!Vx>;p)^{Rjw`F z8o1QC0?1IY3$Gyco+ITZu zS`lJiVVUDPa>Epmxn%}Nes;{*?%~G9A@_n=VgOkUMV1?$7;9QDl`EyojmOJ14oFII zpfFjSvf5n15cAXq%XsxMhC$|hbqn&>Y)}(&&o8;I2M)Idr49T%k{L@KLe)zhg*3xu z*+gg%RUVD;z=a;=;&q@M?l!pIAcy6xov=RX95NCcH0iMOyJjZn-Cv&fdDWNlC4~v0 zUt;ow<&ioVP!F_h{CuYW94t<9&iS|dmP`=W zU2bn~9zdi_)&RDrp>t$WqsHrr`QbW1AKi2-t$F=z1CloS*9%i50z&U4!;Vhnq&;fm zqAC7YL*zkc+DLiA<*d_}ZK=*XiP-d5$6g{kg%0ADEE3-5n949 zU)qG^D4ejl)lWNF6;-E?ZR^^RI#kglX&b;)z5|!j3UbYWktj%IgU)Lh(+TOQyJ!*M@$YI|mc{%=U zQp&>k#6_|nsxa5kAcJDr1ZsRm|AzN&&{HUNllXR&qXM!EM%u5kK_A`axK{kgH*zgZ zs7th7#<#UTLY2&RR1`N0fu7yWhriVA&OB`W4C55F7HulHDY?m-o?~6h(_r@bZ9&`i z<1)6cb;ch$2ONnqs8v;psB_e<0cl0p=Sx9-1E}UyV8k0B&yKeQ9zH`9Txe2)2=WO5V|_# zDc7Fr_dRgcHuF602okk_FA;dn-k?*!QyB-g8f{VNq90}I#C{sYUu~C(ju^V+UhxCj zZ~349Eu`7@=VABg6wZ6nh-Yu-O4wSusYi@?<{s9XMY-)MlIDG;ZGAxc+|~ z{dZTQD~lTma)U=X*R_L{V-swZHWHzsDb7iu!O~oI31|Ewz`H{ByyeDE{H;Y>)Kbm^ zeaL6l^MaAjST$1uL$i`KACh0yp8os!e=KTC8u`(BUg%PV%y`#~)Ee0pt%=3ft9O^$ zaGRA|?L73ON5e(A*9h^cN#XuE3DVwOah8q2opXJNOzK*n8O-ncMkQ*!fwXACSs!>p-=)lMO^5q$<+l zk03)kZ#!cPdmkeMM{nDop98hUV+euTDZa#@n7*qqp0U~#gSN?$j;hJ)xsHw%;a0)s zx>>rJ&Fze|ec|VhC&5U2MlWC$+Fvs+PmJ*HU}{UsimNGtoqypOONq7Cm6Ea7(DiXN zwe|?l<6JG}j>rT%m6#m!X9>+8Y%=r(5=$fK574K9ZC2qa+s+sdfyf-Agx(_?W<|Z- zn3|7H*@l9VwXyV%kR*QDA+X_$mxW+tw&8obxO!&pD^DbxB&sAL&ii{TfU0l%^2+ zq$PU^MW?AL&4MV2CY;vgF#T=Sw}-p(aM>T)+ZW#*ZHvQ{huMy@*C@rAtI)RaThbmm zKj$&*x#|XeDTdU+HFHKqj-LBNDk9Cc$&Qd;8eLG+P)NHE`?2xhXywKeF5%p^O^f3` zvg9nNGM4}taWN^1*8BHha{h2*!XxQMkXXDxR$uxQ<3%0VzDbX+%ugd0k+ak5^U5G{ zvXa-~T=kqa-MTtVc=FS<(3jciIS1oM8%C>dy3NE2gEdIAhp4^%&#~dw;PT8PvDFn`5qyA_U<#*mHn^m^Gk58e+Fgt9oC2?ibr$Q zSv$SK*3HD!;#-wfCBs%ac7_5&h7$sn$GL0P z$6PQNrtGM{Q*wOCWpaE;Q#|TdBz0PKv~*f@gk<^)DqwdNypqZkypqRwd~2aNnS4{5 zETWBjSWsA8kbiQB3k_<0HgogN^4yKS*3QrnL(7^mwI}kQKsKSR-&sFB;T;;0Z&$D_ zur@9(eT99-!yUDQHDP6Ye1Jc_)F9KhyWsy4rWab_T%5)mIHKa{eiLH_hAM z(p7S5z+j32>hGR!Z&CpF+~(z3DtK)YVpqV%&h321G3#)lQR?K?8^dqUy)BExh1Y6Xf>$J7#soF=H%0>_bzJ1+G3uGAt7q{GLto_bIdf27 zerBZx>v{2F;WTZJ#EQ4~c-G@8@iib|)YP)9bB&_G)K2YT?kH1&9tACzYO{3p^s#hM zv{vsz@CELXn~U7AZy|q{&(i1*IADKO1C>=&KQm5z;P`TX1%2?tzQL*PN=bg!mHJ|s zuZ1PH^Kq_pf*t%pR)Xvo11`%6)}*p@#;vT50_Y*n-63@RUOX2w@3FXRYHw!nkC|uR z(YtG;vin&wc0p|OrH4Y4j`Ebe7D_b`^sys-zqB`B(}UgHs(KTh@gQ+Lr@gASxG5#V zsVXVh?_rYnm53X-l~+}8Lg8%sc+N!4m73P%waOS@qgd<;Kw?J$68pHxU&{Czbq72G z$W2bZ52qk#fA8+orrztVS9*GzHq{IMpG4eP=9{K=@eNUzl%CC<8Wrxr!hc@oD*q|e zcXpEF{J}WSF=`)nN`NPvCma_e(8q(MjyVbIX1Pi{d$6>&ec*R7;NtTq+YguaLwr|~ zpFTb3Q+jUf9Nni|GD;2FjTcH}4zjqKeiU8854|1*DAH(6B48R$ya3CkQUy^GR2-kLmC$pDP6%FkcHD>Yexvc1mq$9iqKbbYNURpNo$@ ziYP&+bO98gsYetP?1{jK5qC--<=?XCT(RvO%q@T9ub$;o9?#^|hj5K;pYjRcMhJp) zP0`=h^D1tB++gbMV+t%L1{KxKjh!EH?!@asr&^lo^jJPn{g7dkpTZ|3$}xu3(R z;pzn<)w1!EbxjYcddc4uw}r!h=5I~5#XGjh>6F zzRXp2mV>DUw;yUe4m)0J0pBcGd|FrLV5jvSwW(uX@rDt_7ilpfp?GhNVR%VZ8g5Xf z3KK1lfy-CnuBr^P+lX>bidK4lzy6_M-HRubf9+SruZkz3{9Zh3Ht#q%C&gw?$?yBJ zZ}ID~RpHzNP569;!;W8&oHJIgO00Gv3D}%4t(DKd6dy*F=|8wV`(>qcwA=j7b;Hpe!n7xOUeBW+n-_DX=dTZzN|p3_1xZ@n6{8MHclaB@*cfIyYGu?L2i zKdh9le3`pFxPM(n*8B@|6Ma43FkQZ*+~~ZhxlOQp3)FJ!5!sZi+1K)G+|)hVL$9;D z1FUdQuvMC#D}kR9IioD!@&qQwK4j|jJ<5qg+M9m9*;8BRSMHyt;-ArWD|tpABP(_B zX;^pPb}Wo(vrgT48#JIB%@Sm?AP+Rt*0shKG<^2!yL)%HAKw@aNlT6h%B)RA!!;Yz z^*%;6WiKr>W#;B(5(^3g>gVPoE|*nh=9N`8#!pT)B~(;rld5XNE=c&Mw zlL?O}6Q4~cMJ^{_{{T)UL`F@<6CP{x4V;jxS`A-7rs`eOOVQIA*U?DPxTcZH6uz(? zRmRRs=eQD3Pb@(~Tn8mMX@U5oK_DhgawACejk zcdd({4>@Q{U&`}sW0~D~4c~u6OKqb;^Y{(ptD`k(D;ds>*5}gpB$AClJD;7YUB4myQldA_L>&gwdM;wU5$L$w$>Kh)u!`=&N;f1@l1x% z4BcsNdceVWac0_he#oIVXzYfaiCso~W^zD8TYOKbd|ryaxq@5^Ye08qer|0sQO)aw zrAv~SgAlzq(i%8w$hk+T?#I*7xviR~oYq@U6J|zpNiD6ojt0J-?gl*W`A?wHuhvCY z+_fE9smbYDi87#8-5!Z4eN4l1dJy1!=?w;ugSMiPnVN4wuj~t+7D~$r^o6m&iu&Nd zvbvz)vdX}q%F6%86pbz^s~8z8UNkljH8zqFF1HV@4sB|0%B;?8Z0F|wqFbYD*j48c zDt02&PhaM*n#m;-36Ula@HVq--oJ(&&9TDJ8!? zA@HKUv-a@{VM=gk3MuDWYDklWxvK6ZLshw`ddRU5Hv{%q1uD-UlUGRum;LKwX4R|l zbd`2A!IjumZfUq`&u)kn5pDYt{cmlR`Tt9HfTW6*ttThXV5#ebV%{?YH7CownjM7q$Rmc0kJrdIC_^fq4)jnp

Fm*l|0qgnMVVk{u0=EDX%!k_^oa zNmq1L7vI?O(y9c)F19<%%CoMR^777TpbcKS!E5Cy{#T2d{*&mCfV!5?SFghJx+K5w zHc&RKj3xWci&^|OQO=r)*z7OPKprGjfVX@zFm60;g6ZXRtTG)SskGbt$BLV)5|W#% z@_>^b&0%r=4SjH`zd1F1PG8R0eS~6{XWBe>FEZV;1D90GE%h=)x47JeQMO zHYcZl>?c#LTT{&6Clq4dW=6s;u{`4Sd}ijAgea+r!orPmL+{b7Z0DQON=@$-t{2?S zF!VuXv-7eQ7`m3W-fb^zo6Jb9*&nvoS$2Fm{L({NK{|U0MX(*eh?3U{#Wv1@%}Iav z3Mk=jB8KHDeh(*VwVIOu?UG6Y?f8uh4YW>0`LP#=a)kDdA3*cUk0;(#c?z~9{Ci3&&c7F<=A-2|Nr+rH{C5;HkLtWK zMZ6s!Vw6hC{+9PJLc>ShdnS^&#U%BA7=5ex2|2%cZT@D*&eIYU_*2 zz1Rv(%5@bP@KorCnG>+!$=Y9WNp?IKyGYM8hqg@U4Uf$B&c`wqhhIlT@ zpsyet!XsQ=qC(vS9Kyof-NM5idCv$yg++qdIKiAE3`g|P-I%sq3>87en9E@Sy z&B)IntH0nQ=gX5x`OYUIDaDlH$P>sITYp2L~5z8f?bU#aUQ7gcvd4GpNVf?W8(zyvu5K4^%Zv;MydF&3gBSs|T`o$*M&1Y~RS z;VvJmaYU9(=}wN@u}-bi#u>$=#FXX|Vq#k=(zl-3J5$@hSWm;u)Yz!Ymp}V#HWw?z z^VGnU5JxPDk7=sSA-7$tmRsC@{t%H`DrYLj$!}|ItEp~go^r{=>MGrp-sW01ofRTi zpc5CTSfG*}+?;?p=Yw^OJb&vOiwmfVO-;LA4ryB6Oj$$ISXo}dL^(}#xGf)f)A_vjm+F| zI1CPR0ykSXRy~$ZF3ccY`}g1dPA>2>o`b#pzd_um6fbYXdMe*h{fNfAKoDTRgT@4~ zj2|o-2(4_l2tol28#tzD{{0^W&5#~rom!o+g&hPfP%r=;K`-M3RuhMAg^mL>#003Y zH30ZLTEW|#ELvskfgbqT4ybyJ3YP`or#>J9s|T0BwGCkUNDD9*Il$jvt30dGV5}O_ z1)#l#ZLbE>WLvR_u^nI`S|l369RXlWfC>PuXSpslmTGU`w9NPcky}0Rhjrk_LIrL+Dpt`S zYzh*tUfSJQ3T|<<`hyecW$ogRm#dT3P07mD?~_~XXr{!grnVQ{PD#A7+L2gOBsaFv z-C|Sy!M=L+43KL2bY>NxJeGa&WdX&HE&ECys)BBPQ|=hWH>}>E-O#i~oCd7Xk}aDp zqPOh}$|x4{?E>_k3_4?X&Nq5PFl-)bkD9ejbEmf{jsEEM??(#mpS4}Cs)znR~poL|Go+=nLe`Ms1;8q zE&x>ITg_Xd*z5bqq_XTqy>SlfsF|>ri`x#^2i@}~6&u%J;WqmNqh8u8<-H=%&vka# zO{W3mt}De^6aQ+-?0A*2fI~1c@HulzAprmLe9HyLqU0BV(XuJ#G?F^Ds>48- zXKf->6NcUsP<;MTd)?GS`XVzt+Ii}Eb1#-#t@eXbP9XD85>jJz5(=Ch#l&>=`aKBX z5ZXbaFJ$1MNrYq{>-Kw_2)Vo{+fVzHj4}*NLnp56=xeo3-!}0ml-G*^T8q}DKtjY= zQbvRwX%R&nbfy{+(4osQw&QQ-M_hZM_72;#NQ^;F!Z{&qMzcxj#^9GhZVjH?BOU=@Z98>1BI z&T}-J+PUg>H(y7am&Vl*4^7*=j>c#_t^Kxz{ypBn2Xh%2{sD)@fMNcICT<+B9v16d zSKDXJHV<_?TrZ}Ri}}*U_Cr;J(T8YY&)OKZu3Lvg7d^J%nFagMlS{n5+sQ zN--&3*Sx2KaF|J#$&zhGPV({upd)GzAQ6Fx1&=|+njAQ9w?Qv!6u|=aHkzI4&^a`M z58w$ouI$Z1n0Zi9V+#@x8^(fbBHkh}9sph}vQ3^Qukzins@6jTwZ`n`ATUM~G^uoiz;r9;bwDEg_R zFrW-diz9nZ@73(1ckpNDa8j|fw?)_+=b$magOYtP52j*}$GI-eh81Edn31I%GdJ6d zj7G^hO0obRIu1^pncS`kBraj%-)>MsVmAm1`iaFw99e@USo-@mrC`pl66BCM6_q~Y z9Ws%{y4j?{h2lLG051n4Zcy|&Eea7o?cvtZO)K@ynuSsd z-OUk6kW{5DNFvuXp2AKOw$P|9TNI ztQODe$LjO(c*H^WC;&hrlnUzi&nxi1Y7zgaKbLyPzpCV;+VxuvG5zJfO1i5hI5?}z z^FX?5A;e(8bC|#=Ap6trE#u%^a7h)w6LFQW*aLV5AHW95)Oqqf_R?oPrd;LuQl22f!fLS_-Bm|&NTUJ?gKw=|lD3LS*}b3v zD^kR@Jr$8DPo;C8L*fdo^a(Mo%L^$4$SoDQh|y)u9!x;c9I;cEFv7ZP40K2%S~sW< z4uk*Iti|9^53Q5100C6#w1a7~i4S5{BwZI*IBK-@AWZ2%MCQQCX?g3L{1@b*U@o0q!@r(^=TwvX^-W2;$4(* zbXXNx$jo6wscMO5?5Tv;D}PcwwvTh%uYS!#V!_5a1*O;_Y?mra-j@T46LwVWaF~#v;h&Xe86*rBM@x+r`{h18-9IXvfCMn{?_F-qf15hGnPfTe8P zt(%CYh@QjYIKW*fHBMvhW#GO3_T$mRcxRHbi9t#v$lLd+HLg?h+4xNk0?>P3!d!4TF&9qc-bEH)3cnf|YINEx zkz!zGiig&moSMdwwNw;YA(MbiiUocfhoX@%1t?H(J*z@~*%YkA6lr)*D{N7H>zVRaw~?t=K=*S<%T`Dp~dNNZ_O&w~F*=eAs%tdfr>Q zOIb-UB@PkKH0okAp%z1%u66bsPi@dnY>t-BGmrb_d-mZRoUdY6PATQDi@_W+2=wXg z9@1w+JuE9<%QHBo5Y$Jb*1f6UbY?I1Xu2=%*7=X`?seqz`683fC6|fa9!FPe)Xox{ zx}8xu&70HHW;T5=aun^v@J=Ek$THdy>GPep_-v}YQOa{$sLn2?dh!CG(XYKU-fSQ6a3_&B^!6@5Gmq z){05};bmC%_FI?ruwXJV>;B`1zaTvdnBa%vE(z+O9+cF@$oGqR*1B8qr(sJ)%Gff0 z&RpnL3Iav#b18n;(JBJ0TQ`pi!*KCBq6jHF=ppVDN5DoF#3GYh^Kd3@T6Z3D6Qc4t zn$->al~}geOv!7YtM-TTY>8>_8gqZiBjTbDqzi4Z^Mkt#f_2=*(FT*V@roCO z8s>8eG*dH_9_F_2Zc+?2y6($SV;gbL37XXJymjtnW8f$14dcu)W#XrlE**-tZgH|K z;=BDKk9b0cx5=RuC+v+%VzJ|Xdxlf)dS zH)H>+!>mvvP0}4AH&Z0$iCeG7Q3qsW$5hs9@a(NvTartx%1Ye2T=S&Mf7wk^WP69_V^}B4s-%~57nydF zm!eelCH)!TLS2rp8Y|z3XUv$@FW+{Kvf+Icf{Y=pPJ{yAYf&$fr{>f21YKt3H?xVN zo_}cD6yy3DcS7MGl<8|?C=LY#+{$ThB%Upggh5hdK*1->hnxDi4;Qm5ab$=et-UO} zN!AN7l8{s7q1Z~$7+#X}gn(oe9PM>#0X>sd4d_6YnzSP8;=_@^05w!jc+DWOntrJlBtK}_v ztL7sc4B?+4q=^Zv$D=I?8#JG5MiSPGr!6u8wNf#1q�~wcG#NAzP0SuR=_HobN%! zKbmR39|}@eW|$a-?{_wehq&YjBWcbQcQB~|)YAm@(aO%F@i)Q4&hb&p+b7`>+0ZO! z525_37k{>_!VqodtoR31s2o$pQdy88b65{tSFUkYxx%)*ZN(n!#f8J(+g=KYup;h< z=@=Q-%8JwYDHK-@Y4P#O>@|>O_mIe?rgWmqq?3w+7bdt`NP4Kru1OYhEp_P z`rZ|~1j8zGqf1(HX|3dSaWq!sl-j%+IwM{RMT7>WD#rC!1?#3slf=p1xK5ykjxf(U zV7FP1BSh=)2gPNRGb2qe$u%joXxmBJ!JmBhnEV6x;c3o}%1%+K0oi2C9#rG*Qo60< zjms2wO9#^UZsTsN87+lZGjnRtmm_S&8dOVKN~RS=_5gZ9wD;}%=}2{_);4(~ncTbZ zqlcfqK=R+kTmS#IL=v_a+p~uVRdW|d(^uE+r*u1*D?8n?Q<*kWA!S-aYOgmIc{J_k z9z|07{umEw2?fdXQ05jSiy?c(@9-#oP0)p|MNvZwi8tj!i}hNNhA}xUte%Kg)(+p3 zKiGnY2K~-;PM@X70|j&9MqhwS@qoaW+Lqsg;CZFsGUc-bKa00fiuSE5PrJNFBj1p1 zL7Cc}pC$Ty1}i}oTEoWyQ&>$xj(i`a$0=$1tuWhc;S`6pBBCCm_$Apa+YjndZc3u@ zixQcV)s*DO_o4PU`PP2h9Gtcpr~LEjA^5rqQE#H?Xt(U~5PXtLV)kf0Ln^XnF6e}) zOBBs6_r|>&l+;3{q!ubA?Scj~Hp<5tztlhl_hGCk>J&vso7uMaZhz}K7-!XuLxjAd zd>={;*6fYd4VA`5P=Z^(QI>m1#6Es|+$1h-uQ6B&6HODL9|Cq|udOU{FZ=A`?tCme+9MwTwBaU0RRA)`a9R40syQw>wkaI?<%wO z2GIau1_J;95Ww`vx&h5w;H<4PI?bNe|8`N}~5-8`nS%|T12Ak{nZl_q>{394WG znxBAvTW-Hca1flXeCDmpnXW*fpHebRVf)-@pbKtrhXU%512aV4*S_r|V!J`4xEPkN znvz5uvrJY}f~S(x^+)Ga5I;3_R$*{M^%!IC-63ouEDuK)L2|)*SnOPT4Rd9PS(D;Ye#VK=ee);>L2Lz4>Wp~7IwsNpVrz=9F zLP5}rp4>$BwrCK2U+shZdMIIzN3g_snkb&>V$Jq7mq)N|^cVQ3MX+;Y*qBif9BQ&cr@10H zwd6(4aIcNA)Hb&@(2r$h5~G4Y1y$Owc@m25_qd~^GpUJU`Yn_Qg`)H+40dj!*nUmL qLrKqao`t?aP(HA86UFp200$rp zf>RqJfEDAI1#BDuK<=H@$Uv}hfZ!N!8yN^T4geDUIKls)jvGS+JCH74i)094RWh61iPGc=?gL5>)AA3tJleVZ3@DW>~%mPl|@>)rBa~d6!GQO`#hk zqGae@il|43DEJUgr`*c(leLe`R_Pz@O1KbQNM%%8=YmLr$NA_Ca3@D3>^!15|7Z6k zrbs;%JPG2#f`))6xCYVuKB_?bsfnc~Mh&ZohKI=Rsn^xjGbGl*9)tm_|xEDJhx@9iS#N)pdEm$H{8{$vFc zg8Jn*yM6I(-Mf$^VIfO|qdeIuSmKa_i(6k2lXDomh5GUz>Leknq`@NWDT{Yp*|gG` z9qoyZ#y-rfJ65J3^WAfH6l9-$5UqMw3p2Z7+qcqz;K1^+;ecfy$g=N&Ap?^11Q30F z_#smI83)M+(Z?}x^dSXd@j@7$}$|f|8(YcRFXh%i)`8UDsX0aoyMASJ0KXJ@%zWY*lYws z!sS4kG(lRlK*ksYY10OoU;<>4DUh``z>fL?K`;O=03iebL7E@{Y%T(kJM9va1ig=G zs;`9JC)5{LK<`uY8>^u=5&*m)J#or$_0_-xTn9+@3S;M$2Ns50k1PsVtKN7~D-rc9 zfm|&4Wv}3gh0;2D$BX_qBIO&wr&N%Cw^DemNx*Kk~<-Sf`y7hSJmDk>Q>z&WO`0AVQ z5T8DQq$1_VRsc))SwbY8jSDsk_l}r*vk5|(5+73Gy`|}^$V4leUUGX%`_lU&qffF^ zOz~m?TO3QNIu^unC!BQ3>8icA9(d@H$DULjebuQ;w;r#&_QqT9s`q{I!AGB}&;64x z9VD|+YrYGxG<+>n6rbKvwac#q0lje_LAsXW(6RDnS1^%HNNHGRFH{w5M4?)OYOC3V zo*?l^1rvokJMu|Dfa~i4ei9Gvp(#7!tKD|TUH8_uLKEWb;=EBz(#4qK`R02&GQT1mnhr!JTG5hC(Vmf#KD28? zU#I$NUutTto&D11edPKa{gzhx)_1JE)N#~MhtBJuYOl2DyCYWQ)M1@~*T>&6#=%8* zn}=4SFhn4%z03!GIRF!9V`aB~lTs<@LyP47@be6V1Q+vN{WA2^N zL)%6GMS#L^AKIY1_bODQ9rT!pxT$tJp{@#_i4yXRfJgzVYgZden>R+yxmMsIth0$i zMC}fOO=};L1zyG4egle*@2k`yUOwBKH~t7O*MQx(eQd6LnEL-A&MqCu*>jolE$e7^ zh-qF=8N0Fob&*;1ozH15^7+`Q24%Yag*ymqq#V(`7Za&ZsqQ6W`v$0LU@Gw@b9YxW zg4)vHs`uGz5MH)Abl6(&Q2x?X5qP2p14_29S+DiU=BpAFUbb78>CbmABX#Sb4{IT# z%)hfjIbNHOt)A=q$0lJmggBam1)jb5~g_7xM@PogCKrO-h#0td^IV~B}? zcIH{k-qO3PbW{&#FTIoOv+putUMUbOVnzDkJ`yNqOM9`SBK8z;dXh-@hlF-uXsq?}eZ=0p@zQY-Eh^Q4$J<4fqpCM;q> zBt$?sLBB_)solz3*9g{FQZ);;?lZj$eIwEt-Whp8V5h)Q7 zsV#K`+!BQ5SWbcoi*PU_-2(|p2nl1~`-CD)OSDOvwZ;B99fcZ0qY7jDBf@2nv7;`@ z4BbT+Jj#FX_?Xc#`vj-Z1L9+c9;A!r84M)TB-%;ZTmsdKSpkZV=K4 zv*l=S{!FBgs};u8`PL&uiM19sTTvVLB^zjhbv%K!cT^-YHOs679Rw{GLrNL|3RYI! z3$WR4h-I#rKeny5*lZhKE8kB7@)*;Ltd*+RjGvk=2| z_!xeKzp_Tz=0lAAf3x}jZUz8&WR_cDi>;11>ze026xX6-Ts}Xnfw%o3eD7ZRkKUtS zA0z6cz-(qeyJZBP-`{h8cmH)A(>f-U1#aya4KGf#aeGMN$@eF%k7uDKTOrj1sH8BP zvf7JV@|Rm2b#*(w@U6zU?T)+dxo@ohYxlrIk39B7n{nIpIgdBNdmnuC$!8ON!36*~ zJ+QtrgolS9GYWZV`M$$e*sO4HizBu=s>ZQHr|m;$pvBokSKWuM!BN)_-J!Vao>uog za@%81jMd?(_CwF0&2#T{41O@qN8h~k-4Ema^w;~re#*2rH4FJtU5Vx1teIV2hB^cCjaXRHfHl*Tl4)1n>e~; zhNWhBquvf9rN|X0uQ1!_6aeWYk2Dq$c5S@LO(3oVadHdNoI==4q=Pk!;TU0L5|1Qm z_zD65&)EN*qp(dI~1ig7+q@|}+qeh<X8 zt~|C&QTd|Rr`o00gb63DPmudhzeX55Rme{J(#{9jW_WU_?`yMLX{>NU0i@8S$Zx#M zz-r+CZ?hx(Bgy{$RB?r0yXwDg{3H72;wKMEfb+fm&OiVHE9Exk3}Z>8c>pFldxFS! zFT-53G)EE7Hgl9?32~mHNZp57|2JeHrdb3_Symy9|F0kv9${`x3@wlgl;g4$8^8>{ z?~rmQzDmgovD0^=5HgyK7kM6gOOCQk4M&#trB$78n?Mn%-aZR7Ms4z*@g)-Va za;Ax*Igj&E@WyJ=ifFbem}1wA>(1ud1{-LfCN|mVva2%Sjwipwn_y!snM)_Ur8b!lBxAshVE_nk38-#M~+ACdLVSSL$eFbCRL*BE20$&{jtP*bPd zLw(l0ChA6+Jy{wHt16?bAVqm(C9ogy?tXo_4@WTIe`BYv3gRGth zrc51ukd0oKvoK93+HR@~hs8c0SNYWNI2iS)Gcm)i?sY6HAsuujD3`i+lizx}q_7G8 zZ zN61ZRbIh#;=FytKl*o=F%H=XH!C1weBM!Dh1lnk?Hw92vU0xOmu;7+$SM)mJ6^KOy zi>uAA{FQ5{ih{1Zb4=yo)~-yLhf>;9u&Ki-vsKDi<$N#m<%ury#WeS+`HwPgT~E&I z|24lljmpK2_y1Y%chc-grdZxlJH)D3EoW-qQS!8e@$LHM7W4I)g>1h3&ft3O971Mk zJryENEuPdpFnL{WI=*Oe+t`KNtYDigmyEH)1LqB%wXaZKFS-(ZMsG?xs`wtMf{9ag z$-}a~G}O*|m0+Q6#c~p-I&sV@Mt2Zlvc079Xw+A;afA4OX~|D|ygD^HD>&gCgXLTI zpO7~nSGHJr^~~Dn@!wZ+cw=b}WxWRJJt6P((!lOMu7kTpSK*7I(QY=Bb!c_rzlU0O?Vx}?JT@+X5rP|$-`@3?vufqBgMHTcCHEElBfSYiyV2nvfR!lLn ziX{*ucW_C27`JSjajx251%=rH=9QuPS;;sliYt_S0}PIHnp;eV8R~&M?J0@O*wuKm zGVgqQ7qY|Fr7(Mt)!v34#V9jg0(;}p{h?pJhJY*IlxVKjv!v&W_&(MpjB9p=f&9Ru(LC5aHFMBPG-ZEcg5w51E zd$P!wF+mOqaFyMfvyC2i*4R~~EZG>;blN<2>k+_Q6-Ja0;>uKwYT41o=sIKk8kN8s zXPZ0c(1L_+^9T_Zvbt*y39O{QRCJZik@pbD<(&=SQ6=pVYgETYHc4a*#@NnQN89nR zUs9f4$F&%+6JND|tI!}wR88G5giUCR>vzYHHBeaC1ei&4dsrEBqy#KZlOHb|g-)vZyrh8}SWU=EQ{ zYB|0Z{^t6r_v)v9B?L1mW8ON!IJba>C*N=;;clX63JFs5n#*0xmnR4L;&^kOV3K(N zQC8TZf&w$Gpx{j(3wi;U7kzlphxOU2$60KImTyeJ+@Y zd3QCM(}kkG4X}|7o3MzOf5}wo=WMlNDpnyoHF(baLl&f~nj%+LoQYszhu|Rl9$_|Y zNW}wn97s$a{l>JKZWx53}m$9)>w8V z-Nd{8$D2yjPJb~EW(zZ&>G_lvAd3(({|3*9mW-kl8Rzqtvk2>SO%6cYB*o>Q0G-Ri?jNY4;n!3v z0Ig|m5hW6rV<(4?3!)-6hBxQ}_)xmB5by&e16X1=Oq1s5#R#+-VL`h`IEb9B%}P@Y%%7vGSna!{c#<_9i#tT2wdfgSyEjFi`x z5_6fcCad>igAU33WF^{}%{Y#dID6glTAb1J^S_|qb)h6-P|((fk?8*T6>j?N$8H8o zL$RpMI1YkPc6rhM_wyzR6bRBTXiD%D*>5U-FJ`uY^pS;mA@n9kjcB zD-H#J5VePO#rP)11M?c~{qUjYpVl3<9c&Ct>^w?%yOM>-mCU`@60ASQRU8|W^c6GG zQLWvVgaOHljhn@Bie!@hiD_&ZuZ`Z@n6jU?WQZb}_NaAB<@&Y4nT(XLij;&0$2tk* zOUt}h#ut>FH0tl6d7L_U9?C|lH>o>Kvu6i(NVHwc@x3Ac;U?}auI-=={}xX>5UDUp zveb5!Cj-IHiH@Jo13A{EN+kBhHtOm8x}CQjVwM79yr&F=0KR3Ddu4IX*Fqnky1u$Uk+v zya8zEGV1_zf_GG6Ry>0gz4{)LxB6{$ASCuEtk(P z);t;L#%~#>hIpg|tmTE(8=jYjGHyQF2`l^T+i(BMCo`-&9KBz;1LMMd!f}CXYUgT>`qz{cE=k(M22vdrBGFh=0PC zP~!{rm6P<9`&-tBr{kxp5J{z=kXm=e2({Sf=n3yNg$EOetN7%QAY8&$Y@GOcZb)oj5Zc!#7}FPw!7A@~#t^DTK5)Ixe)M@QF=Gp8 zB4C*6U5*5a&E8%I?ajRAF-x$!W#;iDdHf}=nV1q^=dT`R`HrCm$Be4M(TwZ546gf} zd!+lUyUgdfz@1|aAbL~-h(5mlu!*E!J~mK@GjT_FxjF_Q?HEA%!Q%Mr`}yZph2^o) z`Y>P?Lqo^RR1Z?kzoCrHkijomIe$L7G1PUxSjC)d4$Cb#=9{_v6wfl28EQ|EbJSN= z;h!Y=C2g{_@P_MBAQKAXZINsToF@|z;$6%3-7=>()afOqz&}CjuJaFHa!7IVz3C*J z{`gt4*;bXXiOIsn_SGH5b*j~EjOaE{SLud0AuYKuek`JIv zjGt(7!Y8QG{|-iiK*uezzW#nSds+xf!UTT!$b7H&zbGQgD>&98=|{L#+ve3zcbI=| zWvk9o1kF&Faint{p*3eIYpArx1e^$|GB!N-`HQ#@&qw-BvItymY z)!Ir8lN>&~!Zp*Y{{cV24;Oz;nCeERI*#LhFKwiM1094POfk2O!JWkJj>tO034lM8 zG|B~_nJ(PZ+|Mm5&jHPJE~Y@DpI=;O{(fio=icHuIuae?7fr@0siUh~rw-kPrnKgU z3l&k~?eRNz?XqWSbGfUv) zW2vq0{QJ!`TU1QU=jPtG{ukHR1rIOo&M8qc@X=9O>G42KYj|$^a*_hZ`PW!gp8B^- z#&rJ4w$5qt3+5ktFY2rOUpgH0u-7%@8kK~Vr@wRn{_t(D=cZ4@s~Nj<960!*4 z7-B*)kTXl`1r|y6_XzZdOyOqf;ve>k4#Ox*`18n20trVA^svc8+4(FIJZi(cudN?f zu%UAoQ!a2-lwu+gkJGJ|JcWfb9(R_`*_(_)M=Pw(M!-eyu+`Qs!Nwuj5`S-6& zKDu^elK%Zh4gIQ?&65Bg=E&byS?Fhc_A-2(G7JkA`fnadV?H0_Ritd*Q)O<+=PyRz z$Y@>FzA8QTrssvEUFd~Xo1l1dk>DR|@w_4-<-}Qzx%<_MS0D!q5|52rHa&i!$1TVcIZF^hW-R zIc|lkl1zU%MvtQFs}_4xS^)dr(@g9i`XKEBZ6OR7Ov#*6{LuCgsQFW_tRo+&)f8{^ z|3Wf_^3c&3VM~SH;y>?@n;Z(Ha-z2YG%yqb;@YRSrP$7Bdfc<93cZveNP1;tTm!Jl zPpicZ8^~n2$K-=)o%O|hV3%SN`pJ;p9X)%`(!Ixoh{7VG5*h(p?CAJrODoC$pDT;3jxIfz&X>U%1Kwje< zq_R?MT>v==2SIM2IG~k2v1z=xW&TSs5jgToa!qHAcjxqYC&Yx0We}_0+JW5a+#)-` zCC}g7o#+iDa0I^=T4Vd(iQVx6TSw-E5vya;k`l}U(9ecW?wx*JMeK{pGmhUfjLnNC z4wA2pPei43yE3PaGy1}j2=`o*L>2}Nz|eyY}KC+sr7pID-u(#zDuOg5$TQP7{NwlZB# zb?IOGyT^`(iy6lL2uB+qGhMBR55#nzI$Fgz<(_s|1;WhnB z!=1wjT~Mvqi?CH?E#*hq1vmI+MXzyzkHX#z9QH-YI{wYXsYS*&-NC=&}gB41{{bl;p8 z-x6J$m*~E^J@dX?q~~9z(p^>$4BBn~vL--7$2WVNJFq^Z=-KxG&I`@i2FQoHvGzQf zF1>Vm;n(MakFR>ZdjtfyyZ9vru$_8O2S8VXD)94jC0Ju4%- zBywb|1f89ik)2n7s+b$~EKN<%$ks}Viw;>FL~jjZf)|g1=LgVl2hqXv`nLqES&-cJ zvtNo7Qxyvp@0}~u3e{58ivDw)<%^(ji|mQa?ETmiG##DpX>=xg_qK3Pe)%D>v3v?R zy%bB0Nq4ulB)Rr!^s5YpAc{kJ>RlkpP>N3@|NQ<5=lcZ)Dmx)MF4f)E9_yIoKN{{* zq!MCt#atvv1_$?Y$X94rdl#vIfm4uVmNiEe185W!>H~#F89-;0W?we9jdtvdTAx4$ zRy!kFhgK`9nyYDLNH<$&gdZge6Xj2Gb8)fpsv*|WMEM%4DtW6)CG1Nicxxg24TTbL z-nzLy7uXcRY--f=`?qG3nXysR>3)}7j}cy|1soTZ6dM>?7v18gnt;|fRZ(i@4rnD% zQ;M^R_dSJdJQ8K?Zr7)v%mEHM%Fem>Z$`~9$2CDk95=WhGn{u`n?FM~UEzhcLd8ww zcnnq-BB~l%#R@IpEggMqp>JSWPRcSuJkT&U1|t9&E7WSZo>e>(62wfPip#eOOM*j6 zO18?%Q51DUV|6t{bCijBfT@X&+<3Cnv=ecI=sWEjvmqe)J8=ST+E(HdFUlP52bH&1 z1MBN+^r7pEC|RWmkAebyJss1+AGz^PguscOx9xS6Akw${ysP7qvYtivtTnzGRzXJV`&D_H#fWf08~R0&JAqBl(JF{j1}bX z8Q-#ImPl0xmh^&W6mvtP1i+Wjo{xvdG=@iOO)LAy$}0xPt6G`85Fs{Ju0a5#jVB_+ z+6ocuXTZzLi^&JZsb!m5`31TlQSP1y7w16ltMENNS{_^4p6RJ6dFqC+G+~dt^21BZ z7)ESR2~Q);8xsyl;@karZg)#fo&J83%v&fqDJn2q2v_!x5vIgh1nKDO=;zVEUmQA} zAYh1=?X5xU>FlgdhPl!jvJc0`{Gn?!s6cD`WTuZ}W?k-C*$BX2XT*HjI6=Z2>}XFJ zylM?ys=X5-o+oLk9ylibVhs?)&;?Jwhz@6_`HmQ8at1Wh+2;O_`0T{DX~{7_m)JA- z`tIRU|9W48uCS+J_*IC^U5H&1-Zsp0A3097_}ZK2puY@Fj~ zEa7fQn;xbg*;dFa7n2@CEY|GE^yz116^BiqhfUnv{hZw*oefU;bI*Gw--QyB$kV{p zL(tch=WMBk<>VBU_NZx%k>-k?2B8N`0nfdd@CRbujr9>$D(xS=@hO+_6XFrUF)M0P z*DshkwzcuByE*Bp+wt++R9g7{B953F?y6KDA2Uz33~q{uhd+^njU6h}$sJhB;LLsC z-$c_2pIS%5r`LssQKwr1ppnMkR=@q&ZfIs6X$CWdYN@xHGgozk#ejNQu(p|5ZZ>o3 zpx1~f4trkt^|Rk^Y50wnrpS_`S=#|Q4api^cesW%2o>KUme4@P4sy}G=84p^!{ zbeB+Acua+w+E>nTT4{diC^wHJ%jl|~{KJIUMjRIDiNiMHV|kYq^&tw15IrRYT>~#& zgS+aO&!PAnqzoZIr%71aR3ZOTD4yn_{n$lK+F8+nuU0tD!j%ZhDq2egXO*w(7JJt&|#t}1RN1Z5)C^VNbSe;XLzKC>Yi1>C*b^pL*`Ql1KG^WQCVJe)PsTX;K6(PW?~F~vLKOkj zQ-<$FwKtmkM5!5y;-kyXAfw4k3@~FKhhh~61~eVueEWKRvaJr|>iZXAd>L|bs(Phq zChbOs5o!x)*_Ek4{5*f&9qj})4}^{@M8VBs)^)CN4%WfUOoDucIZQF_NFN3P>o;;L z4G${I8?tjN8Y+s)%Ug1?E1N6&I2$mLpo*RbY#39qDd&rx@E?aHcWsYCkE;GEKep)L z{|3>UeP?ShPrNGapuk=rZ_^|>jT9UGv?x8XIT`5H%M6di#A_Kq4WK3=w{PDn&Y`+< zc^VrAVaOS=*t#NeUSn;k^2_6oZ)x@S^l$G=<|L>?jWp2iElsvf6Snxyf@swO2s&IN z`91;lI3_c_DmsXed_PMNT{D>Kon7bUC#;{9VZ-R6p@#U_to{aT=C?T z_~?czV%n1$V1drRuQ%QSBzalUaIYq-+eW7P5H(eZrM9LH)LTG+SAbVYpgq06u|M`- z2Q_rl_QtB_SIVnzZxS)mzYrcV)Hz7INu2XWnIwF~un^#;oJ@aSQ&o6E+arM~| zm&=%uX#<4ynE<{GZ^bu@CULvCL)^?Z1h`iZCxq0H!q-%Cu9BuQ%996w`+F!fA~>r=8lp>kZw@ za!Z%Iv)uC}V9}kt65UC==uRFw+`Wax@?|4@qA#I~zNOoBy}`psK-K^fJ~7M|Fw$5o zPBfUhcQbPOzNpS{At+*x(#2yC4S67H=?WlfO^8xrlx(j(hEvI;kzv>T8f08v7P)zF z8o;e!>QWRAw)C;d9#Kym9D06;O9^dsSiM1umCi)AiRr}3kzTT|@)$0*vdQEc$<7#d z0K#}U5RGtrK4UQ98c6~`Z?K#q{^`3LqqTo6OA<~w*@vjlz*G|}sW!;Q#ewO7x~4Tr z@V(KtDy{rqJ7{TyWKmVtn%r&W$*Rm7@qXw{odEpW05GwCZT1DgGZw{Aql=D=Xly-m zJfF6RH(G&XTYFm{FCUafFGNIERPlSI3HCTB7Ks71!>F+nHO0Fks6xJy$qV_qol?&Z z$i2n~5Or5&?=t}1?W0vud>Pz*UcWfz>ccL49nfDhYSB@yq#v~YqnC1cYicMq(v^q1 zgQzLN#{lF`>5rr~HWssmd z*Q2%hRBoJDI;cez2@iP4ajJN7XPO{j<0E3z!hnUG?m~^V?i$LFLxrx1SL0Em19<0o zz4lUf<;|zFGnLr3N2+b)zTemu7? z3qmPYZLFQoKNVMw0nb72;gg!-gcCoJ{Vfa0jSr3^N%wtra=F{j11Dd-HQaObP-`Xc zez>N)l(M_011=;O8zZ`?6U)Io$8$b@mKY9Xx?Sew9+?k~?AKg0UHjV@NhW{E`IwSX z@40iV>yD|qEQ(_S!u+K}fh;`@TA=Vzkk$lfU@RHl*ByHQY#`oJzxkRgSaDTTYcK=^)=fpJbU3ac z!>SZ+7=|6STF=K$>J^hOL>*QKP~$kj53&gotghB6+{^)~H}TJ}Gv)^v*bE4pPC;30 zn#a=?T*n|^RxXT0U9RDg11)dl_20e$&UfCmKLq;29mcz^rKe|usa8%bKaQJV13Snm z=lp~D-G6A%;I0H?C|3$r?wOi((PPtFTJxOpQqWP4PKDf;_^a$8qs=z40SGK_u<7v*{G6+Myk$qO z7L)=S00Hq`#D@+#taBSKay9t0`=UxX8|CaZAMY^3J;sAgXaj&U9I%UGVny#NU)D%6 zMc00;F!Gil!z%?l8+Is#Nnb7dzs5rizI`-Ib>cdWIw{$Rw@ZGFdwZb%7!Z zg+Ay)L|trlNeR%{+kX(E&aBLI!jau+wBT+@Kd)FdE(x$CRKg(;#VOYXj2e7t_%(p45s4|D`QA5<3u-nPRQJd z@|~(e@RlQ@asEy*-}0vSx@hM<-mLM6k%0HMgvby?N~9 zFN!k$03U{{m}V#0OQtsvv?SMYba{!gsDwXY5XQbbTic?jjBUEIg=BXG9OuZ#$HAx~ z0FIkklx3?aDh-ce>?go!3HQKy7>?|3Wc{nh*0(5@#a4AVdD+gZuaNmZ{GZO`CYF!@eT%+(gH4IFcW&nLQU1~Zj_>-wBiC3tL-@{ znA|)W#Co+?U`2WXHHnZF$$p^-Lq3Tvu$gttLH6+#fgEh!^z&+G|tZLTo|RkZk@`0fa^?SSJXNN{`E;wW`qx*1FJ)5bcfi$qK) z?RJTfox)C=-DiSy?)(TsMl)D4%Gk=CnvzWinJ5i!`9mIM@6UO0A>5bcIfW%!)?b9t zS)LbKmE_-ZQq$SdrfXLD@KSoH-j>6M6I#?Oaq+mHimVr5bZirzell)YJgsa&V*dJ2 zVAeLdwesj4j}{)$nLF|tgZv{){jWJ(G;@z{G*8zD$Xp9~G9u*s2uTJ}D`s&pbZ2SK zm>aE}vZc&JMoFQ*LzPw2C-JISLx{PX%vP&j|1jC(6-juqNJaQRz~2zsK60)!O-_=R zvlqhhl)T^W9rQahH zxlN|@C3U^Q0W0cC^zd@irWq1I{EQ?SoZcl7T((VCXZQ3n#m9a;MnNgCQ+1$`<}fAW zOH~lPF|}S8fyP~a)B9mmgQd2tGKrd$>Jtv-!z^GO9^jv}q`Qo!Y1(|@J~;Wg9QmFK z5nQ~egX%rtZl?=QZ5u&DK!#@0wE381&AhD@gje4qgetK!P&k>KrTb%U1uu(ix(8w) zJ>s!RC@@}Z@vQ=RxLMq&I#obWndHi?H68D9nQhTmx_?%^`_|)YOTI~e7#>A zgGb!2v76|UIO5XeJk9j>IX%7%b;Usj6*x))ZfWz&6$0D^xHg=#s6{L|l!lOnGd>>x zn1zffY^tnUpsIo3tF>L739s;P^dE1mf_V(mZADUS!?k(dNaSv|R z*}2%+3N2dMXRTQ&mU>>jB@piIj0xNLp@FXtHps0rX(7NGhzvdFqMNn7CORJNCj^lM z-wc9MCIG)%LZEQErBI~7H?6vRW*f8FY>javfW}n@RHL2XYGEm1R3D*pn;{_nJ`xa4 z0!2ii0;kI|Ig4~dk-6SwsxOw4W!b|eHjxK$%6i;j0yeo56oB^=NOVxg!3nm$m4#cI z+HBJ^(D<8b7I~b_?;aswwvZ@P06dS^7n8O6bMeeJ4h#Hr-rw>9Pvg*3(mqQ?5%+qm zJFR71=>h;ig?&&^JE0 z6SvH*k2d7e{DpH;aE{M}Q{#l2(M```4XR#BsX|+cXBXKAmQ_wWs`m@QcWzgn$KhOjgkw_$+K@qEmx!N43qtfYuDnY}@k#pud z&I$7cwm@J83>cp+E?CMI=NdB7EPih{6O%3YwMH~&pBeo!lc5H{t9_ zHhInT+t7|i*tU@o`(M}v8p>)g9eBhcCVdk)TW;il z)9E4vp;Q^d7gtB3#Tc8b?E1uHr!p!Hr$5WaDoZ3o3t%G zwJX@bL}|<|FZl#`V`KkxrdLjpnxdhHEUYoiVgG_RY}c?%`kX-wY)>Cv5i|45(fd0( z z000OuPMrh*tW!es|AN_L>s$S(lNDJ-lYY>SS2it*6z7h-jJ?tJUSSiHQe5d`PIJ6u zUnl63Mqy=4-&jr)_l>La@LrUY^%BMN(84HO*_+M|39aQLWr_slFf&qKbKT`X+RJQq z#Eolq(^k^JW+yp??|f+_LwnW|23BPRMdSE|{m~IfWor%c-T^UtA}{}ZC%GyrUsE)1 zBilXVkYtlN&$y z>p#{z7OBmCGwY%7FfcWERmBg@wa(DGBfG6gAMQvPoRrpGAtR}O%P_Hxs66M)&X2|q zqaw3TY32w`s`xC_8p5WHor*@V%(`!OwEM4a7?xK6y4Qp37o%3UWKhylMiiC-?&S)% zDpgrUs4E+{xM+NVAg|7bKTKmO4&{8b0DOSq_0SLirV<2{ zQvu|FW<1hc&UlRPzf!_qN@6_4R+~XX-27nqlAIB$My)3G%9Se9NXCr|SJfb+Q4<8M zR6My>wL(fG*uj+%T`+HO8pXCytls~OT}0{FH3~FtOv}W2my|QA3NcD2cBTA1oZ_q3 zpqy7Hf|V=WdGkxFw>RsQ3Q(&ys-@zr$k2jPzS?ROhU{WWp1fWuXO%{w!>dy^8c;2U zR;X}s^oA>v$h#mI`(`#Ma-*ghcOC;LI|@&%S$50@(w*2l8@%4tffRF1dyCdOm%ck{ z|17uK&Ta5i`Jw5S%JVToK0l$f+G%e5r1$VuU literal 0 HcmV?d00001 diff --git a/gns3server/static/web-ui/assets/fonts/roboto/roboto-latin-700.woff2 b/gns3server/static/web-ui/assets/fonts/roboto/roboto-latin-700.woff2 new file mode 100644 index 0000000000000000000000000000000000000000..32b25eee7c5c3309ea53facaaf016256887ec0b2 GIT binary patch literal 15816 zcmV;(JvYL4Pew8T0RR9106oY65&!@I0F8tI06k>@0RR9100000000000000000000 z0000QWE+|u9D{rYU;u|~2uKNoJP`~Ef!JJuzzYk5asU#71OYYzBm;+F1Rw>1eg_~7 zf+-sbekH2c%yDoY0F-xozS(R<3mXSR6Jy)RK(KKD5Pe~a|NoM}4H3ca5$$$SVN_UC zwRMA~HSviymfov*Spz7!tJs}s1#L8IQIy!uXk*#2IHK%f!4Ofrt1If42#YwM^HeLo zAM5Mz=wA@5`RIo(oIweXU5;AV7X-#t8fL5&@3KSHJ{o(E#?JtEazrD19-_4#dtFsM zvp7#y&Gzqp*DpusCq|J z`p4zGxck)k%}5B$>@I@4+=ZB`dskhzyCT^l8r%Gk1xzFPcM>j|OQ8+1sA3Y}P<{Jd zeSg`k_cg(E_Y7+UGty|`B%S(zc1;}lM+UCkRY2)oY}#}DF*k;QId*6`2tudkh5vGx zuB7Y5tyN?|QW~HM4h4VTXwD7ZZ>HA7xstZSjPRc|TObQUpAjSLe{yXv%|gXO=ZFxZ zO)FOh}BBC9TLK^Qb~nO91cQQM|h-`LX<{z(V{<* zDN$bK@qjc-=VD}xn$Ig%w)C({D!#--E zdS<~3Yu3H<-nJdP_I&ioH{bp6(=QP1rXUcA({+?S2`@;1pyGvv+$Un{@go^g4NE)y zxOs08+eHF0D-_hh&TVjQhg(}bOD;frai3g*x-_1V33p7IGM!%b)+?{Q@zzROZP%K0 z@4UBT*Pf3)rO)m7V&B*Ftu5dC5cej`FTD?jMp)XGanWuCq4#v#qu(1ZkP(rG`J?ag z_kD~PqAAXeaqo$+n34;ZmML~!a%+SjM4U0vY=50E6o?SC+X$!d_y^on`$R`sv}D=y zO(k(d64=dnyBK0yNI+(VT1UtQrmcchO={Gp)wZlz_s;wD1JX~w21BZ=CV>)v_)egsS6Xw`v~EvJ*{ONA+Vjz;O}QY;B<7+^>gv4hbz#wxWzRQ7 zAy$oq%&MitLamRxB*mS80w=GMHS6AapLSx|wdbQx9}lNoFIu0uw*pS64aR-v>$fnL zeG1zhkhDx+7=PZJb&cAF3Y*C)h5j+ACX%-Vx@y|=ldjvwq==dZSCuh?mOKl^ya`>r1My&u^0VV}#1 zQ3Q86M|n{#eIU}xzTNl&-4XrnG+756vi{MG`)qwu8vqdJ^zYMye-85f2q%dL-BzbzwiLAjPIf&?S>4tK-} z2r4x2(Pj|b%@Ii>gB;RZe^rfn?~HAqP<``@I~dIb zLNX*ncF0bEIZE0wqK<={z(p0mGX!8sz=3EGr%i|segrafNzsF(Pmlo-=D1nlLF_{r zCfFCTiAQ zTpn8hS@ayg7o`e%X$7~{ddQmhcx^usc6s_o5Gj>*vva^XE<7k!9!f90^ za8tBb!*MO-N&&!bnCG0!BEo>m|JjoS)Gwh2`vN_anv8CHNrXQWIA0bU76m*4ksT5c zNCHfhr4a_0NC4w(0McP3QP?=1x+@#rg@7)mzgP<4Xp9utU|}8LEZJxS)310glpF4x zwb$O*bG~UAXSi?$3U`Ln8ZnTd7U*E7#)pA74S_fwhtb2YM|b$HUL1Y;4H&HUX)?ch z*jdqHTyxzGH{Eg@3`CqfAnTR5jSJ|HcO1~xwXWs&1WnrBX8u}W6X9T;MOXGe+>U5} z_0$0V0_Tl20nngl0BZNnfrbVLjJy^Kq$~cvwDu}QyAyB#BV2d^OG_bSgD&01%y?wO zX9v)Bs1vti2EW9wM@)(gRbxM{#?5#--W@N;_frgYsm-SN|G~lkI{*M61g$}%Zav1$ zdTi5|a~rk!)|6v6E_QxryjZ;Tv-jk?L$nFt;Gp_dRj%*S{@;uId4)X8=Jkvo*uL{*L_ZG-DpU8(;c#85S*B_S_4Zvb^-lYj3=@ zf-U=9`X}ee_1PEuzWOH5cY*)_u;hS+XFx^B0Ed^O-kaX6UO2Yi`UqZ( z>#q>J6z5a$dYt+{dBaKDTKr|pr>W^OZ9%frfR*Mx#G@8EF$8LN;#C0IIm8Dkhguua zVVv;r8!&(i{8LC(pk84Ip|7~;I!ij{C^DO-feu9Gpn<-S20j4oR2t+!Hpq$HW=rTf zK0mU4jyCNVYtR#`w;r&0elkmd4j=TxT~>IvL|X3Lh~(3tgALQ}l`b8p<1oX=9&hxY z7CTfvjGQ*P#dxA4c(;~_Qe^PE#UcDo9#SG{@I-x|YO2nMaLPmk_>O&&hj)a(n;Sr$ z-=gX)g(uP+c}}w1m*1VQi{N}8@2&$mF-Pc0)6JjsR-|GBI|35vvgkC_q0(WaX9Y@H z^Z^@FiGgVadvMOYIrL0r`+K*iob5`uRXYz3N&nVKBA7ai@#kkDj{|e9%MN(=b4BtD z*_k{#5)+GS(Vk;FXJR^dUnBi9jQ(`5D9Ao4s2hdkTXJjj-3tUE@Ws(@y42Fcg0M0Y zBZEfRNeu!y_HTnQOv6rLIo1rBS~?;UlxyH1dulY0W|%b7TTb2zu61ZO34=7GFv0{w zrVuT)L0)wHjZ~q*l^;)P7+cVz%bcZ4Wmr+fR#QteC;A&g$2JtLHBBZc6*K+7O5&wl zT5a{((mdl{=gz9yd37#xky)iBl~z?wA9*K%AjdyS5_*k6Keeg zIU(qjN!rl%%$(C1rL+^yoEW;Od{Jsy>)>*yFR(x1t(~=T+uy-)WkfSI$tc8xQkHP8 zlP9{D0~blhTZBrxMO_pF1!%)_h!fUu+#EAN0gDC5gi%T$ra;zu4TLGK<~>BlIpI1) zVKf#H!#IrCFXOaBk;qhTIc3?jG9rkDo;hQn8!J=n0we8CpI1M_n|F=eZx+MgPtL04 z@m7V2J_<}O9N3jcFV&%qVzIC7O1JQ;vcW}0;#m^uWvSBxpX~rn z>4~E8M_|A94<8eUSO7WFtyoqQJ!0xA`@%59aRXmAZbB<3t zGh~OWSSzT6=!`psi96a<{|`=4shkF`Tl}^`!rOYJjB`QSvL_V{RyrAnZ?tnUa~%C- z`qNpVN?o#=$}4I^n6$kqb@Yy-PQ4QK#6&GY zoPXq88uk_c8o9jjT%i6z&+K^s5Q}?oR-`d7kt>c5Rjz?yPI*CUE1$2>q2)W|-g704 z5`C6lpI)lqdrBF0h@!=YF>D-*v~yP9V5BZhWuFmCT2onix#5In>s=g{v!ZlYC@GEw zQ^w^7;B_wOH!eu_Gr2>u_Yh@P23}Kbbnm;#!H6Dptu=0goVgQ*cGa<68a?I1Z~PR$ zOuv2va!r;cUeCq&Bh#NPsUrDN;?hM{6FF1d!`FM6vfz>0+LoIGIo?^5aikzUZtMGS z9Xe${V44chmY7z@C7(=qWR*+uM4o5OX{z(|8FS+tbRI>Kb47wxf z3C>c^p=ZE#p}>hu3>=(`{VQ8SVHM&S1uS+%+W>(CYt4QPmQHXCp;^orO@fc?mK>@r z0TLACr?F9?M6sh9B~>g*PjO}#n@#f<_DyLWgF3Q6z+A@;{MsSTM6)nJf%59hN;gi& zxO&def=j~E#Snk*M5fwk#YiYkK78@ zLIOjXdixoNN-Ec{^fQg=tw8VkX4ndF>maV6UrcCEqIt!=lXh9>!6(ooX5;T#!)zHY!1z z%`zc~$kW&ts|?2 zU^p^^q23(i1au-oT0X-MBHFD<498ZBpH9#g-v)NXA|3W3NAl2du=`lTQ@=NPvFFWt$iyXqE>P>&xAf#VOkQ$ zPSYgArP>Xd4I&%bK2r{nhKx53WHsSP@SI~oeDtEqQ+kN7*lPK$4@x#RU3}wVAvWN_ z{1Dr^nY}F<{e$T|&xnwLZG6cYH)xaVT@GPDt!7}^uuMmeGymB<)QeE8{%XaS{&Ni! zNKjm-rbC`+v_ye6$sw0eaTRNci>@k`?9uYIW*jP&1JA!cm6elBK}EU z6hJ^I?MMs+-qLC*kos54#;jP-g3}T=Fr-Ak8hqR9X$fK{xslcujV1aKD@0<1gFroz z{>HUik?otijD5)FO zEC0LEN#92A9-cXnC)~b#^b1URUxTluh)koJny3OYX{=0|vmUZF?pRIJk-KKOM;o7) zmWva_i`OLEyDmsgcB_YnR6ktE9da%5s^`B&bhYbmD&l57AzRdU>ePJCJG%M2aJX#G z3Na|~>s(&$7hP(2!I7H%K8Z>2i=#NYdN^9UxPS7#=tO5|<+xvY_Uwk(Z2iprL#sa@ zVB%RR3|gQ^6xa7^c6VDrQFluLDZ9J5ps=SUe~e4djKne~8(8WYlL=a;BxA*lGugc@ z`Gq}AMI`psmZIYB*4#0;7STrYY__$YDT!rDGK9Y8TdBlEp6SSy!E zYxPzYVgQ*;FtD_X5ygkem0dfwAem(MA@TA@gFJn$+LF-bNma!&jnicjTGiQlI~qx4 z@K;D5?e(j) zCw8vD+=FUC^q`uXxjT`F?oP_{$;%k_>1C8@l$+|mhWnp>>%a~Rs{OC~`nNXhFj{)Z zuZ14ua|zbw*YDF6%J6K3u8=SoHyUHtZCQ~(-k4eX;Y0VhO!V~)clTql!0utN(RL-7C=uNmI zv%URN{KE*w@ocbLa17J!<(G>kx=n{$w_9~Fx>UiTBj3gjAI0UHz|fWj_bBhM`=-j; zL7Fj-ccHCigBASaMwk|U?33Ii?9;SlZ**+m z=!(eO!m}S%&lhgU7z%`Z>}S}{yawCPEh0%*X(f?O!Jbj2vGLI*US@}cmGQ!A%4RbQ zI|!U{=4l4K*#k>gPwG#+!?QZWw>FWOG!UZZfemS9-2C-=ap9krNSwKMSfr;%7|X{q zG}6b55hnkN>Kf$e;Ob9vaizD==&9H!3s!j5#3t`rQSzsi%>3e&q9h^E9m=HFTM1c! z{Vxf~#!-s^VrhI?M5C8WL|sBWv)YH7n?~1}lfpj<+f$26Nf`O!^y~7|h3)&ds8*F;?)KJJBz|8#IdxMv z=R!BDn;TOUV7#Ml%x9}f(ep@J z;_60v5aRF?rzg8Z__suSb<=ezLx+tOj$E95h^6yJFAUcSC<>t74ds0L^_#vlP-K`E z&7WbKW3A>wm9szboOvQTWimxKO-0!Mlp*E=M?&ck#}K2y97Yq<0T<^lpXlAG(6A=o zBN4Kxok>pxmVZHfiMbFXF2Hr}Ax!Mq+jV%Kf0T3b(@MLN56B&DAs}UxKz4mvW+--L z_bqUJ(Q3SZ_JFZuYmYFDShJ=1$_x@Wpa0bk6>{SwZN z5745`+iUOpbPd+yjo2;wj{z6w;kPDtBig*4Vnk7qy1{Qb3HBYdM_;%1ImQ?qk!z{Z zfu8xlEHx1CxCvMODYJVRm7EiuaIyXaSoi$Uz1`7CB>onCqaW>v1rM>vET;Y{wq#os zn~BY{l~-BhsC>C_c3~yDU=!L|RtlvLuw{j!{(2{28Jix^{T`1opRj&U~DpOCsyRdh%t0NjbbU0&ll| zW$n0rZMn)+ruW*AYlDai#f3O;zI_SSNJ@ zh-K4_cFRBUS+5J04*!I6e-(^RjtB`omk|!3>>Tf0yPu&F9MqMY=^KXATz{n`-m7NV`<5JyL`f@7m?2ek;A37!(ib5w<& zJ?u=?$wNFP=)^CA;Q#A$eBdVXhim(j{x_bIe;(Y^FlP)`%CQWzY7t5PT?0}Lsb5X9 z+Sr%3`&7~j2?myYH6-q3`a=<{bI z3I43+$uHRd(Y$4`ZNZt^ezQ7$X(4f)8B%3aQMo-ni0UCsx2GM=^Srh%gaJi>v20Kx zD5*;tJ5#JIT`0yTG)gIrVkjd{h#eT28L%=%e$YOaaUov9ucFeq?q~I@FF4q8n5`BR zEuy%YJNr&YoV9s_5-0*CdCB(#-h`<9sV6oqkuA?SSMNU@Q0n&}I=QE-C4mi0pBI_p znxq-{2SZ4ZEGO_LM;A|awa-Iyw=jbqc8;EB^@4w62u{XF8Zer478~UnZTSFPqE#{_AQU9&0Otb_<{>1?Ar63o4GXsr1L6)im+p6#CyCe(7^d>= zRQu@`_3$YSL6j%exx5B@iFo}aK145CGR^*1@u%^Lhd(E3F$Q+_RI;5h4(mo(K1r5& zPkB`SXLvs6sZV@|pBUVl?%+ysGVqkEFyp_ma6?Y-nK9Plm6Nm^mP?&jw@}CL^fQc+ zHqtXZ3yn`>Zgtj_X$JmPA|RdMK6B4iB^C(c>Rwc}jVE#oIFh1fgs=BI#M~brqGW#W zbng=%{+~l8c$}!wG0kzx7)6UW)9Rv{6j=3agQl#;dVo(Px>RQsRah)mqFw_?uYUqfmJ2l^(%6`5Lt2^B9 zzIsTgc>HON+|JzgP5Ebv>k==YU~Vg}&aE}cU4H{LAt9=NkV8;lIjF~U1Qk2s47u`> z^hpK#%KIKf(MCjV(_Rht`rV(~j~4b<#}%p0t_~*7zCOI`_`MiYWN2N=-FuhMrDo(8 zv2*-ur|&Zxib|a<1;sT{6L)H2ipnHQStXkD_SIIwl1*c;?|FRbyjqX89s7R>ys7I^!em9xdjXW(1pYx5YFvy9O2 zcpEcvI62byPMBx)lPJp*{^pLBNypxpIH-CWxY@=YV@u+xcpH+wffYH#$}-v7@(E7U zo7kBWl%Q>W^lMx)ycgONR>3w6z1Eftr1+#P8i0c^lZiVb9YxVqZ=wPv_zlm*#oTiE3;N536g~sJj%#Y`!GIi#M~tYnWLvh*lvaqS{GH4{4vo{KK@{ zw{!U;HjVJv^)Vi-Vdg1-b6AR`lec>JnTIh~E@ziFq{dqiqeGp`qP*Qj#UmZ#Y09~3 zCwt@{1a+LvD7g|B8qZd%I9@~_PAMI$4n1 zoTX{pofR^r;lt#`c$uclk`Gg5N%tRfT%hWa&6OG)w8N;53EyV0yzR3jo?%G`TOj<;@>_azA9pX$3cG^ zT!~GKol1$1fLuE;Hm`quTp!z*xyod8+Z@reb+M_;D)0L+wd`)+4cb}I9L?$x3vM>6;=l4r4bAS`oV&T$*LeBY)vusK$J(B1R1*TRi4I*FZ2se9ISIQQ`bdoAet4;+$bcXhoiZvtD~ir3uTA& zdp=dZCxK3K=7o(xPiM<5{yn6!<83cZENcvU_OJx4lYZO=j?zEHh;A9JiaP9YAP$bx zV;e$Dzdm`c=+FA21WFA`%46TAnUy0vXzulvS0+Ai3?IUN6x5C(VB}+sKwKLtu?JOJ z%@6C)@2*6OS8$TrP%+;c-3@mQ+0A4hd9Pr>y$B&%W%G5=h3B;0s&qWsnE2mjUd`r( z@~p}wXz2&ES63*)N>2`^W}zKaY;TfuUKqu1UntKle=2?wj^?RlH8B~H4gD9Rn;G=T zW&)?h#y3)g5h3I2;aj2=vn9B3vG`)~I`SB*Lx(5!v~yaVr$>4Wje0)X+xJ{-l%q;r zK%I(ek6+J8&A{)G8P(oL8-lf7%PK>v?R*jGwcZN0@j9=hmC>puq8m!tw$yCch4v4X zULgw@LFIinD;rkSxl!xp{{%CS<$JX`2P+%;1X=;j?*ZzuS>dsB7Od`h&l%w3`SO57 zdsE9`CCjhkUC2A&g(CY;NXEGkW@-`?a4I-GnL*D?3YD}G_*{5XG7BY{brXpksI~d6 zMd#-tCR;=*E3wh}=pOT!#Z<+Ge>C%?Y5ltTVMC+ODZ-GwSg zMd1BV@_H%i3mCSTeJ78pe&m)11ld0ZN(7~e-boH%bm#7~VpskpfQP2?S&grS_pLK# zJL-OWbm^s?d}Q=xpYTG9eAJz7nc7xaQCyz~rQ8!MJEe18!`nmG%}CYVdfx5smAjS$ z2#JD|b^5H(h91iO$cN8OWtx5XnufNriuzWlw7a&sv!t~7>cxA!l?;D4d)i6UNIeji zOF}L_?r*zPA8bx*r`12GcN1U-e0muEuxVk@(m5Gl^{dHVoV{b7nVWGosk8b*+CU~0 z@DOeu7!rx=(pNt@AEn%Uq@y&ID(q@z6dIRVm>AP_Dd*zVCRn-t<8M1#wKwdrN0VYs z8|$n2hx9dCHa@os?`S)Zt2c}a*Gkn*Wi}<06t^WX)6xkn9ahNYc>cQB8@C)7!4Ajs zv1jtdLdh;vvW*M1__eAD&OYfvdPYKDTSjq98>rTO{`&d0Xfwl89&bdsWXNR`OIIP7 zYlX(3P)HO~8r6_Kcx^ELg8KQymZA4DAjj->6tAdi=2SIrR8jRZ z+f_Guf!H{C6Jl+Zj81ZZ6zYL^!axr^Ds$vMxnCZT2c@B1f}1F-;s|56SrchHQ-_Xi zQ->}zGOgH5(;&{x@Z4i^QS)vU^w{LYHZ@K3M7Noxrh`MrwhP-A%JedediYKUpL$~B z(6I>H7fu>FiYGf;Jz2VCmTbw%a-ty;G{6 zGr~5nlypEgFV&(hH7MLxZ(qFIM7S9T16}H!J>@+fks1S;4CPk<;I?ZG?`z>+wcbT8?ZCW_aI_@66wgD7?T@{Kc?_I;LxCE6Q($BE%u52V6 zxhA_bA6>P#9A z5FKr;QdIWG!!$ePk|TmOtR3*WmIcvEWQkmF+s@?`8j<5K&wj~u&^B=%%-0EzeV?P- zJiNGZiihb3tK@W_tb4>{x*uo5L`%R4oSnR@V`h>_h&3#x7y=Eo5e4u>K^6=K76 z6@nq)L6oE0mKuvVwQxR%W*Rmq69^C#6hevx^HGVsz=mNlUI^@pqS1-k6-+F)-%Q@m z&K~lNIhoUVH#!KNwcI2(lBcV4+!k_ZGzL3~8$00hJj|{64Bg1jv!Iy26wU`2a-UFy zxXUm3GgZemLQyWz=Zf;d1xH&?XOZWbQlABfVctH6%!h1rHJF-#TJ+Y9lp)9iW4Kue zDB?&iNQgsmfjc$hGN3#J4jj(Ulf(pyxDb)PIOS$y!QF;u6DylJmfH`Dk?*sJ zGEsE)z3a||UU!N{9`H#;holr)j8HExMRvmybP-P7jq((840W=FaAO%?p?8J>uB zCl4`JEQytp%>%igBbhYR{(cklrTNxj@KB&eAOJ_%qw&aI)7bn8Zz_cR#cFaD20lVq z`6PL;3cFr$6>vyuguWcC{-;CCFV~+JVc_$N2n<8$2t(rxj}2H4DVvf5q`7s3+OKtO zYVVZN42_i&oEMfmTNOVY+MC%f(LE>OMRNyJ99= z$STX>a_m?F5LpU72+JZDYd4IWA##ym7Zd|p=l7BTe@TiHVH9D( zw0N8`(1`(5{UfHzq@UfMQp}-sh{oCq;~_$=j%md5kqT-}Oq;W18n>b~7F!7<)Jb$2 zEE^hTpt~aD>#B9UhDVILYpDhB6O*vru&wlt5P-zAK51G@i{HzYK~NhK|9D}jMudVC zpbV7DhbAeNC>QgQ$~D3A>XE@}@XDDav$obfS4#7A)osRdVcq1bAZN&-a-Nj2EWHa} zX{dE5%w~}G^G$-mE8LfixLWrdXkpHJeYIGPqh!L~$|$0jbXk4OgE~4BJ3#-ve0~OX zZe_)j2v(YaMyBNQv_Sh#uGrg`h`}4?Lkk&33bK_f7TWl!l^7_;I zcF9hgft%#bL4s|HajwZw=XpT(+M>NTWP}%1cIF;LI5?K zK$mvUbIyrK(oO*xsSuJ7h~SJ3fk-f>*xo{P&udNW4ZrES2+GS*$sP%D5bQul> z3hOeMU1=YdSlTXEObCf#y$p#~q1L(0ORzMd7j@6E&y%Dtq^SsmO`uNNE=)Wv;@9gE7Hh0$QiFFdd}C0p#scBiWpAu?6?ID?=wMg`GVdo0L<7#&7o>Ule0W)4Jx(&QS)!fyBnB5YbEuzYsyqVjC zszp?JJ+H1ZxD@BT*H90g0M8ArnTN66RK=8gb<1SqCXeKnR(ZUlC{Z%oO(Ro_K~x@- ziE3qTYRJ`MD=WI-USA{?gs_cMDoX}6=h(E`jk9Q2tsr<-0-6>zb_??32t^IgY*w*K zR<=VsB+@w1brMa;M4kV{&I<7Qd(st)T*333uJ}w8#U(a-FlkI;e@!w8q#td?oog=9 z6bHOU!PoGe1wQOkglCLtD<(ttkHHIs;d42k_R&uHyNzwqAR&-+P>OpqF{1>fXDxUp z&GZEXN{wvA?!g$1nwQEhJkRR#7SOeHk&GEbL+s*v0u#bLrMv(x&)imZ$4%K1TOL>C z%JCg__ad|74sJZpX1DHqB;Ou_G_!|@%6PS}@aQ^HsoS`>ci^FL=evSYI?YtdtW$a@aK2c5&cy-u}u+XBTxW2qF@QQiHk zGJQHc4$$4_`U2~4f-WNTX%g+ds)M^qYq`E&yw8lfgvmmiE8)ZuDin&8N%LBEij-{V2YE4E{D9380KH;Uzj? zh0Euw7U5CJ%QBp~AA)kqa`a{Rq+rgbOEm<7PN4~59Kw({Hkxcq5>K%YDzcwXfS6opWCOF&3|nm5ptcDk0sSo!LzujUeu}>f@NV+%U>|(OLp)vHm~WwXfc28>!Ld*o zQy{NQJ{lL(;vnYJn3`74N^502Oq!~~1R#cp^Z!eqmW`gLUAm=Ta!;WtDP3@1b${Ug z(*1pUm3Gtb3_mL__V2C#j&75cgAsBExh4=pXBhfnr`FtJM7SNBz)d8c2Z5|{T4?dX zqyQ@o77%K_p|(cONM0*K$I=Qqg}^eI2OwO83gx;XF&cj|QAB*v==+iMhGp zv@F$6DO*u?QmZzUcotaK22b9^5`y}FrKC)g?L;dNRrH|{GZjGZ*E}f*G^^@Yu=UdO zLK&Jdgb|G3hh149Fm&nZRDe4F>QOXT*u6lv+jXH(Z-taC49gS79y26{vPgxB=PdXr zyyGFdnYtT2O5_*L_cgCNR4U|Oqd!bOS{IbLH+_S;Nm~X!^Pos?D+gO z>U>~p)JdMgA~0n~tHtCoP&%XgDKUTwn)oCIrA(uEd!U@z1^HSTh9!<1M8B|@k05mu zCE<}QLi5ryZ*wc+cNH#kS!0$H3rSBlfI<&6b%V;$)tmujOCveZNDqN6P^FL57MCR1 zpc}|OB;!-}Ks|34ZM!9c2pmf(2Y^O;v|-!5%#$VOX)(0^Su%<^0E0CHB{`HOH6w*P zr_q$UsW;8Qu#;yEX-INe>to>t9V1sq7cYKg97Gm!ji&4SgG?Xx94T-;f4Wf}#qL%$&j}bK ztE!HM(Mx$V29nUUKCqKmSVwp|2q1}|5kkkUu{yPk@aDy|#_47DL=(Abs_)-K2NB=l zq0A)M%0{Cr!;rHRUoPSi`w6^RB6#Qm8g&jOEFo+>q-~ZJ=jFfFrI$io5}?ot2r9ou z6A}$vBf}>6vZRqS=nU>{T%@S8x?C;k8c-L`5X>PtU6IS_B<}3 z%6<=j5sxqIg5A2J{R+-jOq15WogW#l8e_9j?FCBig)#Lj5G-Tg~ zd(1HIHQ;)kGUKaHUcCj^zZr*05r6e2{)vMzv3L>pQG;+Y$Elra;cp2`QhM!iyu-#J z?bRmf>4-tftP%vaBR^lg$ub@AO!O(z`H}ci0qS^@A~@R5DVcg8^2NgzaG=?X6koM& zpYe0q*|Q3xzS$JtxO%2GJm3~Ougv4d0^$H8v(aiPylPIiSyWv#Lv}r0F-feHb=8z9 z$BoU*^&)$bsImgqHpbfmVe+OnYFC8AKxo!~tl+<&J9nSyfg*AJQ@(nZ(=qjspJAhq zVJfZdN0na@;$Pa%-xpyq5U}vCD$tWumMcS{W2lBHtJ2y=+Ix{5GoS(fx4>6GL}c&d z&@!t>X7-WIq>QfAY+!~7PZ7OM1DWx@SCv&YNgfi88G*dGXD=A~4n2k%%R!2yS!-Ux zM>1#ch@r0&3$se2rQsgqmsDGhnKibWySy2`R5*qg&>=krj}GD4t6PQ)e-dJY6^_VH z?|iz5-rsqpX8_=fKXtbT_)&BG@qb7EUsTz%Xb?Uy01X%~nOguBZvRhij$gP9 zd;!93zRD3>NsbamHC4v0;?cKwcO%4R#V{Tvp3YOpvw>`R(P`f)r;PBRNQpnww=L6~ zpdBp02(*9>0k*!^%k3N{&V@9c5~Eq=a!N@;{&spi!K(Y=>1#^wdYn5>dZohjbN7zs z)!TCfRYfH@-o-;g4U8}<>}@7{OPsJQCzfwz?J}=#j(0OLT^G+V*`OaHQD4F8XUL%= zA$@?@jZj`gB}+l^5{#UGa6c*xBV_Ap@MJdBa5tW2q zY$m}Zt1NcWSDtnZ;tw3N1PJxtkt;EW3IT2ww~Q9p;MV=lD0M7Gm`JS}{x!kB=W!@Y z{83Un50AXfYp~#)1#PL%>c7gTLh1_Kobop_ZU;LJx z9pdu9v3*qFAjxTn=as*ik6B=~2jiZ>v);<;g0hDRCRM|!iWycWlgbkrYS`l#pHT}X ze@Tif;`4>r5(nDzZeyRZzKrTYR#;mR(v}d~|4h;lE6tHohe@o;?z^%g1v41zvxGwY zhOa8FT}VttDXX`{Ym@vKhMWMiop{85v+&Q{a-jR?SlIat^@hh8Py-84D?URZg44~4QQ_3+CKsB{FTb2%!<ft5luw{MXP9(I2{e3>PI8^5yXHAXGW>I6b<1V9F0bY2u}o5yK%JWrZrTHA@4LM zp&qR)1ZPef->S+NOPT(e#RI8|5G6RuL=V~ng^Nyk!)I6{GiA;eg}Kx5<5+ObQB4=% z873>c7wipW)XqN9?XAU8i{$cO6xLx1|?W;Z>X`Onu4UwvQ2u*TU5evK%BTaE{Q8hY}Id*liE za{a`+s=)d@q{k$>M?NZjNxG7LB3+X~3zH@?A`ZHX! SKY%V8`>= VNC Console + diff --git a/gns3server/static/web-ui/assets/xpra-html5/js/Menu.js b/gns3server/static/web-ui/assets/xpra-html5/js/Menu.js index e49fd261c..1526c7985 100644 --- a/gns3server/static/web-ui/assets/xpra-html5/js/Menu.js +++ b/gns3server/static/web-ui/assets/xpra-html5/js/Menu.js @@ -42,6 +42,27 @@ SOFTWARE. const MENU_CLASS_NAME = "Menu"; const VISIBLE_CLASS_NAME = "-visible"; + function positionToolbarMenu(ul) { + if (!ul.closest("#menu_list")) return; + + // Measure without the opening animation or a previous edge correction. + ul.style.left = ""; + ul.style.right = ""; + const viewportWidth = document.documentElement.clientWidth; + let bounds = ul.getBoundingClientRect(); + if (bounds.right > viewportWidth && ul.id !== "menu_list") { + ul.style.left = "auto"; + ul.style.right = "100%"; + bounds = ul.getBoundingClientRect(); + } + + const shift = Math.max(0, -bounds.left) + Math.min(0, viewportWidth - bounds.right); + if (shift) { + ul.style.left = `${ul.offsetLeft + shift}px`; + ul.style.right = "auto"; + } + } + function showMenu() { const menu = this; const ul = $("ul", menu)[0]; @@ -61,8 +82,10 @@ SOFTWARE. } menu.classList.add(ACTIVE_CLASS_NAME); - ul.classList.add(ANIMATING_CLASS_NAME); + ul.classList.remove(ANIMATING_CLASS_NAME); ul.classList.add(VISIBLE_CLASS_NAME); + positionToolbarMenu(ul); + ul.classList.add(ANIMATING_CLASS_NAME); setTimeout(function() { ul.classList.remove(ANIMATING_CLASS_NAME); }, 25); diff --git a/gns3server/static/web-ui/chunk-2EU4MCU2.js b/gns3server/static/web-ui/chunk-2EU4MCU2.js new file mode 100644 index 000000000..78b2184c0 --- /dev/null +++ b/gns3server/static/web-ui/chunk-2EU4MCU2.js @@ -0,0 +1,2 @@ +import{A as _e,B as ye,D as fe,F as xe,G as Ce,O as be,P as ve,Q as Me,U as Se,V as Pe,W as Oe,_ as we,a as V,aa as ke,b as H,ba as ze,c as me,ca as Ee,da as Te,e as pe,ea as Fe,f as ge,fa as Ie,g as ue,ga as Ne,ha as De,ia as $e,ja as We,w as he}from"./chunk-YK4BK3GN.js";import{$b as U,Da as X,Dc as re,Ec as I,Fa as q,Fb as B,Ga as A,Gb as K,Ha as s,Hb as F,Jb as r,Kb as _,Lb as ee,Mb as Q,Nd as ae,Pa as z,Sd as se,Tb as te,Va as E,Wb as v,Xe as N,Ye as D,Za as J,Zd as le,_a as T,a as j,ab as M,b as L,bc as G,cb as S,cf as $,ef as de,fb as w,ff as W,ga as h,gb as k,gc as ne,hb as d,ib as n,jb as i,ka as x,kb as b,la as C,ne as ce,pa as Z,pc as oe,ra as O,rb as P,tb as p,vb as u,yc as ie}from"./chunk-JPY5KHMK.js";var Qe=(a,m)=>m.name;function Ue(a,m){if(a&1&&(n(0,"div",5),b(1,"span",6),n(2,"span",7)(3,"strong"),r(4),i(),n(5,"span"),r(6),i()()()),a&2){let e=m.$implicit;d("matTooltip",e.bpf),s(),K("background",e.color),F("marker-legend__swatch--default",!e.color),s(3),_(e.name),s(2),_(e.bpf)}}function Ge(a,m){if(a&1&&(n(0,"div",3),w(1,Ue,7,7,"div",5,Qe),i()),a&2){let e=u();s(),k(e.entries())}}function Ye(a,m){if(a&1){let e=P();n(0,"div",4)(1,"mat-icon"),r(2,"insights"),i(),n(3,"span"),r(4,"No markers defined"),i(),n(5,"button",8),p("click",function(){x(e);let t=u();return C(t.onClick())}),r(6,"Open marker manager"),i()()}}var Ve=(()=>{class a{registry=h(Te);openMarkerManager=new O;entries=ne(()=>{let e=this.registry.entries(),o=new Map;for(let l of e)o.has(l.name)||o.set(l.name,{bpf:l.bpf,color:l.color});let t=[];for(let[l,c]of o)t.push({name:l,bpf:c.bpf,color:c.color});return t});onClick(){this.openMarkerManager.emit()}static \u0275fac=function(o){return new(o||a)};static \u0275cmp=z({type:a,selectors:[["app-marker-legend"]],outputs:{openMarkerManager:"openMarkerManager"},decls:9,vars:2,consts:[[1,"marker-legend"],[1,"marker-legend__header"],["mat-icon-button","","type","button","aria-label","Open marker manager","matTooltip","Open marker manager","matTooltipPosition","left",1,"marker-legend__manage",3,"click"],[1,"marker-legend__list"],[1,"marker-legend__empty"],["matTooltipPosition","above",1,"marker-legend__row",3,"matTooltip"],[1,"marker-legend__swatch"],[1,"marker-legend__identity"],["mat-button","","type","button",3,"click"]],template:function(o,t){o&1&&(n(0,"div",0)(1,"div",1)(2,"span"),r(3),i(),n(4,"button",2),p("click",function(){return t.onClick()}),n(5,"mat-icon"),r(6,"settings"),i()()(),M(7,Ge,3,0,"div",3)(8,Ye,7,0,"div",4),i()),o&2&&(s(3),ee("",t.entries().length," markers"),s(4),S(t.entries().length>0?7:8))},dependencies:[I,H,V,D,N,W,de,$],styles:[".marker-legend[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;min-height:0;flex-direction:column}.marker-legend__header[_ngcontent-%COMP%]{display:flex;min-height:var(--topology-control-height);align-items:center;justify-content:space-between;padding-inline:var(--gns3-density-space-3);color:var(--mat-sys-on-surface-variant);font:var(--mat-sys-label-medium);font-weight:600}.marker-legend__manage[_ngcontent-%COMP%]{width:var(--topology-control-height);height:var(--topology-control-height)}.marker-legend__list[_ngcontent-%COMP%]{min-height:0;flex:1 1 auto;overflow:auto;overflow-x:hidden}.marker-legend__row[_ngcontent-%COMP%]{display:flex;min-height:var(--topology-row-height);box-sizing:border-box;align-items:center;gap:var(--gns3-density-space-2);padding-inline:var(--gns3-density-space-3);border-bottom:1px solid var(--mat-sys-outline-variant);cursor:default}.marker-legend__row[_ngcontent-%COMP%]:hover{background:var(--mat-sys-surface-container)}.marker-legend__swatch[_ngcontent-%COMP%]{width:12px;height:12px;flex:0 0 12px;border-radius:3px}.marker-legend__swatch--default[_ngcontent-%COMP%]{background-color:var(--mat-sys-primary)}.marker-legend__identity[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.marker-legend__identity[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], .marker-legend__identity[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.marker-legend__identity[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font:var(--mat-sys-body-small);font-weight:600;color:var(--mat-sys-on-surface)}.marker-legend__identity[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);font:var(--mat-sys-label-small)}.marker-legend__empty[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;flex-direction:column;align-items:center;justify-content:center;gap:var(--gns3-density-space-2);color:var(--mat-sys-on-surface-variant)}.marker-legend__empty[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant)}.marker-legend__empty[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font:var(--mat-sys-body-small)}"],changeDetection:0})}return a})();var Ze=()=>({top:!0}),Xe=()=>({right:!0}),qe=()=>({bottom:!0}),Je=()=>({left:!0}),Ke=()=>({top:!0,left:!0}),et=()=>({top:!0,right:!0}),tt=()=>({bottom:!0,left:!0}),nt=()=>({bottom:!0,right:!0}),ot=(a,m)=>m.node_id,it=(a,m)=>m.compute_id;function rt(a,m){if(a&1){let e=P();n(0,"div",38),p("mousemove",function(t){x(e);let l=u();return C(l.dragWidget(t))},A)("mouseup",function(){x(e);let t=u();return C(t.toggleDragging(!1))},A),i()}}function at(a,m){a&1&&(n(0,"mat-icon"),r(1,"map"),i(),n(2,"span"),r(3,"Topology"),i())}function st(a,m){if(a&1&&(n(0,"span",21),r(1),i()),a&2){let e=u();s(),_(e.activeFilterCount)}}function lt(a,m){if(a&1&&b(0,"img",43),a&2){let e=u().$implicit;d("src",e.symbol_url,X)}}function ct(a,m){a&1&&(n(0,"mat-icon"),r(1,"dns"),i())}function dt(a,m){if(a&1){let e=P();n(0,"div",39),p("click",function(){let t=x(e).$implicit,l=u();return C(l.selectNode(t))})("keydown.enter",function(){let t=x(e).$implicit,l=u();return C(l.selectNode(t))}),n(1,"div",40),b(2,"span",41),n(3,"span",42),M(4,lt,1,1,"img",43)(5,ct,2,0,"mat-icon"),i(),n(6,"span",44)(7,"strong"),r(8),i()()(),n(9,"span",45),r(10),i(),n(11,"span",46),r(12),i(),n(13,"button",47),p("click",function(t){let l=x(e).$implicit;return u().selectNode(l),C(t.stopPropagation())}),n(14,"mat-icon"),r(15,"more_horiz"),i()()()}if(a&2){let e=m.$implicit,o=u(),t=B(60);F("node-row--selected",(o.selectedNode==null?null:o.selectedNode.node_id)===e.node_id),s(2),d("matTooltip",o.getStatusLabel(e.status)),T("data-status",e.status)("aria-label",o.getStatusLabel(e.status)),s(2),S(e.symbol_url?4:5),s(4),_(e.name),s(2),_(o.hasConsole(e)?e.console_type:"none"),s(2),_(o.hasConsole(e)?e.console:"-"),s(),J("aria-label",te("Actions for ",e.name)),d("matMenuTriggerFor",t)}}function mt(a,m){a&1&&(n(0,"div",32)(1,"mat-icon"),r(2,"search_off"),i(),n(3,"span"),r(4,"No nodes match the current filters"),i()())}function pt(a,m){a&1&&(n(0,"mat-icon"),r(1,"insights"),i(),n(2,"span"),r(3,"Markers"),i())}function gt(a,m){a&1&&(n(0,"mat-icon"),r(1,"dns"),i(),n(2,"span"),r(3,"Computes"),i())}function ut(a,m){if(a&1&&(n(0,"div",37),b(1,"span",48),n(2,"span",49)(3,"strong"),r(4),i(),n(5,"span"),r(6),i()(),n(7,"span",50)(8,"span"),r(9,"CPU"),i(),n(10,"strong"),r(11),U(12,"number"),i()(),n(13,"span",50)(14,"span"),r(15,"Memory"),i(),n(16,"strong"),r(17),U(18,"number"),i()()()),a&2){let e=m.$implicit,o=u();d("matTooltip",o.getComputeTooltip(e)),s(),T("data-status",e.connected?"started":"stopped"),s(3),_(e.name||e.compute_id),s(2),Q("",e.host,":",e.port),s(5),_(e.cpu_usage_percent!==null&&e.cpu_usage_percent!==void 0?G(12,7,e.cpu_usage_percent,"1.0-1")+"%":"-"),s(6),_(e.memory_usage_percent!==null&&e.memory_usage_percent!==void 0?G(18,10,e.memory_usage_percent,"1.0-1")+"%":"-")}}function ht(a,m){a&1&&(n(0,"div",32)(1,"mat-icon"),r(2,"dns"),i(),n(3,"span"),r(4,"No computes available"),i()())}var an=(()=>{class a{nodesDataSource=h(Ee);computeService=h(xe);linksDataSource=h(ke);notificationService=h(Ce);toasterService=h(be);nodeConsoleService=h(Fe);mapSettingsService=h(ze);cd=h(oe);document=h(Z);controller;project;openWebConsoleInline=new O;openMarkerManager=new O;computesInitialized=!1;style={};subscriptions=[];nodes=[];filteredNodes=[];sortingOrder="asc";startedStatusFilterEnabled=!1;suspendedStatusFilterEnabled=!1;stoppedStatusFilterEnabled=!1;captureFilterEnabled=!1;packetFilterEnabled=!1;computes=[];searchQuery="";selectedNode=null;selectedTabIndex=0;isDraggingEnabled=!1;ngOnInit(){this.subscriptions.push(this.nodesDataSource.changes.subscribe(e=>{let o=this.selectedNode?.node_id;this.nodes=e.map(t=>this.normalizeConsoleHost(t)),this.selectedNode=o?this.nodes.find(t=>t.node_id===o)??null:null,this.applyFilters(),this.cd.markForCheck()})),this.initializeComputes(),this.revertPosition()}initializeComputes(){!this.controller||this.computesInitialized||(this.computesInitialized=!0,this.subscriptions.push(this.notificationService.computeCacheUpdated.subscribe(e=>{this.computes=e,this.cd.markForCheck()})),this.subscriptions.push(this.computeService.getComputes(this.controller).subscribe({next:e=>{this.computes=e,this.notificationService.setInitialComputes(e),this.cd.markForCheck()},error:e=>{let o=e.error?.message||e.message||"Failed to load computes";this.toasterService.error(o),this.cd.markForCheck()}})))}normalizeConsoleHost(e){return(e.console_host==="0.0.0.0"||e.console_host==="0:0:0:0:0:0:0:0"||e.console_host==="::")&&this.controller?.host?L(j({},e),{console_host:this.controller.host}):e}revertPosition(){let e=this.document.defaultView?.innerWidth??1280,o=this.document.defaultView?.innerHeight??800;if(e<=720){this.style={position:"fixed",top:"56px",left:"0px",width:`${e}px`,height:`${Math.max(0,o-56)}px`};return}let t=localStorage.getItem("leftPosition"),l=localStorage.getItem("rightPosition"),c=localStorage.getItem("topPosition"),g=localStorage.getItem("widthOfWidget"),R=localStorage.getItem("heightOfWidget");if(c){let f=Math.min(Math.max(Number(g)||720,400),e),Y=Math.min(Math.max(Number(R)||680,420),o),He=Math.min(Math.max(Number(c)||0,0),Math.max(0,o-Y)),Re=t!==null?{left:`${Math.min(Math.max(Number(t)||0,0),Math.max(0,e-f))}px`}:{right:`${Math.min(Math.max(Number(l)||0,0),Math.max(0,e-f))}px`};this.style=L(j({position:"fixed"},Re),{top:`${He}px`,width:`${f}px`,height:`${Y}px`})}else{let y=this.document.documentElement.dataset.density==="compact";this.style={top:y?"56px":"68px",right:y?"8px":"16px",width:"720px",height:"680px"}}}onViewportResize(){this.revertPosition()}toggleDragging(e){this.isDraggingEnabled=e}startDraggingFromTabStrip(e){let o=e.target;e.button===0&&o.closest(".mat-mdc-tab-header")&&this.toggleDragging(!0)}dragWidget(e){let o=Number(e.movementX),t=Number(e.movementY),l=Number(this.style.width.split("px")[0]),c=Number(this.style.height.split("px")[0]),g=this.document.defaultView?.innerWidth??1280,R=this.document.defaultView?.innerHeight??800,y=this.clamp(Number(this.style.top.split("px")[0])+t,0,R-c);if(this.style.left){let f=this.clamp(Number(this.style.left.split("px")[0])+o,0,g-l);this.style={position:"fixed",left:`${f}px`,top:`${y}px`,width:`${l}px`,height:`${c}px`},localStorage.setItem("leftPosition",f.toString()),localStorage.removeItem("rightPosition"),localStorage.setItem("topPosition",y.toString()),localStorage.setItem("widthOfWidget",l.toString()),localStorage.setItem("heightOfWidget",c.toString())}else{let f=this.clamp(Number(this.style.right.split("px")[0])-o,0,g-l);this.style={position:"fixed",right:`${f}px`,top:`${y}px`,width:`${l}px`,height:`${c}px`},localStorage.setItem("rightPosition",f.toString()),localStorage.removeItem("leftPosition"),localStorage.setItem("topPosition",y.toString()),localStorage.setItem("widthOfWidget",l.toString()),localStorage.setItem("heightOfWidget",c.toString())}}clamp(e,o,t){return Math.min(Math.max(e,o),Math.max(o,t))}validate(e){return!(e.rectangle.width&&e.rectangle.height&&(e.rectangle.width<400||e.rectangle.height<420))}onResizeEnd(e){this.style={position:"fixed",left:`${e.rectangle.left}px`,top:`${e.rectangle.top}px`,width:`${e.rectangle.width}px`,height:`${e.rectangle.height}px`},localStorage.setItem("leftPosition",e.rectangle.left.toString()),localStorage.removeItem("rightPosition"),localStorage.setItem("topPosition",e.rectangle.top.toString()),localStorage.setItem("widthOfWidget",e.rectangle.width.toString()),localStorage.setItem("heightOfWidget",e.rectangle.height.toString())}onTabSelectionChange(e){this.selectedTabIndex=e}compareAsc(e,o){return e.name.localeCompare(o.name)}compareDesc(e,o){return o.name.localeCompare(e.name)}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}setSortingOrder(){this.applyFilters()}setSearchQuery(e){this.searchQuery=e,this.applyFilters()}applyStatusFilter(e){e==="started"?this.startedStatusFilterEnabled=!this.startedStatusFilterEnabled:e==="stopped"?this.stoppedStatusFilterEnabled=!this.stoppedStatusFilterEnabled:e==="suspended"&&(this.suspendedStatusFilterEnabled=!this.suspendedStatusFilterEnabled),this.applyFilters()}applyCaptureFilter(e){e==="capture"?this.captureFilterEnabled=!this.captureFilterEnabled:e==="packet"&&(this.packetFilterEnabled=!this.packetFilterEnabled),this.applyFilters()}applyFilters(){let e=[];this.startedStatusFilterEnabled&&(e=e.concat(this.nodes.filter(t=>t.status==="started"))),this.stoppedStatusFilterEnabled&&(e=e.concat(this.nodes.filter(t=>t.status==="stopped"))),this.suspendedStatusFilterEnabled&&(e=e.concat(this.nodes.filter(t=>t.status==="suspended"))),!this.startedStatusFilterEnabled&&!this.stoppedStatusFilterEnabled&&!this.suspendedStatusFilterEnabled&&(e=e.concat(this.nodes)),this.captureFilterEnabled&&(e=this.checkCapturing(e)),this.packetFilterEnabled&&(e=this.checkPacketFilters(e));let o=this.searchQuery.trim().toLocaleLowerCase();o&&(e=e.filter(t=>t.name.toLocaleLowerCase().includes(o))),this.sortingOrder==="asc"?this.filteredNodes=[...e].sort(this.compareAsc):this.filteredNodes=[...e].sort(this.compareDesc)}checkCapturing(e){let o=this.linksDataSource.getItems(),t=new Set;return o.forEach(l=>{l.capturing&&l.nodes.forEach(c=>{t.add(c.node_id)})}),e.filter(l=>t.has(l.node_id))}checkPacketFilters(e){let o=this.linksDataSource.getItems(),t=new Set;return o.forEach(l=>{Object.values(l.filters??{}).some(c=>this.hasActiveFilterValue(c))&&l.nodes.forEach(c=>{t.add(c.node_id)})}),e.filter(l=>t.has(l.node_id))}selectNode(e){this.selectedNode=e}hasConsole(e){return e.console!==null&&e.console!==void 0&&!!e.console_type&&e.console_type!=="none"}canOpenConsole(e){return!e||e.status!=="started"?!1:e.console_type==="telnet"||e.console_type==="ssh"||e.console_type==="vnc"||e.console_type?.startsWith("http")===!0}openConsole(e=this.selectedNode){if(e){if(e.status!=="started"){this.toasterService.error("To open console please start the node");return}if(e.console_type==="vnc"||e.console_type&&e.console_type.startsWith("http")){this.openWebConsoleInline.emit({node:e,controller:this.controller,project:this.project});return}if(e.console_type!=="telnet"&&e.console_type!=="ssh"){this.toasterService.error(`Console type '${e.console_type||"none"}' is not supported in the embedded console.`);return}this.mapSettingsService.logConsoleSubject.next(!0),this.nodeConsoleService.openConsoleForNode(e)}}getStatusLabel(e){return e==="started"?"Running":e==="stopped"?"Stopped":e==="suspended"?"Suspended":e||"Unknown"}get activeFilterCount(){return[this.startedStatusFilterEnabled,this.stoppedStatusFilterEnabled,this.suspendedStatusFilterEnabled,this.captureFilterEnabled,this.packetFilterEnabled].filter(Boolean).length}get connectedComputeCount(){return this.computes.filter(e=>e.connected).length}hasActiveFilterValue(e){return Array.isArray(e)?e.some(o=>o!=null&&o!==""&&o!==0):e!=null&&e!==""&&e!==0&&e!==!1}getComputeTooltip(e){return e?[`Name: ${e.name||"N/A"}`,`Host: ${e.host}:${e.port}`,`Connected: ${e.connected?"Yes":"No"}`,e.cpu_usage_percent!=null?`CPU: ${e.cpu_usage_percent.toFixed(1)}%`:null,e.memory_usage_percent!=null?`Memory: ${e.memory_usage_percent.toFixed(1)}%`:null].filter(Boolean).join(` +`):""}static \u0275fac=function(o){return new(o||a)};static \u0275cmp=z({type:a,selectors:[["app-topology-summary"]],hostBindings:function(o,t){o&1&&p("resize",function(){return t.onViewportResize()},q)},inputs:{controller:"controller",project:"project"},outputs:{openWebConsoleInline:"openWebConsoleInline",openMarkerManager:"openMarkerManager"},decls:80,vars:36,consts:[["filterMenu","matMenu"],["nodeActionsMenu","matMenu"],["mwlResizable","","aria-label","Topology map",1,"topology-inspector",3,"resizeStart","resizeEnd","ngStyle","validateResize","enableGhostResize"],["mwlResizeHandle","",1,"resize-handle","resize-handle-top",3,"resizeEdges"],["mwlResizeHandle","",1,"resize-handle","resize-handle-right",3,"resizeEdges"],["mwlResizeHandle","",1,"resize-handle","resize-handle-bottom",3,"resizeEdges"],["mwlResizeHandle","",1,"resize-handle","resize-handle-left",3,"resizeEdges"],["mwlResizeHandle","",1,"resize-handle","resize-handle-top-left",3,"resizeEdges"],["mwlResizeHandle","",1,"resize-handle","resize-handle-top-right",3,"resizeEdges"],["mwlResizeHandle","",1,"resize-handle","resize-handle-bottom-left",3,"resizeEdges"],["mwlResizeHandle","",1,"resize-handle","resize-handle-bottom-right",3,"resizeEdges"],["animationDuration","0ms",1,"inspector-tabs",3,"selectedIndexChange","mousedown","selectedIndex"],["mat-tab-label",""],[1,"tab-content"],[1,"node-toolbar"],[1,"search-control"],["type","search","aria-label","Filter nodes","placeholder","Filter nodes",3,"ngModelChange","ngModel"],["aria-label","Sort nodes",1,"sort-control",3,"selectionChange","value"],["value","asc"],["value","desc"],["mat-icon-button","","type","button",1,"filter-button",3,"matMenuTriggerFor"],[1,"filter-button__count"],[1,"topology-filter-menu"],[1,"filter-menu",3,"click"],[1,"filter-menu__label"],[3,"change","checked"],["role","table","aria-label","Project nodes",1,"node-table"],[1,"node-table__body"],["role","row",1,"node-table__header"],["role","columnheader"],["role","columnheader","aria-label","Actions"],["role","row","tabindex","0",1,"node-row",3,"node-row--selected"],[1,"empty-state"],[1,"topology-node-actions-menu"],["mat-menu-item","",3,"click","disabled"],[3,"openMarkerManager"],[1,"compute-list"],["matTooltipPosition","above",1,"compute-row",3,"matTooltip"],[3,"mousemove","mouseup"],["role","row","tabindex","0",1,"node-row",3,"click","keydown.enter"],["role","cell",1,"node-cell"],[1,"status-dot",3,"matTooltip"],[1,"node-symbol"],["alt","",3,"src"],[1,"node-identity"],["role","cell",1,"protocol-cell"],["role","cell",1,"port-cell"],["mat-icon-button","","type","button",1,"row-action",3,"click","aria-label","matMenuTriggerFor"],[1,"status-dot"],[1,"compute-identity"],[1,"compute-metric"]],template:function(o,t){if(o&1){let l=P();M(0,rt,1,0,"div"),n(1,"section",2),p("resizeStart",function(){return t.toggleDragging(!1)})("resizeEnd",function(g){return t.onResizeEnd(g)}),b(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6)(6,"div",7)(7,"div",8)(8,"div",9)(9,"div",10),n(10,"mat-tab-group",11),p("selectedIndexChange",function(g){return t.onTabSelectionChange(g)})("mousedown",function(g){return t.startDraggingFromTabStrip(g)}),n(11,"mat-tab"),E(12,at,4,0,"ng-template",12),n(13,"div",13)(14,"div",14)(15,"div",15)(16,"mat-icon"),r(17,"search"),i(),n(18,"input",16),p("ngModelChange",function(g){return t.setSearchQuery(g)}),i()(),n(19,"mat-select",17),p("selectionChange",function(g){return x(l),t.sortingOrder=g.value,C(t.setSortingOrder())}),n(20,"mat-option",18),r(21,"Name (A-Z)"),i(),n(22,"mat-option",19),r(23,"Name (Z-A)"),i()(),n(24,"button",20)(25,"mat-icon"),r(26,"filter_alt"),i(),M(27,st,2,1,"span",21),i()(),n(28,"mat-menu",22,0)(30,"div",23),p("click",function(g){return g.stopPropagation()}),n(31,"span",24),r(32,"Status"),i(),n(33,"mat-checkbox",25),p("change",function(){return t.applyStatusFilter("started")}),r(34," Running "),i(),n(35,"mat-checkbox",25),p("change",function(){return t.applyStatusFilter("stopped")}),r(36," Stopped "),i(),n(37,"mat-checkbox",25),p("change",function(){return t.applyStatusFilter("suspended")}),r(38," Suspended "),i(),b(39,"mat-divider"),n(40,"span",24),r(41,"Links"),i(),n(42,"mat-checkbox",25),p("change",function(){return t.applyCaptureFilter("capture")}),r(43," Active capture "),i(),n(44,"mat-checkbox",25),p("change",function(){return t.applyCaptureFilter("packet")}),r(45," Packet filter "),i()()(),n(46,"div",26)(47,"div",27)(48,"div",28)(49,"span",29),r(50,"Node"),i(),n(51,"span",29),r(52,"Protocol"),i(),n(53,"span",29),r(54,"Port"),i(),b(55,"span",30),i(),w(56,dt,16,12,"div",31,ot,!1,mt,5,0,"div",32),i()(),n(59,"mat-menu",33,1)(61,"button",34),p("click",function(){return t.openConsole()}),n(62,"mat-icon"),r(63,"terminal"),i(),n(64,"span"),r(65,"Open console"),i()()()()(),n(66,"mat-tab"),E(67,pt,4,0,"ng-template",12),n(68,"div",13)(69,"app-marker-legend",35),p("openMarkerManager",function(){return t.openMarkerManager.emit()}),i()()(),n(70,"mat-tab"),E(71,gt,4,0,"ng-template",12),n(72,"div",13)(73,"div")(74,"span"),r(75),i()(),n(76,"div",36),w(77,ut,19,13,"div",37,it,!1,ht,5,0,"div",32),i()()()()()}if(o&2){let l=B(29);S(t.isDraggingEnabled?0:-1),s(),d("ngStyle",t.style)("validateResize",t.validate)("enableGhostResize",!0),s(),d("resizeEdges",v(28,Ze)),s(),d("resizeEdges",v(29,Xe)),s(),d("resizeEdges",v(30,qe)),s(),d("resizeEdges",v(31,Je)),s(),d("resizeEdges",v(32,Ke)),s(),d("resizeEdges",v(33,et)),s(),d("resizeEdges",v(34,tt)),s(),d("resizeEdges",v(35,nt)),s(),d("selectedIndex",t.selectedTabIndex),s(8),d("ngModel",t.searchQuery),s(),d("value",t.sortingOrder),s(5),d("matMenuTriggerFor",l),T("aria-label",t.activeFilterCount?t.activeFilterCount+" active node filters":"Filter nodes"),s(3),S(t.activeFilterCount?27:-1),s(6),d("checked",t.startedStatusFilterEnabled),s(2),d("checked",t.stoppedStatusFilterEnabled),s(2),d("checked",t.suspendedStatusFilterEnabled),s(5),d("checked",t.captureFilterEnabled),s(2),d("checked",t.packetFilterEnabled),s(12),k(t.filteredNodes),s(5),d("disabled",!t.canOpenConsole(t.selectedNode)),s(14),Q("",t.computes.length," computes \xB7 ",t.connectedComputeCount," connected"),s(2),k(t.computes)}},dependencies:[I,ie,ce,ae,se,le,we,Se,Pe,Oe,fe,ye,he,_e,Ne,Ie,H,V,D,N,W,$,ue,pe,me,ge,Me,ve,We,De,$e,Ve,re],styles:["[_nghost-%COMP%]{--topology-row-height: 46px;--topology-row-action-size: 32px;--topology-symbol-size: 30px;--topology-control-height: var(--gns3-density-control-height)}.topology-inspector[_ngcontent-%COMP%]{position:fixed;z-index:900;display:flex;min-width:min(400px,100vw - 32px);max-width:calc(100vw - 32px);min-height:min(420px,100dvh - 84px);max-height:calc(100vh - 84px);box-sizing:border-box;flex-direction:column;overflow:hidden;border:1px solid var(--mat-sys-outline-variant);border-radius:var(--gns3-density-radius-sm);color:var(--mat-sys-on-surface);background:var(--mat-sys-surface-container-low);box-shadow:0 16px 40px color-mix(in srgb,var(--mat-sys-shadow) 22%,transparent);container-name:topology-panel;container-type:inline-size}.resize-handle[_ngcontent-%COMP%]{position:absolute;z-index:10;background:transparent}.resize-handle.resize-handle-top[_ngcontent-%COMP%], .resize-handle.resize-handle-bottom[_ngcontent-%COMP%]{left:12px;right:12px;height:10px;cursor:ns-resize}.resize-handle.resize-handle-top[_ngcontent-%COMP%]{top:-4px}.resize-handle.resize-handle-bottom[_ngcontent-%COMP%]{bottom:-4px}.resize-handle.resize-handle-left[_ngcontent-%COMP%], .resize-handle.resize-handle-right[_ngcontent-%COMP%]{top:12px;bottom:12px;width:10px;cursor:ew-resize}.resize-handle.resize-handle-left[_ngcontent-%COMP%]{left:-4px}.resize-handle.resize-handle-right[_ngcontent-%COMP%]{right:-4px}.resize-handle.resize-handle-top-left[_ngcontent-%COMP%], .resize-handle.resize-handle-top-right[_ngcontent-%COMP%], .resize-handle.resize-handle-bottom-left[_ngcontent-%COMP%], .resize-handle.resize-handle-bottom-right[_ngcontent-%COMP%]{width:18px;height:18px}.resize-handle.resize-handle-top-left[_ngcontent-%COMP%], .resize-handle.resize-handle-bottom-right[_ngcontent-%COMP%]{cursor:nwse-resize}.resize-handle.resize-handle-top-right[_ngcontent-%COMP%], .resize-handle.resize-handle-bottom-left[_ngcontent-%COMP%]{cursor:nesw-resize}.resize-handle.resize-handle-top-left[_ngcontent-%COMP%]{top:-5px;left:-5px}.resize-handle.resize-handle-top-right[_ngcontent-%COMP%]{top:-5px;right:-5px}.resize-handle.resize-handle-bottom-left[_ngcontent-%COMP%]{bottom:-5px;left:-5px}.resize-handle.resize-handle-bottom-right[_ngcontent-%COMP%]{right:-5px;bottom:-5px}.node-cell[_ngcontent-%COMP%], .node-identity[_ngcontent-%COMP%], .compute-identity[_ngcontent-%COMP%], .compute-row[_ngcontent-%COMP%]{min-width:0}.inspector-tabs[_ngcontent-%COMP%]{min-height:0;flex:1 1 auto}.tab-content[_ngcontent-%COMP%]{display:flex;min-height:0;height:100%;box-sizing:border-box;flex-direction:column;gap:var(--gns3-density-space-2);padding:var(--gns3-density-space-2) var(--gns3-density-space-3)}.tab-content[_ngcontent-%COMP%] app-marker-legend[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;min-height:0;margin:calc(-1 * var(--gns3-density-space-2)) calc(-1 * var(--gns3-density-space-3))}.node-toolbar[_ngcontent-%COMP%]{display:grid;min-width:0;grid-template-columns:minmax(180px,1fr) minmax(150px,180px) var(--topology-control-height);align-items:center;justify-content:start;gap:var(--gns3-density-space-2)}.search-control[_ngcontent-%COMP%], .sort-control[_ngcontent-%COMP%], .filter-button[_ngcontent-%COMP%]{height:var(--topology-control-height);box-sizing:border-box}.search-control[_ngcontent-%COMP%]{display:flex;min-width:0;align-items:center;gap:var(--gns3-density-space-2);padding-inline:var(--gns3-density-space-3);border:1px solid var(--mat-sys-outline);border-radius:var(--gns3-density-radius-sm);background:var(--mat-sys-surface-container-lowest)}.search-control[_ngcontent-%COMP%]:focus-within{border-color:var(--mat-sys-primary);outline:1px solid var(--mat-sys-primary)}.search-control[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{flex:0 0 auto;color:var(--mat-sys-on-surface-variant)}.search-control[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{min-width:0;width:100%;border:0;outline:0;color:var(--mat-sys-on-surface);background:transparent;font:var(--mat-sys-body-medium);letter-spacing:0}.search-control[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:var(--mat-sys-on-surface-variant)}.filter-button[_ngcontent-%COMP%]{position:relative;display:flex;width:var(--topology-control-height);min-width:0;align-items:center;justify-content:center;border:1px solid var(--mat-sys-outline);padding:0}.filter-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin:0;line-height:normal}.filter-button__count[_ngcontent-%COMP%]{position:absolute;top:2px;right:2px;display:grid;min-width:16px;height:16px;box-sizing:border-box;place-items:center;padding-inline:3px;border-radius:8px;color:var(--mat-sys-on-primary);background:var(--mat-sys-primary);font:var(--mat-sys-label-small)}.sort-control[_ngcontent-%COMP%]{display:flex;align-items:center;border:1px solid var(--mat-sys-outline);border-radius:var(--gns3-density-radius-sm);background:var(--mat-sys-surface-container-lowest)}.sort-control[_ngcontent-%COMP%]{padding-inline:var(--gns3-density-space-3)}.filter-menu[_ngcontent-%COMP%]{display:grid;min-width:220px;gap:var(--gns3-density-space-1);padding:var(--gns3-density-space-2) var(--gns3-density-space-3)}.filter-menu__label[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);font:var(--mat-sys-label-small)}.node-table[_ngcontent-%COMP%]{display:flex;min-height:0;flex:1 1 auto;flex-direction:column;overflow:hidden;border:1px solid var(--mat-sys-outline-variant);border-radius:var(--gns3-density-radius-sm);background:var(--mat-sys-surface-container-lowest)}.node-table__header[_ngcontent-%COMP%], .node-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(190px,260px) 82px 64px minmax(0,1fr) 36px;align-items:center}.node-table__header[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:last-child, .row-action[_ngcontent-%COMP%]{grid-column:5}.node-table__header[_ngcontent-%COMP%]{position:sticky;top:0;z-index:1;min-height:32px;padding-inline:var(--gns3-density-space-3) var(--gns3-density-space-1);border-bottom:1px solid var(--mat-sys-outline-variant);color:var(--mat-sys-on-surface-variant);background:var(--mat-sys-surface-container);font:var(--mat-sys-label-medium);font-weight:600}.node-table__body[_ngcontent-%COMP%], .compute-list[_ngcontent-%COMP%]{min-height:0;flex:1 1 auto;overflow:auto;overflow-x:hidden}.node-row[_ngcontent-%COMP%]{min-height:var(--topology-row-height);box-sizing:border-box;padding-inline:var(--gns3-density-space-3) var(--gns3-density-space-1);border-bottom:1px solid var(--mat-sys-outline-variant);outline:0;cursor:pointer}.node-row[_ngcontent-%COMP%]:hover, .node-row[_ngcontent-%COMP%]:focus-visible{background:var(--mat-sys-surface-container)}.node-row--selected[_ngcontent-%COMP%]{background:var(--mat-sys-primary-container);box-shadow:inset 3px 0 var(--mat-sys-primary)}.node-cell[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--gns3-density-space-2);overflow:hidden}.status-dot[_ngcontent-%COMP%], .compute-row[_ngcontent-%COMP%] .status-dot[_ngcontent-%COMP%]{display:inline-block;width:12px;height:12px;flex:0 0 12px;border-radius:50%;background:var(--mat-sys-outline)}.status-dot[data-status=started][_ngcontent-%COMP%], .compute-row[_ngcontent-%COMP%] .status-dot[data-status=started][_ngcontent-%COMP%]{background:var(--custom-mat-sys-success)}.status-dot[data-status=stopped][_ngcontent-%COMP%], .compute-row[_ngcontent-%COMP%] .status-dot[data-status=stopped][_ngcontent-%COMP%]{background:var(--mat-sys-error)}.status-dot[data-status=suspended][_ngcontent-%COMP%], .compute-row[_ngcontent-%COMP%] .status-dot[data-status=suspended][_ngcontent-%COMP%]{background:var(--mat-sys-secondary)}.node-symbol[_ngcontent-%COMP%]{display:grid;width:var(--topology-symbol-size);height:var(--topology-symbol-size);flex:0 0 var(--topology-symbol-size);place-items:center}.node-symbol[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;max-width:100%;max-height:100%;object-fit:contain}.node-symbol[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--mat-sys-primary)}.node-identity[_ngcontent-%COMP%], .compute-identity[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.node-identity[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], .node-identity[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .compute-identity[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], .compute-identity[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.node-identity[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], .compute-identity[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font:var(--mat-sys-body-small);font-weight:600}.node-identity[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .compute-identity[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);font:var(--mat-sys-label-small)}.protocol-cell[_ngcontent-%COMP%], .port-cell[_ngcontent-%COMP%]{width:100%;min-width:0;box-sizing:border-box;overflow:hidden;justify-self:start;color:var(--mat-sys-on-surface-variant);font:var(--mat-sys-label-medium);text-align:left;text-overflow:ellipsis;white-space:nowrap}.node-table__header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2), .node-table__header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){width:100%;justify-self:start;text-align:left}.row-action[_ngcontent-%COMP%]{--mat-icon-button-state-layer-size: var(--topology-row-action-size);display:inline-flex;width:var(--topology-row-action-size);height:var(--topology-row-action-size);align-self:center;align-items:center;justify-self:center;justify-content:center;padding:0;line-height:1}.row-action[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{display:block;margin:0;line-height:24px}.empty-state[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:var(--gns3-density-space-2);color:var(--mat-sys-on-surface-variant);font:var(--mat-sys-body-medium)}.compute-list[_ngcontent-%COMP%]{border:1px solid var(--mat-sys-outline-variant);border-radius:var(--gns3-density-radius-sm);background:var(--mat-sys-surface-container-lowest)}.compute-row[_ngcontent-%COMP%]{display:grid;width:100%;min-height:var(--topology-row-height);box-sizing:border-box;grid-template-columns:12px minmax(120px,1fr) minmax(54px,76px) minmax(64px,88px);align-items:center;gap:var(--gns3-density-space-2);padding-inline:var(--gns3-density-space-3);border-bottom:1px solid var(--mat-sys-outline-variant)}.compute-metric[_ngcontent-%COMP%]{display:flex;min-width:0;flex-direction:column;align-items:flex-end;overflow:hidden}.compute-metric[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .compute-metric[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compute-metric[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);font:var(--mat-sys-label-small)}.compute-metric[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font:var(--mat-sys-body-small);font-weight:600}@container topology-panel (max-width: 640px){.node-toolbar[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1fr) var(--topology-control-height)}.sort-control[_ngcontent-%COMP%]{display:none}.node-table__header[_ngcontent-%COMP%], .node-row[_ngcontent-%COMP%]{grid-template-columns:minmax(160px,220px) 72px 54px minmax(0,1fr) 32px}}@container topology-panel (max-width: 440px){.node-table__header[_ngcontent-%COMP%], .node-row[_ngcontent-%COMP%]{grid-template-columns:minmax(140px,1fr) 68px 52px 30px}.node-table__header[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:last-child, .row-action[_ngcontent-%COMP%]{grid-column:4}}@media(max-width:720px){.topology-inspector[_ngcontent-%COMP%]{min-width:0;min-height:0;max-width:none;max-height:none;border-radius:0}.resize-handle[_ngcontent-%COMP%]{display:none}}html[data-density=compact][_nghost-%COMP%], html[data-density=compact] [_nghost-%COMP%]{--topology-row-height: 38px;--topology-row-action-size: 28px;--topology-symbol-size: 24px}html[data-density=compact][_nghost-%COMP%] .topology-inspector[_ngcontent-%COMP%], html[data-density=compact] [_nghost-%COMP%] .topology-inspector[_ngcontent-%COMP%]{max-height:calc(100vh - 64px)}html[data-density=compact][_nghost-%COMP%] .node-table__header[_ngcontent-%COMP%], html[data-density=compact] [_nghost-%COMP%] .node-table__header[_ngcontent-%COMP%]{min-height:28px}"],changeDetection:0})}return a})();export{an as TopologySummaryComponent}; diff --git a/gns3server/static/web-ui/chunk-VB5QSUFX.js b/gns3server/static/web-ui/chunk-2MJLPLTV.js similarity index 92% rename from gns3server/static/web-ui/chunk-VB5QSUFX.js rename to gns3server/static/web-ui/chunk-2MJLPLTV.js index bcb096310..a8451913f 100644 --- a/gns3server/static/web-ui/chunk-VB5QSUFX.js +++ b/gns3server/static/web-ui/chunk-2MJLPLTV.js @@ -1,4 +1,4 @@ -import{$ as w,$a as Xt,$c as et,$e as Te,A as lt,Ad as be,Cb as pt,Cd as vt,Db as ht,Ea as y,Eb as F,Ed as _e,F as zt,Fa as qt,Fb as ie,G as X,Ga as Jt,Gc as le,Ge as De,Hd as yt,He as ot,I as b,Ia as Kt,Jd as ve,M as z,Ma as O,Mc as ce,Na as E,Oa as M,Qa as Zt,Ra as W,Rc as de,Sa as $,Sb as oe,Tc as bt,V as ct,Xa as m,Xc as Mt,Xe as Se,Za as Yt,Ze as xe,_ as Ht,_c as ue,a as S,aa as I,ac as ae,b as jt,ba as _,ca as H,da as l,eb as R,ec as re,ef as kt,fb as v,fd as J,ff as we,gb as C,h as It,hb as U,hd as ge,hf as Ie,i as D,j as Gt,ja as Ot,k as At,ka as Wt,la as x,le as Ct,ma as $t,mc as tt,md as P,nb as gt,oa as A,oc as k,od as Rt,pa as Ut,pb as Et,pc as ft,pd as me,qb as Q,qd as pe,ra as dt,s as p,sb as mt,se as ye,ta as Qt,tb as te,td as nt,te as Ce,ua as ut,ub as ee,ud as it,v as Vt,va as T,vb as ne,vd as K,ve as ke,wb as q,wc as se,wd as _t,xb as G,yb as V,yd as he,zd as fe}from"./chunk-G7NALUVX.js";var We=["determinateSpinner"];function $e(i,a){if(i&1&&(Ot(),v(0,"svg",11),U(1,"circle",12),C()),i&2){let t=mt();m("viewBox",t._viewBox()),y(),ht("stroke-dasharray",t._strokeCircumference(),"px")("stroke-dashoffset",t._strokeCircumference()/2,"px")("stroke-width",t._circleStrokeWidth(),"%"),m("r",t._circleRadius())}}var Ue=new _("mat-progress-spinner-default-options",{providedIn:"root",factory:()=>({diameter:Ae})}),Ae=100,Qe=10,En=(()=>{class i{_elementRef=l(T);_noopAnimations;get color(){return this._color||this._defaultColor}set color(t){this._color=t}_color;_defaultColor="primary";_determinateCircle;constructor(){let t=l(Ue),e=De(),n=this._elementRef.nativeElement;this._noopAnimations=e==="di-disabled"&&!!t&&!t._forceAnimations,this.mode=n.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&e==="reduced-motion"&&n.classList.add("mat-progress-spinner-reduced-motion"),t&&(t.color&&(this.color=this._defaultColor=t.color),t.diameter&&(this.diameter=t.diameter),t.strokeWidth&&(this.strokeWidth=t.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,t||0))}_value=0;get diameter(){return this._diameter}set diameter(t){this._diameter=t||0}_diameter=Ae;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(t){this._strokeWidth=t||0}_strokeWidth;_circleRadius(){return(this.diameter-Qe)/2}_viewBox(){let t=this._circleRadius()*2+this.strokeWidth;return`0 0 ${t} ${t}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(e,n){if(e&1&&q(We,5),e&2){let o;G(o=V())&&(n._determinateCircle=o.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(e,n){e&2&&(m("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",n.mode==="determinate"?n.value:null)("mode",n.mode),ie("mat-"+n.color),ht("width",n.diameter,"px")("height",n.diameter,"px")("--mat-progress-spinner-size",n.diameter+"px")("--mat-progress-spinner-active-indicator-width",n.diameter+"px"),F("_mat-animation-noopable",n._noopAnimations)("mdc-circular-progress--indeterminate",n.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ft],diameter:[2,"diameter","diameter",ft],strokeWidth:[2,"strokeWidth","strokeWidth",ft]},exportAs:["matProgressSpinner"],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(e,n){if(e&1&&($(0,$e,2,8,"ng-template",null,0,ae),v(2,"div",2,1),Ot(),v(4,"svg",3),U(5,"circle",4),C()(),Wt(),v(6,"div",5)(7,"div",6)(8,"div",7),gt(9,8),C(),v(10,"div",9),gt(11,8),C(),v(12,"div",10),gt(13,8),C()()()),e&2){let o=pt(1);y(4),m("viewBox",n._viewBox()),y(),ht("stroke-dasharray",n._strokeCircumference(),"px")("stroke-dashoffset",n._strokeDashOffset(),"px")("stroke-width",n._circleStrokeWidth(),"%"),m("r",n._circleRadius()),y(4),R("ngTemplateOutlet",o),y(2),R("ngTemplateOutlet",o),y(2),R("ngTemplateOutlet",o)}},dependencies:[se],styles:[`.mat-mdc-progress-spinner { +import{$e as Se,A as lt,Ab as G,Bb as V,Bd as he,Cd as fe,Dd as be,F as zt,Fb as pt,Fd as vt,G as X,Gb as ht,Ha as y,Hb as F,Hd as _e,I as b,Ia as qt,Ib as ie,Ja as Jt,Jc as le,Kd as yt,Ke as De,La as Kt,Le as ot,Md as ve,N as z,Pa as O,Pc as ce,Qa as E,Ra as M,Ta as Zt,Ua as W,Uc as de,Va as $,Vb as oe,Wc as bt,X as ct,_a as m,_c as Mt,a as S,ab as Yt,b as jt,ba as Ht,bd as ue,bf as xe,ca as w,cb as Xt,cd as et,da as I,dc as ae,df as Te,ea as _,fa as H,ga as l,h as It,hb as R,hc as re,i as D,ib as v,id as J,if as kt,j as Gt,jb as C,jf as we,k as At,kb as U,kd as ge,lf as Ie,ma as Ot,na as Wt,oa as x,pa as $t,pc as tt,pd as P,pe as Ct,qb as gt,ra as A,rc as k,rd as Rt,s as p,sa as Ut,sb as Et,sc as ft,sd as me,tb as Q,td as pe,ua as dt,v as Vt,vb as mt,wa as Qt,wb as te,wd as nt,we as ye,xa as ut,xb as ee,xd as it,xe as Ce,ya as T,yb as ne,yd as K,zb as q,zc as se,zd as _t,ze as ke}from"./chunk-JPY5KHMK.js";var We=["determinateSpinner"];function $e(i,a){if(i&1&&(Ot(),v(0,"svg",11),U(1,"circle",12),C()),i&2){let t=mt();m("viewBox",t._viewBox()),y(),ht("stroke-dasharray",t._strokeCircumference(),"px")("stroke-dashoffset",t._strokeCircumference()/2,"px")("stroke-width",t._circleStrokeWidth(),"%"),m("r",t._circleRadius())}}var Ue=new _("mat-progress-spinner-default-options",{providedIn:"root",factory:()=>({diameter:Ae})}),Ae=100,Qe=10,En=(()=>{class i{_elementRef=l(T);_noopAnimations;get color(){return this._color||this._defaultColor}set color(t){this._color=t}_color;_defaultColor="primary";_determinateCircle;constructor(){let t=l(Ue),e=De(),n=this._elementRef.nativeElement;this._noopAnimations=e==="di-disabled"&&!!t&&!t._forceAnimations,this.mode=n.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&e==="reduced-motion"&&n.classList.add("mat-progress-spinner-reduced-motion"),t&&(t.color&&(this.color=this._defaultColor=t.color),t.diameter&&(this.diameter=t.diameter),t.strokeWidth&&(this.strokeWidth=t.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,t||0))}_value=0;get diameter(){return this._diameter}set diameter(t){this._diameter=t||0}_diameter=Ae;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(t){this._strokeWidth=t||0}_strokeWidth;_circleRadius(){return(this.diameter-Qe)/2}_viewBox(){let t=this._circleRadius()*2+this.strokeWidth;return`0 0 ${t} ${t}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static \u0275fac=function(e){return new(e||i)};static \u0275cmp=O({type:i,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(e,n){if(e&1&&q(We,5),e&2){let o;G(o=V())&&(n._determinateCircle=o.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(e,n){e&2&&(m("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",n.mode==="determinate"?n.value:null)("mode",n.mode),ie("mat-"+n.color),ht("width",n.diameter,"px")("height",n.diameter,"px")("--mat-progress-spinner-size",n.diameter+"px")("--mat-progress-spinner-active-indicator-width",n.diameter+"px"),F("_mat-animation-noopable",n._noopAnimations)("mdc-circular-progress--indeterminate",n.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ft],diameter:[2,"diameter","diameter",ft],strokeWidth:[2,"strokeWidth","strokeWidth",ft]},exportAs:["matProgressSpinner"],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(e,n){if(e&1&&($(0,$e,2,8,"ng-template",null,0,ae),v(2,"div",2,1),Ot(),v(4,"svg",3),U(5,"circle",4),C()(),Wt(),v(6,"div",5)(7,"div",6)(8,"div",7),gt(9,8),C(),v(10,"div",9),gt(11,8),C(),v(12,"div",10),gt(13,8),C()()()),e&2){let o=pt(1);y(4),m("viewBox",n._viewBox()),y(),ht("stroke-dasharray",n._strokeCircumference(),"px")("stroke-dashoffset",n._strokeDashOffset(),"px")("stroke-width",n._circleStrokeWidth(),"%"),m("r",n._circleRadius()),y(4),R("ngTemplateOutlet",o),y(2),R("ngTemplateOutlet",o),y(2),R("ngTemplateOutlet",o)}},dependencies:[se],styles:[`.mat-mdc-progress-spinner { --mat-progress-spinner-animation-multiplier: 1; display: block; overflow: hidden; diff --git a/gns3server/static/web-ui/chunk-UX44Z5PA.js b/gns3server/static/web-ui/chunk-2WSNHQFF.js similarity index 75% rename from gns3server/static/web-ui/chunk-UX44Z5PA.js rename to gns3server/static/web-ui/chunk-2WSNHQFF.js index 8fdfefec4..4ffa70a07 100644 --- a/gns3server/static/web-ui/chunk-UX44Z5PA.js +++ b/gns3server/static/web-ui/chunk-2WSNHQFF.js @@ -1 +1 @@ -import{b as V,e as $,f as R,i as L,j as G,k as W,l as Y,m as X,n as U,o as q,q as H}from"./chunk-VB5QSUFX.js";import{$a as d,Bc as F,Ea as s,Eb as v,Gb as a,Hb as h,Ma as M,Nb as k,Ob as T,Pb as D,Te as A,Ue as z,X as w,Ya as j,Za as m,a as b,af as B,bf as N,cb as E,da as x,db as I,eb as C,fb as e,gb as n,ha as p,hb as P,i as S,ia as u,lc as O,ob as _,qb as f,ra as g,sb as l}from"./chunk-G7NALUVX.js";function J(o,c){if(o&1){let t=_();e(0,"div",3)(1,"mat-icon",6),a(2,"warning"),n(),e(3,"p",7),a(4,"Ready to inject a network fault?"),n(),e(5,"div",8)(6,"p",9),a(7,"Number of faults to inject"),n(),e(8,"mat-button-toggle-group",10),D("valueChange",function(i){p(t);let y=l();return T(y.faultType,i)||(y.faultType=i),u(i)}),e(9,"mat-button-toggle",11),a(10,"1"),n(),e(11,"mat-button-toggle",11),a(12,"2"),n(),e(13,"mat-button-toggle",11),a(14,"3"),n(),e(15,"mat-button-toggle",11),a(16,"Random"),n()()(),e(17,"p",12),a(18," This will inject a simulated network fault into your topology for troubleshooting practice. Make sure you have saved your current work. "),n(),e(19,"p",12),a(20," The fault injection process will analyze your topology, select an appropriate fault, and apply it automatically. You'll be able to see the details in AI Chat. "),n()()}if(o&2){let t=l();s(8),k("value",t.faultType),s(),C("value",1),s(2),C("value",2),s(2),C("value",3),s(2),C("value","random")}}function K(o,c){if(o&1&&(e(0,"p",17),a(1),n(),e(2,"p",18),a(3,"Agent is working"),n()),o&2){let t=l(2);s(),h(t.currentStep()||"Injecting fault...")}}function Q(o,c){if(o&1&&(e(0,"div",19)(1,"mat-icon",20),a(2),n(),e(3,"div",21)(4,"p",22),a(5),n(),e(6,"p",23),a(7,"Check the AI Chat panel for detailed execution history and tool results."),n()()()),o&2){let t=l(2);v("success",t.completionStatus()==="success")("error",t.completionStatus()==="error")("aborted",t.completionStatus()==="aborted"),s(2),h(t.completionStatus()==="success"?"check_circle":t.completionStatus()==="aborted"?"cancel":"error"),s(3),h(t.completionTitle())}}function Z(o,c){if(o&1&&(e(0,"div",26)(1,"mat-icon"),a(2),n(),e(3,"div",27)(4,"p",28),a(5),n()()()),o&2){let t=c.$implicit,r=l(3);v("success",t.type==="success")("error",t.type==="error"),s(2),h(r.getEventIcon(t.type)),s(3),h(t.message)}}function tt(o,c){if(o&1&&(e(0,"div",16)(1,"h3"),a(2,"Progress"),n(),e(3,"div",24),E(4,Z,6,6,"div",25,j().trackByEventId,!0),n()()),o&2){let t=l(2);s(4),I(t.displayedEvents())}}function et(o,c){if(o&1&&(e(0,"div",13),P(1,"img",14),n(),m(2,K,4,1),m(3,Q,8,8,"div",15),m(4,tt,6,0,"div",16)),o&2){let t=l();v("injecting",t.isInjecting()),s(2),d(t.isInjecting()?2:-1),s(),d(t.completed()&&!t.isInjecting()?3:-1),s(),d(t.isInjecting()&&t.displayedEvents().length>0?4:-1)}}function nt(o,c){if(o&1){let t=_();e(0,"button",29),f("click",function(){p(t);let i=l();return u(i.onCancelConfirm())}),a(1,"Cancel"),n(),e(2,"button",30),f("click",function(){p(t);let i=l();return u(i.onConfirmInject())}),e(3,"mat-icon"),a(4,"bug_report"),n(),e(5,"span"),a(6,"Confirm & Inject"),n()()}}function it(o,c){if(o&1){let t=_();e(0,"button",29),f("click",function(){p(t);let i=l();return u(i.onAbort())}),a(1,"Abort"),n()}}function ot(o,c){if(o&1){let t=_();e(0,"button",29),f("click",function(){p(t);let i=l();return u(i.onCancel())}),a(1,"Cancel"),n(),e(2,"button",30),f("click",function(){p(t);let i=l();return u(i.onInject())}),e(3,"mat-icon"),a(4,"bug_report"),n(),e(5,"span"),a(6,"Inject Fault"),n()()}}function at(o,c){if(o&1){let t=_();e(0,"button",29),f("click",function(){p(t);let i=l();return u(i.onViewDetails())}),e(1,"mat-icon"),a(2,"chat"),n(),e(3,"span"),a(4,"View in AI Chat"),n()(),e(5,"button",31),f("click",function(){p(t);let i=l();return u(i.onClose())}),e(6,"mat-icon"),a(7,"check"),n(),e(8,"span"),a(9,"Done"),n()()}}var bt=(()=>{class o{dialogRef=x($);data=x(R);aiChatService=x(H);controller=this.data.controller;project=this.data.project;isInjecting=g(!1);completed=g(!1);showConfirm=g(!1);faultType=O(1);faceState=g("idle");completionStatus=g("success");completionTitle=g("");currentStep=g("");eventsBuffer=[];displayedEvents=g([]);firstToolCallProcessed=!1;destroy$=new S;static MAX_DISPLAYED_EVENTS=3;ngOnInit(){this.faceState.set("idle")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onInject(){this.showConfirm.set(!0)}onCancelConfirm(){this.showConfirm.set(!1)}onConfirmInject(){if(this.isInjecting())return;this.showConfirm.set(!1),this.isInjecting.set(!0),this.completed.set(!1),this.faceState.set("injecting"),this.eventsBuffer=[],this.displayedEvents.set([]),this.firstToolCallProcessed=!1;let r=`Inject ${this.faultType()==="random"?"random":String(this.faultType())} network fault(s) for troubleshooting practice`;this.aiChatService.injectFault(this.controller,this.project.project_id,r).pipe(w(this.destroy$)).subscribe({next:i=>{this.handleFaultEvent(i)},error:i=>{this.handleError(i)},complete:()=>{}})}handleFaultEvent(t){if(console.log("Fault injection event:",t),!(t.type==="heartbeat"||t.type==="content"))switch(t.type){case"tool_call":if(t.tool_call&&!this.firstToolCallProcessed){let r=t.tool_call.function.name;this.currentStep.set(`Preparing: ${r}`),this.addEvent({type:"tool_call",message:`Preparing: ${r}`}),this.firstToolCallProcessed=!0}break;case"tool_start":t.tool_name&&(this.currentStep.set(`Executing: ${t.tool_name}`),this.addEvent({type:"info",message:`Executing: ${t.tool_name}`}));break;case"tool_end":t.tool_name&&this.addEvent({type:"success",message:`Completed: ${t.tool_name}`});break;case"error":this.handleError(t);break;case"done":this.isInjecting.set(!1),this.completed.set(!0),this.faceState.set("success"),this.completionStatus.set("success"),this.completionTitle.set("Fault injected successfully!"),this.currentStep.set("");break}}handleError(t){console.error("Fault injection error:",t);let r=t?.error?.message||t?.message||t?.error||"Failed to inject fault";this.addEvent({type:"error",message:"Error injecting fault",details:r}),this.isInjecting.set(!1),this.completed.set(!0),this.faceState.set("error"),this.completionStatus.set("error"),this.completionTitle.set("Failed to inject fault"),this.currentStep.set("")}addEvent(t){let r=b({id:`event_${Date.now()}_${Math.random().toString(36).substring(2,11)}`,timestamp:new Date().toISOString()},t);this.eventsBuffer.push(r),this.eventsBuffer.length>o.MAX_DISPLAYED_EVENTS&&this.eventsBuffer.shift(),this.displayedEvents.set([...this.eventsBuffer])}getEventIcon(t){switch(t){case"info":return"info";case"tool_call":return"build";case"success":return"check_circle";case"error":return"error";default:return"info"}}onAbort(){this.isInjecting.set(!1),this.completed.set(!0),this.faceState.set("aborted"),this.completionStatus.set("aborted"),this.completionTitle.set("Fault injection aborted"),this.currentStep.set(""),this.destroy$.next(),this.addEvent({type:"info",message:"Fault injection aborted by user"})}onViewDetails(){this.dialogRef.close({success:this.completionStatus()==="success",openAIChat:!0})}onCancel(){this.isInjecting()||this.dialogRef.close(null)}onClose(){this.dialogRef.close({success:this.completionStatus()==="success",events:this.displayedEvents()})}trackByEventId(t,r){return r.id}static \u0275fac=function(r){return new(r||o)};static \u0275cmp=M({type:o,selectors:[["app-fault-injection-dialog"]],inputs:{faultType:[1,"faultType"]},outputs:{faultType:"faultTypeChange"},decls:13,vars:6,consts:[["mat-dialog-title","",1,"fault-injection-title"],[1,"fault-injection-icon"],["mat-dialog-content","",1,"fault-injection-content"],[1,"confirm-panel"],["mat-dialog-actions","","align","end"],["mat-button",""],[1,"confirm-panel__icon"],[1,"confirm-panel__title"],[1,"fault-type-selector"],[1,"fault-type-selector__label"],["hideSingleSelectionIndicator","true",1,"fault-type-selector__group",3,"valueChange","value"],[1,"fault-type-btn",3,"value"],[1,"confirm-panel__desc"],[1,"animation-area"],["src","assets/gns3_icon.svg","alt","GNS3",1,"gns3-logo"],[1,"completion-message",3,"success","error","aborted"],[1,"events-section"],[1,"status-main"],[1,"status-sub"],[1,"completion-message"],[1,"completion-icon"],[1,"completion-content"],[1,"completion-title"],[1,"completion-text"],[1,"events-list"],[1,"event",3,"success","error"],[1,"event"],[1,"event-content"],[1,"event-msg"],["mat-button","",3,"click"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,i){r&1&&(e(0,"h2",0)(1,"mat-icon",1),a(2,"bug_report"),n(),e(3,"span"),a(4,"Fault Injection"),n()(),e(5,"div",2),m(6,J,21,5,"div",3),m(7,et,5,5),n(),e(8,"div",4),m(9,nt,7,0),m(10,it,2,0,"button",5),m(11,ot,7,0),m(12,at,10,0),n()),r&2&&(s(6),d(i.showConfirm()?6:-1),s(),d(!i.showConfirm()||i.isInjecting()||i.completed()?7:-1),s(2),d(i.showConfirm()?9:-1),s(),d(i.isInjecting()?10:-1),s(),d(!i.showConfirm()&&!i.isInjecting()&&!i.completed()?11:-1),s(),d(i.completed()&&!i.isInjecting()?12:-1))},dependencies:[F,Y,L,W,G,N,B,z,A,V,q,X,U],styles:[".fault-injection-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.fault-injection-icon[_ngcontent-%COMP%]{font-size:24px;width:24px;height:24px;color:var(--mat-sys-error)}.fault-injection-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--gns3-density-space-5)}.confirm-panel[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:var(--gns3-density-card-gap);padding:32px var(--gns3-density-card-padding);text-align:center}.confirm-panel__icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;color:var(--mat-sys-error)}.confirm-panel__title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0;color:var(--mat-sys-on-surface)}.confirm-panel__desc[_ngcontent-%COMP%]{font-size:14px;margin:0;color:var(--mat-sys-on-surface-variant);line-height:1.6;text-align:left;width:100%}.fault-type-selector[_ngcontent-%COMP%]{width:100%;max-width:360px}.fault-type-selector__label[_ngcontent-%COMP%]{font-size:12px;font-weight:500;margin:0 0 8px;text-align:left;color:var(--mat-sys-on-surface-variant)}.fault-type-selector__group[_ngcontent-%COMP%]{display:flex;gap:var(--gns3-density-space-2);width:100%;border:none;border-radius:0}.fault-type-btn[_ngcontent-%COMP%]{flex:1;min-width:0;height:36px;font-size:13px;font-weight:500;border:1px solid var(--mat-sys-outline-variant);border-radius:8px;color:var(--mat-sys-on-surface);display:flex;align-items:center;justify-content:center}.fault-type-btn.mat-button-toggle-checked[_ngcontent-%COMP%]{border-color:var(--mat-sys-primary);background:var(--mat-sys-primary-container);color:var(--mat-sys-on-primary-container);font-weight:600}.animation-area[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;padding:32px;background:var(--mat-sys-surface-container-low);border-radius:12px;min-height:200px}.animation-area.injecting[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--mat-sys-error-container) 30%,var(--mat-sys-surface-container-low))}.gns3-logo[_ngcontent-%COMP%]{width:120px;height:120px}.status-main[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0;text-align:center;color:var(--mat-sys-on-surface)}.status-sub[_ngcontent-%COMP%]{font-size:14px;margin:0;text-align:center;color:var(--mat-sys-on-surface-variant)}.completion-message[_ngcontent-%COMP%]{display:flex;gap:var(--gns3-density-card-gap);padding:var(--gns3-density-card-padding);background:var(--mat-sys-surface-container-low);border-radius:12px;border-left:4px solid var(--mat-sys-primary)}.completion-message.success[_ngcontent-%COMP%]{border-left-color:var(--mat-sys-primary);background:var(--mat-sys-primary-container-low)}.completion-message.error[_ngcontent-%COMP%]{border-left-color:var(--mat-sys-error);background:var(--mat-sys-error-container-low)}.completion-message.aborted[_ngcontent-%COMP%]{border-left-color:var(--mat-sys-outline);background:var(--mat-sys-surface-container-high)}.completion-icon[_ngcontent-%COMP%]{font-size:32px;width:32px;height:32px;flex-shrink:0;color:var(--mat-sys-primary)}.completion-message.error[_ngcontent-%COMP%] .completion-icon[_ngcontent-%COMP%]{color:var(--mat-sys-error)}.completion-message.aborted[_ngcontent-%COMP%] .completion-icon[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant)}.completion-content[_ngcontent-%COMP%]{flex:1}.completion-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0 0 8px;color:var(--mat-sys-on-surface)}.completion-text[_ngcontent-%COMP%]{font-size:14px;margin:0;color:var(--mat-sys-on-surface-variant);line-height:1.5}.events-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--gns3-density-space-3)}.events-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin:0;color:var(--mat-sys-on-surface)}.events-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--gns3-density-space-2)}.event[_ngcontent-%COMP%]{display:flex;gap:var(--gns3-density-space-3);padding:12px 16px;background:var(--mat-sys-surface-container-low);border-radius:8px;border-left:3px solid var(--mat-sys-outline)}.event.success[_ngcontent-%COMP%]{border-left-color:var(--mat-sys-primary);background:var(--mat-sys-primary-container-low)}.event.error[_ngcontent-%COMP%]{border-left-color:var(--mat-sys-error);background:var(--mat-sys-error-container-low)}.event[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;flex-shrink:0;color:var(--mat-sys-on-surface-variant)}.event-content[_ngcontent-%COMP%]{flex:1;min-width:0}.event-msg[_ngcontent-%COMP%]{font-size:14px;font-weight:500;margin:0 0 4px;color:var(--mat-sys-on-surface);word-wrap:break-word}.event-details[_ngcontent-%COMP%]{font-size:12px;margin:0;color:var(--mat-sys-on-surface-variant);word-wrap:break-word}"],changeDetection:0})}return o})();export{bt as FaultInjectionDialogComponent}; +import{b as V,e as $,f as R,i as L,j as G,k as W,l as Y,m as X,n as U,o as q,q as H}from"./chunk-2MJLPLTV.js";import{$a as j,Ec as F,Ha as s,Hb as C,Jb as a,Kb as x,Pa as M,Qb as k,Rb as T,Sb as D,Xe as A,Ye as z,Z as w,a as b,ab as m,cb as d,ef as B,fb as E,ff as N,ga as v,gb as I,hb as h,i as S,ib as e,jb as n,ka as p,kb as P,la as u,oc as O,rb as _,tb as f,ua as g,vb as l}from"./chunk-JPY5KHMK.js";function J(o,c){if(o&1){let t=_();e(0,"div",3)(1,"mat-icon",6),a(2,"warning"),n(),e(3,"p",7),a(4,"Ready to inject a network fault?"),n(),e(5,"div",8)(6,"p",9),a(7,"Number of faults to inject"),n(),e(8,"mat-button-toggle-group",10),D("valueChange",function(i){p(t);let y=l();return T(y.faultType,i)||(y.faultType=i),u(i)}),e(9,"mat-button-toggle",11),a(10,"1"),n(),e(11,"mat-button-toggle",11),a(12,"2"),n(),e(13,"mat-button-toggle",11),a(14,"3"),n(),e(15,"mat-button-toggle",11),a(16,"Random"),n()()(),e(17,"p",12),a(18," This will inject a simulated network fault into your topology for troubleshooting practice. Make sure you have saved your current work. "),n(),e(19,"p",12),a(20," The fault injection process will analyze your topology, select an appropriate fault, and apply it automatically. You'll be able to see the details in AI Chat. "),n()()}if(o&2){let t=l();s(8),k("value",t.faultType),s(),h("value",1),s(2),h("value",2),s(2),h("value",3),s(2),h("value","random")}}function K(o,c){if(o&1&&(e(0,"p",17),a(1),n(),e(2,"p",18),a(3,"Agent is working"),n()),o&2){let t=l(2);s(),x(t.currentStep()||"Injecting fault...")}}function Q(o,c){if(o&1&&(e(0,"div",19)(1,"mat-icon",20),a(2),n(),e(3,"div",21)(4,"p",22),a(5),n(),e(6,"p",23),a(7,"Check the AI Chat panel for detailed execution history and tool results."),n()()()),o&2){let t=l(2);C("success",t.completionStatus()==="success")("error",t.completionStatus()==="error")("aborted",t.completionStatus()==="aborted"),s(2),x(t.completionStatus()==="success"?"check_circle":t.completionStatus()==="aborted"?"cancel":"error"),s(3),x(t.completionTitle())}}function Z(o,c){if(o&1&&(e(0,"div",26)(1,"mat-icon"),a(2),n(),e(3,"div",27)(4,"p",28),a(5),n()()()),o&2){let t=c.$implicit,r=l(3);C("success",t.type==="success")("error",t.type==="error"),s(2),x(r.getEventIcon(t.type)),s(3),x(t.message)}}function tt(o,c){if(o&1&&(e(0,"div",16)(1,"h3"),a(2,"Progress"),n(),e(3,"div",24),E(4,Z,6,6,"div",25,j().trackByEventId,!0),n()()),o&2){let t=l(2);s(4),I(t.displayedEvents())}}function et(o,c){if(o&1&&(e(0,"div",13),P(1,"img",14),n(),m(2,K,4,1),m(3,Q,8,8,"div",15),m(4,tt,6,0,"div",16)),o&2){let t=l();C("injecting",t.isInjecting()),s(2),d(t.isInjecting()?2:-1),s(),d(t.completed()&&!t.isInjecting()?3:-1),s(),d(t.isInjecting()&&t.displayedEvents().length>0?4:-1)}}function nt(o,c){if(o&1){let t=_();e(0,"button",29),f("click",function(){p(t);let i=l();return u(i.onCancelConfirm())}),a(1,"Cancel"),n(),e(2,"button",30),f("click",function(){p(t);let i=l();return u(i.onConfirmInject())}),e(3,"mat-icon"),a(4,"bug_report"),n(),e(5,"span"),a(6,"Confirm & Inject"),n()()}}function it(o,c){if(o&1){let t=_();e(0,"button",29),f("click",function(){p(t);let i=l();return u(i.onAbort())}),a(1,"Abort"),n()}}function ot(o,c){if(o&1){let t=_();e(0,"button",29),f("click",function(){p(t);let i=l();return u(i.onCancel())}),a(1,"Cancel"),n(),e(2,"button",30),f("click",function(){p(t);let i=l();return u(i.onInject())}),e(3,"mat-icon"),a(4,"bug_report"),n(),e(5,"span"),a(6,"Inject Fault"),n()()}}function at(o,c){if(o&1){let t=_();e(0,"button",29),f("click",function(){p(t);let i=l();return u(i.onViewDetails())}),e(1,"mat-icon"),a(2,"chat"),n(),e(3,"span"),a(4,"View in AI Chat"),n()(),e(5,"button",31),f("click",function(){p(t);let i=l();return u(i.onClose())}),e(6,"mat-icon"),a(7,"check"),n(),e(8,"span"),a(9,"Done"),n()()}}var bt=(()=>{class o{dialogRef=v($);data=v(R);aiChatService=v(H);controller=this.data.controller;project=this.data.project;isInjecting=g(!1);completed=g(!1);showConfirm=g(!1);faultType=O(1);faceState=g("idle");completionStatus=g("success");completionTitle=g("");currentStep=g("");eventsBuffer=[];displayedEvents=g([]);firstToolCallProcessed=!1;destroy$=new S;static MAX_DISPLAYED_EVENTS=3;ngOnInit(){this.faceState.set("idle")}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}onInject(){this.showConfirm.set(!0)}onCancelConfirm(){this.showConfirm.set(!1)}onConfirmInject(){if(this.isInjecting())return;this.showConfirm.set(!1),this.isInjecting.set(!0),this.completed.set(!1),this.faceState.set("injecting"),this.eventsBuffer=[],this.displayedEvents.set([]),this.firstToolCallProcessed=!1;let r=`Inject ${this.faultType()==="random"?"random":String(this.faultType())} network fault(s) for troubleshooting practice`;this.aiChatService.injectFault(this.controller,this.project.project_id,r).pipe(w(this.destroy$)).subscribe({next:i=>{this.handleFaultEvent(i)},error:i=>{this.handleError(i)},complete:()=>{}})}handleFaultEvent(t){if(console.log("Fault injection event:",t),!(t.type==="heartbeat"||t.type==="content"))switch(t.type){case"tool_call":if(t.tool_call&&!this.firstToolCallProcessed){let r=t.tool_call.function.name;this.currentStep.set(`Preparing: ${r}`),this.addEvent({type:"tool_call",message:`Preparing: ${r}`}),this.firstToolCallProcessed=!0}break;case"tool_start":t.tool_name&&(this.currentStep.set(`Executing: ${t.tool_name}`),this.addEvent({type:"info",message:`Executing: ${t.tool_name}`}));break;case"tool_end":t.tool_name&&this.addEvent({type:"success",message:`Completed: ${t.tool_name}`});break;case"error":this.handleError(t);break;case"done":this.isInjecting.set(!1),this.completed.set(!0),this.faceState.set("success"),this.completionStatus.set("success"),this.completionTitle.set("Fault injected successfully!"),this.currentStep.set("");break}}handleError(t){console.error("Fault injection error:",t);let r=t?.error?.message||t?.message||t?.error||"Failed to inject fault";this.addEvent({type:"error",message:"Error injecting fault",details:r}),this.isInjecting.set(!1),this.completed.set(!0),this.faceState.set("error"),this.completionStatus.set("error"),this.completionTitle.set("Failed to inject fault"),this.currentStep.set("")}addEvent(t){let r=b({id:`event_${Date.now()}_${Math.random().toString(36).substring(2,11)}`,timestamp:new Date().toISOString()},t);this.eventsBuffer.push(r),this.eventsBuffer.length>o.MAX_DISPLAYED_EVENTS&&this.eventsBuffer.shift(),this.displayedEvents.set([...this.eventsBuffer])}getEventIcon(t){switch(t){case"info":return"info";case"tool_call":return"build";case"success":return"check_circle";case"error":return"error";default:return"info"}}onAbort(){this.isInjecting.set(!1),this.completed.set(!0),this.faceState.set("aborted"),this.completionStatus.set("aborted"),this.completionTitle.set("Fault injection aborted"),this.currentStep.set(""),this.destroy$.next(),this.addEvent({type:"info",message:"Fault injection aborted by user"})}onViewDetails(){this.dialogRef.close({success:this.completionStatus()==="success",openAIChat:!0})}onCancel(){this.isInjecting()||this.dialogRef.close(null)}onClose(){this.dialogRef.close({success:this.completionStatus()==="success",events:this.displayedEvents()})}trackByEventId(t,r){return r.id}static \u0275fac=function(r){return new(r||o)};static \u0275cmp=M({type:o,selectors:[["app-fault-injection-dialog"]],inputs:{faultType:[1,"faultType"]},outputs:{faultType:"faultTypeChange"},decls:13,vars:6,consts:[["mat-dialog-title","",1,"fault-injection-title"],[1,"fault-injection-icon"],["mat-dialog-content","",1,"fault-injection-content"],[1,"confirm-panel"],["mat-dialog-actions","","align","end"],["mat-button",""],[1,"confirm-panel__icon"],[1,"confirm-panel__title"],[1,"fault-type-selector"],[1,"fault-type-selector__label"],["hideSingleSelectionIndicator","true",1,"fault-type-selector__group",3,"valueChange","value"],[1,"fault-type-btn",3,"value"],[1,"confirm-panel__desc"],[1,"animation-area"],["src","assets/gns3_icon.svg","alt","GNS3",1,"gns3-logo"],[1,"completion-message",3,"success","error","aborted"],[1,"events-section"],[1,"status-main"],[1,"status-sub"],[1,"completion-message"],[1,"completion-icon"],[1,"completion-content"],[1,"completion-title"],[1,"completion-text"],[1,"events-list"],[1,"event",3,"success","error"],[1,"event"],[1,"event-content"],[1,"event-msg"],["mat-button","",3,"click"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(r,i){r&1&&(e(0,"h2",0)(1,"mat-icon",1),a(2,"bug_report"),n(),e(3,"span"),a(4,"Fault Injection"),n()(),e(5,"div",2),m(6,J,21,5,"div",3),m(7,et,5,5),n(),e(8,"div",4),m(9,nt,7,0),m(10,it,2,0,"button",5),m(11,ot,7,0),m(12,at,10,0),n()),r&2&&(s(6),d(i.showConfirm()?6:-1),s(),d(!i.showConfirm()||i.isInjecting()||i.completed()?7:-1),s(2),d(i.showConfirm()?9:-1),s(),d(i.isInjecting()?10:-1),s(),d(!i.showConfirm()&&!i.isInjecting()&&!i.completed()?11:-1),s(),d(i.completed()&&!i.isInjecting()?12:-1))},dependencies:[F,Y,L,W,G,N,B,z,A,V,q,X,U],styles:[".fault-injection-title[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.fault-injection-icon[_ngcontent-%COMP%]{font-size:24px;width:24px;height:24px;color:var(--mat-sys-error)}.fault-injection-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--gns3-density-space-5)}.confirm-panel[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;gap:var(--gns3-density-card-gap);padding:32px var(--gns3-density-card-padding);text-align:center}.confirm-panel__icon[_ngcontent-%COMP%]{font-size:48px;width:48px;height:48px;color:var(--mat-sys-error)}.confirm-panel__title[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin:0;color:var(--mat-sys-on-surface)}.confirm-panel__desc[_ngcontent-%COMP%]{font-size:14px;margin:0;color:var(--mat-sys-on-surface-variant);line-height:1.6;text-align:left;width:100%}.fault-type-selector[_ngcontent-%COMP%]{width:100%;max-width:360px}.fault-type-selector__label[_ngcontent-%COMP%]{font-size:12px;font-weight:500;margin:0 0 8px;text-align:left;color:var(--mat-sys-on-surface-variant)}.fault-type-selector__group[_ngcontent-%COMP%]{display:flex;gap:var(--gns3-density-space-2);width:100%;border:none;border-radius:0}.fault-type-btn[_ngcontent-%COMP%]{flex:1;min-width:0;height:36px;font-size:13px;font-weight:500;border:1px solid var(--mat-sys-outline-variant);border-radius:8px;color:var(--mat-sys-on-surface);display:flex;align-items:center;justify-content:center}.fault-type-btn.mat-button-toggle-checked[_ngcontent-%COMP%]{border-color:var(--mat-sys-primary);background:var(--mat-sys-primary-container);color:var(--mat-sys-on-primary-container);font-weight:600}.animation-area[_ngcontent-%COMP%]{position:relative;display:flex;align-items:center;justify-content:center;padding:32px;background:var(--mat-sys-surface-container-low);border-radius:12px;min-height:200px}.animation-area.injecting[_ngcontent-%COMP%]{background:color-mix(in srgb,var(--mat-sys-error-container) 30%,var(--mat-sys-surface-container-low))}.gns3-logo[_ngcontent-%COMP%]{width:120px;height:120px}.status-main[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0;text-align:center;color:var(--mat-sys-on-surface)}.status-sub[_ngcontent-%COMP%]{font-size:14px;margin:0;text-align:center;color:var(--mat-sys-on-surface-variant)}.completion-message[_ngcontent-%COMP%]{display:flex;gap:var(--gns3-density-card-gap);padding:var(--gns3-density-card-padding);background:var(--mat-sys-surface-container-low);border-radius:12px;border-left:4px solid var(--mat-sys-primary)}.completion-message.success[_ngcontent-%COMP%]{border-left-color:var(--mat-sys-primary);background:color-mix(in srgb,var(--mat-sys-primary-container) 35%,var(--mat-sys-surface))}.completion-message.error[_ngcontent-%COMP%]{border-left-color:var(--mat-sys-error);background:color-mix(in srgb,var(--mat-sys-error-container) 35%,var(--mat-sys-surface))}.completion-message.aborted[_ngcontent-%COMP%]{border-left-color:var(--mat-sys-outline);background:var(--mat-sys-surface-container-high)}.completion-icon[_ngcontent-%COMP%]{font-size:32px;width:32px;height:32px;flex-shrink:0;color:var(--mat-sys-primary)}.completion-message.error[_ngcontent-%COMP%] .completion-icon[_ngcontent-%COMP%]{color:var(--mat-sys-error)}.completion-message.aborted[_ngcontent-%COMP%] .completion-icon[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant)}.completion-content[_ngcontent-%COMP%]{flex:1}.completion-title[_ngcontent-%COMP%]{font-size:18px;font-weight:500;margin:0 0 8px;color:var(--mat-sys-on-surface)}.completion-text[_ngcontent-%COMP%]{font-size:14px;margin:0;color:var(--mat-sys-on-surface-variant);line-height:1.5}.events-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--gns3-density-space-3)}.events-section[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:16px;font-weight:500;margin:0;color:var(--mat-sys-on-surface)}.events-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--gns3-density-space-2)}.event[_ngcontent-%COMP%]{display:flex;gap:var(--gns3-density-space-3);padding:12px 16px;background:var(--mat-sys-surface-container-low);border-radius:8px;border-left:3px solid var(--mat-sys-outline)}.event.success[_ngcontent-%COMP%]{border-left-color:var(--mat-sys-primary);background:color-mix(in srgb,var(--mat-sys-primary-container) 35%,var(--mat-sys-surface))}.event.error[_ngcontent-%COMP%]{border-left-color:var(--mat-sys-error);background:color-mix(in srgb,var(--mat-sys-error-container) 35%,var(--mat-sys-surface))}.event[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;flex-shrink:0;color:var(--mat-sys-on-surface-variant)}.event-content[_ngcontent-%COMP%]{flex:1;min-width:0}.event-msg[_ngcontent-%COMP%]{font-size:14px;font-weight:500;margin:0 0 4px;color:var(--mat-sys-on-surface);word-wrap:break-word}.event-details[_ngcontent-%COMP%]{font-size:12px;margin:0;color:var(--mat-sys-on-surface-variant);word-wrap:break-word}"],changeDetection:0})}return o})();export{bt as FaultInjectionDialogComponent}; diff --git a/gns3server/static/web-ui/chunk-ETQHA42W.js b/gns3server/static/web-ui/chunk-ETQHA42W.js deleted file mode 100644 index d7a67d727..000000000 --- a/gns3server/static/web-ui/chunk-ETQHA42W.js +++ /dev/null @@ -1,2 +0,0 @@ -import{$ as ke,A as _e,B as ye,D as fe,E as xe,F as Ce,N as be,R as ve,S as Me,U as Se,V as Pe,W as Oe,_ as we,a as V,b as H,ba as ze,c as me,ca as Ee,da as Te,e as pe,ea as Fe,f as ge,fa as Ie,g as ue,ga as Ne,ha as De,ia as $e,ja as We,w as he}from"./chunk-3DUTSYEG.js";import{$a as S,Aa as X,Ac as re,Bc as I,Ca as q,Cb as B,Da as A,Db as K,Ea as s,Eb as F,Gb as r,Hb as _,Ib as ee,Jb as Q,Kd as ae,Ma as z,Pd as se,Qb as te,Sa as E,Tb as v,Te as N,Ue as D,Wa as J,Wd as le,Xa as T,Yb as U,Za as M,_b as G,_e as $,a as j,af as de,b as L,bf as W,cb as w,da as h,db as k,dc as ne,eb as d,fb as n,gb as i,ha as x,hb as b,ia as C,je as ce,ma as Z,mc as oe,oa as O,ob as P,qb as p,sb as u,vc as ie}from"./chunk-G7NALUVX.js";var Qe=(a,m)=>m.name;function Ue(a,m){if(a&1&&(n(0,"div",5),b(1,"span",6),n(2,"span",7)(3,"strong"),r(4),i(),n(5,"span"),r(6),i()()()),a&2){let e=m.$implicit;d("matTooltip",e.bpf),s(),K("background",e.color),F("marker-legend__swatch--default",!e.color),s(3),_(e.name),s(2),_(e.bpf)}}function Ge(a,m){if(a&1&&(n(0,"div",3),w(1,Ue,7,7,"div",5,Qe),i()),a&2){let e=u();s(),k(e.entries())}}function Ye(a,m){if(a&1){let e=P();n(0,"div",4)(1,"mat-icon"),r(2,"insights"),i(),n(3,"span"),r(4,"No markers defined"),i(),n(5,"button",8),p("click",function(){x(e);let t=u();return C(t.onClick())}),r(6,"Open marker manager"),i()()}}var Ve=(()=>{class a{registry=h(Te);openMarkerManager=new O;entries=ne(()=>{let e=this.registry.entries(),o=new Map;for(let l of e)o.has(l.name)||o.set(l.name,{bpf:l.bpf,color:l.color});let t=[];for(let[l,c]of o)t.push({name:l,bpf:c.bpf,color:c.color});return t});onClick(){this.openMarkerManager.emit()}static \u0275fac=function(o){return new(o||a)};static \u0275cmp=z({type:a,selectors:[["app-marker-legend"]],outputs:{openMarkerManager:"openMarkerManager"},decls:9,vars:2,consts:[[1,"marker-legend"],[1,"marker-legend__header"],["mat-icon-button","","type","button","aria-label","Open marker manager","matTooltip","Open marker manager","matTooltipPosition","left",1,"marker-legend__manage",3,"click"],[1,"marker-legend__list"],[1,"marker-legend__empty"],["matTooltipPosition","above",1,"marker-legend__row",3,"matTooltip"],[1,"marker-legend__swatch"],[1,"marker-legend__identity"],["mat-button","","type","button",3,"click"]],template:function(o,t){o&1&&(n(0,"div",0)(1,"div",1)(2,"span"),r(3),i(),n(4,"button",2),p("click",function(){return t.onClick()}),n(5,"mat-icon"),r(6,"settings"),i()()(),M(7,Ge,3,0,"div",3)(8,Ye,7,0,"div",4),i()),o&2&&(s(3),ee("",t.entries().length," markers"),s(4),S(t.entries().length>0?7:8))},dependencies:[I,H,V,D,N,W,de,$],styles:[".marker-legend[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;min-height:0;flex-direction:column}.marker-legend__header[_ngcontent-%COMP%]{display:flex;min-height:var(--topology-control-height);align-items:center;justify-content:space-between;padding-inline:var(--gns3-density-space-3);color:var(--mat-sys-on-surface-variant);font:var(--mat-sys-label-medium);font-weight:600}.marker-legend__manage[_ngcontent-%COMP%]{width:var(--topology-control-height);height:var(--topology-control-height)}.marker-legend__list[_ngcontent-%COMP%]{min-height:0;flex:1 1 auto;overflow:auto;overflow-x:hidden}.marker-legend__row[_ngcontent-%COMP%]{display:flex;min-height:var(--topology-row-height);box-sizing:border-box;align-items:center;gap:var(--gns3-density-space-2);padding-inline:var(--gns3-density-space-3);border-bottom:1px solid var(--mat-sys-outline-variant);cursor:default}.marker-legend__row[_ngcontent-%COMP%]:hover{background:var(--mat-sys-surface-container)}.marker-legend__swatch[_ngcontent-%COMP%]{width:12px;height:12px;flex:0 0 12px;border-radius:3px}.marker-legend__swatch--default[_ngcontent-%COMP%]{background-color:var(--mat-sys-primary)}.marker-legend__identity[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.marker-legend__identity[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], .marker-legend__identity[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.marker-legend__identity[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font:var(--mat-sys-body-small);font-weight:600;color:var(--mat-sys-on-surface)}.marker-legend__identity[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);font:var(--mat-sys-label-small)}.marker-legend__empty[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;flex-direction:column;align-items:center;justify-content:center;gap:var(--gns3-density-space-2);color:var(--mat-sys-on-surface-variant)}.marker-legend__empty[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant)}.marker-legend__empty[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font:var(--mat-sys-body-small)}"],changeDetection:0})}return a})();var Ze=()=>({top:!0}),Xe=()=>({right:!0}),qe=()=>({bottom:!0}),Je=()=>({left:!0}),Ke=()=>({top:!0,left:!0}),et=()=>({top:!0,right:!0}),tt=()=>({bottom:!0,left:!0}),nt=()=>({bottom:!0,right:!0}),ot=(a,m)=>m.node_id,it=(a,m)=>m.compute_id;function rt(a,m){if(a&1){let e=P();n(0,"div",37),p("mousemove",function(t){x(e);let l=u();return C(l.dragWidget(t))},A)("mouseup",function(){x(e);let t=u();return C(t.toggleDragging(!1))},A),i()}}function at(a,m){a&1&&(n(0,"mat-icon"),r(1,"map"),i(),n(2,"span"),r(3,"Topology"),i())}function st(a,m){if(a&1&&(n(0,"span",21),r(1),i()),a&2){let e=u();s(),_(e.activeFilterCount)}}function lt(a,m){if(a&1&&b(0,"img",42),a&2){let e=u().$implicit;d("src",e.symbol_url,X)}}function ct(a,m){a&1&&(n(0,"mat-icon"),r(1,"dns"),i())}function dt(a,m){if(a&1){let e=P();n(0,"div",38),p("click",function(){let t=x(e).$implicit,l=u();return C(l.selectNode(t))})("keydown.enter",function(){let t=x(e).$implicit,l=u();return C(l.selectNode(t))}),n(1,"div",39),b(2,"span",40),n(3,"span",41),M(4,lt,1,1,"img",42)(5,ct,2,0,"mat-icon"),i(),n(6,"span",43)(7,"strong"),r(8),i()()(),n(9,"span",44),r(10),i(),n(11,"span",45),r(12),i(),n(13,"button",46),p("click",function(t){let l=x(e).$implicit;return u().selectNode(l),C(t.stopPropagation())}),n(14,"mat-icon"),r(15,"more_horiz"),i()()()}if(a&2){let e=m.$implicit,o=u(),t=B(60);F("node-row--selected",(o.selectedNode==null?null:o.selectedNode.node_id)===e.node_id),s(2),d("matTooltip",o.getStatusLabel(e.status)),T("data-status",e.status)("aria-label",o.getStatusLabel(e.status)),s(2),S(e.symbol_url?4:5),s(4),_(e.name),s(2),_(o.hasConsole(e)?e.console_type:"none"),s(2),_(o.hasConsole(e)?e.console:"-"),s(),J("aria-label",te("Actions for ",e.name)),d("matMenuTriggerFor",t)}}function mt(a,m){a&1&&(n(0,"div",32)(1,"mat-icon"),r(2,"search_off"),i(),n(3,"span"),r(4,"No nodes match the current filters"),i()())}function pt(a,m){a&1&&(n(0,"mat-icon"),r(1,"insights"),i(),n(2,"span"),r(3,"Markers"),i())}function gt(a,m){a&1&&(n(0,"mat-icon"),r(1,"dns"),i(),n(2,"span"),r(3,"Computes"),i())}function ut(a,m){if(a&1&&(n(0,"div",36),b(1,"span",47),n(2,"span",48)(3,"strong"),r(4),i(),n(5,"span"),r(6),i()(),n(7,"span",49)(8,"span"),r(9,"CPU"),i(),n(10,"strong"),r(11),U(12,"number"),i()(),n(13,"span",49)(14,"span"),r(15,"Memory"),i(),n(16,"strong"),r(17),U(18,"number"),i()()()),a&2){let e=m.$implicit,o=u();d("matTooltip",o.getComputeTooltip(e)),s(),T("data-status",e.connected?"started":"stopped"),s(3),_(e.name||e.compute_id),s(2),Q("",e.host,":",e.port),s(5),_(e.cpu_usage_percent!==null&&e.cpu_usage_percent!==void 0?G(12,7,e.cpu_usage_percent,"1.0-1")+"%":"-"),s(6),_(e.memory_usage_percent!==null&&e.memory_usage_percent!==void 0?G(18,10,e.memory_usage_percent,"1.0-1")+"%":"-")}}function ht(a,m){a&1&&(n(0,"div",32)(1,"mat-icon"),r(2,"dns"),i(),n(3,"span"),r(4,"No computes available"),i()())}var an=(()=>{class a{nodesDataSource=h(Ee);computeService=h(xe);linksDataSource=h(ze);notificationService=h(Ce);toasterService=h(be);nodeConsoleService=h(Fe);mapSettingsService=h(ke);cd=h(oe);document=h(Z);controller;project;openWebConsoleInline=new O;openMarkerManager=new O;computesInitialized=!1;style={};subscriptions=[];nodes=[];filteredNodes=[];sortingOrder="asc";startedStatusFilterEnabled=!1;suspendedStatusFilterEnabled=!1;stoppedStatusFilterEnabled=!1;captureFilterEnabled=!1;packetFilterEnabled=!1;computes=[];searchQuery="";selectedNode=null;selectedTabIndex=0;isDraggingEnabled=!1;ngOnInit(){this.subscriptions.push(this.nodesDataSource.changes.subscribe(e=>{let o=this.selectedNode?.node_id;this.nodes=e.map(t=>this.normalizeConsoleHost(t)),this.selectedNode=o?this.nodes.find(t=>t.node_id===o)??null:null,this.applyFilters(),this.cd.markForCheck()})),this.initializeComputes(),this.revertPosition()}initializeComputes(){!this.controller||this.computesInitialized||(this.computesInitialized=!0,this.subscriptions.push(this.notificationService.computeCacheUpdated.subscribe(e=>{this.computes=e,this.cd.markForCheck()})),this.subscriptions.push(this.computeService.getComputes(this.controller).subscribe({next:e=>{this.computes=e,this.notificationService.setInitialComputes(e),this.cd.markForCheck()},error:e=>{let o=e.error?.message||e.message||"Failed to load computes";this.toasterService.error(o),this.cd.markForCheck()}})))}normalizeConsoleHost(e){return(e.console_host==="0.0.0.0"||e.console_host==="0:0:0:0:0:0:0:0"||e.console_host==="::")&&this.controller?.host?L(j({},e),{console_host:this.controller.host}):e}revertPosition(){let e=this.document.defaultView?.innerWidth??1280,o=this.document.defaultView?.innerHeight??800;if(e<=720){this.style={position:"fixed",top:"56px",left:"0px",width:`${e}px`,height:`${Math.max(0,o-56)}px`};return}let t=localStorage.getItem("leftPosition"),l=localStorage.getItem("rightPosition"),c=localStorage.getItem("topPosition"),g=localStorage.getItem("widthOfWidget"),R=localStorage.getItem("heightOfWidget");if(c){let f=Math.min(Math.max(Number(g)||720,400),e),Y=Math.min(Math.max(Number(R)||680,420),o),He=Math.min(Math.max(Number(c)||0,0),Math.max(0,o-Y)),Re=t!==null?{left:`${Math.min(Math.max(Number(t)||0,0),Math.max(0,e-f))}px`}:{right:`${Math.min(Math.max(Number(l)||0,0),Math.max(0,e-f))}px`};this.style=L(j({position:"fixed"},Re),{top:`${He}px`,width:`${f}px`,height:`${Y}px`})}else{let y=this.document.documentElement.dataset.density==="compact";this.style={top:y?"56px":"68px",right:y?"8px":"16px",width:"720px",height:"680px"}}}onViewportResize(){this.revertPosition()}toggleDragging(e){this.isDraggingEnabled=e}startDraggingFromTabStrip(e){let o=e.target;e.button===0&&o.closest(".mat-mdc-tab-header")&&this.toggleDragging(!0)}dragWidget(e){let o=Number(e.movementX),t=Number(e.movementY),l=Number(this.style.width.split("px")[0]),c=Number(this.style.height.split("px")[0]),g=this.document.defaultView?.innerWidth??1280,R=this.document.defaultView?.innerHeight??800,y=this.clamp(Number(this.style.top.split("px")[0])+t,0,R-c);if(this.style.left){let f=this.clamp(Number(this.style.left.split("px")[0])+o,0,g-l);this.style={position:"fixed",left:`${f}px`,top:`${y}px`,width:`${l}px`,height:`${c}px`},localStorage.setItem("leftPosition",f.toString()),localStorage.removeItem("rightPosition"),localStorage.setItem("topPosition",y.toString()),localStorage.setItem("widthOfWidget",l.toString()),localStorage.setItem("heightOfWidget",c.toString())}else{let f=this.clamp(Number(this.style.right.split("px")[0])-o,0,g-l);this.style={position:"fixed",right:`${f}px`,top:`${y}px`,width:`${l}px`,height:`${c}px`},localStorage.setItem("rightPosition",f.toString()),localStorage.removeItem("leftPosition"),localStorage.setItem("topPosition",y.toString()),localStorage.setItem("widthOfWidget",l.toString()),localStorage.setItem("heightOfWidget",c.toString())}}clamp(e,o,t){return Math.min(Math.max(e,o),Math.max(o,t))}validate(e){return!(e.rectangle.width&&e.rectangle.height&&(e.rectangle.width<400||e.rectangle.height<420))}onResizeEnd(e){this.style={position:"fixed",left:`${e.rectangle.left}px`,top:`${e.rectangle.top}px`,width:`${e.rectangle.width}px`,height:`${e.rectangle.height}px`},localStorage.setItem("leftPosition",e.rectangle.left.toString()),localStorage.removeItem("rightPosition"),localStorage.setItem("topPosition",e.rectangle.top.toString()),localStorage.setItem("widthOfWidget",e.rectangle.width.toString()),localStorage.setItem("heightOfWidget",e.rectangle.height.toString())}onTabSelectionChange(e){this.selectedTabIndex=e}compareAsc(e,o){return e.name.localeCompare(o.name)}compareDesc(e,o){return o.name.localeCompare(e.name)}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}setSortingOrder(){this.applyFilters()}setSearchQuery(e){this.searchQuery=e,this.applyFilters()}applyStatusFilter(e){e==="started"?this.startedStatusFilterEnabled=!this.startedStatusFilterEnabled:e==="stopped"?this.stoppedStatusFilterEnabled=!this.stoppedStatusFilterEnabled:e==="suspended"&&(this.suspendedStatusFilterEnabled=!this.suspendedStatusFilterEnabled),this.applyFilters()}applyCaptureFilter(e){e==="capture"?this.captureFilterEnabled=!this.captureFilterEnabled:e==="packet"&&(this.packetFilterEnabled=!this.packetFilterEnabled),this.applyFilters()}applyFilters(){let e=[];this.startedStatusFilterEnabled&&(e=e.concat(this.nodes.filter(t=>t.status==="started"))),this.stoppedStatusFilterEnabled&&(e=e.concat(this.nodes.filter(t=>t.status==="stopped"))),this.suspendedStatusFilterEnabled&&(e=e.concat(this.nodes.filter(t=>t.status==="suspended"))),!this.startedStatusFilterEnabled&&!this.stoppedStatusFilterEnabled&&!this.suspendedStatusFilterEnabled&&(e=e.concat(this.nodes)),this.captureFilterEnabled&&(e=this.checkCapturing(e)),this.packetFilterEnabled&&(e=this.checkPacketFilters(e));let o=this.searchQuery.trim().toLocaleLowerCase();o&&(e=e.filter(t=>t.name.toLocaleLowerCase().includes(o))),this.sortingOrder==="asc"?this.filteredNodes=[...e].sort(this.compareAsc):this.filteredNodes=[...e].sort(this.compareDesc)}checkCapturing(e){let o=this.linksDataSource.getItems(),t=new Set;return o.forEach(l=>{l.capturing&&l.nodes.forEach(c=>{t.add(c.node_id)})}),e.filter(l=>t.has(l.node_id))}checkPacketFilters(e){let o=this.linksDataSource.getItems(),t=new Set;return o.forEach(l=>{Object.values(l.filters??{}).some(c=>this.hasActiveFilterValue(c))&&l.nodes.forEach(c=>{t.add(c.node_id)})}),e.filter(l=>t.has(l.node_id))}selectNode(e){this.selectedNode=e}hasConsole(e){return e.console!==null&&e.console!==void 0&&!!e.console_type&&e.console_type!=="none"}canOpenConsole(e){return!e||e.status!=="started"?!1:e.console_type==="telnet"||e.console_type==="ssh"||e.console_type==="vnc"||e.console_type?.startsWith("http")===!0}openConsole(e=this.selectedNode){if(e){if(e.status!=="started"){this.toasterService.error("To open console please start the node");return}if(e.console_type==="vnc"||e.console_type&&e.console_type.startsWith("http")){this.openWebConsoleInline.emit({node:e,controller:this.controller,project:this.project});return}if(e.console_type!=="telnet"&&e.console_type!=="ssh"){this.toasterService.error(`Console type '${e.console_type||"none"}' is not supported in the embedded console.`);return}this.mapSettingsService.logConsoleSubject.next(!0),this.nodeConsoleService.openConsoleForNode(e)}}getStatusLabel(e){return e==="started"?"Running":e==="stopped"?"Stopped":e==="suspended"?"Suspended":e||"Unknown"}get activeFilterCount(){return[this.startedStatusFilterEnabled,this.stoppedStatusFilterEnabled,this.suspendedStatusFilterEnabled,this.captureFilterEnabled,this.packetFilterEnabled].filter(Boolean).length}get connectedComputeCount(){return this.computes.filter(e=>e.connected).length}hasActiveFilterValue(e){return Array.isArray(e)?e.some(o=>o!=null&&o!==""&&o!==0):e!=null&&e!==""&&e!==0&&e!==!1}getComputeTooltip(e){return e?[`Name: ${e.name||"N/A"}`,`Host: ${e.host}:${e.port}`,`Connected: ${e.connected?"Yes":"No"}`,e.cpu_usage_percent!=null?`CPU: ${e.cpu_usage_percent.toFixed(1)}%`:null,e.memory_usage_percent!=null?`Memory: ${e.memory_usage_percent.toFixed(1)}%`:null].filter(Boolean).join(` -`):""}static \u0275fac=function(o){return new(o||a)};static \u0275cmp=z({type:a,selectors:[["app-topology-summary"]],hostBindings:function(o,t){o&1&&p("resize",function(){return t.onViewportResize()},q)},inputs:{controller:"controller",project:"project"},outputs:{openWebConsoleInline:"openWebConsoleInline",openMarkerManager:"openMarkerManager"},decls:80,vars:36,consts:[["filterMenu","matMenu"],["nodeActionsMenu","matMenu"],["mwlResizable","","aria-label","Topology map",1,"topology-inspector",3,"resizeStart","resizeEnd","ngStyle","validateResize","enableGhostResize"],["mwlResizeHandle","",1,"resize-handle","resize-handle-top",3,"resizeEdges"],["mwlResizeHandle","",1,"resize-handle","resize-handle-right",3,"resizeEdges"],["mwlResizeHandle","",1,"resize-handle","resize-handle-bottom",3,"resizeEdges"],["mwlResizeHandle","",1,"resize-handle","resize-handle-left",3,"resizeEdges"],["mwlResizeHandle","",1,"resize-handle","resize-handle-top-left",3,"resizeEdges"],["mwlResizeHandle","",1,"resize-handle","resize-handle-top-right",3,"resizeEdges"],["mwlResizeHandle","",1,"resize-handle","resize-handle-bottom-left",3,"resizeEdges"],["mwlResizeHandle","",1,"resize-handle","resize-handle-bottom-right",3,"resizeEdges"],["animationDuration","0ms",1,"inspector-tabs",3,"selectedIndexChange","mousedown","selectedIndex"],["mat-tab-label",""],[1,"tab-content"],[1,"node-toolbar"],[1,"search-control"],["type","search","aria-label","Filter nodes","placeholder","Filter nodes",3,"ngModelChange","ngModel"],["aria-label","Sort nodes",1,"sort-control",3,"selectionChange","value"],["value","asc"],["value","desc"],["mat-icon-button","","type","button",1,"filter-button",3,"matMenuTriggerFor"],[1,"filter-button__count"],[1,"topology-filter-menu"],[1,"filter-menu",3,"click"],[1,"filter-menu__label"],[3,"change","checked"],["role","table","aria-label","Project nodes",1,"node-table"],[1,"node-table__body"],["role","row",1,"node-table__header"],["role","columnheader"],["role","columnheader","aria-label","Actions"],["role","row","tabindex","0",1,"node-row",3,"node-row--selected"],[1,"empty-state"],["mat-menu-item","",3,"click","disabled"],[3,"openMarkerManager"],[1,"compute-list"],["matTooltipPosition","above",1,"compute-row",3,"matTooltip"],[3,"mousemove","mouseup"],["role","row","tabindex","0",1,"node-row",3,"click","keydown.enter"],["role","cell",1,"node-cell"],[1,"status-dot",3,"matTooltip"],[1,"node-symbol"],["alt","",3,"src"],[1,"node-identity"],["role","cell",1,"protocol-cell"],["role","cell",1,"port-cell"],["mat-icon-button","","type","button",1,"row-action",3,"click","aria-label","matMenuTriggerFor"],[1,"status-dot"],[1,"compute-identity"],[1,"compute-metric"]],template:function(o,t){if(o&1){let l=P();M(0,rt,1,0,"div"),n(1,"section",2),p("resizeStart",function(){return t.toggleDragging(!1)})("resizeEnd",function(g){return t.onResizeEnd(g)}),b(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6)(6,"div",7)(7,"div",8)(8,"div",9)(9,"div",10),n(10,"mat-tab-group",11),p("selectedIndexChange",function(g){return t.onTabSelectionChange(g)})("mousedown",function(g){return t.startDraggingFromTabStrip(g)}),n(11,"mat-tab"),E(12,at,4,0,"ng-template",12),n(13,"div",13)(14,"div",14)(15,"div",15)(16,"mat-icon"),r(17,"search"),i(),n(18,"input",16),p("ngModelChange",function(g){return t.setSearchQuery(g)}),i()(),n(19,"mat-select",17),p("selectionChange",function(g){return x(l),t.sortingOrder=g.value,C(t.setSortingOrder())}),n(20,"mat-option",18),r(21,"Name (A-Z)"),i(),n(22,"mat-option",19),r(23,"Name (Z-A)"),i()(),n(24,"button",20)(25,"mat-icon"),r(26,"filter_alt"),i(),M(27,st,2,1,"span",21),i()(),n(28,"mat-menu",22,0)(30,"div",23),p("click",function(g){return g.stopPropagation()}),n(31,"span",24),r(32,"Status"),i(),n(33,"mat-checkbox",25),p("change",function(){return t.applyStatusFilter("started")}),r(34," Running "),i(),n(35,"mat-checkbox",25),p("change",function(){return t.applyStatusFilter("stopped")}),r(36," Stopped "),i(),n(37,"mat-checkbox",25),p("change",function(){return t.applyStatusFilter("suspended")}),r(38," Suspended "),i(),b(39,"mat-divider"),n(40,"span",24),r(41,"Links"),i(),n(42,"mat-checkbox",25),p("change",function(){return t.applyCaptureFilter("capture")}),r(43," Active capture "),i(),n(44,"mat-checkbox",25),p("change",function(){return t.applyCaptureFilter("packet")}),r(45," Packet filter "),i()()(),n(46,"div",26)(47,"div",27)(48,"div",28)(49,"span",29),r(50,"Node"),i(),n(51,"span",29),r(52,"Protocol"),i(),n(53,"span",29),r(54,"Port"),i(),b(55,"span",30),i(),w(56,dt,16,12,"div",31,ot,!1,mt,5,0,"div",32),i()(),n(59,"mat-menu",null,1)(61,"button",33),p("click",function(){return t.openConsole()}),n(62,"mat-icon"),r(63,"terminal"),i(),n(64,"span"),r(65,"Open console"),i()()()()(),n(66,"mat-tab"),E(67,pt,4,0,"ng-template",12),n(68,"div",13)(69,"app-marker-legend",34),p("openMarkerManager",function(){return t.openMarkerManager.emit()}),i()()(),n(70,"mat-tab"),E(71,gt,4,0,"ng-template",12),n(72,"div",13)(73,"div")(74,"span"),r(75),i()(),n(76,"div",35),w(77,ut,19,13,"div",36,it,!1,ht,5,0,"div",32),i()()()()()}if(o&2){let l=B(29);S(t.isDraggingEnabled?0:-1),s(),d("ngStyle",t.style)("validateResize",t.validate)("enableGhostResize",!0),s(),d("resizeEdges",v(28,Ze)),s(),d("resizeEdges",v(29,Xe)),s(),d("resizeEdges",v(30,qe)),s(),d("resizeEdges",v(31,Je)),s(),d("resizeEdges",v(32,Ke)),s(),d("resizeEdges",v(33,et)),s(),d("resizeEdges",v(34,tt)),s(),d("resizeEdges",v(35,nt)),s(),d("selectedIndex",t.selectedTabIndex),s(8),d("ngModel",t.searchQuery),s(),d("value",t.sortingOrder),s(5),d("matMenuTriggerFor",l),T("aria-label",t.activeFilterCount?t.activeFilterCount+" active node filters":"Filter nodes"),s(3),S(t.activeFilterCount?27:-1),s(6),d("checked",t.startedStatusFilterEnabled),s(2),d("checked",t.stoppedStatusFilterEnabled),s(2),d("checked",t.suspendedStatusFilterEnabled),s(5),d("checked",t.captureFilterEnabled),s(2),d("checked",t.packetFilterEnabled),s(12),k(t.filteredNodes),s(5),d("disabled",!t.canOpenConsole(t.selectedNode)),s(14),Q("",t.computes.length," computes \xB7 ",t.connectedComputeCount," connected"),s(2),k(t.computes)}},dependencies:[I,ie,ce,ae,se,le,we,Se,Pe,Oe,fe,ye,he,_e,Ne,Ie,H,V,D,N,W,$,ue,pe,me,ge,Me,ve,We,De,$e,Ve,re],styles:["[_nghost-%COMP%]{--topology-row-height: 46px;--topology-row-action-size: 32px;--topology-symbol-size: 30px;--topology-control-height: var(--gns3-density-control-height)}.topology-inspector[_ngcontent-%COMP%]{position:fixed;z-index:900;display:flex;min-width:400px;max-width:calc(100vw - 32px);min-height:420px;max-height:calc(100vh - 84px);box-sizing:border-box;flex-direction:column;overflow:hidden;border:1px solid var(--mat-sys-outline-variant);border-radius:var(--gns3-density-radius-sm);color:var(--mat-sys-on-surface);background:var(--mat-sys-surface-container-low);box-shadow:0 16px 40px color-mix(in srgb,var(--mat-sys-shadow) 22%,transparent);container-name:topology-panel;container-type:inline-size}.resize-handle[_ngcontent-%COMP%]{position:absolute;z-index:10;background:transparent}.resize-handle.resize-handle-top[_ngcontent-%COMP%], .resize-handle.resize-handle-bottom[_ngcontent-%COMP%]{left:12px;right:12px;height:10px;cursor:ns-resize}.resize-handle.resize-handle-top[_ngcontent-%COMP%]{top:-4px}.resize-handle.resize-handle-bottom[_ngcontent-%COMP%]{bottom:-4px}.resize-handle.resize-handle-left[_ngcontent-%COMP%], .resize-handle.resize-handle-right[_ngcontent-%COMP%]{top:12px;bottom:12px;width:10px;cursor:ew-resize}.resize-handle.resize-handle-left[_ngcontent-%COMP%]{left:-4px}.resize-handle.resize-handle-right[_ngcontent-%COMP%]{right:-4px}.resize-handle.resize-handle-top-left[_ngcontent-%COMP%], .resize-handle.resize-handle-top-right[_ngcontent-%COMP%], .resize-handle.resize-handle-bottom-left[_ngcontent-%COMP%], .resize-handle.resize-handle-bottom-right[_ngcontent-%COMP%]{width:18px;height:18px}.resize-handle.resize-handle-top-left[_ngcontent-%COMP%], .resize-handle.resize-handle-bottom-right[_ngcontent-%COMP%]{cursor:nwse-resize}.resize-handle.resize-handle-top-right[_ngcontent-%COMP%], .resize-handle.resize-handle-bottom-left[_ngcontent-%COMP%]{cursor:nesw-resize}.resize-handle.resize-handle-top-left[_ngcontent-%COMP%]{top:-5px;left:-5px}.resize-handle.resize-handle-top-right[_ngcontent-%COMP%]{top:-5px;right:-5px}.resize-handle.resize-handle-bottom-left[_ngcontent-%COMP%]{bottom:-5px;left:-5px}.resize-handle.resize-handle-bottom-right[_ngcontent-%COMP%]{right:-5px;bottom:-5px}.node-cell[_ngcontent-%COMP%], .node-identity[_ngcontent-%COMP%], .compute-identity[_ngcontent-%COMP%], .compute-row[_ngcontent-%COMP%]{min-width:0}.inspector-tabs[_ngcontent-%COMP%]{min-height:0;flex:1 1 auto}.tab-content[_ngcontent-%COMP%]{display:flex;min-height:0;height:100%;box-sizing:border-box;flex-direction:column;gap:var(--gns3-density-space-2);padding:var(--gns3-density-space-2) var(--gns3-density-space-3)}.tab-content[_ngcontent-%COMP%] app-marker-legend[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;min-height:0;margin:calc(-1 * var(--gns3-density-space-2)) calc(-1 * var(--gns3-density-space-3))}.node-toolbar[_ngcontent-%COMP%]{display:grid;min-width:0;grid-template-columns:minmax(180px,1fr) minmax(150px,180px) var(--topology-control-height);align-items:center;justify-content:start;gap:var(--gns3-density-space-2)}.search-control[_ngcontent-%COMP%], .sort-control[_ngcontent-%COMP%], .filter-button[_ngcontent-%COMP%]{height:var(--topology-control-height);box-sizing:border-box}.search-control[_ngcontent-%COMP%]{display:flex;min-width:0;align-items:center;gap:var(--gns3-density-space-2);padding-inline:var(--gns3-density-space-3);border:1px solid var(--mat-sys-outline);border-radius:var(--gns3-density-radius-sm);background:var(--mat-sys-surface-container-lowest)}.search-control[_ngcontent-%COMP%]:focus-within{border-color:var(--mat-sys-primary);outline:1px solid var(--mat-sys-primary)}.search-control[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{flex:0 0 auto;color:var(--mat-sys-on-surface-variant)}.search-control[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{min-width:0;width:100%;border:0;outline:0;color:var(--mat-sys-on-surface);background:transparent;font:var(--mat-sys-body-medium);letter-spacing:0}.search-control[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:var(--mat-sys-on-surface-variant)}.filter-button[_ngcontent-%COMP%]{position:relative;display:flex;width:var(--topology-control-height);min-width:0;align-items:center;justify-content:center;border:1px solid var(--mat-sys-outline);padding:0}.filter-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin:0;line-height:normal}.filter-button__count[_ngcontent-%COMP%]{position:absolute;top:2px;right:2px;display:grid;min-width:16px;height:16px;box-sizing:border-box;place-items:center;padding-inline:3px;border-radius:8px;color:var(--mat-sys-on-primary);background:var(--mat-sys-primary);font:var(--mat-sys-label-small)}.sort-control[_ngcontent-%COMP%]{display:flex;align-items:center;border:1px solid var(--mat-sys-outline);border-radius:var(--gns3-density-radius-sm);background:var(--mat-sys-surface-container-lowest)}.sort-control[_ngcontent-%COMP%]{padding-inline:var(--gns3-density-space-3)}.filter-menu[_ngcontent-%COMP%]{display:grid;min-width:220px;gap:var(--gns3-density-space-1);padding:var(--gns3-density-space-2) var(--gns3-density-space-3)}.filter-menu__label[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);font:var(--mat-sys-label-small)}.node-table[_ngcontent-%COMP%]{display:flex;min-height:0;flex:1 1 auto;flex-direction:column;overflow:hidden;border:1px solid var(--mat-sys-outline-variant);border-radius:var(--gns3-density-radius-sm);background:var(--mat-sys-surface-container-lowest)}.node-table__header[_ngcontent-%COMP%], .node-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:minmax(190px,260px) 82px 64px minmax(0,1fr) 36px;align-items:center}.node-table__header[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:last-child, .row-action[_ngcontent-%COMP%]{grid-column:5}.node-table__header[_ngcontent-%COMP%]{position:sticky;top:0;z-index:1;min-height:32px;padding-inline:var(--gns3-density-space-3) var(--gns3-density-space-1);border-bottom:1px solid var(--mat-sys-outline-variant);color:var(--mat-sys-on-surface-variant);background:var(--mat-sys-surface-container);font:var(--mat-sys-label-medium);font-weight:600}.node-table__body[_ngcontent-%COMP%], .compute-list[_ngcontent-%COMP%]{min-height:0;flex:1 1 auto;overflow:auto;overflow-x:hidden}.node-row[_ngcontent-%COMP%]{min-height:var(--topology-row-height);box-sizing:border-box;padding-inline:var(--gns3-density-space-3) var(--gns3-density-space-1);border-bottom:1px solid var(--mat-sys-outline-variant);outline:0;cursor:pointer}.node-row[_ngcontent-%COMP%]:hover, .node-row[_ngcontent-%COMP%]:focus-visible{background:var(--mat-sys-surface-container)}.node-row--selected[_ngcontent-%COMP%]{background:var(--mat-sys-primary-container);box-shadow:inset 3px 0 var(--mat-sys-primary)}.node-cell[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--gns3-density-space-2);overflow:hidden}.status-dot[_ngcontent-%COMP%], .compute-row[_ngcontent-%COMP%] .status-dot[_ngcontent-%COMP%]{display:inline-block;width:12px;height:12px;flex:0 0 12px;border-radius:50%;background:var(--mat-sys-outline)}.status-dot[data-status=started][_ngcontent-%COMP%], .compute-row[_ngcontent-%COMP%] .status-dot[data-status=started][_ngcontent-%COMP%]{background:var(--custom-mat-sys-success)}.status-dot[data-status=stopped][_ngcontent-%COMP%], .compute-row[_ngcontent-%COMP%] .status-dot[data-status=stopped][_ngcontent-%COMP%]{background:var(--mat-sys-error)}.status-dot[data-status=suspended][_ngcontent-%COMP%], .compute-row[_ngcontent-%COMP%] .status-dot[data-status=suspended][_ngcontent-%COMP%]{background:var(--mat-sys-secondary)}.node-symbol[_ngcontent-%COMP%]{display:grid;width:var(--topology-symbol-size);height:var(--topology-symbol-size);flex:0 0 var(--topology-symbol-size);place-items:center}.node-symbol[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{display:block;max-width:100%;max-height:100%;object-fit:contain}.node-symbol[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--mat-sys-primary)}.node-identity[_ngcontent-%COMP%], .compute-identity[_ngcontent-%COMP%]{display:flex;flex:1 1 auto;flex-direction:column;overflow:hidden}.node-identity[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], .node-identity[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .compute-identity[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], .compute-identity[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.node-identity[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], .compute-identity[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font:var(--mat-sys-body-small);font-weight:600}.node-identity[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .compute-identity[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);font:var(--mat-sys-label-small)}.protocol-cell[_ngcontent-%COMP%], .port-cell[_ngcontent-%COMP%]{width:100%;min-width:0;box-sizing:border-box;overflow:hidden;justify-self:start;color:var(--mat-sys-on-surface-variant);font:var(--mat-sys-label-medium);text-align:left;text-overflow:ellipsis;white-space:nowrap}.node-table__header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(2), .node-table__header[_ngcontent-%COMP%] span[_ngcontent-%COMP%]:nth-child(3){width:100%;justify-self:start;text-align:left}.row-action[_ngcontent-%COMP%]{--mat-icon-button-state-layer-size: var(--topology-row-action-size);display:inline-flex;width:var(--topology-row-action-size);height:var(--topology-row-action-size);align-self:center;align-items:center;justify-self:center;justify-content:center;padding:0;line-height:1}.row-action[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{display:block;margin:0;line-height:24px}.empty-state[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:var(--gns3-density-space-2);color:var(--mat-sys-on-surface-variant);font:var(--mat-sys-body-medium)}.compute-list[_ngcontent-%COMP%]{border:1px solid var(--mat-sys-outline-variant);border-radius:var(--gns3-density-radius-sm);background:var(--mat-sys-surface-container-lowest)}.compute-row[_ngcontent-%COMP%]{display:grid;width:100%;min-height:var(--topology-row-height);box-sizing:border-box;grid-template-columns:12px minmax(120px,1fr) minmax(54px,76px) minmax(64px,88px);align-items:center;gap:var(--gns3-density-space-2);padding-inline:var(--gns3-density-space-3);border-bottom:1px solid var(--mat-sys-outline-variant)}.compute-metric[_ngcontent-%COMP%]{display:flex;min-width:0;flex-direction:column;align-items:flex-end;overflow:hidden}.compute-metric[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .compute-metric[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.compute-metric[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);font:var(--mat-sys-label-small)}.compute-metric[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font:var(--mat-sys-body-small);font-weight:600}@container topology-panel (max-width: 640px){.node-toolbar[_ngcontent-%COMP%]{grid-template-columns:minmax(0,1fr) var(--topology-control-height)}.sort-control[_ngcontent-%COMP%]{display:none}.node-table__header[_ngcontent-%COMP%], .node-row[_ngcontent-%COMP%]{grid-template-columns:minmax(160px,220px) 72px 54px minmax(0,1fr) 32px}}@container topology-panel (max-width: 440px){.node-table__header[_ngcontent-%COMP%], .node-row[_ngcontent-%COMP%]{grid-template-columns:minmax(140px,1fr) 68px 52px 30px}.node-table__header[_ngcontent-%COMP%] > [_ngcontent-%COMP%]:last-child, .row-action[_ngcontent-%COMP%]{grid-column:4}}@media(max-width:720px){.topology-inspector[_ngcontent-%COMP%]{min-width:0;min-height:0;max-width:none;max-height:none;border-radius:0}.resize-handle[_ngcontent-%COMP%]{display:none}}html[data-density=compact][_nghost-%COMP%], html[data-density=compact] [_nghost-%COMP%]{--topology-row-height: 38px;--topology-row-action-size: 28px;--topology-symbol-size: 24px}html[data-density=compact][_nghost-%COMP%] .topology-inspector[_ngcontent-%COMP%], html[data-density=compact] [_nghost-%COMP%] .topology-inspector[_ngcontent-%COMP%]{max-height:calc(100vh - 64px)}html[data-density=compact][_nghost-%COMP%] .node-table__header[_ngcontent-%COMP%], html[data-density=compact] [_nghost-%COMP%] .node-table__header[_ngcontent-%COMP%]{min-height:28px}"],changeDetection:0})}return a})();export{an as TopologySummaryComponent}; diff --git a/gns3server/static/web-ui/chunk-G7NALUVX.js b/gns3server/static/web-ui/chunk-JPY5KHMK.js similarity index 53% rename from gns3server/static/web-ui/chunk-G7NALUVX.js rename to gns3server/static/web-ui/chunk-JPY5KHMK.js index 6c1e8735c..ec90255cf 100644 --- a/gns3server/static/web-ui/chunk-G7NALUVX.js +++ b/gns3server/static/web-ui/chunk-JPY5KHMK.js @@ -1,8 +1,8 @@ -var $S=Object.create;var $a=Object.defineProperty,zS=Object.defineProperties,GS=Object.getOwnPropertyDescriptor,WS=Object.getOwnPropertyDescriptors,qS=Object.getOwnPropertyNames,Ha=Object.getOwnPropertySymbols,YS=Object.getPrototypeOf,Ud=Object.prototype.hasOwnProperty,Rv=Object.prototype.propertyIsEnumerable;var Av=(t,n,e)=>n in t?$a(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,g=(t,n)=>{for(var e in n||={})Ud.call(n,e)&&Av(t,e,n[e]);if(Ha)for(var e of Ha(n))Rv.call(n,e)&&Av(t,e,n[e]);return t},F=(t,n)=>zS(t,WS(n));var ZS=(t,n)=>{var e={};for(var r in t)Ud.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&Ha)for(var r of Ha(t))n.indexOf(r)<0&&Rv.call(t,r)&&(e[r]=t[r]);return e};var o1=(t,n)=>()=>{try{return n||t((n={exports:{}}).exports,n),n.exports}catch(e){throw n=0,e}},i1=(t,n)=>{for(var e in n)$a(t,e,{get:n[e],enumerable:!0})},KS=(t,n,e,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of qS(n))!Ud.call(t,o)&&o!==e&&$a(t,o,{get:()=>n[o],enumerable:!(r=GS(n,o))||r.enumerable});return t};var s1=(t,n,e)=>(e=t!=null?$S(YS(t)):{},KS(n||!t||!t.__esModule?$a(e,"default",{value:t,enumerable:!0}):e,t));function R(t){return typeof t=="function"}function tr(t){let e=t(r=>{Error.call(r),r.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var za=tr(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: +var YS=Object.create;var $a=Object.defineProperty,ZS=Object.defineProperties,KS=Object.getOwnPropertyDescriptor,QS=Object.getOwnPropertyDescriptors,XS=Object.getOwnPropertyNames,Ha=Object.getOwnPropertySymbols,JS=Object.getPrototypeOf,zd=Object.prototype.hasOwnProperty,kv=Object.prototype.propertyIsEnumerable;var Ov=(t,n,e)=>n in t?$a(t,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):t[n]=e,g=(t,n)=>{for(var e in n||={})zd.call(n,e)&&Ov(t,e,n[e]);if(Ha)for(var e of Ha(n))kv.call(n,e)&&Ov(t,e,n[e]);return t},F=(t,n)=>ZS(t,QS(n));var eM=(t,n)=>{var e={};for(var r in t)zd.call(t,r)&&n.indexOf(r)<0&&(e[r]=t[r]);if(t!=null&&Ha)for(var r of Ha(t))n.indexOf(r)<0&&kv.call(t,r)&&(e[r]=t[r]);return e};var h1=(t,n)=>()=>{try{return n||t((n={exports:{}}).exports,n),n.exports}catch(e){throw n=0,e}},p1=(t,n)=>{for(var e in n)$a(t,e,{get:n[e],enumerable:!0})},tM=(t,n,e,r)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of XS(n))!zd.call(t,o)&&o!==e&&$a(t,o,{get:()=>n[o],enumerable:!(r=KS(n,o))||r.enumerable});return t};var m1=(t,n,e)=>(e=t!=null?YS(JS(t)):{},tM(n||!t||!t.__esModule?$a(e,"default",{value:t,enumerable:!0}):e,t));function O(t){return typeof t=="function"}function tr(t){let e=t(r=>{Error.call(r),r.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var za=tr(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: ${e.map((r,o)=>`${o+1}) ${r.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=e});function Rr(t,n){if(t){let e=t.indexOf(n);0<=e&&t.splice(e,1)}}var G=class t{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let i of e)i.remove(this);else e.remove(this);let{initialTeardown:r}=this;if(R(r))try{r()}catch(i){n=i instanceof za?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Nv(i)}catch(s){n=n??[],s instanceof za?n=[...n,...s.errors]:n.push(s)}}if(n)throw new za(n)}}add(n){var e;if(n&&n!==this)if(this.closed)Nv(n);else{if(n instanceof t){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(n)}}_hasParent(n){let{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){let{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&Rr(e,n)}remove(n){let{_finalizers:e}=this;e&&Rr(e,n),n instanceof t&&n._removeParent(this)}};G.EMPTY=(()=>{let t=new G;return t.closed=!0,t})();var Hd=G.EMPTY;function Ga(t){return t instanceof G||t&&"closed"in t&&R(t.remove)&&R(t.add)&&R(t.unsubscribe)}function Nv(t){R(t)?t():t.unsubscribe()}var Pt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Co={setTimeout(t,n,...e){let{delegate:r}=Co;return r?.setTimeout?r.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){let{delegate:n}=Co;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Wa(t){Co.setTimeout(()=>{let{onUnhandledError:n}=Pt;if(n)n(t);else throw t})}function Nr(){}var Ov=$d("C",void 0,void 0);function kv(t){return $d("E",void 0,t)}function Fv(t){return $d("N",t,void 0)}function $d(t,n,e){return{kind:t,value:n,error:e}}var Or=null;function Io(t){if(Pt.useDeprecatedSynchronousErrorHandling){let n=!Or;if(n&&(Or={errorThrown:!1,error:null}),t(),n){let{errorThrown:e,error:r}=Or;if(Or=null,e)throw r}}else t()}function Pv(t){Pt.useDeprecatedSynchronousErrorHandling&&Or&&(Or.errorThrown=!0,Or.error=t)}var kr=class extends G{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Ga(n)&&n.add(this)):this.destination=JS}static create(n,e,r){return new Lt(n,e,r)}next(n){this.isStopped?Gd(Fv(n),this):this._next(n)}error(n){this.isStopped?Gd(kv(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Gd(Ov,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},QS=Function.prototype.bind;function zd(t,n){return QS.call(t,n)}var Wd=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(r){qa(r)}}error(n){let{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(r){qa(r)}else qa(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){qa(e)}}},Lt=class extends kr{constructor(n,e,r){super();let o;if(R(n)||!n)o={next:n??void 0,error:e??void 0,complete:r??void 0};else{let i;this&&Pt.useDeprecatedNextContext?(i=Object.create(n),i.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&zd(n.next,i),error:n.error&&zd(n.error,i),complete:n.complete&&zd(n.complete,i)}):o=n}this.destination=new Wd(o)}};function qa(t){Pt.useDeprecatedSynchronousErrorHandling?Pv(t):Wa(t)}function XS(t){throw t}function Gd(t,n){let{onStoppedNotification:e}=Pt;e&&Co.setTimeout(()=>e(t,n))}var JS={closed:!0,next:Nr,error:XS,complete:Nr};var So=typeof Symbol=="function"&&Symbol.observable||"@@observable";function dt(t){return t}function qd(...t){return Yd(t)}function Yd(t){return t.length===0?dt:t.length===1?t[0]:function(e){return t.reduce((r,o)=>o(r),e)}}var P=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let r=new t;return r.source=this,r.operator=e,r}subscribe(e,r,o){let i=tM(e)?e:new Lt(e,r,o);return Io(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(e){try{return this._subscribe(e)}catch(r){e.error(r)}}forEach(e,r){return r=Lv(r),new r((o,i)=>{let s=new Lt({next:a=>{try{e(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)}[So](){return this}pipe(...e){return Yd(e)(this)}toPromise(e){return e=Lv(e),new e((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return t.create=n=>new t(n),t})();function Lv(t){var n;return(n=t??Pt.Promise)!==null&&n!==void 0?n:Promise}function eM(t){return t&&R(t.next)&&R(t.error)&&R(t.complete)}function tM(t){return t&&t instanceof kr||eM(t)&&Ga(t)}var jv=tr(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var x=(()=>{class t extends P{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let r=new Ya(this,this);return r.operator=e,r}_throwIfClosed(){if(this.closed)throw new jv}next(e){Io(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(e)}})}error(e){Io(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:r}=this;for(;r.length;)r.shift().error(e)}})}complete(){Io(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:r,isStopped:o,observers:i}=this;return r||o?Hd:(this.currentObservers=null,i.push(e),new G(()=>{this.currentObservers=null,Rr(i,e)}))}_checkFinalizedStatuses(e){let{hasError:r,thrownError:o,isStopped:i}=this;r?e.error(o):i&&e.complete()}asObservable(){let e=new P;return e.source=this,e}}return t.create=(n,e)=>new Ya(n,e),t})(),Ya=class extends x{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.next)===null||r===void 0||r.call(e,n)}error(n){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.error)===null||r===void 0||r.call(e,n)}complete(){var n,e;(e=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||e===void 0||e.call(n)}_subscribe(n){var e,r;return(r=(e=this.source)===null||e===void 0?void 0:e.subscribe(n))!==null&&r!==void 0?r:Hd}};function Zd(t){return R(t?.lift)}function k(t){return n=>{if(Zd(n))return n.lift(function(e){try{return t(e,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function N(t,n,e,r,o){return new Kd(t,n,e,r,o)}var Kd=class extends kr{constructor(n,e,r,o,i,s){super(n),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(c){n.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((n=this.onFinalize)===null||n===void 0||n.call(this))}}};function Bv(t,n,e,r){function o(i){return i instanceof e?i:new e(function(s){s(i)})}return new(e||(e=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(t,n||[])).next())})}function Vv(t){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function Fr(t){return this instanceof Fr?(this.v=t,this):new Fr(t)}function Uv(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e.apply(t,n||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(p){return function(m){return Promise.resolve(m).then(p,d)}}function a(p,m){r[p]&&(o[p]=function(_){return new Promise(function(D,C){i.push([p,_,D,C])>1||c(p,_)})},m&&(o[p]=m(o[p])))}function c(p,m){try{l(r[p](m))}catch(_){h(i[0][3],_)}}function l(p){p.value instanceof Fr?Promise.resolve(p.value.v).then(u,d):h(i[0][2],p)}function u(p){c("next",p)}function d(p){c("throw",p)}function h(p,m){p(m),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Hv(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t[Symbol.asyncIterator],e;return n?n.call(t):(t=typeof Vv=="function"?Vv(t):t[Symbol.iterator](),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(i){e[i]=t[i]&&function(s){return new Promise(function(a,c){s=t[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}var Mo=t=>t&&typeof t.length=="number"&&typeof t!="function";function Za(t){return R(t?.then)}function Ka(t){return R(t[So])}function Qa(t){return Symbol.asyncIterator&&R(t?.[Symbol.asyncIterator])}function Xa(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function nM(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ja=nM();function ec(t){return R(t?.[Ja])}function tc(t){return Uv(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:r,done:o}=yield Fr(e.read());if(o)return yield Fr(void 0);yield yield Fr(r)}}finally{e.releaseLock()}})}function nc(t){return R(t?.getReader)}function X(t){if(t instanceof P)return t;if(t!=null){if(Ka(t))return rM(t);if(Mo(t))return oM(t);if(Za(t))return iM(t);if(Qa(t))return $v(t);if(ec(t))return sM(t);if(nc(t))return aM(t)}throw Xa(t)}function rM(t){return new P(n=>{let e=t[So]();if(R(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function oM(t){return new P(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,Wa)})}function sM(t){return new P(n=>{for(let e of t)if(n.next(e),n.closed)return;n.complete()})}function $v(t){return new P(n=>{cM(t,n).catch(e=>n.error(e))})}function aM(t){return $v(tc(t))}function cM(t,n){var e,r,o,i;return Bv(this,void 0,void 0,function*(){try{for(e=Hv(t);r=yield e.next(),!r.done;){let s=r.value;if(n.next(s),n.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}n.complete()})}function jt(t){return k((n,e)=>{X(t).subscribe(N(e,()=>e.complete(),Nr)),!e.closed&&n.subscribe(e)})}function zv(){return k((t,n)=>{let e=null;t._refCount++;let r=N(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let o=t._connection,i=e;e=null,o&&(!i||o===i)&&o.unsubscribe(),n.unsubscribe()});t.subscribe(r),r.closed||(e=t.connect())})}var Ui=class extends P{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Zd(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){let n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new G;let e=this.getSubject();n.add(this.source.subscribe(N(e,void 0,()=>{this._teardown(),e.complete()},r=>{this._teardown(),e.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=G.EMPTY)}return n}refCount(){return zv()(this)}};var To={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame,{delegate:r}=To;r&&(n=r.requestAnimationFrame,e=r.cancelAnimationFrame);let o=n(i=>{e=void 0,t(i)});return new G(()=>e?.(o))},requestAnimationFrame(...t){let{delegate:n}=To;return(n?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:n}=To;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var Ae=class extends x{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){let e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){let{hasError:n,thrownError:e,_value:r}=this;if(n)throw e;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}};var Hi={now(){return(Hi.delegate||Date).now()},delegate:void 0};var $i=class extends x{constructor(n=1/0,e=1/0,r=Hi){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){let{isStopped:e,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;e||(r.push(n),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(n),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;sGv(n)&&t()),n},clearImmediate(t){Gv(t)}};var{setImmediate:uM,clearImmediate:dM}=Wv,Gi={setImmediate(...t){let{delegate:n}=Gi;return(n?.setImmediate||uM)(...t)},clearImmediate(t){let{delegate:n}=Gi;return(n?.clearImmediate||dM)(t)},delegate:void 0};var oc=class extends nr{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,r=0){return r!==null&&r>0?super.requestAsyncId(n,e,r):(n.actions.push(this),n._scheduled||(n._scheduled=Gi.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(n,e,r);let{actions:i}=n;e!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==e&&(Gi.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}};var xo=class t{constructor(n,e=t.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,r){return new this.schedulerActionCtor(this,n).schedule(r,e)}};xo.now=Hi.now;var rr=class extends xo{constructor(n,e=xo.now){super(n,e),this.actions=[],this._active=!1}flush(n){let{actions:e}=this;if(this._active){e.push(n);return}let r;this._active=!0;do if(r=n.execute(n.state,n.delay))break;while(n=e.shift());if(this._active=!1,r){for(;n=e.shift();)n.unsubscribe();throw r}}};var ic=class extends rr{flush(n){this._active=!0;let e=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;n=n||r.shift();do if(o=n.execute(n.state,n.delay))break;while((n=r[0])&&n.id===e&&r.shift());if(this._active=!1,o){for(;(n=r[0])&&n.id===e&&r.shift();)n.unsubscribe();throw o}}};var qv=new ic(oc);var Ct=new rr(nr),Jd=Ct;var sc=class extends nr{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,r=0){return r!==null&&r>0?super.requestAsyncId(n,e,r):(n.actions.push(this),n._scheduled||(n._scheduled=To.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(n,e,r);let{actions:i}=n;e!=null&&e===n._scheduled&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==e&&(To.cancelAnimationFrame(e),n._scheduled=void 0)}};var ac=class extends rr{flush(n){this._active=!0;let e;n?e=n.id:(e=this._scheduled,this._scheduled=void 0);let{actions:r}=this,o;n=n||r.shift();do if(o=n.execute(n.state,n.delay))break;while((n=r[0])&&n.id===e&&r.shift());if(this._active=!1,o){for(;(n=r[0])&&n.id===e&&r.shift();)n.unsubscribe();throw o}}};var Yv=new ac(sc);var Re=new P(t=>t.complete());function cc(t){return t&&R(t.schedule)}function ef(t){return t[t.length-1]}function lc(t){return R(ef(t))?t.pop():void 0}function an(t){return cc(ef(t))?t.pop():void 0}function Zv(t,n){return typeof ef(t)=="number"?t.pop():n}function We(t,n,e,r=0,o=!1){let i=n.schedule(function(){e(),o?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(i),!o)return i}function uc(t,n=0){return k((e,r)=>{e.subscribe(N(r,o=>We(r,t,()=>r.next(o),n),()=>We(r,t,()=>r.complete(),n),o=>We(r,t,()=>r.error(o),n)))})}function Wi(t,n=0){return k((e,r)=>{r.add(t.schedule(()=>e.subscribe(r),n))})}function Kv(t,n){return X(t).pipe(Wi(n),uc(n))}function Qv(t,n){return X(t).pipe(Wi(n),uc(n))}function Xv(t,n){return new P(e=>{let r=0;return n.schedule(function(){r===t.length?e.complete():(e.next(t[r++]),e.closed||this.schedule())})})}function Jv(t,n){return new P(e=>{let r;return We(e,n,()=>{r=t[Ja](),We(e,n,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){e.error(s);return}i?e.complete():e.next(o)},0,!0)}),()=>R(r?.return)&&r.return()})}function dc(t,n){if(!t)throw new Error("Iterable cannot be null");return new P(e=>{We(e,n,()=>{let r=t[Symbol.asyncIterator]();We(e,n,()=>{r.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function ey(t,n){return dc(tc(t),n)}function ty(t,n){if(t!=null){if(Ka(t))return Kv(t,n);if(Mo(t))return Xv(t,n);if(Za(t))return Qv(t,n);if(Qa(t))return dc(t,n);if(ec(t))return Jv(t,n);if(nc(t))return ey(t,n)}throw Xa(t)}function ae(t,n){return n?ty(t,n):X(t)}function S(...t){let n=an(t);return ae(t,n)}function xn(t,n){let e=R(t)?t:()=>t,r=o=>o.error(e());return new P(n?o=>n.schedule(r,0,o):r)}function Vt(t){return!!t&&(t instanceof P||R(t.lift)&&R(t.subscribe))}var An=tr(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function fM(t,n){let e=typeof n=="object";return new Promise((r,o)=>{let i=new Lt({next:s=>{r(s),i.unsubscribe()},error:o,complete:()=>{e?r(n.defaultValue):o(new An)}});t.subscribe(i)})}function fc(t){return t instanceof Date&&!isNaN(t)}var hM=tr(t=>function(e=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e});function pM(t,n){let{first:e,each:r,with:o=mM,scheduler:i=n??Ct,meta:s=null}=fc(t)?{first:t}:typeof t=="number"?{each:t}:t;if(e==null&&r==null)throw new TypeError("No timeout provided.");return k((a,c)=>{let l,u,d=null,h=0,p=m=>{u=We(c,i,()=>{try{l.unsubscribe(),X(o({meta:s,lastValue:d,seen:h})).subscribe(c)}catch(_){c.error(_)}},m)};l=a.subscribe(N(c,m=>{u?.unsubscribe(),h++,c.next(d=m),r>0&&p(r)},void 0,void 0,()=>{u?.closed||u?.unsubscribe(),d=null})),!h&&p(e!=null?typeof e=="number"?e:+e-i.now():r)})}function mM(t){throw new hM(t)}function V(t,n){return k((e,r)=>{let o=0;e.subscribe(N(r,i=>{r.next(t.call(n,i,o++))}))})}var{isArray:gM}=Array;function vM(t,n){return gM(n)?t(...n):t(n)}function Ao(t){return V(n=>vM(t,n))}var{isArray:yM}=Array,{getPrototypeOf:bM,prototype:_M,keys:DM}=Object;function hc(t){if(t.length===1){let n=t[0];if(yM(n))return{args:n,keys:null};if(EM(n)){let e=DM(n);return{args:e.map(r=>n[r]),keys:e}}}return{args:t,keys:null}}function EM(t){return t&&typeof t=="object"&&bM(t)===_M}function pc(t,n){return t.reduce((e,r,o)=>(e[r]=n[o],e),{})}function Ro(...t){let n=an(t),e=lc(t),{args:r,keys:o}=hc(t);if(r.length===0)return ae([],n);let i=new P(wM(r,n,o?s=>pc(o,s):dt));return e?i.pipe(Ao(e)):i}function wM(t,n,e=dt){return r=>{ny(n,()=>{let{length:o}=t,i=new Array(o),s=o,a=o;for(let c=0;c{let l=ae(t[c],n),u=!1;l.subscribe(N(r,d=>{i[c]=d,u||(u=!0,a--),a||r.next(e(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function ny(t,n,e){t?We(e,t,n):n()}function ry(t,n,e,r,o,i,s,a){let c=[],l=0,u=0,d=!1,h=()=>{d&&!c.length&&!l&&n.complete()},p=_=>l{i&&n.next(_),l++;let D=!1;X(e(_,u++)).subscribe(N(n,C=>{o?.(C),i?p(C):n.next(C)},()=>{D=!0},void 0,()=>{if(D)try{for(l--;c.length&&lm(C)):m(C)}h()}catch(C){n.error(C)}}))};return t.subscribe(N(n,p,()=>{d=!0,h()})),()=>{a?.()}}function Ee(t,n,e=1/0){return R(n)?Ee((r,o)=>V((i,s)=>n(r,i,o,s))(X(t(r,o))),e):(typeof n=="number"&&(e=n),k((r,o)=>ry(r,o,t,e)))}function cn(t=1/0){return Ee(dt,t)}function oy(){return cn(1)}function ln(...t){return oy()(ae(t,an(t)))}function qi(t){return new P(n=>{X(t()).subscribe(n)})}function Yi(...t){let n=lc(t),{args:e,keys:r}=hc(t),o=new P(i=>{let{length:s}=e;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u{d||(d=!0,l--),a[u]=h},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?pc(r,a):a),i.complete())}))}});return n?o.pipe(Ao(n)):o}var CM=["addListener","removeListener"],IM=["addEventListener","removeEventListener"],SM=["on","off"];function tf(t,n,e,r){if(R(e)&&(r=e,e=void 0),r)return tf(t,n,e).pipe(Ao(r));let[o,i]=xM(t)?IM.map(s=>a=>t[s](n,a,e)):MM(t)?CM.map(iy(t,n)):TM(t)?SM.map(iy(t,n)):[];if(!o&&Mo(t))return Ee(s=>tf(s,n,e))(X(t));if(!o)throw new TypeError("Invalid event target");return new P(s=>{let a=(...c)=>s.next(1i(a)})}function iy(t,n){return e=>r=>t[e](n,r)}function MM(t){return R(t.addListener)&&R(t.removeListener)}function TM(t){return R(t.on)&&R(t.off)}function xM(t){return R(t.addEventListener)&&R(t.removeEventListener)}function Pr(t=0,n,e=Jd){let r=-1;return n!=null&&(cc(n)?e=n:r=n),new P(o=>{let i=fc(t)?+t-e.now():t;i<0&&(i=0);let s=0;return e.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function AM(t=0,n=Ct){return t<0&&(t=0),Pr(t,t,n)}function RM(...t){let n=an(t),e=Zv(t,1/0),r=t;return r.length?r.length===1?X(r[0]):cn(e)(ae(r,n)):Re}function he(t,n){return k((e,r)=>{let o=0;e.subscribe(N(r,i=>t.call(n,i,o++)&&r.next(i)))})}function sy(t){return k((n,e)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let l=o;o=null,e.next(l)}s&&e.complete()},c=()=>{i=null,s&&e.complete()};n.subscribe(N(e,l=>{r=!0,o=l,i||X(t(l)).subscribe(i=N(e,a,c))},()=>{s=!0,(!r||!i||i.closed)&&e.complete()}))})}function mc(t,n=Ct){return sy(()=>Pr(t,n))}function It(t){return k((n,e)=>{let r=null,o=!1,i;r=n.subscribe(N(e,void 0,void 0,s=>{i=X(t(s,It(t)(n))),r?(r.unsubscribe(),r=null,i.subscribe(e)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(e))})}function ay(t,n,e,r,o){return(i,s)=>{let a=e,c=n,l=0;i.subscribe(N(s,u=>{let d=l++;c=a?t(c,u,d):(a=!0,u),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function NM(t,n){return k(ay(t,n,arguments.length>=2,!1,!0))}function or(t,n){return R(n)?Ee(t,n,1):Ee(t,1)}function Lr(t,n=Ct){return k((e,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let l=i;i=null,r.next(l)}};function c(){let l=s+t,u=n.now();if(u{i=l,s=n.now(),o||(o=n.schedule(c,t),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function cy(t){return k((n,e)=>{let r=!1;n.subscribe(N(e,o=>{r=!0,e.next(o)},()=>{r||e.next(t),e.complete()}))})}function Ne(t){return t<=0?()=>Re:k((n,e)=>{let r=0;n.subscribe(N(e,o=>{++r<=t&&(e.next(o),t<=r&&e.complete())}))})}function ly(){return k((t,n)=>{t.subscribe(N(n,Nr))})}function nf(t){return V(()=>t)}function rf(t,n){return n?e=>ln(n.pipe(Ne(1),ly()),e.pipe(rf(t))):Ee((e,r)=>X(t(e,r)).pipe(Ne(1),nf(e)))}function OM(t,n=Ct){let e=Pr(t,n);return rf(()=>e)}function gc(t,n=dt){return t=t??kM,k((e,r)=>{let o,i=!0;e.subscribe(N(r,s=>{let a=n(s);(i||!t(o,a))&&(i=!1,o=a,r.next(s))}))})}function kM(t,n){return t===n}function uy(t=FM){return k((n,e)=>{let r=!1;n.subscribe(N(e,o=>{r=!0,e.next(o)},()=>r?e.complete():e.error(t())))})}function FM(){return new An}function Rn(t){return k((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function Nn(t,n){let e=arguments.length>=2;return r=>r.pipe(t?he((o,i)=>t(o,i,r)):dt,Ne(1),e?cy(n):uy(()=>new An))}function vc(t){return t<=0?()=>Re:k((n,e)=>{let r=[];n.subscribe(N(e,o=>{r.push(o),t{for(let o of r)e.next(o);e.complete()},void 0,()=>{r=null}))})}function dy(){return k((t,n)=>{let e,r=!1;t.subscribe(N(n,o=>{let i=e;e=o,r&&n.next([i,o]),r=!0}))})}function Zi(t={}){let{connector:n=()=>new x,resetOnError:e=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=t;return i=>{let s,a,c,l=0,u=!1,d=!1,h=()=>{a?.unsubscribe(),a=void 0},p=()=>{h(),s=c=void 0,u=d=!1},m=()=>{let _=s;p(),_?.unsubscribe()};return k((_,D)=>{l++,!d&&!u&&h();let C=c=c??n();D.add(()=>{l--,l===0&&!d&&!u&&(a=of(m,o))}),C.subscribe(D),!s&&l>0&&(s=new Lt({next:z=>C.next(z),error:z=>{d=!0,h(),a=of(p,e,z),C.error(z)},complete:()=>{u=!0,h(),a=of(p,r),C.complete()}}),X(_).subscribe(s))})(i)}}function of(t,n,...e){if(n===!0){t();return}if(n===!1)return;let r=new Lt({next:()=>{r.unsubscribe(),t()}});return X(n(...e)).subscribe(r)}function fy(t,n,e){let r,o=!1;return t&&typeof t=="object"?{bufferSize:r=1/0,windowTime:n=1/0,refCount:o=!1,scheduler:e}=t:r=t??1/0,Zi({connector:()=>new $i(r,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Ki(t){return he((n,e)=>t<=e)}function No(...t){let n=an(t);return k((e,r)=>{(n?ln(t,e,n):ln(t,e)).subscribe(r)})}function Ve(t,n){return k((e,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();e.subscribe(N(r,c=>{o?.unsubscribe();let l=0,u=i++;X(t(c,u)).subscribe(o=N(r,d=>r.next(n?n(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function sf(t,n=!1){return k((e,r)=>{let o=0;e.subscribe(N(r,i=>{let s=t(i,o++);(s||n)&&r.next(i),!s&&r.complete()}))})}function Be(t,n,e){let r=R(t)||n||e?{next:t,error:n,complete:e}:t;return r?k((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(N(i,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),i.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):dt}var qe=null,yc=!1,af=1,PM=null,me=Symbol("SIGNAL");function M(t){let n=qe;return qe=t,n}function bc(){return qe}var ir={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function On(t){if(yc)throw new Error("");if(qe===null)return;qe.consumerOnSignalRead(t);let n=qe.producersTail;if(n!==void 0&&n.producer===t)return;let e,r=qe.recomputing;if(r&&(e=n!==void 0?n.nextProducer:qe.producers,e!==void 0&&e.producer===t)){qe.producersTail=e,e.lastReadVersion=t.version;return}let o=t.consumersTail;if(o!==void 0&&o.consumer===qe&&(!r||jM(o,qe)))return;let i=Fo(qe),s={producer:t,consumer:qe,nextProducer:e,prevConsumer:o,lastReadVersion:t.version,nextConsumer:void 0};qe.producersTail=s,n!==void 0?n.nextProducer=s:qe.producers=s,i&&gy(t,s)}function hy(){af++}function Br(t){if(!(Fo(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===af)){if(!t.producerMustRecompute(t)&&!ko(t)){Oo(t);return}t.producerRecomputeValue(t),Oo(t)}}function cf(t){if(t.consumers===void 0)return;let n=yc;yc=!0;try{for(let e=t.consumers;e!==void 0;e=e.nextConsumer){let r=e.consumer;r.dirty||LM(r)}}finally{yc=n}}function lf(){return qe?.consumerAllowSignalWrites!==!1}function LM(t){t.dirty=!0,cf(t),t.consumerMarkedDirty?.(t)}function Oo(t){t.dirty=!1,t.lastCleanEpoch=af}function kn(t){return t&&py(t),M(t)}function py(t){t.producersTail=void 0,t.recomputing=!0}function sr(t,n){M(n),t&&my(t)}function my(t){t.recomputing=!1;let n=t.producersTail,e=n!==void 0?n.nextProducer:t.producers;if(e!==void 0){if(Fo(t))do e=uf(e);while(e!==void 0);n!==void 0?n.nextProducer=void 0:t.producers=void 0}}function ko(t){for(let n=t.producers;n!==void 0;n=n.nextProducer){let e=n.producer,r=n.lastReadVersion;if(r!==e.version||(Br(e),r!==e.version))return!0}return!1}function ar(t){if(Fo(t)){let n=t.producers;for(;n!==void 0;)n=uf(n)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function gy(t,n){let e=t.consumersTail,r=Fo(t);if(e!==void 0?(n.nextConsumer=e.nextConsumer,e.nextConsumer=n):(n.nextConsumer=void 0,t.consumers=n),n.prevConsumer=e,t.consumersTail=n,!r)for(let o=t.producers;o!==void 0;o=o.nextProducer)gy(o.producer,o)}function uf(t){let n=t.producer,e=t.nextProducer,r=t.nextConsumer,o=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:n.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(n.consumers=r,!Fo(n)){let i=n.producers;for(;i!==void 0;)i=uf(i)}return e}function Fo(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function Qi(t){PM?.(t)}function jM(t,n){let e=n.producersTail;if(e!==void 0){let r=n.producers;do{if(r===t)return!0;if(r===e)break;r=r.nextProducer}while(r!==void 0)}return!1}function Xi(t,n){return Object.is(t,n)}function Ji(t,n){let e=Object.create(VM);e.computation=t,n!==void 0&&(e.equal=n);let r=()=>{if(Br(e),On(e),e.value===un)throw e.error;return e.value};return r[me]=e,Qi(e),r}var jr=Symbol("UNSET"),Vr=Symbol("COMPUTING"),un=Symbol("ERRORED"),VM=F(g({},ir),{value:jr,dirty:!0,error:null,equal:Xi,kind:"computed",producerMustRecompute(t){return t.value===jr||t.value===Vr},producerRecomputeValue(t){if(t.value===Vr)throw new Error("");let n=t.value;t.value=Vr;let e=kn(t),r,o=!1;try{r=t.computation(),M(null),o=n!==jr&&n!==un&&r!==un&&t.equal(n,r)}catch(i){r=un,t.error=i}finally{sr(t,e)}if(o){t.value=n;return}t.value=r,t.version++}});function BM(){throw new Error}var vy=BM;function yy(t){vy(t)}function df(t){vy=t}var UM=null;function ff(t,n){let e=Object.create(es);e.value=t,n!==void 0&&(e.equal=n);let r=()=>by(e);return r[me]=e,Qi(e),[r,s=>cr(e,s),s=>_c(e,s)]}function by(t){return On(t),t.value}function cr(t,n){lf()||yy(t),t.equal(t.value,n)||(t.value=n,HM(t))}function _c(t,n){lf()||yy(t),cr(t,n(t.value))}var es=F(g({},ir),{equal:Xi,value:void 0,kind:"signal"});function HM(t){t.version++,hy(),cf(t),UM?.(t)}var hf=F(g({},ir),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function pf(t){if(t.dirty=!1,t.version>0&&!ko(t))return;t.version++;let n=kn(t);try{t.cleanup(),t.fn()}finally{sr(t,n)}}var mf;function Dc(){return mf}function dn(t){let n=mf;return mf=t,n}var _y=Symbol("NotFound");function Po(t){return t===_y||t?.name==="\u0275NotFound"}function gf(t,n,e){let r=Object.create($M);r.source=t,r.computation=n,e!=null&&(r.equal=e);let i=()=>{if(Br(r),On(r),r.value===un)throw r.error;return r.value};return i[me]=r,Qi(r),i}function Dy(t,n){Br(t),cr(t,n),Oo(t)}function Ey(t,n){if(Br(t),t.value===un)throw t.error;_c(t,n),Oo(t)}var $M=F(g({},ir),{value:jr,dirty:!0,error:null,equal:Xi,kind:"linkedSignal",producerMustRecompute(t){return t.value===jr||t.value===Vr},producerRecomputeValue(t){if(t.value===Vr)throw new Error("");let n=t.value;t.value=Vr;let e=kn(t),r,o=!1;try{let i=t.source(),s=n!==jr&&n!==un,a=s?{source:t.sourceValue,value:n}:void 0;r=t.computation(i,a),t.sourceValue=i,M(null),o=s&&r!==un&&t.equal(n,r)}catch(i){r=un,t.error=i}finally{sr(t,e)}if(o){t.value=n;return}t.value=r,t.version++}});function wy(t){let n=M(null);try{return t()}finally{M(n)}}var xc="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",b=class extends Error{code;constructor(n,e){super(St(n,e)),this.code=n}};function zM(t){return`NG0${Math.abs(t)}`}function St(t,n){return`${zM(t)}${n?": "+n:""}`}var we=globalThis;function ne(t){for(let n in t)if(t[n]===ne)return n;throw Error("")}function Ty(t,n){for(let e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function cs(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(cs).join(", ")}]`;if(t==null)return""+t;let n=t.overriddenName||t.name;if(n)return`${n}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(` -`);return r>=0?e.slice(0,r):e}function Ac(t,n){return t?n?`${t} ${n}`:t:n||""}var GM=ne({__forward_ref__:ne});function Ie(t){return t.__forward_ref__=Ie,t}function Oe(t){return xf(t)?t():t}function xf(t){return typeof t=="function"&&t.hasOwnProperty(GM)&&t.__forward_ref__===Ie}function v(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function q(t){return{providers:t.providers||[],imports:t.imports||[]}}function ls(t){return WM(t,Rc)}function Af(t){return ls(t)!==null}function WM(t,n){return t.hasOwnProperty(n)&&t[n]||null}function qM(t){let n=t?.[Rc]??null;return n||null}function yf(t){return t&&t.hasOwnProperty(Cc)?t[Cc]:null}var Rc=ne({\u0275prov:ne}),Cc=ne({\u0275inj:ne}),y=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(n,e){this._desc=n,this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=v({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Rf(t){return t&&!!t.\u0275providers}var us=ne({\u0275cmp:ne}),ds=ne({\u0275dir:ne}),Nf=ne({\u0275pipe:ne}),Of=ne({\u0275mod:ne}),ns=ne({\u0275fac:ne}),Gr=ne({__NG_ELEMENT_ID__:ne}),Cy=ne({__NG_ENV_ID__:ne});function kf(t){return Oc(t,"@NgModule"),t[Of]||null}function hn(t){return Oc(t,"@Component"),t[us]||null}function Nc(t){return Oc(t,"@Directive"),t[ds]||null}function xy(t){return Oc(t,"@Pipe"),t[Nf]||null}function Oc(t,n){if(t==null)throw new b(-919,!1)}function Se(t){return typeof t=="string"?t:t==null?"":String(t)}var Ay=ne({ngErrorCode:ne}),YM=ne({ngErrorMessage:ne}),ZM=ne({ngTokenPath:ne});function Ff(t,n){return Ry("",-200,n)}function kc(t,n){throw new b(-201,!1)}function Ry(t,n,e){let r=new b(n,t);return r[Ay]=n,r[YM]=t,e&&(r[ZM]=e),r}function KM(t){return t[Ay]}var bf;function Ny(){return bf}function tt(t){let n=bf;return bf=t,n}function Pf(t,n,e){let r=ls(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(e&8)return null;if(n!==void 0)return n;kc(t,"")}var QM={},Ur=QM,XM="__NG_DI_FLAG__",_f=class{injector;constructor(n){this.injector=n}retrieve(n,e){let r=Hr(e)||0;try{return this.injector.get(n,r&8?null:Ur,r)}catch(o){if(Po(o))return o;throw o}}};function JM(t,n=0){let e=Dc();if(e===void 0)throw new b(-203,!1);if(e===null)return Pf(t,void 0,n);{let r=eT(n),o=e.retrieve(t,r);if(Po(o)){if(r.optional)return null;throw o}return o}}function w(t,n=0){return(Ny()||JM)(Oe(t),n)}function f(t,n){return w(t,Hr(n))}function Hr(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function eT(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function Df(t){let n=[];for(let e=0;eArray.isArray(e)?Fc(e,n):n(e))}function Lf(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function fs(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Fy(t,n){let e=[];for(let r=0;rn;){let i=o-2;t[o]=t[i],o--}t[n]=e,t[n+1]=r}}function Pc(t,n,e){let r=jo(t,n);return r>=0?t[r|1]=e:(r=~r,Py(t,r,n,e)),r}function Lc(t,n){let e=jo(t,n);if(e>=0)return t[e|1]}function jo(t,n){return nT(t,n,1)}function nT(t,n,e){let r=0,o=t.length>>e;for(;o!==r;){let i=r+(o-r>>1),s=t[i<n?o=i:r=i+1}return~(o<{e.push(s)};return Fc(n,s=>{let a=s;Ic(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&jy(o,i),e}function jy(t,n){for(let e=0;e{n(i,r)})}}function Ic(t,n,e,r){if(t=Oe(t),!t)return!1;let o=null,i=yf(t),s=!i&&hn(t);if(!i&&!s){let c=t.ngModule;if(i=yf(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=t}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)Ic(l,n,e,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;Fc(i.imports,u=>{Ic(u,n,e,r)&&(l||=[],l.push(u))}),l!==void 0&&jy(l,n)}if(!a){let l=ur(o)||(()=>new o);n({provide:o,useFactory:l,deps:Ye},o),n({provide:Vf,useValue:o,multi:!0},o),n({provide:Wr,useValue:()=>w(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=t;Uf(c,u=>{n(u,l)})}}else return!1;return o!==t&&t.providers!==void 0}function Uf(t,n){for(let e of t)Rf(e)&&(e=e.\u0275providers),Array.isArray(e)?Uf(e,n):n(e)}var rT=ne({provide:String,useValue:ne});function Vy(t){return t!==null&&typeof t=="object"&&rT in t}function oT(t){return!!(t&&t.useExisting)}function iT(t){return!!(t&&t.useFactory)}function $r(t){return typeof t=="function"}function By(t){return!!t.useClass}var hs=new y(""),Ec={},Iy={},vf;function Vo(){return vf===void 0&&(vf=new rs),vf}var re=class{},zr=class extends re{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(n,e,r,o){super(),this.parent=e,this.source=r,this.scopes=o,wf(n,s=>this.processProvider(s)),this.records.set(jf,Lo(void 0,this)),o.has("environment")&&this.records.set(re,Lo(void 0,this));let i=this.records.get(hs);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Vf,Ye,{self:!0}))}retrieve(n,e){let r=Hr(e)||0;try{return this.get(n,Ur,r)}catch(o){if(Po(o))return o;throw o}}destroy(){ts(this),this._destroyed=!0;let n=M(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of e)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),M(n)}}onDestroy(n){return ts(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){ts(this);let e=dn(this),r=tt(void 0),o;try{return n()}finally{dn(e),tt(r)}}get(n,e=Ur,r){if(ts(this),n.hasOwnProperty(Cy))return n[Cy](this);let o=Hr(r),i,s=dn(this),a=tt(void 0);try{if(!(o&4)){let l=this.records.get(n);if(l===void 0){let u=uT(n)&&ls(n);u&&this.injectableDefInScope(u)?l=Lo(Ef(n),Ec):l=null,this.records.set(n,l)}if(l!=null)return this.hydrate(n,l,o)}let c=o&2?Vo():this.parent;return e=o&8&&e===Ur?null:e,c.get(n,e)}catch(c){let l=KM(c);throw l===-200||l===-201?new b(l,null):c}finally{tt(a),dn(s)}}resolveInjectorInitializers(){let n=M(null),e=dn(this),r=tt(void 0),o;try{let i=this.get(Wr,Ye,{self:!0});for(let s of i)s()}finally{dn(e),tt(r),M(n)}}toString(){return"R3Injector[...]"}processProvider(n){n=Oe(n);let e=$r(n)?n:Oe(n&&n.provide),r=aT(n);if(!$r(n)&&n.multi===!0){let o=this.records.get(e);o||(o=Lo(void 0,Ec,!0),o.factory=()=>Df(o.multi),this.records.set(e,o)),e=n,o.multi.push(n)}this.records.set(e,r)}hydrate(n,e,r){let o=M(null);try{if(e.value===Iy)throw Ff("");return e.value===Ec&&(e.value=Iy,e.value=e.factory(void 0,r)),typeof e.value=="object"&&e.value&&lT(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{M(o)}}injectableDefInScope(n){if(!n.providedIn)return!1;let e=Oe(n.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){let e=this._onDestroyHooks.indexOf(n);e!==-1&&this._onDestroyHooks.splice(e,1)}};function Ef(t){let n=ls(t),e=n!==null?n.factory:ur(t);if(e!==null)return e;if(t instanceof y)throw new b(-204,!1);if(t instanceof Function)return sT(t);throw new b(-204,!1)}function sT(t){if(t.length>0)throw new b(-204,!1);let e=qM(t);return e!==null?()=>e.factory(t):()=>new t}function aT(t){if(Vy(t))return Lo(void 0,t.useValue);{let n=Hf(t);return Lo(n,Ec)}}function Hf(t,n,e){let r;if($r(t)){let o=Oe(t);return ur(o)||Ef(o)}else if(Vy(t))r=()=>Oe(t.useValue);else if(iT(t))r=()=>t.useFactory(...Df(t.deps||[]));else if(oT(t))r=(o,i)=>w(Oe(t.useExisting),i!==void 0&&i&8?8:void 0);else{let o=Oe(t&&(t.useClass||t.provide));if(cT(t))r=()=>new o(...Df(t.deps));else return ur(o)||Ef(o)}return r}function ts(t){if(t.destroyed)throw new b(-205,!1)}function Lo(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function cT(t){return!!t.deps}function lT(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function uT(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function wf(t,n){for(let e of t)Array.isArray(e)?wf(e,n):e&&Rf(e)?wf(e.\u0275providers,n):n(e)}function Fe(t,n){let e;t instanceof zr?(ts(t),e=t):e=new _f(t);let r,o=dn(e),i=tt(void 0);try{return n()}finally{dn(o),tt(i)}}function $f(){return Ny()!==void 0||Dc()!=null}var Ut=0,A=1,L=2,ke=3,Mt=4,nt=5,qr=6,Bo=7,ge=8,Pn=9,Ht=10,se=11,Uo=12,zf=13,Yr=14,Ke=15,pr=16,Zr=17,pn=18,Ln=19,Gf=20,Fn=21,jc=22,dr=23,ft=24,Kr=25,mr=26,de=27,Uy=1,Wf=6,gr=7,ps=8,Qr=9,ve=10;function jn(t){return Array.isArray(t)&&typeof t[Uy]=="object"}function $t(t){return Array.isArray(t)&&t[Uy]===!0}function qf(t){return(t.flags&4)!==0}function mn(t){return t.componentOffset>-1}function Ho(t){return(t.flags&1)===1}function zt(t){return!!t.template}function $o(t){return(t[L]&512)!==0}function Xr(t){return(t[L]&256)===256}var J=(function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t[t.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",t})(J||{}),wc,os="svg",Yf="math";function Hy(){return wc||(wc={},lr(J.HTML,void 0,[["iframe",["srcdoc"]],["*",["innerHTML","outerHTML"]]]),lr(J.STYLE,void 0,[["*",["style"]]]),lr(J.URL,void 0,[["*",["formAction"]],["area",["href"]],["a",["href","xlink:href"]],["form",["action"]],["img",["src"]],["video",["src"]]]),lr(J.URL,Yf,[["*",["href","xlink:href"]],["annotation",["href","xlink:href"]],["annotation-xml",["href","xlink:href"]],["maction",["href","xlink:href"]],["malignmark",["href","xlink:href"]],["math",["href","xlink:href"]],["mroot",["href","xlink:href"]],["msqrt",["href","xlink:href"]],["merror",["href","xlink:href"]],["mfrac",["href","xlink:href"]],["mglyph",["href","xlink:href"]],["msub",["href","xlink:href"]],["msup",["href","xlink:href"]],["msubsup",["href","xlink:href"]],["mmultiscripts",["href","xlink:href"]],["mprescripts",["href","xlink:href"]],["mi",["href","xlink:href"]],["mn",["href","xlink:href"]],["mo",["href","xlink:href"]],["mpadded",["href","xlink:href"]],["mphantom",["href","xlink:href"]],["mrow",["href","xlink:href"]],["ms",["href","xlink:href"]],["mspace",["href","xlink:href"]],["mstyle",["href","xlink:href"]],["mtable",["href","xlink:href"]],["mtd",["href","xlink:href"]],["mtr",["href","xlink:href"]],["mtext",["href","xlink:href"]],["mover",["href","xlink:href"]],["munder",["href","xlink:href"]],["munderover",["href","xlink:href"]],["semantics",["href","xlink:href"]],["none",["href","xlink:href"]]]),lr(J.RESOURCE_URL,void 0,[["base",["href"]],["embed",["src"]],["frame",["src"]],["iframe",["src"]],["link",["href"]],["object",["codebase","data"]]]),lr(J.URL,os,[["a",["href","xlink:href"]]]),lr(J.ATTRIBUTE_NO_BINDING,os,[["animate",["attributeName","values","to","from"]],["set",["to","attributeName"]],["animateMotion",["attributeName"]],["animateTransform",["attributeName"]]]),lr(J.ATTRIBUTE_NO_BINDING,void 0,[["unknown",["attributeName","values","to","from","sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority"]],["iframe",["sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority"]]])),wc}function lr(t,n,e){for(let[r,o]of e){let i=n&&r!=="unknown"?`:${n}:${r}`:r;i=i.toLowerCase();for(let s of o)wc[`${i}|${s.toLowerCase()}`]=t}}function $y(t,n,e){let r=Hy(),o=t.toLowerCase(),i=n.toLowerCase(),s=e&&o!=="*"&&o!=="unknown"?r[`:${e}:${o}|${i}`]:void 0,a=e?r[`:${e}:*|${i}`]:void 0;return s??a??r[`${o}|${i}`]??r[`*|${i}`]??J.NONE}function Tt(t){for(;Array.isArray(t);)t=t[Ut];return t}function Zf(t,n){return Tt(n[t])}function ht(t,n){return Tt(n[t.index])}function Vc(t,n){return t.data[n]}function ms(t,n){return t[n]}function Kf(t,n,e,r){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=r}function xt(t,n){let e=n[t];return jn(e)?e:e[Ut]}function zy(t){return(t[L]&4)===4}function Bc(t){return(t[L]&128)===128}function Gy(t){return $t(t[ke])}function pt(t,n){return n==null?null:t[n]}function Qf(t){t[Zr]=0}function Xf(t){t[L]&1024||(t[L]|=1024,Bc(t)&&Jr(t))}function Wy(t,n){for(;t>0;)n=n[Yr],t--;return n}function gs(t){return!!(t[L]&9216||t[ft]?.dirty)}function Uc(t){t[Ht].changeDetectionScheduler?.notify(8),t[L]&64&&(t[L]|=1024),gs(t)&&Jr(t)}function Jr(t){t[Ht].changeDetectionScheduler?.notify(0);let n=fr(t);for(;n!==null&&!(n[L]&8192||(n[L]|=8192,!Bc(n)));)n=fr(n)}function Jf(t,n){if(Xr(t))throw new b(911,!1);t[Fn]===null&&(t[Fn]=[]),t[Fn].push(n)}function qy(t,n){if(t[Fn]===null)return;let e=t[Fn].indexOf(n);e!==-1&&t[Fn].splice(e,1)}function fr(t){let n=t[ke];return $t(n)?n[ke]:n}function eh(t){return t[Bo]??=[]}function th(t){return t.cleanup??=[]}function Yy(t,n,e,r){let o=eh(n);o.push(e),t.firstCreatePass&&th(t).push(r,o.length-1)}var U={lFrame:ab(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Cf=!1;function Zy(){return U.lFrame.elementDepthCount}function Ky(){U.lFrame.elementDepthCount++}function nh(){U.lFrame.elementDepthCount--}function Hc(){return U.bindingsEnabled}function rh(){return U.skipHydrationRootTNode!==null}function oh(t){return U.skipHydrationRootTNode===t}function ih(){U.skipHydrationRootTNode=null}function I(){return U.lFrame.lView}function le(){return U.lFrame.tView}function Qy(t){return U.lFrame.contextLView=t,t[ge]}function Xy(t){return U.lFrame.contextLView=null,t}function Me(){let t=sh();for(;t!==null&&t.type===64;)t=t.parent;return t}function sh(){return U.lFrame.currentTNode}function Jy(){let t=U.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function zo(t,n){let e=U.lFrame;e.currentTNode=t,e.isParent=n}function ah(){return U.lFrame.isParent}function ch(){U.lFrame.isParent=!1}function eb(){return U.lFrame.contextLView}function lh(){return Cf}function is(t){let n=Cf;return Cf=t,n}function gn(){let t=U.lFrame,n=t.bindingRootIndex;return n===-1&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function vs(){return U.lFrame.bindingIndex}function tb(t){return U.lFrame.bindingIndex=t}function Vn(){return U.lFrame.bindingIndex++}function eo(t){let n=U.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function nb(){return U.lFrame.inI18n}function rb(t,n){let e=U.lFrame;e.bindingIndex=e.bindingRootIndex=t,$c(n)}function ob(){return U.lFrame.currentDirectiveIndex}function $c(t){U.lFrame.currentDirectiveIndex=t}function ib(t){let n=U.lFrame.currentDirectiveIndex;return n===-1?null:t[n]}function zc(){return U.lFrame.currentQueryIndex}function ys(t){U.lFrame.currentQueryIndex=t}function dT(t){let n=t[A];return n.type===2?n.declTNode:n.type===1?t[nt]:null}function uh(t,n,e){if(e&4){let o=n,i=t;for(;o=o.parent,o===null&&!(e&1);)if(o=dT(i),o===null||(i=i[Yr],o.type&10))break;if(o===null)return!1;n=o,t=i}let r=U.lFrame=sb();return r.currentTNode=n,r.lView=t,!0}function Gc(t){let n=sb(),e=t[A];U.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function sb(){let t=U.lFrame,n=t===null?null:t.child;return n===null?ab(t):n}function ab(t){let n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=n),n}function cb(){let t=U.lFrame;return U.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var dh=cb;function Wc(){let t=cb();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function lb(t){return(U.lFrame.contextLView=Wy(t,U.lFrame.contextLView))[ge]}function st(){return U.lFrame.selectedIndex}function vr(t){U.lFrame.selectedIndex=t}function to(){let t=U.lFrame;return Vc(t.tView,t.selectedIndex)}function ub(){U.lFrame.currentNamespace=os}function db(){fT()}function fT(){U.lFrame.currentNamespace=null}function fh(){return U.lFrame.currentNamespace}var fb=!0;function qc(){return fb}function bs(t){fb=t}function If(t,n=null,e=null,r){let o=hh(t,n,e,r);return o.resolveInjectorInitializers(),o}function hh(t,n=null,e=null,r,o=new Set){let i=[e||Ye,Ly(t)],s;return new zr(i,n||Vo(),s||null,o)}var W=class t{static THROW_IF_NOT_FOUND=Ur;static NULL=new rs;static create(n,e){if(Array.isArray(n))return If({name:""},e,n,"");{let r=n.name??"";return If({name:r},n.parent,n.providers,r)}}static \u0275prov=v({token:t,providedIn:"any",factory:()=>w(jf)});static __NG_ELEMENT_ID__=-1},O=new y(""),Ue=(()=>{class t{static __NG_ELEMENT_ID__=hT;static __NG_ENV_ID__=e=>e}return t})(),Sc=class extends Ue{_lView;constructor(n){super(),this._lView=n}get destroyed(){return Xr(this._lView)}onDestroy(n){let e=this._lView;return Jf(e,n),()=>qy(e,n)}};function hT(){return new Sc(I())}var hb=!1,pb=new y(""),Bn=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new Ae(!1);debugTaskTracker=f(pb,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new P(e=>{e.next(!1),e.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),this.debugTaskTracker?.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.debugTaskTracker?.remove(e),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=v({token:t,providedIn:"root",factory:()=>new t})}return t})(),Sf=class extends x{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(n=!1){super(),this.__isAsync=n,$f()&&(this.destroyRef=f(Ue,{optional:!0})??void 0,this.pendingTasks=f(Bn,{optional:!0})??void 0)}emit(n){let e=M(null);try{super.next(n)}finally{M(e)}}subscribe(n,e,r){let o=n,i=e||(()=>null),s=r;if(n&&typeof n=="object"){let c=n;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return n instanceof G&&n.add(a),a}wrapInTimeout(n){return e=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{n(e)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},H=Sf;function Mc(...t){}function ph(t){let n,e;function r(){t=Mc;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),n!==void 0&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{t(),r()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),r()})),()=>r()}function mb(t){return queueMicrotask(()=>t()),()=>{t=Mc}}var mh="isAngularZone",ss=mh+"_ID",pT=0,j=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new H(!1);onMicrotaskEmpty=new H(!1);onStable=new H(!1);onError=new H(!1);constructor(n){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=hb}=n;if(typeof Zone>"u")throw new b(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,vT(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(mh)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new b(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new b(909,!1)}run(n,e,r){return this._inner.run(n,e,r)}runTask(n,e,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,n,mT,Mc,Mc);try{return i.runTask(s,e,r)}finally{i.cancelTask(s)}}runGuarded(n,e,r){return this._inner.runGuarded(n,e,r)}runOutsideAngular(n){return this._outer.run(n)}},mT={};function gh(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function gT(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function n(){ph(()=>{t.callbackScheduled=!1,Mf(t),t.isCheckStableRunning=!0,gh(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{n()}):t._outer.run(()=>{n()}),Mf(t)}function vT(t){let n=()=>{gT(t)},e=pT++;t._inner=t._inner.fork({name:"angular",properties:{[mh]:!0,[ss]:e,[ss+e]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(yT(c))return r.invokeTask(i,s,a,c);try{return Sy(t),r.invokeTask(i,s,a,c)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&n(),My(t)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return Sy(t),r.invoke(i,s,a,c,l)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!bT(c)&&n(),My(t)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,Mf(t),gh(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function Mf(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Sy(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function My(t){t._nesting--,gh(t)}var as=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new H;onMicrotaskEmpty=new H;onStable=new H;onError=new H;run(n,e,r){return n.apply(e,r)}runGuarded(n,e,r){return n.apply(e,r)}runOutsideAngular(n){return n()}runTask(n,e,r,o){return n.apply(e,r)}};function yT(t){return gb(t,"__ignore_ng_zone__")}function bT(t){return gb(t,"__scheduler_tick__")}function gb(t,n){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[n]===!0}var Ze=class{_console=console;handleError(n){this._console.error("ERROR",n)}},mt=new y("",{factory:()=>{let t=f(j),n=f(re),e;return r=>{t.runOutsideAngular(()=>{n.destroyed&&!e?setTimeout(()=>{throw r}):(e??=n.get(Ze),e.handleError(r))})}}}),vb={provide:Wr,useValue:()=>{let t=f(Ze,{optional:!0})},multi:!0};function K(t,n){let[e,r,o]=ff(t,n?.equal),i=e,s=i[me];return i.set=r,i.update=o,i.asReadonly=_s.bind(i),i}function _s(){let t=this[me];if(t.readonlyFn===void 0){let n=()=>this();n[me]=t,t.readonlyFn=n}return t.readonlyFn}var Go=(()=>{class t{view;node;constructor(e,r){this.view=e,this.node=r}static __NG_ELEMENT_ID__=_T}return t})();function _T(){return new Go(I(),Me())}var fn=class{},Ds=new y("",{factory:()=>!0});var vh=new y(""),Wo=(()=>{class t{internalPendingTasks=f(Bn);scheduler=f(fn);errorHandler=f(mt);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let r=this.add();e().catch(this.errorHandler).finally(r)}static \u0275prov=v({token:t,providedIn:"root",factory:()=>new t})}return t})(),Yc=(()=>{class t{static \u0275prov=v({token:t,providedIn:"root",factory:()=>new Tf})}return t})(),Tf=class{dirtyEffectCount=0;queues=new Map;add(n){this.enqueue(n),this.schedule(n)}schedule(n){n.dirty&&this.dirtyEffectCount++}remove(n){let e=n.zone,r=this.queues.get(e);r.has(n)&&(r.delete(n),n.dirty&&this.dirtyEffectCount--)}enqueue(n){let e=n.zone;this.queues.has(e)||this.queues.set(e,new Set);let r=this.queues.get(e);r.has(n)||r.add(n)}flush(){for(;this.dirtyEffectCount>0;){let n=!1;for(let[e,r]of this.queues)e===null?n||=this.flushQueue(r):n||=e.run(()=>this.flushQueue(r));n||(this.dirtyEffectCount=0)}}flushQueue(n){let e=!1;for(let r of n)r.dirty&&(this.dirtyEffectCount--,e=!0,r.run());return e}},Tc=class{[me];constructor(n){this[me]=n}destroy(){this[me].destroy()}};function Es(t,n){let e=n?.injector??f(W),r=n?.manualCleanup!==!0?e.get(Ue):null,o,i=e.get(Go,null,{optional:!0}),s=e.get(fn);return i!==null?(o=wT(i.view,s,t),r instanceof Sc&&r._lView===i.view&&(r=null)):o=CT(t,e.get(Yc),s),o.injector=e,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new Tc(o)}var yb=F(g({},hf),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let t=is(!1);try{pf(this)}finally{is(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=M(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],M(t)}}}),DT=F(g({},yb),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(ar(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.scheduler.remove(this)}}),ET=F(g({},yb),{consumerMarkedDirty(){this.view[L]|=8192,Jr(this.view),this.notifier.notify(13)},destroy(){if(ar(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.view[dr]?.delete(this)}});function wT(t,n,e){let r=Object.create(ET);return r.view=t,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=n,r.fn=bb(r,e),t[dr]??=new Set,t[dr].add(r),r.consumerMarkedDirty(r),r}function CT(t,n,e){let r=Object.create(DT);return r.fn=bb(r,t),r.scheduler=n,r.notifier=e,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function bb(t,n){return()=>{n(e=>(t.cleanupFns??=[]).push(e))}}function Os(t){return{toString:t}.toString()}function RT(t){return typeof t=="function"}function r_(t,n,e,r){n!==null?n.applyValueToInputSignal(n,r):t[e]=r}var ol=class{previousValue;currentValue;firstChange;constructor(n,e,r){this.previousValue=n,this.currentValue=e,this.firstChange=r}isFirstChange(){return this.firstChange}},$e=(()=>{let t=()=>o_;return t.ngInherit=!0,t})();function o_(t){return t.type.prototype.ngOnChanges&&(t.setInput=OT),NT}function NT(){let t=s_(this),n=t?.current;if(n){let e=t.previous;if(e===Bt)t.previous=n;else for(let r in n)e[r]=n[r];t.current=null,this.ngOnChanges(n)}}function OT(t,n,e,r,o){let i=this.declaredInputs[r],s=s_(t)||kT(t,{previous:Bt,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new ol(l&&l.currentValue,e,c===Bt),r_(t,n,o,e)}var i_="__ngSimpleChanges__";function s_(t){return t[i_]||null}function kT(t,n){return t[i_]=n}var _b=[];var oe=function(t,n=null,e){for(let r=0;r<_b.length;r++){let o=_b[r];o(t,n,e)}},ee=(function(t){return t[t.TemplateCreateStart=0]="TemplateCreateStart",t[t.TemplateCreateEnd=1]="TemplateCreateEnd",t[t.TemplateUpdateStart=2]="TemplateUpdateStart",t[t.TemplateUpdateEnd=3]="TemplateUpdateEnd",t[t.LifecycleHookStart=4]="LifecycleHookStart",t[t.LifecycleHookEnd=5]="LifecycleHookEnd",t[t.OutputStart=6]="OutputStart",t[t.OutputEnd=7]="OutputEnd",t[t.BootstrapApplicationStart=8]="BootstrapApplicationStart",t[t.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",t[t.BootstrapComponentStart=10]="BootstrapComponentStart",t[t.BootstrapComponentEnd=11]="BootstrapComponentEnd",t[t.ChangeDetectionStart=12]="ChangeDetectionStart",t[t.ChangeDetectionEnd=13]="ChangeDetectionEnd",t[t.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",t[t.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",t[t.AfterRenderHooksStart=16]="AfterRenderHooksStart",t[t.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",t[t.ComponentStart=18]="ComponentStart",t[t.ComponentEnd=19]="ComponentEnd",t[t.DeferBlockStateStart=20]="DeferBlockStateStart",t[t.DeferBlockStateEnd=21]="DeferBlockStateEnd",t[t.DynamicComponentStart=22]="DynamicComponentStart",t[t.DynamicComponentEnd=23]="DynamicComponentEnd",t[t.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",t[t.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",t})(ee||{});function FT(t,n,e){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=n.type.prototype;if(r){let s=o_(n);(e.preOrderHooks??=[]).push(t,s),(e.preOrderCheckHooks??=[]).push(t,s)}o&&(e.preOrderHooks??=[]).push(0-t,o),i&&((e.preOrderHooks??=[]).push(t,i),(e.preOrderCheckHooks??=[]).push(t,i))}function a_(t,n){for(let e=n.directiveStart,r=n.directiveEnd;e=r)break}else n[c]<0&&(t[Zr]+=65536),(a>14>16&&(t[L]&3)===n&&(t[L]+=16384,Db(a,i)):Db(a,i)}var Yo=-1,ro=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(n,e,r,o){this.factory=n,this.name=o,this.canSeeViewProviders=e,this.injectImpl=r}};function LT(t){return(t.flags&8)!==0}function jT(t){return(t.flags&16)!==0}function VT(t,n,e){let r=0;for(;rn){s=i-1;break}}}for(;i>16}function sl(t,n){let e=UT(t),r=n;for(;e>0;)r=r[Yr],e--;return r}var xh=!0;function al(t){let n=xh;return xh=t,n}var HT=256,d_=HT-1,f_=5,$T=0,vn={};function zT(t,n,e){let r;typeof e=="string"?r=e.charCodeAt(0)||0:e.hasOwnProperty(Gr)&&(r=e[Gr]),r==null&&(r=e[Gr]=$T++);let o=r&d_,i=1<>f_)]|=i}function cl(t,n){let e=h_(t,n);if(e!==-1)return e;let r=n[A];r.firstCreatePass&&(t.injectorIndex=n.length,bh(r.data,t),bh(n,null),bh(r.blueprint,null));let o=hp(t,n),i=t.injectorIndex;if(u_(o)){let s=il(o),a=sl(o,n),c=a[A].data;for(let l=0;l<8;l++)n[i+l]=a[s+l]|c[s+l]}return n[i+8]=o,i}function bh(t,n){t.push(0,0,0,0,0,0,0,0,n)}function h_(t,n){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||n[t.injectorIndex+8]===null?-1:t.injectorIndex}function hp(t,n){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,r=null,o=n;for(;o!==null;){if(r=y_(o),r===null)return Yo;if(e++,o=o[Yr],r.injectorIndex!==-1)return r.injectorIndex|e<<16}return Yo}function Ah(t,n,e){zT(t,n,e)}function GT(t,n){if(n==="class")return t.classes;if(n==="style")return t.styles;let e=t.attrs;if(e){let r=e.length,o=0;for(;o>20,d=r?a:a+u,h=o?a+u:l;for(let p=d;p=c&&m.type===e)return p}if(o){let p=s[c];if(p&&zt(p)&&p.type===e)return c}return null}function Ms(t,n,e,r,o){let i=t[e],s=n.data;if(i instanceof ro){let a=i;if(a.resolving)throw Ff("");let c=al(a.canSeeViewProviders);a.resolving=!0;let l=s[e].type||s[e],u,d=a.injectImpl?tt(a.injectImpl):null,h=uh(t,r,0);try{i=t[e]=a.factory(void 0,o,s,t,r),n.firstCreatePass&&e>=r.directiveStart&&FT(e,s[e],n)}finally{d!==null&&tt(d),al(c),a.resolving=!1,dh()}}return i}function qT(t){if(typeof t=="string")return t.charCodeAt(0)||0;let n=t.hasOwnProperty(Gr)?t[Gr]:void 0;return typeof n=="number"?n>=0?n&d_:YT:n}function wb(t,n,e){let r=1<>f_)]&r)}function Cb(t,n){return!(t&2)&&!(t&1&&n)}var no=class{_tNode;_lView;constructor(n,e){this._tNode=n,this._lView=e}get(n,e,r){return g_(this._tNode,this._lView,n,Hr(r),e)}};function YT(){return new no(Me(),I())}function Pe(t){return Os(()=>{let n=t.prototype.constructor,e=n[ns]||Rh(n),r=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==r;){let i=o[ns]||Rh(o);if(i&&i!==e)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Rh(t){return xf(t)?()=>{let n=Rh(Oe(t));return n&&n()}:ur(t)}function ZT(t,n,e,r,o){let i=t,s=n;for(;i!==null&&s!==null&&s[L]&2048&&!$o(s);){let a=v_(i,s,e,r|2,vn);if(a!==vn)return a;let c=i.parent;if(!c){let l=s[Gf];if(l){let u=l.get(e,vn,r&-5);if(u!==vn)return u}c=y_(s),s=s[Yr]}i=c}return o}function y_(t){let n=t[A],e=n.type;return e===2?n.declTNode:e===1?t[nt]:null}function ks(t){return GT(Me(),t)}function KT(){return ti(Me(),I())}function ti(t,n){return new $(ht(t,n))}var $=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=KT}return t})();function b_(t){return t instanceof $?t.nativeElement:t}function QT(){return this._results[Symbol.iterator]()}var Un=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new x}constructor(n=!1){this._emitDistinctChangesOnly=n}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){this.dirty=!1;let r=ky(n);(this._changesDetected=!Oy(this._results,r,e))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(n){this._onDirty=n}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=QT};function __(t){return(t.flags&128)===128}var pp=(function(t){return t[t.OnPush=0]="OnPush",t[t.Eager=1]="Eager",t[t.Default=1]="Default",t})(pp||{}),D_=new Map,XT=0;function JT(){return XT++}function e0(t){D_.set(t[Ln],t)}function Nh(t){D_.delete(t[Ln])}var Ib="__ngContext__";function Ko(t,n){jn(n)?(t[Ib]=n[Ln],e0(n)):t[Ib]=n}function E_(t){return C_(t[Uo])}function w_(t){return C_(t[Mt])}function C_(t){for(;t!==null&&!$t(t);)t=t[Mt];return t}var Oh;function mp(t){Oh=t}function I_(){if(Oh!==void 0)return Oh;if(typeof document<"u")return document;throw new b(210,!1)}var _r=new y("",{factory:()=>t0}),t0="ng";var El=new y(""),so=new y("",{providedIn:"platform",factory:()=>"unknown"}),Fs=new y(""),ao=new y("",{factory:()=>f(O).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var S_="r";var M_="di";var gp=new y(""),T_=!1,x_=new y("",{factory:()=>T_});var wl=new y("");var Sb=new WeakMap;function n0(t,n){if(t==null||typeof t!="object")return;let e=Sb.get(t);e||(e=new WeakSet,Sb.set(t,e)),e.add(n)}var r0=(t,n,e,r)=>{};function o0(t,n,e,r){r0(t,n,e,r)}function Cl(t){return(t.flags&32)===32}var i0=()=>null;function A_(t,n,e=!1){return i0(t,n,e)}function R_(t,n){let e=t.contentQueries;if(e!==null){let r=M(null);try{for(let o=0;ot,createScript:t=>t,createScriptURL:t=>t})}catch{}return Zc}function Il(t){return l0()?.createHTML(t)||t}var Kc;function N_(){if(Kc===void 0&&(Kc=null,we.trustedTypes))try{Kc=we.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Kc}function Mb(t){return N_()?.createHTML(t)||t}function Tb(t){return N_()?.createScriptURL(t)||t}var Hn=class{changingThisBreaksApplicationSecurity;constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${xc})`}},Fh=class extends Hn{getTypeName(){return"HTML"}},Ph=class extends Hn{getTypeName(){return"Style"}},Lh=class extends Hn{getTypeName(){return"Script"}},jh=class extends Hn{getTypeName(){return"URL"}},Vh=class extends Hn{getTypeName(){return"ResourceURL"}};function vt(t){return t instanceof Hn?t.changingThisBreaksApplicationSecurity:t}function bn(t,n){let e=O_(t);if(e!=null&&e!==n){if(e==="ResourceURL"&&n==="URL")return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${xc})`)}return e===n}function O_(t){return t instanceof Hn&&t.getTypeName()||null}function yp(t){return new Fh(t)}function bp(t){return new Ph(t)}function _p(t){return new Lh(t)}function Dp(t){return new jh(t)}function Ep(t){return new Vh(t)}function u0(t){let n=new Uh(t);return d0()?new Bh(n):n}var Bh=class{inertDocumentHelper;constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{let e=new window.DOMParser().parseFromString(Il(n),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(n):(e.firstChild?.remove(),e)}catch{return null}}},Uh=class{defaultDoc;inertDocument;constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){let e=this.inertDocument.createElement("template");return e.innerHTML=Il(n),e}};function d0(){try{return!!new window.DOMParser().parseFromString(Il(""),"text/html")}catch{return!1}}var f0=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ps(t){return t=String(t),t.match(f0)?t:"unsafe:"+t}function $n(t){let n={};for(let e of t.split(","))n[e]=!0;return n}function Ls(...t){let n={};for(let e of t)for(let r in e)e.hasOwnProperty(r)&&(n[r]=!0);return n}var k_=$n("area,br,col,hr,img,wbr"),F_=$n("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),P_=$n("rp,rt"),h0=Ls(P_,F_),p0=Ls(F_,$n("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),m0=Ls(P_,$n("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),xb=Ls(k_,p0,m0,h0),L_=$n("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),g0=$n("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),v0=$n("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),y0=Ls(L_,g0,v0),b0=$n("script,style,template"),Hh=class{sanitizedSomething=!1;buf=[];sanitizeChildren(n){let e=n.firstChild,r=!0,o=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?r=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,r&&e.firstChild){o.push(e),e=E0(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let i=D0(e);if(i){e=i;break}e=o.pop()}}return this.buf.join("")}startElement(n){let e=Ab(n).toLowerCase();if(!xb.hasOwnProperty(e))return this.sanitizedSomething=!0,!b0.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let r=n.attributes;for(let o=0;o"),!0}endElement(n){let e=Ab(n).toLowerCase();xb.hasOwnProperty(e)&&!k_.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(Rb(n))}};function _0(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function D0(t){let n=t.nextSibling;if(n&&t!==n.previousSibling)throw j_(n);return n}function E0(t){let n=t.firstChild;if(n&&_0(t,n))throw j_(n);return n}function Ab(t){let n=t.nodeName;return typeof n=="string"?n:"FORM"}function j_(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var w0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,C0=/([^\#-~ |!])/g;function Rb(t){return t.replace(/&/g,"&").replace(w0,function(n){let e=n.charCodeAt(0),r=n.charCodeAt(1);return"&#"+((e-55296)*1024+(r-56320)+65536)+";"}).replace(C0,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}var Qc;function Sl(t,n){let e=null;try{Qc=Qc||u0(t);let r=n?String(n):"";e=Qc.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=e.innerHTML,e=Qc.getInertBodyElement(r)}while(r!==i);let a=new Hh().sanitizeChildren(Nb(e)||e);return Il(a)}finally{if(e){let r=Nb(e)||e;for(;r.firstChild;)r.firstChild.remove()}}}function Nb(t){return"content"in t&&I0(t)?t.content:null}function I0(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var S0=/^>|^->||--!>|)/g,T0="\u200B$1\u200B";function x0(t){return t.replace(S0,n=>n.replace(M0,T0))}function A0(t,n){return t.createText(n)}function R0(t,n,e){t.setValue(n,e)}function N0(t,n){return t.createComment(x0(n))}function V_(t,n,e){return t.createElement(n,e)}function ll(t,n,e,r,o){t.insertBefore(n,e,r,o)}function B_(t,n,e){t.appendChild(n,e)}function Ob(t,n,e,r,o){r!==null?ll(t,n,e,r,o):B_(t,n,e)}function U_(t,n,e,r){t.removeChild(null,n,e,r)}function O0(t,n,e){t.setAttribute(n,"style",e)}function k0(t,n,e){e===""?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}function H_(t,n,e){let{mergedAttrs:r,classes:o,styles:i}=e;r!==null&&VT(t,n,r),o!==null&&k0(t,n,o),i!==null&&O0(t,n,i)}function F0(t,n=!0){if(t[0]!=":")return[null,t];let e=t.indexOf(":",1);if(e===-1){if(n)throw new Error(`Unsupported format "${t}" expecting ":namespace:name"`);return[null,t]}return[t.slice(1,e),t.slice(e+1)]}function P0(t,n,e){if(n!==void 0&&e!==void 0&&G_(n,e)!==J.HTML)return t;let r=Cp();return r?Mb(r.sanitize(J.HTML,t)||""):bn(t,"HTML")?Mb(vt(t)):Sl(I_(),Se(t))}function $_(t){let n=Cp();return n?n.sanitize(J.URL,t)||"":bn(t,"URL")?vt(t):Ps(Se(t))}function z_(t){let n=Cp();if(n)return Tb(n.sanitize(J.RESOURCE_URL,t)||"");if(bn(t,"ResourceURL"))return Tb(vt(t));throw new b(904,!1)}function L0(t,n){switch(G_(t,n)){case J.RESOURCE_URL:return z_;case J.URL:return $_;default:return null}}function wp(t,n,e){return L0(n,e)?.(t)??t}function Cp(){let t=I();return t&&t[Ht].sanitizer}function G_(t,n){let[e,r]=j0(t);return $y(r,n,e)}function j0(t){t=t.toLowerCase();let n=F0(t,!1);if(n[0])return n;let r=st()===-1?null:to(),o=r?.namespace;if(t==="#host"&&r?.type===2){let i=ht(r,I());if(i.tagName&&(t=i.tagName.toLowerCase()),o==null){let s=i.namespaceURI;o=s&&c0[s]}}return[o,t]}function V0(t){return t.ownerDocument.defaultView}function B0(t){return t.ownerDocument}function W_(t){return t instanceof Function?t():t}function U0(t,n,e){let r=t.length;for(;;){let o=t.indexOf(n,e);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let i=n.length;if(o+i===r||t.charCodeAt(o+i)<=32)return o}e=o+1}}var q_="ng-template";function H0(t,n,e,r){let o=0;if(r){for(;o-1){let i;for(;++oi?d="":d=o[u+1].toLowerCase(),r&2&&l!==d){if(Gt(r))return!1;s=!0}}}}return Gt(r)||s}function Gt(t){return(t&1)===0}function G0(t,n,e,r){if(n===null)return-1;let o=0;if(r||!e){let i=!1;for(;o-1)for(e++;e0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Gt(s)&&(n+=kb(i,o),o=""),r=s,i=i||!Gt(r);e++}return o!==""&&(n+=kb(i,o)),n}function Q0(t){return t.map(K0).join(",")}function X0(t){let n=[],e=[],r=1,o=2;for(;r=0;i--){let s=e[i],a=s.parentNode;s===n?(e.splice(i,1),Cs.add(s),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):(o&&s===o||a&&r&&a!==r)&&(e.splice(i,1),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),s.parentNode?.removeChild(s))}}function ox(t,n){let e=zh.get(t);e?e.includes(n)||e.push(n):zh.set(t,[n])}var oo=new Set,Tl=(function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t})(Tl||{}),Zt=new y(""),Fb=new Set;function Kt(t){Fb.has(t)||(Fb.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var xl=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=v({token:t,providedIn:"root",factory:()=>new t})}return t})(),Ap=[0,1,2,3],Rp=(()=>{class t{ngZone=f(j);scheduler=f(fn);errorHandler=f(Ze,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){f(Zt,{optional:!0})}execute(){let e=this.sequences.size>0;e&&oe(ee.AfterRenderHooksStart),this.executing=!0;for(let r of Ap)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot))}catch(i){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&oe(ee.AfterRenderHooksEnd)}register(e){let{view:r}=e;r!==void 0?((r[Kr]??=[]).push(e),Jr(r),r[L]|=8192):this.executing?this.deferredRegistrations.add(e):this.addSequence(e)}addSequence(e){this.sequences.add(e),this.scheduler.notify(7)}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}maybeTrace(e,r){return r?r.run(Tl.AFTER_NEXT_RENDER,e):e()}static \u0275prov=v({token:t,providedIn:"root",factory:()=>new t})}return t})(),Ts=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(n,e,r,o,i,s=null){this.impl=n,this.hooks=e,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let n=this.view?.[Kr];n&&(this.view[Kr]=n.filter(e=>e!==this))}};function At(t,n){let e=n?.injector??f(W);return Kt("NgAfterNextRender"),sx(t,e,n,!0)}function ix(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function sx(t,n,e,r){let o=n.get(xl);o.impl??=n.get(Rp);let i=n.get(Zt,null,{optional:!0}),s=e?.manualCleanup!==!0?n.get(Ue):null,a=n.get(Go,null,{optional:!0}),c=new Ts(o.impl,ix(t),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var J_=new y("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:f(re)})});function eD(t,n,e){let r=t.get(J_);if(Array.isArray(n))for(let o of n)r.queue.add(o),e?.detachedLeaveAnimationFns?.push(o);else r.queue.add(n),e?.detachedLeaveAnimationFns?.push(n);r.scheduler&&r.scheduler(t)}function ax(t,n){let e=t.get(J_);if(n.detachedLeaveAnimationFns){for(let r of n.detachedLeaveAnimationFns)e.queue.delete(r);n.detachedLeaveAnimationFns=void 0}}function cx(t,n){for(let[e,r]of n)eD(t,r.animateFns)}function Pb(t,n,e,r){let o=t?.[mr]?.enter;n!==null&&o&&o.has(e.index)&&cx(r,o)}function qo(t,n,e,r,o,i,s,a){if(o!=null){let c,l=!1;$t(o)?c=o:jn(o)&&(l=!0,o=o[Ut]);let u=Tt(o);t===0&&r!==null?(Pb(a,r,i,e),s==null?B_(n,r,u):ll(n,r,u,s||null,!0)):t===1&&r!==null?(Pb(a,r,i,e),ll(n,r,u,s||null,!0),rx(i,u)):t===2?(a?.[mr]?.leave?.has(i.index)&&ox(i,u),Cs.delete(u),Lb(a,i,e,d=>{if(Cs.has(u)){Cs.delete(u);return}U_(n,u,l,d)})):t===3&&(Cs.delete(u),Lb(a,i,e,()=>{n.destroyNode(u)})),c!=null&&bx(n,t,e,c,i,r,s)}}function lx(t,n){tD(t,n),n[Ut]=null,n[nt]=null}function ux(t,n,e,r,o,i){r[Ut]=o,r[nt]=n,Rl(t,r,e,1,o,i)}function tD(t,n){n[Ht].changeDetectionScheduler?.notify(9),Rl(t,n,n[se],2,null,null)}function dx(t){let n=t[Uo];if(!n)return _h(t[A],t);for(;n;){let e=null;if(jn(n))e=n[Uo];else{let r=n[ve];r&&(e=r)}if(!e){for(;n&&!n[Mt]&&n!==t;)jn(n)&&_h(n[A],n),n=n[ke];n===null&&(n=t),jn(n)&&_h(n[A],n),e=n&&n[Mt]}n=e}}function Np(t,n){let e=t[Qr],r=e.indexOf(n);e.splice(r,1)}function Al(t,n){if(Xr(n))return;let e=n[se];e.destroyNode&&Rl(t,n,e,3,null,null),dx(n)}function _h(t,n){if(Xr(n))return;let e=M(null);try{n[L]&=-129,n[L]|=256,n[ft]&&ar(n[ft]),px(t,n),hx(t,n),n[A].type===1&&n[se].destroy();let r=n[pr];if(r!==null&&$t(n[ke])){r!==n[ke]&&Np(r,n);let o=n[pn];o!==null&&o.detachView(t)}Nh(n)}finally{M(e)}}function Lb(t,n,e,r){let o=t?.[mr];if(o==null||o.leave==null||!o.leave.has(n.index))return r(!1);t&&oo.add(t[Ln]),eD(e,()=>{if(o.leave&&o.leave.has(n.index)){let s=o.leave.get(n.index),a=[];if(s){for(let c=0;c{t[mr].running=void 0,oo.delete(t[Ln]),n(!0)});return}n(!1)}function hx(t,n){let e=t.cleanup,r=n[Bo];if(e!==null)for(let s=0;s=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[e[s+1]];e[s].call(a)}r!==null&&(n[Bo]=null);let o=n[Fn];if(o!==null){n[Fn]=null;for(let s=0;sde&&X_(t,n,de,!1);let a=s?ee.TemplateUpdateStart:ee.TemplateCreateStart;oe(a,o,e),e(r,o)}finally{vr(i);let a=s?ee.TemplateUpdateEnd:ee.TemplateCreateEnd;oe(a,o,e)}}function Nl(t,n,e){Ix(t,n,e),(e.flags&64)===64&&Sx(t,n,e)}function js(t,n,e=ht){let r=n.localNames;if(r!==null){let o=n.index+1;for(let i=0;inull;function Cx(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function aD(t,n,e,r,o,i){let s=n[A];if(Ol(t,s,n,e,r)){mn(t)&&lD(n,t.index);return}t.type&3&&(e=Cx(e)),cD(t,n,e,r,o,i)}function cD(t,n,e,r,o,i){if(t.type&3){let s=ht(t,n);r=i!=null?i(r,t.value||"",e):r,o.setProperty(s,e,r)}else t.type&12}function lD(t,n){let e=xt(n,t);e[L]&16||(e[L]|=64)}function Ix(t,n,e){let r=e.directiveStart,o=e.directiveEnd;mn(e)&&tx(n,e,t.data[r+e.componentOffset]),t.firstCreatePass||cl(e,n);let i=e.initialInputs;for(let s=r;s{Jr(t.lView)},consumerOnSignalRead(){this.lView[ft]=this}});function jx(t){let n=t[ft]??Object.create(Vx);return n.lView=t,n}var Vx=F(g({},ir),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let n=fr(t.lView);for(;n&&!pD(n[A]);)n=fr(n);n&&Xf(n)},consumerOnSignalRead(){this.lView[ft]=this}});function pD(t){return t.type!==2}function mD(t){if(t[dr]===null)return;let n=!0;for(;n;){let e=!1;for(let r of t[dr])r.dirty&&(e=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));n=e&&!!(t[L]&8192)}}var Bx=100;function gD(t,n=0){let r=t[Ht].rendererFactory,o=!1;o||r.begin?.();try{Ux(t,n)}finally{o||r.end?.()}}function Ux(t,n){let e=lh();try{is(!0),Wh(t,n);let r=0;for(;gs(t);){if(r===Bx)throw new b(103,!1);r++,Wh(t,1)}}finally{is(e)}}function Hx(t,n,e,r){if(Xr(n))return;let o=n[L],i=!1,s=!1;Gc(n);let a=!0,c=null,l=null;i||(pD(t)?(l=kx(n),c=kn(l)):bc()===null?(a=!1,l=jx(n),c=kn(l)):n[ft]&&(ar(n[ft]),n[ft]=null));try{Qf(n),tb(t.bindingStartIndex),e!==null&&sD(t,n,e,2,r);let u=(o&3)===3;if(!i)if(u){let p=t.preOrderCheckHooks;p!==null&&Jc(n,p,null)}else{let p=t.preOrderHooks;p!==null&&el(n,p,0,null),yh(n,0)}if(s||$x(n),mD(n),vD(n,0),t.contentQueries!==null&&R_(t,n),!i)if(u){let p=t.contentCheckHooks;p!==null&&Jc(n,p)}else{let p=t.contentHooks;p!==null&&el(n,p,1),yh(n,1)}Gx(t,n);let d=t.components;d!==null&&bD(n,d,0);let h=t.viewQuery;if(h!==null&&kh(2,h,r),!i)if(u){let p=t.viewCheckHooks;p!==null&&Jc(n,p)}else{let p=t.viewHooks;p!==null&&el(n,p,2),yh(n,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),n[jc]){for(let p of n[jc])p();n[jc]=null}i||(fD(n),n[L]&=-73)}catch(u){throw i||Jr(n),u}finally{l!==null&&(sr(l,c),a&&Px(l)),Wc()}}function vD(t,n){for(let e=E_(t);e!==null;e=w_(e))for(let r=ve;r0&&(t[e-1][Mt]=r[Mt]);let i=fs(t,ve+n);lx(r[A],r);let s=i[pn];s!==null&&s.detachView(i[A]),r[ke]=null,r[Mt]=null,r[L]&=-129}return r}function Wx(t,n,e,r){let o=ve+r,i=e.length;r>0&&(e[o-1][Mt]=n),r-1&&(As(n,r),fs(e,r))}this._attachedToViewContainer=!1}Al(this._lView[A],this._lView)}onDestroy(n){Jf(this._lView,n)}markForCheck(){Vp(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[L]&=-129}reattach(){Uc(this._lView),this._lView[L]|=128}detectChanges(){this._lView[L]|=1024,gD(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let n=$o(this._lView),e=this._lView[pr];e!==null&&!n&&Np(e,this._lView),tD(this._lView[A],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new b(902,!1);this._appRef=n;let e=$o(this._lView),r=this._lView[pr];r!==null&&!e&&wD(r,this._lView),Uc(this._lView)}};var gt=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=qx;constructor(e,r,o){this._declarationLView=e,this._declarationTContainer=r,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,o){let i=Vs(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:o});return new yr(i)}}return t})();function qx(){return kl(Me(),I())}function kl(t,n){return t.type&4?new gt(n,t,ti(t,n)):null}function ni(t,n,e,r,o){let i=t.data[n];if(i===null)i=Yx(t,n,e,r,o),nb()&&(i.flags|=32);else if(i.type&64){i.type=e,i.value=r,i.attrs=o;let s=Jy();i.injectorIndex=s===null?-1:s.injectorIndex}return zo(i,!0),i}function Yx(t,n,e,r,o){let i=sh(),s=ah(),a=s?i:i&&i.parent,c=t.data[n]=Kx(t,a,e,n,r,o);return Zx(t,c,i,s),c}function Zx(t,n,e,r){t.firstChild===null&&(t.firstChild=n),e!==null&&(r?e.child==null&&n.parent!==null&&(e.child=n):e.next===null&&(e.next=n,n.prev=e))}function Kx(t,n,e,r,o,i){let s=n?n.injectorIndex:-1,a=0;return rh()&&(a|=128),{type:e,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,namespace:fh(),attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function Qx(t){let n=t[Wf]??[],r=t[ke][se],o=[];for(let i of n)i.data[M_]!==void 0?o.push(i):Xx(i,r);t[Wf]=o}function Xx(t,n){let e=0,r=t.firstChild;if(r){let o=t.data[S_];for(;enull,eA=()=>null;function ul(t,n){return Jx(t,n)}function CD(t,n,e){return eA(t,n,e)}var ID=class{},Fl=class{},qh=class{resolveComponentFactory(n){throw new b(917,!1)}},Us=class{static NULL=new qh},He=class{},Le=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>tA()}return t})();function tA(){let t=I(),n=Me(),e=xt(n.index,t);return(jn(e)?e:t)[se]}var SD=(()=>{class t{static \u0275prov=v({token:t,providedIn:"root",factory:()=>null})}return t})();var nl={},Yh=class{injector;parentInjector;constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,r){let o=this.injector.get(n,nl,r);return o!==nl||e===nl?o:this.parentInjector.get(n,e,r)}};function dl(t,n,e){let r=e?t.styles:null,o=e?t.classes:null,i=0;if(n!==null)for(let s=0;s0&&(e.directiveToIndex=new Map);for(let h=0;h0;){let e=t[--n];if(typeof e=="number"&&e<0)return e}return 0}function lA(t,n,e){if(e){if(n.exportAs)for(let r=0;rr(Tt(_[t.index])):t.index;OD(m,n,e,i,a,p,!1)}}return l}function fA(t){return t.startsWith("animation")||t.startsWith("transition")}function hA(t,n,e,r){let o=t.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function OD(t,n,e,r,o,i,s){let a=n.firstCreatePass?th(n):null,c=eh(e),l=c.length;c.push(o,i),a&&a.push(r,t,l,(l+1)*(s?-1:1))}function $b(t,n,e,r,o,i){let s=n[e],a=n[A],l=a.data[e].outputs[r],d=s[l].subscribe(i);OD(t.index,a,n,o,i,d,!0)}var Zh=Symbol("BINDING");function kD(t){return t.debugInfo?.className||t.type.name||null}var fl=class extends Us{ngModule;constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){let e=hn(n);return new br(e,this.ngModule)}};function pA(t){return Object.keys(t).map(n=>{let[e,r,o]=t[n],i={propName:e,templateName:n,isSignal:(r&Ml.SignalBased)!==0};return o&&(i.transform=o),i})}function mA(t){return Object.keys(t).map(n=>({propName:t[n],templateName:n}))}function gA(t,n,e){let r=n instanceof re?n:n?.injector;return r&&t.getStandaloneInjector!==null&&(r=t.getStandaloneInjector(r)||r),r?new Yh(e,r):e}function vA(t){let n=t.get(He,null);if(n===null)throw new b(407,!1);let e=t.get(SD,null),r=t.get(fn,null),o=t.get(Zt,null,{optional:!0});return{rendererFactory:n,sanitizer:e,changeDetectionScheduler:r,ngReflect:!1,tracingService:o}}function yA(t,n){let e=FD(t);return V_(n,e,e==="svg"?os:e==="math"?Yf:null)}function bA(t){if(t?.toLowerCase()==="script")throw new b(905,!1)}function FD(t){return(t.selectors[0][0]||"div").toLowerCase()}var br=class extends Fl{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=pA(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=mA(this.componentDef.outputs),this.cachedOutputs}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=Q0(n.selectors),this.ngContentSelectors=n.ngContentSelectors??[],this.isBoundToModule=!!e}create(n,e,r,o,i,s){oe(ee.DynamicComponentStart);let a=M(null);try{let c=this.componentDef,l=gA(c,o||this.ngModule,n),u=vA(l),d=u.tracingService;return d&&d.componentCreate?d.componentCreate(kD(c),()=>this.createComponentRef(u,l,e,r,i,s)):this.createComponentRef(u,l,e,r,i,s)}finally{M(a)}}createComponentRef(n,e,r,o,i,s){let a=this.componentDef,c=_A(o,a,s,i),l=n.rendererFactory.createRenderer(null,a),u=o?Dx(l,o,a.encapsulation,e):yA(a,l);bA(u?.tagName);let d=s?.some(zb)||i?.some(m=>typeof m!="function"&&m.bindings.some(zb)),h=Mp(null,c,null,512|Z_(a),null,null,n,l,e,null,A_(u,e,!0));h[de]=u,Gc(h);let p=null;try{let m=Up(de,h,2,"#host",()=>c.directiveRegistry,!0,0);H_(l,u,m),Ko(u,h),Nl(c,h,m),vp(c,m,h),Hp(c,m),r!==void 0&&EA(m,this.ngContentSelectors,r),p=xt(m.index,h),h[ge]=p[ge],jp(c,h,null)}catch(m){throw p!==null&&Nh(p),Nh(h),m}finally{oe(ee.DynamicComponentEnd),Wc()}return new hl(this.componentType,h,!!d)}};function _A(t,n,e,r){let o=t?["ng-version","21.2.21"]:X0(n.selectors[0]),i=null,s=null,a=0;if(e)for(let u of e)a+=u[Zh].requiredVars,u.create&&(u.targetIdx=0,(i??=[]).push(u)),u.update&&(u.targetIdx=0,(s??=[]).push(u));if(r)for(let u=0;u{if(e&1&&t)for(let r of t)r.create();if(e&2&&n)for(let r of n)r.update()}}function zb(t){let n=t[Zh].kind;return n==="input"||n==="twoWay"}var hl=class extends ID{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(n,e,r){super(),this._rootLView=e,this._hasInputBindings=r,this._tNode=Vc(e[A],de),this.location=ti(this._tNode,e),this.instance=xt(this._tNode.index,e)[ge],this.hostView=this.changeDetectorRef=new yr(e,void 0),this.componentType=n}setInput(n,e){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),e))return;let o=this._rootLView,i=Ol(r,o[A],o,n,e);this.previousInputValues.set(n,e);let s=xt(r.index,o);Vp(s,1)}get injector(){return new no(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}};function EA(t,n,e){let r=t.projection=[];for(let o=0;o{class t{static __NG_ELEMENT_ID__=wA}return t})();function wA(){let t=Me();return PD(t,I())}var Kh=class t extends Qe{_lContainer;_hostTNode;_hostLView;constructor(n,e,r){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=r}get element(){return ti(this._hostTNode,this._hostLView)}get injector(){return new no(this._hostTNode,this._hostLView)}get parentInjector(){let n=hp(this._hostTNode,this._hostLView);if(u_(n)){let e=sl(n,this._hostLView),r=il(n),o=e[A].data[r+8];return new no(o,e)}else return new no(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){let e=Gb(this._lContainer);return e!==null&&e[n]||null}get length(){return this._lContainer.length-ve}createEmbeddedView(n,e,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=ul(this._lContainer,n.ssrId),a=n.createEmbeddedViewImpl(e||{},i,s);return this.insertImpl(a,o,Qo(this._hostTNode,s)),a}createComponent(n,e,r,o,i,s,a){let c=n&&!RT(n),l;if(c)l=e;else{let D=e||{};l=D.index,r=D.injector,o=D.projectableNodes,i=D.environmentInjector||D.ngModuleRef,s=D.directives,a=D.bindings}let u=c?n:new br(hn(n)),d=r||this.parentInjector;if(!i&&u.ngModule==null){let C=(c?d:this.parentInjector).get(re,null);C&&(i=C)}let h=hn(u.componentType??{}),p=ul(this._lContainer,h?.id??null),m=p?.firstChild??null,_=u.create(d,o,m,i,s,a);return this.insertImpl(_.hostView,l,Qo(this._hostTNode,p)),_}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,r){let o=n._lView;if(Gy(o)){let a=this.indexOf(n);if(a!==-1)this.detach(a);else{let c=o[ke],l=new t(c,c[nt],c[ke]);l.detach(l.indexOf(n))}}let i=this._adjustIndex(e),s=this._lContainer;return Bs(s,o,i,r),n.attachToViewContainerRef(),Lf(Dh(s),i,n),n}move(n,e){return this.insert(n,e)}indexOf(n){let e=Gb(this._lContainer);return e!==null?e.indexOf(n):-1}remove(n){let e=this._adjustIndex(n,-1),r=As(this._lContainer,e);r&&(fs(Dh(this._lContainer),e),Al(r[A],r))}detach(n){let e=this._adjustIndex(n,-1),r=As(this._lContainer,e);return r&&fs(Dh(this._lContainer),e)!=null?new yr(r):null}_adjustIndex(n,e=0){return n??this.length+e}};function Gb(t){return t[ps]}function Dh(t){return t[ps]||(t[ps]=[])}function PD(t,n){let e,r=n[t.index];return $t(r)?e=r:(e=_D(r,n,null,t),n[t.index]=e,Tp(n,e)),IA(e,n,t,r),new Kh(e,t,n)}function CA(t,n){let e=t[se],r=e.createComment(""),o=ht(n,t),i=e.parentNode(o);return ll(e,i,r,e.nextSibling(o),!1),r}var IA=TA,SA=()=>!1;function MA(t,n,e){return SA(t,n,e)}function TA(t,n,e,r){if(t[gr])return;let o;e.type&8?o=Tt(r):o=CA(n,e),t[gr]=o}var Qh=class t{queryList;matches=null;constructor(n){this.queryList=n}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},Xh=class t{queries;constructor(n=[]){this.queries=n}createEmbeddedView(n){let e=n.queries;if(e!==null){let r=n.contentQueries!==null?n.contentQueries[0]:e.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let l=i[a+1],u=n[-c];for(let d=ve;dn.trim())}function UD(t,n,e){t.queries===null&&(t.queries=new Jh),t.queries.track(new ep(n,e))}function kA(t,n){let e=t.contentQueries||(t.contentQueries=[]),r=e.length?e[e.length-1]:-1;n!==r&&e.push(t.queries.length-1,n)}function Wp(t,n){return t.queries.getByIndex(n)}function HD(t,n){let e=t[A],r=Wp(e,n);return r.crossesNgTemplate?tp(e,t,n,[]):LD(e,t,r,n)}function qp(t,n,e){let r,o=Ji(()=>{r._dirtyCounter();let i=FA(r,t);if(n&&i===void 0)throw new b(-951,!1);return i});return r=o[me],r._dirtyCounter=K(0),r._flatValue=void 0,o}function Yp(t){return qp(!0,!1,t)}function Zp(t){return qp(!0,!0,t)}function $D(t){return qp(!1,!1,t)}function zD(t,n){let e=t[me];e._lView=I(),e._queryIndex=n,e._queryList=Gp(e._lView,n),e._queryList.onDirty(()=>e._dirtyCounter.update(r=>r+1))}function FA(t,n){let e=t._lView,r=t._queryIndex;if(e===void 0||r===void 0||e[L]&4)return n?void 0:Ye;let o=Gp(e,r),i=HD(e,r);return o.reset(i,b_),n?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}var yn=class{},Ll=class{};var ml=class extends yn{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new fl(this);constructor(n,e,r,o=!0){super(),this.ngModuleType=n,this._parent=e;let i=kf(n);this._bootstrapComponents=W_(i.bootstrap),this._r3Injector=hh(n,e,[{provide:yn,useValue:this},{provide:Us,useValue:this.componentFactoryResolver},...r],cs(n),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}},gl=class extends Ll{moduleType;constructor(n){super(),this.moduleType=n}create(n){return new ml(this.moduleType,n,[])}};var Rs=class extends yn{injector;componentFactoryResolver=new fl(this);instance=null;constructor(n){super();let e=new zr([...n.providers,{provide:yn,useValue:this},{provide:Us,useValue:this.componentFactoryResolver}],n.parent||Vo(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}};function oi(t,n,e=null){return new Rs({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}var PA=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let r=Bf(!1,e.type),o=r.length>0?oi([r],this._injector,""):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=v({token:t,providedIn:"environment",factory:()=>new t(w(re))})}return t})();function Te(t){return Os(()=>{let n=GD(t),e=F(g({},n),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===pp.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:n.standalone?o=>o.get(PA).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||qt.Emulated,styles:t.styles||Ye,_:null,schemas:t.schemas||null,tView:null,id:""});n.standalone&&Kt("NgStandalone"),WD(e);let r=t.dependencies;return e.directiveDefs=Wb(r,LA),e.pipeDefs=Wb(r,xy),e.id=BA(e),e})}function LA(t){return hn(t)||Nc(t)}function Q(t){return Os(()=>({type:t.type,bootstrap:t.bootstrap||Ye,declarations:t.declarations||Ye,imports:t.imports||Ye,exports:t.exports||Ye,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function jA(t,n){if(t==null)return Bt;let e={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Ml.None,c=null),e[i]=[r,a,c],n[i]=s}return e}function VA(t){if(t==null)return Bt;let n={};for(let e in t)t.hasOwnProperty(e)&&(n[t[e]]=e);return n}function T(t){return Os(()=>{let n=GD(t);return WD(n),n})}function ii(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function GD(t){let n={};return{type:t.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputConfig:t.inputs||Bt,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||Ye,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,inputs:jA(t.inputs,n),outputs:VA(t.outputs),debugInfo:null}}function WD(t){t.features?.forEach(n=>n(t))}function Wb(t,n){return t?()=>{let e=typeof t=="function"?t():t,r=[];for(let o of e){let i=n(o);i!==null&&r.push(i)}return r}:null}function BA(t){let n=0,e=typeof t.consts=="function"?"":t.consts,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,e,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let i of r.join("|"))n=Math.imul(31,n)+i.charCodeAt(0)<<0;return n+=2147483648,"c"+n}function UA(t){let n=e=>{let r=Array.isArray(t);e.hostDirectives===null?(e.resolveHostDirectives=HA,e.hostDirectives=r?t.map(np):[t]):r?e.hostDirectives.unshift(...t.map(np)):e.hostDirectives.unshift(t)};return n.ngInherit=!0,n}function HA(t){let n=[],e=!1,r=null,o=null;for(let i=0;i=0;r--){let o=t[r];o.hostVars=n+=o.hostVars,o.hostAttrs=Zo(o.hostAttrs,e=Zo(e,o.hostAttrs))}}function Eh(t){return t===Bt?{}:t===Ye?[]:t}function qA(t,n){let e=t.viewQuery;e?t.viewQuery=(r,o)=>{n(r,o),e(r,o)}:t.viewQuery=n}function YA(t,n){let e=t.contentQueries;e?t.contentQueries=(r,o,i)=>{n(r,o,i),e(r,o,i)}:t.contentQueries=n}function ZA(t,n){let e=t.hostBindings;e?t.hostBindings=(r,o)=>{n(r,o),e(r,o)}:t.hostBindings=n}function YD(t,n,e,r,o,i,s,a){if(e.firstCreatePass){t.mergedAttrs=Zo(t.mergedAttrs,t.attrs);let u=t.tView=Sp(2,t,o,i,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,e.consts,null);e.queries!==null&&(e.queries.template(e,t),u.queries=e.queries.embeddedTView(t))}a&&(t.flags|=a),zo(t,!1);let c=QA(e,n,t,r);qc()&&Op(e,n,c,t),Ko(c,n);let l=_D(c,n,c,t);n[r+de]=l,Tp(n,l),MA(l,t,n)}function KA(t,n,e,r,o,i,s,a,c,l,u){let d=e+de,h;return n.firstCreatePass?(h=ni(n,d,4,s||null,a||null),Hc()&&MD(n,t,h,pt(n.consts,l),Fp),a_(n,h)):h=n.data[d],YD(h,t,n,e,r,o,i,c),Ho(h)&&Nl(n,t,h),l!=null&&js(t,h,u),h}function Jo(t,n,e,r,o,i,s,a,c,l,u){let d=e+de,h;if(n.firstCreatePass){if(h=ni(n,d,4,s||null,a||null),l!=null){let p=pt(n.consts,l);h.localNames=[];for(let m=0;m{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function si(t){return typeof t=="function"&&t[me]!==void 0}function Kp(t){return si(t)&&typeof t.set=="function"}var Vl=new y(""),Bl=new y(""),Hs=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(e,r,o){this._ngZone=e,this.registry=r,$f()&&(this._destroyRef=f(Ue,{optional:!0})??void 0),Qp||(XD(o),o.addToWindow(r)),this._watchAngularEvents(),e.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){let e=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),r=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{j.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{e.unsubscribe(),r.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>r.updateCb&&r.updateCb(e)?(clearTimeout(r.timeoutId),!1):!0)}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),e()},r)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:o})}whenStable(e,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(e,r,o),this._runCallbacksIfReady()}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,r,o){return[]}static \u0275fac=function(r){return new(r||t)(w(j),w(QD),w(Bl))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),QD=(()=>{class t{_applications=new Map;registerApplication(e,r){this._applications.set(e,r)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,r=!0){return Qp?.findTestabilityInTree(this,e,r)??null}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function XD(t){Qp=t}var Qp;function zn(t){return!!t&&typeof t.then=="function"}function Ul(t){return!!t&&typeof t.subscribe=="function"}var Xp=new y("");function Hl(t){return hr([{provide:Xp,multi:!0,useValue:t}])}var Jp=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,r)=>{this.resolve=e,this.reject=r});appInits=f(Xp,{optional:!0})??[];injector=f(W);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let o of this.appInits){let i=Fe(this.injector,o);if(zn(i))e.push(i);else if(Ul(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});e.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{r()}).catch(o=>{this.reject(o)}),e.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),$l=new y("");function JD(){df(()=>{let t="";throw new b(600,t)})}function eE(t){return t.isBoundToModule}var JA=10;var Ge=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=f(mt);afterRenderManager=f(xl);zonelessEnabled=f(Ds);rootEffectScheduler=f(Yc);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new x;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=f(Bn);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(V(e=>!e))}constructor(){f(Zt,{optional:!0})}whenStable(){let e;return new Promise(r=>{e=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{e.unsubscribe()})}_injector=f(re);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,r){return this.bootstrapImpl(e,r)}bootstrapImpl(e,r,o=W.NULL){return this._injector.get(j).run(()=>{oe(ee.BootstrapComponentStart);let s=e instanceof Fl;if(!this._injector.get(Jp).done){let m="";throw new b(405,m)}let c;s?c=e:c=this._injector.get(Us).resolveComponentFactory(e),this.componentTypes.push(c.componentType);let l=eE(c)?void 0:this._injector.get(yn),u=r||c.selector,d=c.create(o,[],u,l),h=d.location.nativeElement,p=d.injector.get(Vl,null);return p?.registerApplication(h),d.onDestroy(()=>{this.detachView(d.hostView),Ss(this.components,d),p?.unregisterApplication(h)}),this._loadComponent(d),oe(ee.BootstrapComponentEnd,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){oe(ee.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(Tl.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw oe(ee.ChangeDetectionEnd),new b(101,!1);let e=M(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,M(e),this.afterTick.next(),oe(ee.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(He,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++gs(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let r=e;this._views.push(r),r.attachToAppRef(this)}detachView(e){let r=e;Ss(this._views,r),r.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(e),this._injector.get($l,[]).forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Ss(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new b(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ss(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function tE(t,n){let e=I(),r=Vn();if(at(e,r,n)){let o=le(),i=to();if(Ol(i,o,e,t,n))mn(i)&&lD(e,i.index);else{let a=ht(i,e);uD(e[se],a,null,i.value,t,n,null)}}return tE}function yt(t,n,e,r){let o=I(),i=Vn();if(at(o,i,n)){let s=le(),a=to();Tx(a,o,t,n,e,r)}return yt}function eR(){return I()[Ke][ge]}var rp=class{destroy(n){}updateValue(n,e){}swap(n,e){let r=Math.min(n,e),o=Math.max(n,e),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(n,e){this.attach(e,this.detach(n))}};function wh(t,n,e,r,o){return t===e&&Object.is(n,r)?1:Object.is(o(t,n),o(e,r))?-1:0}function tR(t,n,e,r){let o,i,s=0,a=t.length-1,c=void 0;if(Array.isArray(n)){M(r);let l=n.length-1;for(M(null);s<=a&&s<=l;){let u=t.at(s),d=n[s],h=wh(s,u,s,d,e);if(h!==0){h<0&&t.updateValue(s,d),s++;continue}let p=t.at(a),m=n[l],_=wh(a,p,l,m,e);if(_!==0){_<0&&t.updateValue(a,m),a--,l--;continue}let D=e(s,u),C=e(a,p),z=e(s,d);if(Object.is(z,C)){let De=e(l,m);Object.is(De,D)?(t.swap(s,a),t.updateValue(a,m),l--,a--):t.move(a,s),t.updateValue(s,d),s++;continue}if(o??=new vl,i??=Kb(t,s,a,e),op(t,o,s,z))t.updateValue(s,d),s++,a++;else if(i.has(z))o.set(D,t.detach(s)),a--;else{let De=t.create(s,n[s]);t.attach(s,De),s++,a++}}for(;s<=l;)Zb(t,o,e,s,n[s]),s++}else if(n!=null){M(r);let l=n[Symbol.iterator]();M(null);let u=l.next();for(;!u.done&&s<=a;){let d=t.at(s),h=u.value,p=wh(s,d,s,h,e);if(p!==0)p<0&&t.updateValue(s,h),s++,u=l.next();else{o??=new vl,i??=Kb(t,s,a,e);let m=e(s,h);if(op(t,o,s,m))t.updateValue(s,h),s++,a++,u=l.next();else if(!i.has(m))t.attach(s,t.create(s,h)),s++,a++,u=l.next();else{let _=e(s,d);o.set(_,t.detach(s)),a--}}}for(;!u.done;)Zb(t,o,e,t.length,u.value),u=l.next()}for(;s<=a;)t.destroy(t.detach(a--));o?.forEach(l=>{t.destroy(l)})}function op(t,n,e,r){return n!==void 0&&n.has(r)?(t.attach(e,n.get(r)),n.delete(r),!0):!1}function Zb(t,n,e,r,o){if(op(t,n,r,e(r,o)))t.updateValue(r,o);else{let i=t.create(r,o);t.attach(r,i)}}function Kb(t,n,e,r){let o=new Set;for(let i=n;i<=e;i++)o.add(r(i,t.at(i)));return o}var vl=class{kvMap=new Map;_vMap=void 0;has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;let e=this.kvMap.get(n);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(n,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,e){if(this.kvMap.has(n)){let r=this.kvMap.get(n);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,r]of this.kvMap)if(n(r,e),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),n(r,e)}}};function nR(t,n,e,r,o,i,s,a){Kt("NgControlFlow");let c=I(),l=le(),u=pt(l.consts,i);return Jo(c,l,t,n,e,r,o,u,256,s,a),em}function em(t,n,e,r,o,i,s,a){Kt("NgControlFlow");let c=I(),l=le(),u=pt(l.consts,i);return Jo(c,l,t,n,e,r,o,u,512,s,a),em}function rR(t,n){Kt("NgControlFlow");let e=I(),r=Vn(),o=e[r]!==ye?e[r]:-1,i=o!==-1?yl(e,de+o):void 0,s=0;if(at(e,r,t)){let a=M(null);try{if(i!==void 0&&ED(i,s),t!==-1){let c=de+t,l=yl(e,c),u=cp(e[A],c),d=CD(l,u,e),h=Vs(e,u,n,{dehydratedView:d});Bs(l,h,s,Qo(u,d))}}finally{M(a)}}else if(i!==void 0){let a=DD(i,s);a!==void 0&&(a[ge]=n)}}var ip=class{lContainer;$implicit;$index;constructor(n,e,r){this.lContainer=n,this.$implicit=e,this.$index=r}get $count(){return this.lContainer.length-ve}};function oR(t){return t}function iR(t,n){return n}var sp=class{hasEmptyBlock;trackByFn;liveCollection;constructor(n,e,r){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=r}};function sR(t,n,e,r,o,i,s,a,c,l,u,d,h){Kt("NgControlFlow");let p=I(),m=le(),_=c!==void 0,D=I(),C=a?s.bind(D[Ke][ge]):s,z=new sp(_,C);D[de+t]=z,Jo(p,m,t+1,n,e,r,o,pt(m.consts,i),256),_&&Jo(p,m,t+2,c,l,u,d,pt(m.consts,h),512)}var ap=class extends rp{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(n,e,r){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=r}get length(){return this.lContainer.length-ve}at(n){return this.getLView(n)[ge].$implicit}attach(n,e){let r=e[qr];this.needsIndexUpdate||=n!==this.length,Bs(this.lContainer,e,n,Qo(this.templateTNode,r)),cR(this.lContainer,n)}detach(n){return this.needsIndexUpdate||=n!==this.length-1,lR(this.lContainer,n),uR(this.lContainer,n)}create(n,e){let r=ul(this.lContainer,this.templateTNode.tView.ssrId);return Vs(this.hostLView,this.templateTNode,new ip(this.lContainer,e,n),{dehydratedView:r})}destroy(n){Al(n[A],n)}updateValue(n,e){this.getLView(n)[ge].$implicit=e}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n0){let i=r[Pn];ax(i,o),oo.delete(r[Ln]),o.detachedLeaveAnimationFns=void 0}}function lR(t,n){if(t.length<=ve)return;let e=ve+n,r=t[e],o=r?r[mr]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function uR(t,n){return As(t,n)}function dR(t,n){return DD(t,n)}function cp(t,n){return Vc(t,n)}function nE(t,n,e){let r=I(),o=Vn();if(at(r,o,n)){let i=le(),s=to();aD(s,r,t,n,r[se],e)}return nE}function lp(t,n,e,r,o){Ol(n,t,e,o?"class":"style",r)}function bl(t,n,e,r){let o=I(),i=o[A],s=t+de,a=i.firstCreatePass?Up(s,o,2,n,Fp,Hc(),e,r):i.data[s];if(mn(a)){let c=o[Ht].tracingService;if(c&&c.componentCreate){let l=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(kD(l),()=>(Qb(t,n,o,a,r),bl))}}return Qb(t,n,o,a,r),bl}function Qb(t,n,e,r,o){if(Pp(r,e,t,n,rE),Ho(r)){let i=e[A];Nl(i,e,r),vp(i,r,e)}o!=null&&js(e,r)}function tm(){let t=le(),n=Me(),e=Lp(n);return t.firstCreatePass&&Hp(t,e),oh(e)&&ih(),nh(),e.classesWithoutHost!=null&<(e)&&lp(t,e,I(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&jT(e)&&lp(t,e,I(),e.stylesWithoutHost,!1),tm}function zl(t,n,e,r){return bl(t,n,e,r),tm(),zl}function ai(t,n,e,r){let o=I(),i=o[A],s=t+de,a=i.firstCreatePass?dA(s,i,2,n,e,r):i.data[s];return Pp(a,o,t,n,rE),r!=null&&js(o,a),ai}function ci(){let t=Me(),n=Lp(t);return oh(n)&&ih(),nh(),ci}function Gn(t,n,e,r){return ai(t,n,e,r),ci(),Gn}var rE=(t,n,e,r,o)=>(bs(!0),V_(n[se],r,fh()));function nm(t,n,e){let r=I(),o=r[A],i=t+de,s=o.firstCreatePass?Up(i,r,8,"ng-container",Fp,Hc(),n,e):o.data[i];if(Pp(s,r,t,"ng-container",fR),Ho(s)){let a=r[A];Nl(a,r,s),vp(a,s,r)}return e!=null&&js(r,s),nm}function rm(){let t=le(),n=Me(),e=Lp(n);return t.firstCreatePass&&Hp(t,e),rm}function oE(t,n,e){return nm(t,n,e),rm(),oE}var fR=(t,n,e,r,o)=>(bs(!0),N0(n[se],""));function hR(){return I()}function iE(t,n,e){let r=I(),o=Vn();if(at(r,o,n)){let i=le(),s=to();cD(s,r,t,n,r[se],e)}return iE}var ws=void 0;function pR(t){let n=Math.floor(Math.abs(t)),e=t.toString().replace(/^[^.]*\.?/,"").length;return n===1&&e===0?1:5}var mR=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["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"]],ws,[["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"]],ws,[["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\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",ws,ws,ws],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",pR],Ch=Object.create(null);function ct(t){let n=gR(t),e=Xb(n);if(e)return e;let r=n.split("-")[0];if(e=Xb(r),e)return e;if(r==="en")return mR;throw new b(701,!1)}function Xb(t){if(!(t in Ch)){let n=we.ng&&we.ng.common&&we.ng.common.locales&&we.ng.common.locales[t];return n!==void 0&&(Ch[t]=n),n}return Ch[t]}var be=(function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t})(be||{});function gR(t){return t.toLowerCase().replace(/_/g,"-")}var $s="en-US";var vR=$s;function sE(t){typeof t=="string"&&(vR=t.toLowerCase().replace(/_/g,"-"))}function Qt(t,n,e){let r=I(),o=le(),i=Me();return cE(o,r,r[se],i,t,n,e),Qt}function aE(t,n,e){let r=I(),o=le(),i=Me();return(i.type&3||e)&&ND(i,o,r,e,r[se],t,n,rl(i,r,n)),aE}function cE(t,n,e,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=rl(r,n,i),ND(r,t,n,s,e,o,i,c)&&(a=!1)),a){let l=r.outputs?.[o],u=r.hostDirectiveOutputs?.[o];if(u&&u.length)for(let d=0;d>17&32767}function wR(t){return(t&2)==2}function CR(t,n){return t&131071|n<<17}function up(t){return t|2}function ei(t){return(t&131068)>>2}function Ih(t,n){return t&-131069|n<<2}function IR(t){return(t&1)===1}function dp(t){return t|1}function SR(t,n,e,r,o,i){let s=i?n.classBindings:n.styleBindings,a=io(s),c=ei(s);t[r]=e;let l=!1,u;if(Array.isArray(e)){let d=e;u=d[1],(u===null||jo(d,u)>0)&&(l=!0)}else u=e;if(o)if(c!==0){let h=io(t[a+1]);t[r+1]=Xc(h,a),h!==0&&(t[h+1]=Ih(t[h+1],r)),t[a+1]=CR(t[a+1],r)}else t[r+1]=Xc(a,0),a!==0&&(t[a+1]=Ih(t[a+1],r)),a=r;else t[r+1]=Xc(c,0),a===0?a=r:t[c+1]=Ih(t[c+1],r),c=r;l&&(t[r+1]=up(t[r+1])),Jb(t,u,r,!0),Jb(t,u,r,!1),MR(n,u,t,r,i),s=Xc(a,c),i?n.classBindings=s:n.styleBindings=s}function MR(t,n,e,r,o){let i=o?t.residualClasses:t.residualStyles;i!=null&&typeof n=="string"&&jo(i,n)>=0&&(e[r+1]=dp(e[r+1]))}function Jb(t,n,e,r){let o=t[e+1],i=n===null,s=r?io(o):ei(o),a=!1;for(;s!==0&&(a===!1||i);){let c=t[s],l=t[s+1];TR(c,n)&&(a=!0,t[s+1]=r?dp(l):up(l)),s=r?io(l):ei(l)}a&&(t[e+1]=r?up(o):dp(o))}function TR(t,n){return t===null||n==null||(Array.isArray(t)?t[1]:t)===n?!0:Array.isArray(t)&&typeof n=="string"?jo(t,n)>=0:!1}var Wt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function xR(t){return t.substring(Wt.key,Wt.keyEnd)}function AR(t){return RR(t),dE(t,fE(t,0,Wt.textEnd))}function dE(t,n){let e=Wt.textEnd;return e===n?-1:(n=Wt.keyEnd=NR(t,Wt.key=n,e),fE(t,n,e))}function RR(t){Wt.key=0,Wt.keyEnd=0,Wt.value=0,Wt.valueEnd=0,Wt.textEnd=t.length}function fE(t,n,e){for(;n32;)n++;return n}function im(t,n,e){return hE(t,n,e,!1),im}function Xe(t,n){return hE(t,n,null,!0),Xe}function zs(t){kR(BR,OR,t,!0)}function OR(t,n){for(let e=AR(n);e>=0;e=dE(n,e))Pc(t,xR(n),!0)}function hE(t,n,e,r){let o=I(),i=le(),s=eo(2);if(i.firstUpdatePass&&mE(i,t,s,r),n!==ye&&at(o,s,n)){let a=i.data[st()];gE(i,a,o,o[se],t,o[s+1]=HR(n,e),r,s)}}function kR(t,n,e,r){let o=le(),i=eo(2);o.firstUpdatePass&&mE(o,null,i,r);let s=I();if(e!==ye&&at(s,i,e)){let a=o.data[st()];if(vE(a,r)&&!pE(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(e=Ac(c,e||"")),lp(o,a,s,e,r)}else UR(o,a,s,s[se],s[i+1],s[i+1]=VR(t,n,e),r,i)}}function pE(t,n){return n>=t.expandoStartIndex}function mE(t,n,e,r){let o=t.data;if(o[e+1]===null){let i=o[st()],s=pE(t,e);vE(i,r)&&n===null&&!s&&(n=!1),n=FR(o,i,n,r),SR(o,i,n,e,s,r)}}function FR(t,n,e,r){let o=ib(t),i=r?n.residualClasses:n.residualStyles;if(o===null)(r?n.classBindings:n.styleBindings)===0&&(e=Sh(null,t,n,e,r),e=Ns(e,n.attrs,r),i=null);else{let s=n.directiveStylingLast;if(s===-1||t[s]!==o)if(e=Sh(o,t,n,e,r),i===null){let c=PR(t,n,r);c!==void 0&&Array.isArray(c)&&(c=Sh(null,t,n,c[1],r),c=Ns(c,n.attrs,r),LR(t,n,r,c))}else i=jR(t,n,r)}return i!==void 0&&(r?n.residualClasses=i:n.residualStyles=i),e}function PR(t,n,e){let r=e?n.classBindings:n.styleBindings;if(ei(r)!==0)return t[io(r)]}function LR(t,n,e,r){let o=e?n.classBindings:n.styleBindings;t[io(o)]=r}function jR(t,n,e){let r,o=n.directiveEnd;for(let i=1+n.directiveStylingLast;i0;){let c=t[o],l=Array.isArray(c),u=l?c[1]:c,d=u===null,h=e[o+1];h===ye&&(h=d?Ye:void 0);let p=d?Lc(h,r):u===r?h:void 0;if(l&&!_l(p)&&(p=Lc(c,r)),_l(p)&&(a=p,s))return a;let m=t[o+1];o=s?io(m):ei(m)}if(n!==null){let c=i?n.residualClasses:n.residualStyles;c!=null&&(a=Lc(c,r))}return a}function _l(t){return t!==void 0}function HR(t,n){return t==null||t===""||(typeof n=="string"?t=t+n:typeof t=="object"&&(t=cs(vt(t)))),t}function vE(t,n){return(t.flags&(n?8:16))!==0}function $R(t,n=""){let e=I(),r=le(),o=t+de,i=r.firstCreatePass?ni(r,o,1,n,null):r.data[o],s=zR(r,e,i,n);e[o]=s,qc()&&Op(r,e,s,i),zo(i,!1)}var zR=(t,n,e,r)=>(bs(!0),A0(n[se],r));function yE(t,n,e,r=""){return at(t,Vn(),e)?n+Se(e)+r:ye}function GR(t,n,e,r,o,i=""){let s=vs(),a=Xo(t,s,e,o);return eo(2),a?n+Se(e)+r+Se(o)+i:ye}function WR(t,n,e,r,o,i,s,a=""){let c=vs(),l=RD(t,c,e,o,s);return eo(3),l?n+Se(e)+r+Se(o)+i+Se(s)+a:ye}function qR(t,n,e,r,o,i,s,a,c,l=""){let u=vs(),d=zp(t,u,e,o,s,c);return eo(4),d?n+Se(e)+r+Se(o)+i+Se(s)+a+Se(c)+l:ye}function YR(t,n,e,r,o,i,s,a,c,l,u,d,h,p=""){let m=vs(),_=zp(t,m,e,o,s,c);return _=Xo(t,m+4,u,h)||_,eo(6),_?n+Se(e)+r+Se(o)+i+Se(s)+a+Se(c)+l+Se(u)+d+Se(h)+p:ye}function bE(t){return sm("",t),bE}function sm(t,n,e){let r=I(),o=yE(r,t,n,e);return o!==ye&&Gs(r,st(),o),sm}function _E(t,n,e,r,o){let i=I(),s=GR(i,t,n,e,r,o);return s!==ye&&Gs(i,st(),s),_E}function DE(t,n,e,r,o,i,s){let a=I(),c=WR(a,t,n,e,r,o,i,s);return c!==ye&&Gs(a,st(),c),DE}function EE(t,n,e,r,o,i,s,a,c){let l=I(),u=qR(l,t,n,e,r,o,i,s,a,c);return u!==ye&&Gs(l,st(),u),EE}function wE(t,n,e,r,o,i,s,a,c,l,u,d,h){let p=I(),m=YR(p,t,n,e,r,o,i,s,a,c,l,u,d,h);return m!==ye&&Gs(p,st(),m),wE}function Gs(t,n,e){let r=Zf(n,t);R0(t[se],r,e)}function CE(t,n,e){Kp(n)&&(n=n());let r=I(),o=Vn();if(at(r,o,n)){let i=le(),s=to();aD(s,r,t,n,r[se],e)}return CE}function ZR(t,n){let e=Kp(t);return e&&t.set(n),e}function IE(t,n){let e=I(),r=le(),o=Me();return cE(r,e,e[se],o,t,n),IE}function KR(t,n,e=""){return yE(I(),t,n,e)}function QR(t,n,e){let r=gn()+t,o=I();return o[r]===ye?ri(o,r,n(e,o)):AD(o,r)}function t_(t,n,e){let r=le();r.firstCreatePass&&SE(n,r.data,r.blueprint,zt(t),e)}function SE(t,n,e,r,o){if(t=Oe(t),Array.isArray(t))for(let i=0;i>20;if($r(t)||!t.multi){let p=new ro(l,o,E,null),m=Th(c,n,o?u:u+h,d);m===-1?(Ah(cl(a,s),i,c),Mh(i,t,n.length),n.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),e.push(p),s.push(p)):(e[m]=p,s[m]=p)}else{let p=Th(c,n,u+h,d),m=Th(c,n,u,u+h),_=p>=0&&e[p],D=m>=0&&e[m];if(o&&!D||!o&&!_){Ah(cl(a,s),i,c);let C=eN(o?JR:XR,e.length,o,r,l,t);!o&&D&&(e[m].providerFactory=C),Mh(i,t,n.length,0),n.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),e.push(C),s.push(C)}else{let C=ME(e[o?m:p],l,!o&&r);Mh(i,t,p>-1?p:m,C)}!o&&r&&D&&e[m].componentProviders++}}}function Mh(t,n,e,r){let o=$r(n),i=By(n);if(o||i){let c=(i?Oe(n.useClass):n).prototype.ngOnDestroy;if(c){let l=t.destroyHooks||(t.destroyHooks=[]);if(!o&&n.multi){let u=l.indexOf(e);u===-1?l.push(e,[r,c]):l[u+1].push(r,c)}else l.push(e,c)}}}function ME(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function Th(t,n,e,r){for(let o=e;o{e.providersResolver=(r,o)=>t_(r,o?o(t):t,!1),n&&(e.viewProvidersResolver=(r,o)=>t_(r,o?o(n):n,!0))}}function tN(t,n){let e=gn()+t,r=I();return r[e]===ye?ri(r,e,n()):AD(r,e)}function nN(t,n,e){return TE(I(),gn(),t,n,e)}function rN(t,n,e,r){return xE(I(),gn(),t,n,e,r)}function oN(t,n,e,r,o){return AE(I(),gn(),t,n,e,r,o)}function iN(t,n,e,r,o,i,s){return sN(I(),gn(),t,n,e,r,o,i)}function Yl(t,n){let e=t[n];return e===ye?void 0:e}function TE(t,n,e,r,o,i){let s=n+e;return at(t,s,o)?ri(t,s+1,i?r.call(i,o):r(o)):Yl(t,s+1)}function xE(t,n,e,r,o,i,s){let a=n+e;return Xo(t,a,o,i)?ri(t,a+2,s?r.call(s,o,i):r(o,i)):Yl(t,a+2)}function AE(t,n,e,r,o,i,s,a){let c=n+e;return RD(t,c,o,i,s)?ri(t,c+3,a?r.call(a,o,i,s):r(o,i,s)):Yl(t,c+3)}function sN(t,n,e,r,o,i,s,a,c){let l=n+e;return zp(t,l,o,i,s,a)?ri(t,l+4,c?r.call(c,o,i,s,a):r(o,i,s,a)):Yl(t,l+4)}function aN(t,n){let e=le(),r,o=t+de;e.firstCreatePass?(r=cN(n,e.pipeRegistry),e.data[o]=r,r.onDestroy&&(e.destroyHooks??=[]).push(o,r.onDestroy)):r=e.data[o];let i=r.factory||(r.factory=ur(r.type,!0)),s,a=tt(E);try{let c=al(!1),l=i();return al(c),Kf(e,I(),o,l),l}finally{tt(a)}}function cN(t,n){if(n)for(let e=n.length-1;e>=0;e--){let r=n[e];if(t===r.name)return r}}function lN(t,n,e){let r=t+de,o=I(),i=ms(o,r);return am(o,r)?TE(o,gn(),n,i.transform,e,i):i.transform(e)}function uN(t,n,e,r){let o=t+de,i=I(),s=ms(i,o);return am(i,o)?xE(i,gn(),n,s.transform,e,r,s):s.transform(e,r)}function dN(t,n,e,r,o){let i=t+de,s=I(),a=ms(s,i);return am(s,i)?AE(s,gn(),n,a.transform,e,r,o,a):a.transform(e,r,o)}function am(t,n){return t[A].data[n].pure}function fN(t,n){return kl(t,n)}var Dl=class{ngModuleFactory;componentFactories;constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}},cm=(()=>{class t{compileModuleSync(e){return new gl(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let r=this.compileModuleSync(e),o=kf(e),i=W_(o.declarations).reduce((s,a)=>{let c=hn(a);return c&&s.push(new br(c)),s},[]);return new Dl(r,i)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var RE=(()=>{class t{applicationErrorHandler=f(mt);appRef=f(Ge);taskService=f(Bn);ngZone=f(j);zonelessEnabled=f(Ds);tracing=f(Zt,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new G;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(ss):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(f(vh,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let e=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(e);return}this.switchToMicrotaskScheduler(),this.taskService.remove(e)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let e=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})})}notify(e){if(!this.zonelessEnabled&&e===5)return;switch(e){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?mb:ph;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(ss+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.applicationErrorHandler(r)}finally{this.taskService.remove(e),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function hN(){return Kt("NgZoneless"),hr([...lm(),[]])}function lm(){return[{provide:fn,useExisting:RE},{provide:j,useClass:as},{provide:Ds,useValue:!0}]}function pN(){return typeof $localize<"u"&&$localize.locale||$s}var li=new y("",{factory:()=>f(li,{optional:!0,skipSelf:!0})||pN()});var Ws=class{destroyed=!1;listeners=null;errorHandler=f(Ze,{optional:!0});destroyRef=f(Ue);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(n){if(this.destroyed)throw new b(953,!1);return(this.listeners??=[]).push(n),{unsubscribe:()=>{let e=this.listeners?.indexOf(n);e!==void 0&&e!==-1&&this.listeners?.splice(e,1)}}}emit(n){if(this.destroyed){console.warn(St(953,!1));return}if(this.listeners===null)return;let e=M(null);try{for(let r of this.listeners)try{r(n)}catch(o){this.errorHandler?.handleError(o)}}finally{M(e)}}};function Y(t){return wy(t)}function Xt(t,n){return Ji(t,n?.equal)}var mN=t=>t;function um(t,n){if(typeof t=="function"){let e=gf(t,mN,n?.equal);return NE(e,n?.debugName)}else{let e=gf(t.source,t.computation,t.equal);return NE(e,t.debugName)}}function NE(t,n){let e=t[me],r=t;return r.set=o=>Dy(e,o),r.update=o=>Ey(e,o),r.asReadonly=_s.bind(t),r}var Ql=Symbol("InputSignalNode#UNSET"),HE=F(g({},es),{transformFn:void 0,applyValueToInputSignal(t,n){cr(t,n)}});function $E(t,n){let e=Object.create(HE);e.value=t,e.transformFn=n?.transform;function r(){if(On(e),e.value===Ql){let o=null;throw new b(-950,o)}return e.value}return r[me]=e,r}var ui=class{attributeName;constructor(n){this.attributeName=n}__NG_ELEMENT_ID__=()=>ks(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},M5=(()=>{let t=new y("");return t.__NG_ELEMENT_ID__=n=>{let e=Me();if(e===null)throw new b(-204,!1);if(e.type&2)return e.value;if(n&8)return null;throw new b(-204,!1)},t})();function T5(t){return new Ws}function OE(t,n){return $E(t,n)}function SN(t){return $E(Ql,t)}var zE=(OE.required=SN,OE);function kE(t,n){return Yp(n)}function MN(t,n){return Zp(n)}var x5=(kE.required=MN,kE);function A5(t,n){return $D(n)}function FE(t,n){return Yp(n)}function TN(t,n){return Zp(n)}var R5=(FE.required=TN,FE);function GE(t,n){let e=Object.create(HE),r=new Ws;e.value=t;function o(){return On(e),PE(e.value),e.value}return o[me]=e,o.asReadonly=_s.bind(o),o.set=i=>{e.equal(e.value,i)||(cr(e,i),r.emit(i))},o.update=i=>{PE(e.value),o.set(i(e.value))},o.subscribe=r.subscribe.bind(r),o.destroyRef=r.destroyRef,o}function PE(t){if(t===Ql)throw new b(952,!1)}function LE(t,n){return GE(t,n)}function xN(t){return GE(Ql,t)}var N5=(LE.required=xN,LE);var fm=new y(""),AN=new y("");function qs(t){return!t.moduleRef}function RN(t){let n=qs(t)?t.r3Injector:t.moduleRef.injector,e=n.get(j);return e.run(()=>{qs(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let r=n.get(mt),o;if(e.runOutsideAngular(()=>{o=e.onError.subscribe({next:r})}),qs(t)){let i=()=>n.destroy(),s=t.platformInjector.get(fm);s.add(i),n.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>t.moduleRef.destroy(),s=t.platformInjector.get(fm);s.add(i),t.moduleRef.onDestroy(()=>{Ss(t.allPlatformModules,t.moduleRef),o.unsubscribe(),s.delete(i)})}return ON(r,e,()=>{let i=n.get(Bn),s=i.add(),a=n.get(Jp);return a.runInitializers(),a.donePromise.then(()=>{let c=n.get(li,$s);if(sE(c||$s),!n.get(AN,!0))return qs(t)?n.get(Ge):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(qs(t)){let u=n.get(Ge);return t.rootComponent!==void 0&&u.bootstrap(t.rootComponent),u}else return NN?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>{i.remove(s)})})})}var NN;function ON(t,n,e){try{let r=e();return zn(r)?r.catch(o=>{throw n.runOutsideAngular(()=>t(o)),o}):r}catch(r){throw n.runOutsideAngular(()=>t(r)),r}}var Zl=null;function kN(t=[],n){return W.create({name:n,providers:[{provide:hs,useValue:"platform"},{provide:fm,useValue:new Set([()=>Zl=null])},...t]})}function FN(t=[]){if(Zl)return Zl;let n=kN(t);return Zl=n,JD(),PN(n),n}function PN(t){let n=t.get(El,null);Fe(t,()=>{n?.forEach(e=>e())})}var LN=1e4;var O5=LN-1e3;var Jt=(()=>{class t{static __NG_ELEMENT_ID__=jN}return t})();function jN(t){return VN(Me(),I(),(t&16)===16)}function VN(t,n,e){if(mn(t)&&!e){let r=xt(t.index,n);return new yr(r,r)}else if(t.type&175){let r=n[Ke];return new yr(r,n)}return null}var hm=class{supports(n){return $p(n)}create(n){return new pm(n)}},BN=(t,n)=>n,pm=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(n){this._trackByFn=n||BN}forEachItem(n){let e;for(e=this._itHead;e!==null;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,r=this._removalsHead,o=0,i=null;for(;e||r;){let s=!r||e&&e.currentIndex{s=this._trackByFn(o,a),e===null||!Object.is(e.trackById,s)?(e=this._mismatch(e,a,s,o),r=!0):(r&&(e=this._verifyReinsertion(e,a,s,o)),Object.is(e.item,a)||this._addIdentityChange(e,a)),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;n!==null;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;n!==null;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,r,o){let i;return n===null?i=this._itTail:(i=n._prev,this._remove(n)),n=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,i,o)):(n=this._linkedRecords===null?null:this._linkedRecords.get(r,o),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,i,o)):n=this._addAfter(new mm(e,r),i,o)),n}_verifyReinsertion(n,e,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?n=this._reinsertAfter(i,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;n!==null;){let e=n._next;this._addToRemovals(this._unlink(n)),n=e}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(n);let o=n._prevRemoved,i=n._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(n,e,r),this._addToMoves(n,r),n}_moveAfter(n,e,r){return this._unlink(n),this._insertAfter(n,e,r),this._addToMoves(n,r),n}_addAfter(n,e,r){return this._insertAfter(n,e,r),this._additionsTail===null?this._additionsTail=this._additionsHead=n:this._additionsTail=this._additionsTail._nextAdded=n,n}_insertAfter(n,e,r){let o=e===null?this._itHead:e._next;return n._next=o,n._prev=e,o===null?this._itTail=n:o._prev=n,e===null?this._itHead=n:e._next=n,this._linkedRecords===null&&(this._linkedRecords=new Kl),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){this._linkedRecords!==null&&this._linkedRecords.remove(n);let e=n._prev,r=n._next;return e===null?this._itHead=r:e._next=r,r===null?this._itTail=e:r._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=n:this._movesTail=this._movesTail._nextMoved=n),n}_addToRemovals(n){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Kl),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=n:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=n,n}},mm=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(n,e){this.item=n,this.trackById=e}},gm=class{_head=null;_tail=null;add(n){this._head===null?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let r;for(r=this._head;r!==null;r=r._nextDup)if((e===null||e<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){let e=n._prevDup,r=n._nextDup;return e===null?this._head=r:e._nextDup=r,r===null?this._tail=e:r._prevDup=e,this._head===null}},Kl=class{map=new Map;put(n){let e=n.trackById,r=this.map.get(e);r||(r=new gm,this.map.set(e,r)),r.add(n)}get(n,e){let r=n,o=this.map.get(r);return o?o.get(n,e):null}remove(n){let e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function jE(t,n,e){let r=t.previousIndex;if(r===null)return r;let o=0;return e&&r{if(e&&e.key===o)this._maybeAddToChanges(e,r),this._appendAfter=e,e=e._next;else{let i=this._getOrCreateRecordForKey(o,r);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let r=e;r!==null;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){let r=n._prev;return e._next=n,e._prev=r,n._prev=e,r&&(r._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){let o=this._records.get(n);this._maybeAddToChanges(o,e);let i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}let r=new bm(n);return this._records.set(n,r),r.currentValue=e,this._addToAdditions(r),r}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;n!==null;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;n!=null;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){this._additionsHead===null?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){this._changesHead===null?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(r=>e(n[r],r))}},bm=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(n){this.key=n}};function VE(){return new Xl([new hm])}var Xl=(()=>{class t{factories;static \u0275prov=v({token:t,providedIn:"root",factory:VE});constructor(e){this.factories=e}static create(e,r){if(r!=null){let o=r.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let r=f(t,{optional:!0,skipSelf:!0});return t.create(e,r||VE())}}}find(e){let r=this.factories.find(o=>o.supports(e));if(r!=null)return r;throw new b(901,!1)}}return t})();function BE(){return new Em([new vm])}var Em=(()=>{class t{static \u0275prov=v({token:t,providedIn:"root",factory:BE});factories;constructor(e){this.factories=e}static create(e,r){if(r){let o=r.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let r=f(t,{optional:!0,skipSelf:!0});return t.create(e,r||BE())}}}find(e){let r=this.factories.find(o=>o.supports(e));if(r)return r;throw new b(901,!1)}}return t})();var WE=(()=>{class t{constructor(e){}static \u0275fac=function(r){return new(r||t)(w(Ge))};static \u0275mod=Q({type:t});static \u0275inj=q({})}return t})();function qE(t){let{rootComponent:n,appProviders:e,platformProviders:r,platformRef:o}=t;oe(ee.BootstrapApplicationStart);try{let i=o?.injector??FN(r),s=[lm(),vb,...e||[]],a=new Rs({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return RN({r3Injector:a.injector,platformInjector:i,rootComponent:n})}catch(i){return Promise.reject(i)}finally{oe(ee.BootstrapApplicationEnd)}}function ue(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function wm(t,n=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):n}var dm=Symbol("NOT_SET"),YE=new Set,UN=F(g({},es),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:dm,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase(On(l),l.value),l.signal[me]=l,l.registerCleanupFn=u=>(l.cleanup??=new Set).add(u),this.nodes[a]=l,this.hooks[a]=u=>l.phaseFn(u)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){if(this.onDestroyFns!==null)for(let n of this.onDestroyFns)n();super.destroy();for(let n of this.nodes)if(n)try{for(let e of n.cleanup??YE)e()}finally{ar(n)}}};function k5(t,n){let e=n?.injector??f(W),r=e.get(fn),o=e.get(xl),i=e.get(Zt,null,{optional:!0});o.impl??=e.get(Rp);let s=t;typeof s=="function"&&(s={mixedReadWrite:t});let a=e.get(Go,null,{optional:!0}),c=new _m(o.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],a?.view,r,e,i?.snapshot(null));return o.impl.register(c),c}function Jl(t,n){let e=hn(t),r=n.elementInjector||Vo();return new br(e).create(r,n.projectableNodes,n.hostElement,n.environmentInjector,n.directives,n.bindings)}function ZE(t){let n=hn(t);if(!n)return null;let e=new br(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}var KE=null;function bt(){return KE}function Cm(t){KE??=t}var Ys=class{},Wn=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:()=>f(QE),providedIn:"platform"})}return t})(),Im=new y(""),QE=(()=>{class t extends Wn{_location;_history;_doc=f(O);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return bt().getBaseHref(this._doc)}onPopState(e){let r=bt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",e,!1),()=>r.removeEventListener("popstate",e)}onHashChange(e){let r=bt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",e,!1),()=>r.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,r,o){this._history.pushState(e,r,o)}replaceState(e,r,o){this._history.replaceState(e,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function eu(t,n){return t?n?t.endsWith("/")?n.startsWith("/")?t+n.slice(1):t+n:n.startsWith("/")?t+n:`${t}/${n}`:t:n}function XE(t){let n=t.search(/#|\?|$/);return t[n-1]==="/"?t.slice(0,n-1)+t.slice(n):t}function en(t){return t&&t[0]!=="?"?`?${t}`:t}var tn=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:()=>f(nu),providedIn:"root"})}return t})(),tu=new y(""),nu=(()=>{class t extends tn{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,r){super(),this._platformLocation=e,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??f(O).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return eu(this._baseHref,e)}path(e=!1){let r=this._platformLocation.pathname+en(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${r}${o}`:r}pushState(e,r,o,i){let s=this.prepareExternalUrl(o+en(i));this._platformLocation.pushState(e,r,s)}replaceState(e,r,o,i){let s=this.prepareExternalUrl(o+en(i));this._platformLocation.replaceState(e,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(r){return new(r||t)(w(Wn),w(tu,8))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Dn=(()=>{class t{_subject=new x;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let r=this._locationStrategy.getBaseHref();this._basePath=zN(XE(JE(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,r=""){return this.path()==this.normalize(e+en(r))}normalize(e){return t.stripTrailingSlash($N(this._basePath,JE(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,r="",o=null){this._locationStrategy.pushState(o,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+en(r)),o)}replaceState(e,r="",o=null){this._locationStrategy.replaceState(o,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+en(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",r){this._urlChangeListeners.forEach(o=>o(e,r))}subscribe(e,r,o){return this._subject.subscribe({next:e,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=en;static joinWithSlash=eu;static stripTrailingSlash=XE;static \u0275fac=function(r){return new(r||t)(w(tn))};static \u0275prov=v({token:t,factory:()=>HN(),providedIn:"root"})}return t})();function HN(){return new Dn(w(tn))}function $N(t,n){if(!t||!n.startsWith(t))return n;let e=n.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:n}function JE(t){return t.replace(/\/index\.html$/,"")}function zN(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var km=(()=>{class t extends tn{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,r){super(),this._platformLocation=e,r!=null&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(e){let r=eu(this._baseHref,e);return r.length>0?"#"+r:r}pushState(e,r,o,i){let s=this.prepareExternalUrl(o+en(i))||this._platformLocation.pathname;this._platformLocation.pushState(e,r,s)}replaceState(e,r,o,i){let s=this.prepareExternalUrl(o+en(i))||this._platformLocation.pathname;this._platformLocation.replaceState(e,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(r){return new(r||t)(w(Wn),w(tu,8))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();var Fm=(function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t})(Fm||{});var Je=(function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t})(Je||{}),ce=(function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t})(ce||{}),lt=(function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t})(lt||{}),ut={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function iw(t){return ct(t)[be.LocaleId]}function sw(t,n,e){let r=ct(t),o=[r[be.DayPeriodsFormat],r[be.DayPeriodsStandalone]],i=Rt(o,n);return Rt(i,e)}function aw(t,n,e){let r=ct(t),o=[r[be.DaysFormat],r[be.DaysStandalone]],i=Rt(o,n);return Rt(i,e)}function cw(t,n,e){let r=ct(t),o=[r[be.MonthsFormat],r[be.MonthsStandalone]],i=Rt(o,n);return Rt(i,e)}function lw(t,n){let r=ct(t)[be.Eras];return Rt(r,n)}function Zs(t,n){let e=ct(t);return Rt(e[be.DateFormat],n)}function Ks(t,n){let e=ct(t);return Rt(e[be.TimeFormat],n)}function Qs(t,n){let r=ct(t)[be.DateTimeFormat];return Rt(r,n)}function En(t,n){let e=ct(t),r=e[be.NumberSymbols][n];if(typeof r>"u"){if(n===ut.CurrencyDecimal)return e[be.NumberSymbols][ut.Decimal];if(n===ut.CurrencyGroup)return e[be.NumberSymbols][ut.Group]}return r}function uw(t,n){return ct(t)[be.NumberFormats][n]}function dw(t){if(!t[be.ExtraData])throw new b(2303,!1)}function fw(t){let n=ct(t);return dw(n),(n[be.ExtraData][2]||[]).map(r=>typeof r=="string"?Sm(r):[Sm(r[0]),Sm(r[1])])}function hw(t,n,e){let r=ct(t);dw(r);let o=[r[be.ExtraData][0],r[be.ExtraData][1]],i=Rt(o,n)||[];return Rt(i,e)||[]}function Rt(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new b(2304,!1)}function Sm(t){let[n,e]=t.split(":");return{hours:+n,minutes:+e}}var GN=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ru={},WN=/((?:[^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]*)/,qN=256;function pw(t,n,e,r){let o=rO(t);YN(n),n=qn(e,n)||n;let s=[],a;for(;n;)if(a=WN.exec(n),a){s=s.concat(a.slice(1));let u=s.pop();if(!u)break;n=u}else{s.push(n);break}let c=o.getTimezoneOffset();r&&(c=gw(r,c),o=nO(o,r));let l="";return s.forEach(u=>{let d=eO(u);l+=d?d(o,e,c):u==="''"?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function YN(t){if(t.length>qN)throw new b(2300,!1)}function cu(t,n,e){let r=new Date(0);return r.setFullYear(t,n,e),r.setHours(0,0,0),r}function qn(t,n){let e=iw(t);if(ru[e]??={},ru[e][n])return ru[e][n];let r="";switch(n){case"shortDate":r=Zs(t,lt.Short);break;case"mediumDate":r=Zs(t,lt.Medium);break;case"longDate":r=Zs(t,lt.Long);break;case"fullDate":r=Zs(t,lt.Full);break;case"shortTime":r=Ks(t,lt.Short);break;case"mediumTime":r=Ks(t,lt.Medium);break;case"longTime":r=Ks(t,lt.Long);break;case"fullTime":r=Ks(t,lt.Full);break;case"short":let o=qn(t,"shortTime"),i=qn(t,"shortDate");r=ou(Qs(t,lt.Short),[o,i]);break;case"medium":let s=qn(t,"mediumTime"),a=qn(t,"mediumDate");r=ou(Qs(t,lt.Medium),[s,a]);break;case"long":let c=qn(t,"longTime"),l=qn(t,"longDate");r=ou(Qs(t,lt.Long),[c,l]);break;case"full":let u=qn(t,"fullTime"),d=qn(t,"fullDate");r=ou(Qs(t,lt.Full),[u,d]);break}return r&&(ru[e][n]=r),r}function ou(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,r){return n!=null&&r in n?n[r]:e})),t}function nn(t,n,e="-",r,o){let i="";(t<0||o&&t<=0)&&(o?t=-t+1:(t=-t,i=e));let s=String(t);for(;s.length0||a>-e)&&(a+=e),t===3)a===0&&e===-12&&(a=12);else if(t===6)return ZN(a,n);let c=En(s,ut.MinusSign);return nn(a,n,c,r,o)}}function KN(t,n){switch(t){case 0:return n.getFullYear();case 1:return n.getMonth();case 2:return n.getDate();case 3:return n.getHours();case 4:return n.getMinutes();case 5:return n.getSeconds();case 6:return n.getMilliseconds();case 7:return n.getDay();default:throw new b(2301,!1)}}function fe(t,n,e=Je.Format,r=!1){return function(o,i){return QN(o,i,t,n,e,r)}}function QN(t,n,e,r,o,i){switch(e){case 2:return cw(n,o,r)[t.getMonth()];case 1:return aw(n,o,r)[t.getDay()];case 0:let s=t.getHours(),a=t.getMinutes();if(i){let l=fw(n),u=hw(n,o,r),d=l.findIndex(h=>{if(Array.isArray(h)){let[p,m]=h,_=s>=p.hours&&a>=p.minutes,D=s0?Math.floor(o/60):Math.ceil(o/60);switch(t){case 0:return(o>=0?"+":"")+nn(s,2,i)+nn(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+nn(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+nn(s,2,i)+":"+nn(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+nn(s,2,i)+":"+nn(Math.abs(o%60),2,i);default:throw new b(2310,!1)}}}var XN=0,au=4;function JN(t){let n=cu(t,XN,1).getDay();return cu(t,0,1+(n<=au?au:au+7)-n)}function mw(t){let n=t.getDay(),e=n===0?-3:au-n;return cu(t.getFullYear(),t.getMonth(),t.getDate()+e)}function Mm(t,n=!1){return function(e,r){let o;if(n){let i=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();o=1+Math.floor((s+i)/7)}else{let i=mw(e),s=JN(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return nn(o,t,En(r,ut.MinusSign))}}function su(t,n=!1){return function(e,r){let i=mw(e).getFullYear();return nn(i,t,En(r,ut.MinusSign),n)}}var Tm={};function eO(t){if(Tm[t])return Tm[t];let n;switch(t){case"G":case"GG":case"GGG":n=fe(3,ce.Abbreviated);break;case"GGGG":n=fe(3,ce.Wide);break;case"GGGGG":n=fe(3,ce.Narrow);break;case"y":n=xe(0,1,0,!1,!0);break;case"yy":n=xe(0,2,0,!0,!0);break;case"yyy":n=xe(0,3,0,!1,!0);break;case"yyyy":n=xe(0,4,0,!1,!0);break;case"Y":n=su(1);break;case"YY":n=su(2,!0);break;case"YYY":n=su(3);break;case"YYYY":n=su(4);break;case"M":case"L":n=xe(1,1,1);break;case"MM":case"LL":n=xe(1,2,1);break;case"MMM":n=fe(2,ce.Abbreviated);break;case"MMMM":n=fe(2,ce.Wide);break;case"MMMMM":n=fe(2,ce.Narrow);break;case"LLL":n=fe(2,ce.Abbreviated,Je.Standalone);break;case"LLLL":n=fe(2,ce.Wide,Je.Standalone);break;case"LLLLL":n=fe(2,ce.Narrow,Je.Standalone);break;case"w":n=Mm(1);break;case"ww":n=Mm(2);break;case"W":n=Mm(1,!0);break;case"d":n=xe(2,1);break;case"dd":n=xe(2,2);break;case"c":case"cc":n=xe(7,1);break;case"ccc":n=fe(1,ce.Abbreviated,Je.Standalone);break;case"cccc":n=fe(1,ce.Wide,Je.Standalone);break;case"ccccc":n=fe(1,ce.Narrow,Je.Standalone);break;case"cccccc":n=fe(1,ce.Short,Je.Standalone);break;case"E":case"EE":case"EEE":n=fe(1,ce.Abbreviated);break;case"EEEE":n=fe(1,ce.Wide);break;case"EEEEE":n=fe(1,ce.Narrow);break;case"EEEEEE":n=fe(1,ce.Short);break;case"a":case"aa":case"aaa":n=fe(0,ce.Abbreviated);break;case"aaaa":n=fe(0,ce.Wide);break;case"aaaaa":n=fe(0,ce.Narrow);break;case"b":case"bb":case"bbb":n=fe(0,ce.Abbreviated,Je.Standalone,!0);break;case"bbbb":n=fe(0,ce.Wide,Je.Standalone,!0);break;case"bbbbb":n=fe(0,ce.Narrow,Je.Standalone,!0);break;case"B":case"BB":case"BBB":n=fe(0,ce.Abbreviated,Je.Format,!0);break;case"BBBB":n=fe(0,ce.Wide,Je.Format,!0);break;case"BBBBB":n=fe(0,ce.Narrow,Je.Format,!0);break;case"h":n=xe(3,1,-12);break;case"hh":n=xe(3,2,-12);break;case"H":n=xe(3,1);break;case"HH":n=xe(3,2);break;case"m":n=xe(4,1);break;case"mm":n=xe(4,2);break;case"s":n=xe(5,1);break;case"ss":n=xe(5,2);break;case"S":n=xe(6,1);break;case"SS":n=xe(6,2);break;case"SSS":n=xe(6,3);break;case"Z":case"ZZ":case"ZZZ":n=iu(0);break;case"ZZZZZ":n=iu(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=iu(1);break;case"OOOO":case"ZZZZ":case"zzzz":n=iu(2);break;default:return null}return Tm[t]=n,n}function gw(t,n){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function tO(t,n){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+n),t}function nO(t,n,e){let o=t.getTimezoneOffset(),i=gw(n,o);return tO(t,-1*(i-o))}function rO(t){if(ew(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[o,i=1,s=1]=t.split("-").map(a=>+a);return cu(o,i-1,s)}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let r;if(r=t.match(GN))return oO(r)}let n=new Date(t);if(!ew(n))throw new b(2311,!1);return n}function oO(t){let n=new Date(0),e=0,r=0,o=t[8]?n.setUTCFullYear:n.setFullYear,i=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),r=Number(t[9]+t[11])),o.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-e,a=Number(t[5]||0)-r,c=Number(t[6]||0),l=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return i.call(n,s,a,c,l),n}function ew(t){return t instanceof Date&&!isNaN(t.valueOf())}var iO=/^(\d+)?\.((\d+)(-(\d+))?)?$/,tw=22,lu=".",Xs="0",sO=";",aO=",",xm="#";function cO(t,n,e,r,o,i,s=!1){let a="",c=!1;if(!isFinite(t))a=En(e,ut.Infinity);else{let l=dO(t);s&&(l=uO(l));let u=n.minInt,d=n.minFrac,h=n.maxFrac;if(i){let z=i.match(iO);if(z===null)throw new b(2306,!1);let De=z[1],pe=z[3],er=z[5];De!=null&&(u=Am(De)),pe!=null&&(d=Am(pe)),er!=null?h=Am(er):pe!=null&&d>h&&(h=d);let Tn=100;if(u>Tn||d>Tn||h>Tn)throw new b(2306,!1)}fO(l,d,h);let p=l.digits,m=l.integerLen,_=l.exponent,D=[];for(c=p.every(z=>!z);m0?D=p.splice(m,p.length):(D=p,p=[0]);let C=[];for(p.length>=n.lgSize&&C.unshift(p.splice(-n.lgSize,p.length).join(""));p.length>n.gSize;)C.unshift(p.splice(-n.gSize,p.length).join(""));p.length&&C.unshift(p.join("")),a=C.join(En(e,r)),D.length&&(a+=En(e,o)+D.join("")),_&&(a+=En(e,ut.Exponential)+"+"+_)}return t<0&&!c?a=n.negPre+a+n.negSuf:a=n.posPre+a+n.posSuf,a}function vw(t,n,e){let r=uw(n,Fm.Decimal),o=lO(r,En(n,ut.MinusSign));return cO(t,o,n,ut.Group,ut.Decimal,e)}function lO(t,n="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=t.split(sO),o=r[0],i=r[1],s=o.indexOf(lu)!==-1?o.split(lu):[o.substring(0,o.lastIndexOf(Xs)+1),o.substring(o.lastIndexOf(Xs)+1)],a=s[0],c=s[1]||"";e.posPre=a.substring(0,a.indexOf(xm));for(let u=0;u-1&&(n=n.replace(lu,"")),(i=n.search(/e/i))>0?(o<0&&(o=i),o+=+n.slice(i+1),n=n.substring(0,i)):o<0&&(o=n.length),i=0;n.charAt(i)===Xs;i++);if(i===(a=n.length))r=[0],o=1;else{for(a--;n.charAt(a)===Xs;)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(n.charAt(i))}return o>tw&&(r=r.splice(0,tw-1),e=o-1,o=1),{digits:r,exponent:e,integerLen:o}}function fO(t,n,e){if(n>e)throw new b(2307,!1);let r=t.digits,o=r.length-t.integerLen,i=Math.min(Math.max(n,o),e),s=i+t.integerLen,a=r[s];if(s>0){r.splice(Math.max(t.integerLen,s));for(let d=s;d=5)if(s-1<0){for(let d=0;d>s;d--)r.unshift(0),t.integerLen++;r.unshift(1),t.integerLen++}else r[s-1]++;for(;o=l?m.pop():c=!1),h>=10?1:0},0);u&&(r.unshift(u),t.integerLen++)}function Am(t){let n=parseInt(t);if(isNaN(n))throw new b(2305,!1);return n}var Rm=/\s+/,nw=[],hO=(()=>{class t{_ngEl;_renderer;initialClasses=nw;rawClass;stateMap=new Map;constructor(e,r){this._ngEl=e,this._renderer=r}set klass(e){this.initialClasses=e!=null?e.trim().split(Rm):nw}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(Rm):e}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let r of e)this._updateState(r,!0);else if(e!=null)for(let r of Object.keys(e))this._updateState(r,!!e[r]);this._applyStateDiff()}_updateState(e,r){let o=this.stateMap.get(e);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(e,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let r=e[0],o=e[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(e,r){e=e.trim(),e.length>0&&e.split(Rm).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(r){return new(r||t)(E($),E(Le))};static \u0275dir=T({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var uu=class{$implicit;ngForOf;index;count;constructor(n,e,r,o){this.$implicit=n,this.ngForOf=e,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},yw=(()=>{class t{_viewContainer;_template;_differs;set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(e,r,o){this._viewContainer=e,this._template=r,this._differs=o}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){let e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){let r=this._viewContainer;e.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new uu(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),rw(a,o)}});for(let o=0,i=r.length;o{let i=r.get(o.currentIndex);rw(i,o)})}static ngTemplateContextGuard(e,r){return!0}static \u0275fac=function(r){return new(r||t)(E(Qe),E(gt),E(Xl))};static \u0275dir=T({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function rw(t,n){t.context.$implicit=n.item}var pO=(()=>{class t{_viewContainer;_context=new du;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,r){this._viewContainer=e,this._thenTemplateRef=r}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){ow(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){ow(e,!1),this._elseTemplateRef=e,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 ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(e,r){return!0}static \u0275fac=function(r){return new(r||t)(E(Qe),E(gt))};static \u0275dir=T({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),du=class{$implicit=null;ngIf=null};function ow(t,n){if(t&&!t.createEmbeddedView)throw new b(2020,!1)}var mO=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,r,o){this._ngEl=e,this._differs=r,this._renderer=o}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,r){let[o,i]=e.split("."),s=o.indexOf("-")===-1?void 0:Yt.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,i?`${r}${i}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,o,s)}_applyChanges(e){e.forEachRemovedItem(r=>this._setStyle(r.key,null)),e.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),e.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static \u0275fac=function(r){return new(r||t)(E($),E(Em),E(Le))};static \u0275dir=T({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),gO=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=f(W);constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this._getInjector()})}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):!1,get:(e,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static \u0275fac=function(r){return new(r||t)(E(Qe))};static \u0275dir=T({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[$e]})}return t})();function fu(t,n){return new b(2100,!1)}var Nm=class{createSubscription(n,e,r){return Y(()=>n.subscribe({next:e,error:r}))}dispose(n){Y(()=>n.unsubscribe())}},Om=class{createSubscription(n,e,r){return n.then(o=>e?.(o),o=>r?.(o)),{unsubscribe:()=>{e=null,r=null}}}dispose(n){n.unsubscribe()}},vO=new Om,yO=new Nm,bO=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=f(mt);constructor(e){this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,r=>this._updateLatestValue(e,r),r=>this.applicationErrorHandler(r))}_selectStrategy(e){if(zn(e))return vO;if(Ul(e))return yO;throw fu(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,r){e===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(r){return new(r||t)(E(Jt,16))};static \u0275pipe=ii({name:"async",type:t,pure:!1})}return t})();var _O=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,DO=(()=>{class t{transform(e){return e==null?null:(EO(t,e),e.replace(_O,r=>r[0].toUpperCase()+r.slice(1).toLowerCase()))}static \u0275fac=function(r){return new(r||t)};static \u0275pipe=ii({name:"titlecase",type:t,pure:!0})}return t})();function EO(t,n){if(typeof n!="string")throw fu(t,n)}var wO="mediumDate",bw=new y(""),_w=new y(""),CO=(()=>{class t{locale;defaultTimezone;defaultOptions;constructor(e,r,o){this.locale=e,this.defaultTimezone=r,this.defaultOptions=o}transform(e,r,o,i){if(e==null||e===""||e!==e)return null;try{let s=r??this.defaultOptions?.dateFormat??wO,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return pw(e,s,i||this.locale,a)}catch(s){throw fu(t,s.message)}}static \u0275fac=function(r){return new(r||t)(E(li,16),E(bw,24),E(_w,24))};static \u0275pipe=ii({name:"date",type:t,pure:!0})}return t})();var IO=(()=>{class t{_locale;constructor(e){this._locale=e}transform(e,r,o){if(!SO(e))return null;o||=this._locale;try{let i=MO(e);return vw(i,o,r)}catch(i){throw fu(t,i.message)}}static \u0275fac=function(r){return new(r||t)(E(li,16))};static \u0275pipe=ii({name:"number",type:t,pure:!0})}return t})();function SO(t){return!(t==null||t===""||t!==t)}function MO(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new b(2309,!1);return t}var Pm=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=Q({type:t});static \u0275inj=q({})}return t})();function Js(t,n){n=encodeURIComponent(n);for(let e of t.split(";")){let r=e.indexOf("="),[o,i]=r==-1?[e,""]:[e.slice(0,r),e.slice(r+1)];if(o.trim()===n)return decodeURIComponent(i)}return null}var co=class{};var jm="browser";function Dw(t){return t===jm}var Vm=(()=>{class t{static \u0275prov=v({token:t,providedIn:"root",factory:()=>new Lm(f(O),window)})}return t})(),Lm=class{document;window;offset=()=>[0,0];constructor(n,e){this.document=n,this.window=e}setOffset(n){Array.isArray(n)?this.offset=()=>n:this.offset=n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n,e){this.window.scrollTo(F(g({},e),{left:n[0],top:n[1]}))}scrollToAnchor(n,e){let r=TO(this.document,n);r&&(this.scrollToElement(r,e),r.focus({preventScroll:!0}))}setHistoryScrollRestoration(n){try{this.window.history.scrollRestoration=n}catch{console.warn(St(2400,!1))}}scrollToElement(n,e){let r=n.getBoundingClientRect(),o=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(F(g({},e),{left:o-s[0],top:i-s[1]}))}};function TO(t,n){let e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),o=r.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(n)||i.querySelector(`[name="${n}"]`);if(s)return s}o=r.nextNode()}}return null}var ea=class{_doc;constructor(n){this._doc=n}manager},hu=(()=>{class t extends ea{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,o,i){return e.addEventListener(r,o,i),()=>this.removeEventListener(e,r,o,i)}removeEventListener(e,r,o,i){return e.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||t)(w(O))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),gu=new y(""),$m=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,r){this._zone=r,e.forEach(s=>{s.manager=this});let o=e.filter(s=>!(s instanceof hu));this._plugins=o.slice().reverse();let i=e.find(s=>s instanceof hu);i&&this._plugins.push(i)}addEventListener(e,r,o,i){return this._findPluginFor(r).addEventListener(e,r,o,i)}getZone(){return this._zone}_findPluginFor(e){let r=this._eventNameToPlugin.get(e);if(r)return r;if(r=this._plugins.find(i=>i.supports(e)),!r)throw new b(5101,!1);return this._eventNameToPlugin.set(e,r),r}static \u0275fac=function(r){return new(r||t)(w(gu),w(j))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),Bm="ng-app-id";function Ew(t){for(let n of t)n.remove()}function ww(t,n){let e=n.createElement("style");return e.textContent=t,e}function AO(t,n,e,r){let o=t.head?.querySelectorAll(`style[${Bm}="${n}"],link[${Bm}="${n}"]`);if(o)for(let i of o)i.removeAttribute(Bm),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&e.set(i.textContent,{usage:0,elements:[i]})}function Hm(t,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var zm=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,r,o,i={}){this.doc=e,this.appId=r,this.nonce=o,AO(e,r,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,r){for(let o of e)this.addUsage(o,this.inline,ww);r?.forEach(o=>this.addUsage(o,this.external,Hm))}removeStyles(e,r){for(let o of e)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,r,o){let i=r.get(e);i?i.usage++:r.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(e,this.doc)))})}removeUsage(e,r){let o=r.get(e);o&&(o.usage--,o.usage<=0&&(Ew(o.elements),r.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Ew(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(e,ww(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(e,Hm(r,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,r){return this.nonce&&r.setAttribute("nonce",this.nonce),e.appendChild(r)}static \u0275fac=function(r){return new(r||t)(w(O),w(_r),w(ao,8),w(so))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),Um={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Gm=/%COMP%/g;var Iw="%COMP%",RO=`_nghost-${Iw}`,NO=`_ngcontent-${Iw}`,OO=!0,kO=new y("",{factory:()=>OO});function FO(t){return NO.replace(Gm,t)}function PO(t){return RO.replace(Gm,t)}function Sw(t,n){return n.map(e=>e.replace(Gm,t))}var Wm=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(e,r,o,i,s,a,c=null,l=null){this.eventManager=e,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=l,this.defaultRenderer=new ta(e,s,a,this.tracingService)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(e,r);return o instanceof mu?o.applyToHost(e):o instanceof na&&o.applyStyles(),o}getOrCreateRenderer(e,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.tracingService;switch(r.encapsulation){case qt.Emulated:i=new mu(c,l,r,this.appId,u,s,a,d);break;case qt.ShadowDom:return new pu(c,e,r,s,a,this.nonce,d,l);case qt.ExperimentalIsolatedShadowDom:return new pu(c,e,r,s,a,this.nonce,d);default:i=new na(c,l,r,u,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(r){return new(r||t)(w($m),w(zm),w(_r),w(kO),w(O),w(j),w(ao),w(Zt,8))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),ta=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,r,o){this.eventManager=n,this.doc=e,this.ngZone=r,this.tracingService=o}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(Um[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(Cw(n)?n.content:n).appendChild(e)}insertBefore(n,e,r){n&&(Cw(n)?n.content:n).insertBefore(e,r)}removeChild(n,e){e.remove()}selectRootElement(n,e){let r=typeof n=="string"?this.doc.querySelector(n):n;if(!r)throw new b(-5104,!1);return e||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,r,o){if(o){e=o+":"+e;let i=Um[o];i?n.setAttributeNS(i,e,r):n.setAttribute(e,r)}else n.setAttribute(e,r)}removeAttribute(n,e,r){if(r){let o=Um[r];o?n.removeAttributeNS(o,e):n.removeAttribute(`${r}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,r,o){o&(Yt.DashCase|Yt.Important)?n.style.setProperty(e,r,o&Yt.Important?"important":""):n.style[e]=r}removeStyle(n,e,r){r&Yt.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,r){n!=null&&(n[e]=r)}setValue(n,e){n.nodeValue=e}listen(n,e,r,o){if(typeof n=="string"&&(n=bt().getGlobalEventTarget(this.doc,n),!n))throw new b(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(n,e,i)),this.eventManager.addEventListener(n,e,i,o)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;n(e)===!1&&e.preventDefault()}}};function Cw(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var pu=class extends ta{hostEl;sharedStylesHost;shadowRoot;constructor(n,e,r,o,i,s,a,c){super(n,o,i,a),this.hostEl=e,this.sharedStylesHost=c,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let l=r.styles;l=Sw(r.id,l);for(let d of l){let h=document.createElement("style");s&&h.setAttribute("nonce",s),h.textContent=d,this.shadowRoot.appendChild(h)}let u=r.getExternalStyles?.();if(u)for(let d of u){let h=Hm(d,o);s&&h.setAttribute("nonce",s),this.shadowRoot.appendChild(h)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,r){return super.insertBefore(this.nodeOrShadowRoot(n),e,r)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},na=class extends ta{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,r,o,i,s,a,c){super(n,i,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let l=r.styles;this.styles=c?Sw(c,l):l,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&oo.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},mu=class extends na{contentAttr;hostAttr;constructor(n,e,r,o,i,s,a,c){let l=o+"-"+r.id;super(n,e,r,i,s,a,c,l),this.contentAttr=FO(l),this.hostAttr=PO(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let r=super.createElement(n,e);return super.setAttribute(r,this.contentAttr,""),r}};var vu=class t extends Ys{supportsDOMEvents=!0;static makeCurrent(){Cm(new t)}onAndCancel(n,e,r,o){return n.addEventListener(e,r,o),()=>{n.removeEventListener(e,r,o)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=LO();return e==null?null:jO(e)}resetBaseElement(){ra=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return Js(document.cookie,n)}},ra=null;function LO(){return ra=ra||document.head.querySelector("base"),ra?ra.getAttribute("href"):null}function jO(t){return new URL(t,document.baseURI).pathname}var yu=class{addToWindow(n){we.getAngularTestability=(r,o=!0)=>{let i=n.findTestabilityInTree(r,o);if(i==null)throw new b(5103,!1);return i},we.getAllAngularTestabilities=()=>n.getAllTestabilities(),we.getAllAngularRootElements=()=>n.getAllRootElements();let e=r=>{let o=we.getAllAngularTestabilities(),i=o.length,s=function(){i--,i==0&&r()};o.forEach(a=>{a.whenStable(s)})};we.frameworkStabilizers||(we.frameworkStabilizers=[]),we.frameworkStabilizers.push(e)}findTestabilityInTree(n,e,r){if(e==null)return null;let o=n.getTestability(e);return o??(r?bt().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},VO=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),Mw=["alt","control","meta","shift"],BO={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},UO={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Tw=(()=>{class t extends ea{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,r,o,i){let s=t.parseEventName(r),a=t.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>bt().onAndCancel(e,s.domEventName,a,i))}static parseEventName(e){let r=e.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=t._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Mw.forEach(l=>{let u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(e,r){let o=BO[e.key]||e.key,i="";return r.indexOf("code.")>-1&&(o=e.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Mw.forEach(s=>{if(s!==o){let a=UO[s];a(e)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(e,r,o){return i=>{t.matchEventFullKeyCode(i,e)&&o.runGuarded(()=>r(i))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(r){return new(r||t)(w(O))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();async function HO(t,n,e){let r=g({rootComponent:t},$O(n,e));return qE(r)}function $O(t,n){return{platformRef:n?.platformRef,appProviders:[...xw,...t?.providers??[]],platformProviders:qO}}function zO(){vu.makeCurrent()}function GO(){return new Ze}function WO(){return mp(document),document}var qO=[{provide:so,useValue:jm},{provide:El,useValue:zO,multi:!0},{provide:O,useFactory:WO}];var YO=[{provide:Bl,useClass:yu},{provide:Vl,useClass:Hs},{provide:Hs,useClass:Hs}],xw=[{provide:hs,useValue:"root"},{provide:Ze,useFactory:GO},{provide:gu,useClass:hu,multi:!0},{provide:gu,useClass:Tw,multi:!0},Wm,zm,$m,{provide:He,useExisting:Wm},{provide:co,useClass:VO},[]],ZO=(()=>{class t{constructor(){}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Q({type:t});static \u0275inj=q({providers:[...xw,...YO],imports:[Pm,WE]})}return t})();var wn=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(n){n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map,n.split(` -`).forEach(e=>{let r=e.indexOf(":");if(r>0){let o=e.slice(0,r),i=e.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,r)=>{this.addHeaderEntry(r,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,r])=>{this.setHeaderEntries(e,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();let e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init();for(let[e,r]of n.headers.entries())this.headers.set(e,r),this.normalizedNames.set(e,n.normalizedNames.get(e))}clone(n){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){let e=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(n.name,e);let o=n.op==="a"?(this.headers.get(e)||[]).slice():[];o.push(...r),this.headers.set(e,o);break;case"d":let i=n.value;if(i===void 0)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=Array.isArray(i)?i:[i],a=this.headers.get(e);if(!a)return;a=a.filter(c=>s.indexOf(c)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}addHeaderEntry(n,e){let r=n.toLowerCase();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(e):this.headers.set(r,[e])}setHeaderEntries(n,e){let r=(Array.isArray(e)?e:[e]).map(i=>i.toString()),o=n.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(n,o)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}};var _u=class{map=new Map;set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}},Du=class{encodeKey(n){return Aw(n)}encodeValue(n){return Aw(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function KO(t,n){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,i)),n.decodeValue(o.slice(i+1))],c=e.get(s)||[];c.push(a),e.set(s,c)}),e}var QO=/%(\d[a-f0-9])/gi,XO={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Aw(t){return encodeURIComponent(t).replace(QO,(n,e)=>XO[e]??n)}function bu(t){return`${t}`}var Yn=class t{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new Du,n.fromString){if(n.fromObject)throw new b(2805,!1);this.map=KO(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let r=n.fromObject[e],o=Array.isArray(r)?r.map(bu):[bu(r)];this.map.set(e,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();let e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){let e=[];return Object.keys(n).forEach(r=>{let o=n[r];Array.isArray(o)?o.forEach(i=>{e.push({param:r,value:i,op:"a"})}):e.push({param:r,value:o,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{let e=this.encoder.encodeKey(n);return this.map.get(n).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>n!=="").join("&")}clone(n){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){if(this.map===null&&(this.map=new Map),this.cloneFrom!==null){this.cloneFrom.init();for(let[n,e]of this.cloneFrom.map.entries())this.map.set(n,e);this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=n.op==="a"?(this.map.get(n.param)||[]).slice():[];e.push(bu(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let r=(this.map.get(n.param)||[]).slice(),o=r.indexOf(bu(n.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null}}};function JO(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Rw(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Nw(t){return typeof Blob<"u"&&t instanceof Blob}function Ow(t){return typeof FormData<"u"&&t instanceof FormData}function ek(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var kw="Content-Type",Fw="Accept",Lw="text/plain",jw="application/json",tk=`${jw}, ${Lw}, */*`,di=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(n,e,r,o){this.url=e,this.method=n.toUpperCase();let i;if(JO(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new b(2822,"");this.timeout=i.timeout}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer!==void 0&&(this.referrer=i.referrer),i.referrerPolicy&&(this.referrerPolicy=i.referrerPolicy),this.transferCache=i.transferCache}if(this.headers??=new wn,this.context??=new _u,!this.params)this.params=new Yn,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),c=a===-1?"?":aTn.set(Ar,n.setHeaders[Ar]),De)),n.setParams&&(pe=Object.keys(n.setParams).reduce((Tn,Ar)=>Tn.set(Ar,n.setParams[Ar]),pe)),new t(e,r,D,{params:pe,headers:De,context:er,reportProgress:z,responseType:o,withCredentials:C,transferCache:m,keepalive:i,cache:a,priority:s,timeout:_,mode:c,redirect:l,credentials:u,referrer:d,integrity:h,referrerPolicy:p})}},lo=(function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t})(lo||{}),hi=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(n,e=200,r="OK"){this.headers=n.headers||new wn,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||r,this.url=n.url||null,this.redirected=n.redirected,this.responseType=n.responseType,this.ok=this.status>=200&&this.status<300}},Eu=class t extends hi{constructor(n={}){super(n)}type=lo.ResponseHeader;clone(n={}){return new t({headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},oa=class t extends hi{body;constructor(n={}){super(n),this.body=n.body!==void 0?n.body:null}type=lo.Response;clone(n={}){return new t({body:n.body!==void 0?n.body:this.body,headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0,redirected:n.redirected??this.redirected,responseType:n.responseType??this.responseType})}},fi=class extends hi{name="HttpErrorResponse";message;error;ok=!1;constructor(n){super(n,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${n.url||"(unknown url)"}`:this.message=`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}},nk=200,rk=204;var ok=new y("");var ik=/^\)\]\}',?\n/;var Ym=(()=>{class t{xhrFactory;tracingService=f(Zt,{optional:!0});constructor(e){this.xhrFactory=e}maybePropagateTrace(e){return this.tracingService?.propagate?this.tracingService.propagate(e):e}handle(e){if(e.method==="JSONP")throw new b(-2800,!1);let r=this.xhrFactory;return S(null).pipe(Ve(()=>new P(i=>{let s=r.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((D,C)=>s.setRequestHeader(D,C.join(","))),e.headers.has(Fw)||s.setRequestHeader(Fw,tk),!e.headers.has(kw)){let D=e.detectContentTypeHeader();D!==null&&s.setRequestHeader(kw,D)}if(e.timeout&&(s.timeout=e.timeout),e.responseType){let D=e.responseType.toLowerCase();s.responseType=D!=="json"?D:"text"}let a=e.serializeBody(),c=null,l=()=>{if(c!==null)return c;let D=s.statusText||"OK",C=new wn(s.getAllResponseHeaders()),z=s.responseURL||e.url;return c=new Eu({headers:C,status:s.status,statusText:D,url:z}),c},u=this.maybePropagateTrace(()=>{let{headers:D,status:C,statusText:z,url:De}=l(),pe=null;C!==rk&&(pe=typeof s.response>"u"?s.responseText:s.response),C===0&&(C=pe?nk:0);let er=C>=200&&C<300;if(e.responseType==="json"&&typeof pe=="string"){let Tn=pe;pe=pe.replace(ik,"");try{pe=pe!==""?JSON.parse(pe):null}catch(Ar){pe=Tn,er&&(er=!1,pe={error:Ar,text:pe})}}er?(i.next(new oa({body:pe,headers:D,status:C,statusText:z,url:De||void 0})),i.complete()):i.error(new fi({error:pe,headers:D,status:C,statusText:z,url:De||void 0}))}),d=this.maybePropagateTrace(D=>{let{url:C}=l(),z=new fi({error:D,status:s.status||0,statusText:s.statusText||"Unknown Error",url:C||void 0});i.error(z)}),h=d;e.timeout&&(h=this.maybePropagateTrace(D=>{let{url:C}=l(),z=new fi({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:C||void 0});i.error(z)}));let p=!1,m=this.maybePropagateTrace(D=>{p||(i.next(l()),p=!0);let C={type:lo.DownloadProgress,loaded:D.loaded};D.lengthComputable&&(C.total=D.total),e.responseType==="text"&&s.responseText&&(C.partialText=s.responseText),i.next(C)}),_=this.maybePropagateTrace(D=>{let C={type:lo.UploadProgress,loaded:D.loaded};D.lengthComputable&&(C.total=D.total),i.next(C)});return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",h),s.addEventListener("abort",d),e.reportProgress&&(s.addEventListener("progress",m),a!==null&&s.upload&&s.upload.addEventListener("progress",_)),s.send(a),i.next({type:lo.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",h),e.reportProgress&&(s.removeEventListener("progress",m),a!==null&&s.upload&&s.upload.removeEventListener("progress",_)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||t)(w(co))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),sk=new y("",{factory:()=>!0}),ak="XSRF-TOKEN",ck=new y("",{factory:()=>ak}),lk="X-XSRF-TOKEN",uk=new y("",{factory:()=>lk}),dk=(()=>{class t{cookieName=f(ck);doc=f(O);lastCookieString="";lastToken=null;parseCount=0;getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Js(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Vw=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:function(r){let o=null;return r?o=new(r||t):o=w(dk),o},providedIn:"root"})}return t})();function Bw(t,n){if(!f(sk)||t.method==="GET"||t.method==="HEAD")return n(t);try{let o=f(Wn).href,{origin:i}=new URL(o),{origin:s}=new URL(t.url,i);if(i!==s)return n(t)}catch{return n(t)}let e=f(Vw).getToken(),r=f(uk);return e!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,e)})),n(t)}function Uw(t,n){return n(t)}function fk(t,n){return(e,r)=>n.intercept(e,{handle:o=>t(o,r)})}function hk(t,n,e){return(r,o)=>Fe(e,()=>n(r,i=>t(i,o)))}var Hw=new y(""),Zm=new y("",{factory:()=>[Bw]}),$w=new y(""),Km=new y("",{factory:()=>!0});function pk(){let t=null;return(n,e)=>{t===null&&(t=(f(Hw,{optional:!0})??[]).reduceRight(fk,Uw));let r=f(Wo);if(f(Km)){let i=r.add();return t(n,e).pipe(Rn(i))}else return t(n,e)}}var Qm=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:function(r){let o=null;return r?o=new(r||t):o=w(Ym),o},providedIn:"root"})}return t})();var wu=(()=>{class t{backend;injector;chain=null;pendingTasks=f(Wo);contributeToStability=f(Km);constructor(e,r){this.backend=e,this.injector=r}handle(e){if(this.chain===null){let r=this.injector.get(Cu,null,{skipSelf:!0}),o=r!==null&&this.backend===r,i=this.injector.get($w,[],o?{self:!0}:void 0),s=Array.from(new Set([...this.injector.get(Zm),...i]));this.chain=s.reduceRight((a,c)=>hk(a,c,this.injector),Uw)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(Rn(r))}else return this.chain(e,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||t)(w(Qm),w(re))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Cu=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:function(r){let o=null;return r?o=new(r||t):o=w(wu),o},providedIn:"root"})}return t})();function qm(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,credentials:t.credentials,transferCache:t.transferCache,timeout:t.timeout,keepalive:t.keepalive,priority:t.priority,cache:t.cache,mode:t.mode,redirect:t.redirect,integrity:t.integrity,referrer:t.referrer,referrerPolicy:t.referrerPolicy}}var pi=(()=>{class t{handler;constructor(e){this.handler=e}request(e,r,o={}){let i;if(e instanceof di)i=e;else{let c;o.headers instanceof wn?c=o.headers:c=new wn(o.headers);let l;o.params&&(o.params instanceof Yn?l=o.params:l=new Yn({fromObject:o.params})),i=new di(e,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let s=S(i).pipe(or(c=>this.handler.handle(c)));if(e instanceof di||o.observe==="events")return s;let a=s.pipe(he(c=>c instanceof oa));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(V(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new b(2806,!1);return c.body}));case"blob":return a.pipe(V(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new b(2807,!1);return c.body}));case"text":return a.pipe(V(c=>{if(c.body!==null&&typeof c.body!="string")throw new b(2808,!1);return c.body}));default:return a.pipe(V(c=>c.body))}case"response":return a;default:throw new b(2809,!1)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:new Yn().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,o={}){return this.request("PATCH",e,qm(o,r))}post(e,r,o={}){return this.request("POST",e,qm(o,r))}put(e,r,o={}){return this.request("PUT",e,qm(o,r))}static \u0275fac=function(r){return new(r||t)(w(Cu))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Xm=(function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t})(Xm||{});function mk(t,n){return{\u0275kind:t,\u0275providers:n}}function zw(...t){let n=[pi,wu,{provide:Cu,useExisting:wu},{provide:Qm,useFactory:()=>f(ok,{optional:!0})??f(Ym)},{provide:Zm,useValue:Bw,multi:!0}];for(let e of t)n.push(...e.\u0275providers);return hr(n)}var Pw=new y("");function Gw(){return mk(Xm.LegacyInterceptors,[{provide:Pw,useFactory:pk},{provide:Zm,useExisting:Pw,multi:!0}])}var gk=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=Q({type:t});static \u0275inj=q({providers:[zw(Gw())]})}return t})();var qw=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(r){return new(r||t)(w(O))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function vk(t,n){if(typeof COMPILED>"u"||!COMPILED){let e=we.ng=we.ng||{};e[t]=n}}var Jm=class{msPerTick;numTicks;constructor(n,e){this.msPerTick=n,this.numTicks=e}},eg=class{appRef;constructor(n){this.appRef=n.injector.get(Ge)}timeChangeDetection(n){let e=n&&n.record,r="Change Detection";e&&"profile"in console&&typeof console.profile=="function"&&console.profile(r);let o=performance.now(),i=0;for(;i<5||performance.now()-o<500;)this.appRef.tick(),i++;let s=performance.now();e&&"profileEnd"in console&&typeof console.profileEnd=="function"&&console.profileEnd(r);let a=(s-o)/i;return console.log(`ran ${i} change detection cycles`),console.log(`${a.toFixed(2)} ms per check`),new Jm(a,i)}},yk="profiler";function cY(t){return vk(yk,new eg(t)),t}var ia=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:function(r){let o=null;return r?o=new(r||t):o=w(bk),o},providedIn:"root"})}return t})(),bk=(()=>{class t extends ia{_doc;constructor(e){super(),this._doc=e}sanitize(e,r){if(r==null)return null;switch(e){case J.NONE:return r;case J.HTML:return bn(r,"HTML")?vt(r):Sl(this._doc,String(r)).toString();case J.STYLE:return bn(r,"Style")?vt(r):r;case J.SCRIPT:if(bn(r,"Script"))return vt(r);throw new b(5200,!1);case J.URL:return bn(r,"URL")?vt(r):Ps(String(r));case J.RESOURCE_URL:if(bn(r,"ResourceURL"))return vt(r);throw new b(5201,!1);default:throw new b(5202,!1)}}bypassSecurityTrustHtml(e){return yp(e)}bypassSecurityTrustStyle(e){return bp(e)}bypassSecurityTrustScript(e){return _p(e)}bypassSecurityTrustUrl(e){return Dp(e)}bypassSecurityTrustResourceUrl(e){return Ep(e)}static \u0275fac=function(r){return new(r||t)(w(O))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var oC=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,r){this._renderer=e,this._elementRef=r}setProperty(e,r){this._renderer.setProperty(this._elementRef.nativeElement,e,r)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(r){return new(r||t)(E(Le),E($))};static \u0275dir=T({type:t})}return t})(),Fu=(()=>{class t extends oC{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Pe(t)))(o||t)}})();static \u0275dir=T({type:t,features:[ie]})}return t})(),fo=new y("");var _k={provide:fo,useExisting:Ie(()=>iC),multi:!0};function Dk(){let t=bt()?bt().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var Ek=new y(""),iC=(()=>{class t extends oC{_compositionMode;_composing=!1;constructor(e,r,o){super(e,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!Dk())}writeValue(e){let r=e??"";this.setProperty("value",r)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(r){return new(r||t)(E(Le),E($),E(Ek,8))};static \u0275dir=T({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&Qt("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},standalone:!1,features:[ze([_k]),ie]})}return t})();function og(t){return t==null||ig(t)===0}function ig(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var Cn=new y(""),ho=new y(""),wk=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Zw=class{static min(n){return sC(n)}static max(n){return aC(n)}static required(n){return cC(n)}static requiredTrue(n){return Ck(n)}static email(n){return Ik(n)}static minLength(n){return Sk(n)}static maxLength(n){return Mk(n)}static pattern(n){return Tk(n)}static nullValidator(n){return Su()}static compose(n){return pC(n)}static composeAsync(n){return mC(n)}};function sC(t){return n=>{if(n.value==null||t==null)return null;let e=parseFloat(n.value);return!isNaN(e)&&e{if(n.value==null||t==null)return null;let e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}function cC(t){return og(t.value)?{required:!0}:null}function Ck(t){return t.value===!0?null:{required:!0}}function Ik(t){return og(t.value)||wk.test(t.value)?null:{email:!0}}function Sk(t){return n=>{let e=n.value?.length??ig(n.value);return e===null||e===0?null:e{let e=n.value?.length??ig(n.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function Tk(t){if(!t)return Su;let n,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),r=>{if(og(r.value))return null;let o=r.value;return n.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function Su(t){return null}function lC(t){return t!=null}function uC(t){return zn(t)?ae(t):t}function dC(t){let n={};return t.forEach(e=>{n=e!=null?g(g({},n),e):n}),Object.keys(n).length===0?null:n}function fC(t,n){return n.map(e=>e(t))}function xk(t){return!t.validate}function hC(t){return t.map(n=>xk(n)?n:e=>n.validate(e))}function pC(t){if(!t)return null;let n=t.filter(lC);return n.length==0?null:function(e){return dC(fC(e,n))}}function sg(t){return t!=null?pC(hC(t)):null}function mC(t){if(!t)return null;let n=t.filter(lC);return n.length==0?null:function(e){let r=fC(e,n).map(uC);return Yi(r).pipe(V(dC))}}function ag(t){return t!=null?mC(hC(t)):null}function Kw(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function gC(t){return t._rawValidators}function vC(t){return t._rawAsyncValidators}function tg(t){return t?Array.isArray(t)?t:[t]:[]}function Mu(t,n){return Array.isArray(t)?t.includes(n):t===n}function Qw(t,n){let e=tg(n);return tg(t).forEach(o=>{Mu(e,o)||e.push(o)}),e}function Xw(t,n){return tg(n).filter(e=>!Mu(t,e))}var Tu=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=sg(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=ag(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control?.reset(n)}hasError(n,e){return this.control?this.control.hasError(n,e):!1}getError(n,e){return this.control?this.control.getError(n,e):null}},rt=class extends Tu{name;get formDirective(){return null}get path(){return null}},Zn=class extends Tu{_parent=null;name=null;valueAccessor=null},xu=class{_cd;constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var IY=(()=>{class t extends xu{constructor(e){super(e)}static \u0275fac=function(r){return new(r||t)(E(Zn,2))};static \u0275dir=T({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&Xe("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[ie]})}return t})(),SY=(()=>{class t extends xu{constructor(e){super(e)}static \u0275fac=function(r){return new(r||t)(E(rt,10))};static \u0275dir=T({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&Xe("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},standalone:!1,features:[ie]})}return t})();var sa="VALID",Iu="INVALID",mi="PENDING",aa="DISABLED",Er=class{},Au=class extends Er{value;source;constructor(n,e){super(),this.value=n,this.source=e}},la=class extends Er{pristine;source;constructor(n,e){super(),this.pristine=n,this.source=e}},ua=class extends Er{touched;source;constructor(n,e){super(),this.touched=n,this.source=e}},gi=class extends Er{status;source;constructor(n,e){super(),this.status=n,this.source=e}},Ru=class extends Er{source;constructor(n){super(),this.source=n}},da=class extends Er{source;constructor(n){super(),this.source=n}};function cg(t){return(Pu(t)?t.validators:t)||null}function Ak(t){return Array.isArray(t)?sg(t):t||null}function lg(t,n){return(Pu(n)?n.asyncValidators:t)||null}function Rk(t){return Array.isArray(t)?ag(t):t||null}function Pu(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function yC(t,n,e){let r=t.controls;if(!(n?Object.keys(r):r).length)throw new b(1e3,"");if(!r[e])throw new b(1001,"")}function bC(t,n,e){t._forEachChild((r,o)=>{if(e[o]===void 0)throw new b(-1002,"")})}var yi=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(n,e){this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return Y(this.statusReactive)}set status(n){Y(()=>this.statusReactive.set(n))}_status=Xt(()=>this.statusReactive());statusReactive=K(void 0);get valid(){return this.status===sa}get invalid(){return this.status===Iu}get pending(){return this.status===mi}get disabled(){return this.status===aa}get enabled(){return this.status!==aa}errors;get pristine(){return Y(this.pristineReactive)}set pristine(n){Y(()=>this.pristineReactive.set(n))}_pristine=Xt(()=>this.pristineReactive());pristineReactive=K(!0);get dirty(){return!this.pristine}get touched(){return Y(this.touchedReactive)}set touched(n){Y(()=>this.touchedReactive.set(n))}_touched=Xt(()=>this.touchedReactive());touchedReactive=K(!1);get untouched(){return!this.touched}_events=new x;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(Qw(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Qw(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(Xw(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(Xw(n,this._rawAsyncValidators))}hasValidator(n){return Mu(this._rawValidators,n)}hasAsyncValidator(n){return Mu(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let r=n.sourceControl??this;n.onlySelf||this._parent?.markAsTouched(F(g({},n),{sourceControl:r})),e&&n.emitEvent!==!1&&this._events.next(new ua(!0,r))}markAllAsDirty(n={}){this.markAsDirty({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(n))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(n))}markAsUntouched(n={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=n.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:r})}),n.onlySelf||this._parent?._updateTouched(n,r),e&&n.emitEvent!==!1&&this._events.next(new ua(!1,r))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let r=n.sourceControl??this;n.onlySelf||this._parent?.markAsDirty(F(g({},n),{sourceControl:r})),e&&n.emitEvent!==!1&&this._events.next(new la(!1,r))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=n.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),n.onlySelf||this._parent?._updatePristine(n,r),e&&n.emitEvent!==!1&&this._events.next(new la(!0,r))}markAsPending(n={}){this.status=mi;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new gi(this.status,e)),this.statusChanges.emit(this.status)),n.onlySelf||this._parent?.markAsPending(F(g({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=aa,this.errors=null,this._forEachChild(o=>{o.disable(F(g({},n),{onlySelf:!0}))}),this._updateValue();let r=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Au(this.value,r)),this._events.next(new gi(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(F(g({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=sa,this._forEachChild(r=>{r.enable(F(g({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(F(g({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n,e){n.onlySelf||(this._parent?.updateValueAndValidity(n),n.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===sa||this.status===mi)&&this._runAsyncValidator(r,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Au(this.value,e)),this._events.next(new gi(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),n.onlySelf||this._parent?.updateValueAndValidity(F(g({},n),{sourceControl:e}))}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?aa:sa}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=mi,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:n!==!1};let r=uC(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:e,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(n){let e=n;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((r,o)=>r&&r._find(o),this)}getError(n,e){let r=e?this.get(e):this;return r?.errors?r.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,e,r){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||r)&&this._events.next(new gi(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,r)}_initObservables(){this.valueChanges=new H,this.statusChanges=new H}_calculateStatus(){return this._allControlsDisabled()?aa:this.errors?Iu:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(mi)?mi:this._anyControlsHaveStatus(Iu)?Iu:sa}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,e){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,n.onlySelf||this._parent?._updatePristine(n,e),o&&this._events.next(new la(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new ua(this.touched,e)),n.onlySelf||this._parent?._updateTouched(n,e)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Pu(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=Ak(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=Rk(this._rawAsyncValidators)}},uo=class extends yi{constructor(n,e,r){super(cg(e),lg(r,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,r={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){bC(this,!0,n),Object.keys(n).forEach(r=>{yC(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(Object.keys(n).forEach(r=>{let o=this.controls[r];o&&o.patchValue(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((r,o)=>{r.reset(n?n[o]:null,F(g({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new da(this))}getRawValue(){return this._reduceChildren({},(n,e,r)=>(n[r]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,r)=>r._syncPendingControls()?!0:e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{let r=this.controls[e];r&&n(r,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(let[e,r]of Object.entries(this.controls))if(this.contains(e)&&n(r))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(e,r,o)=>((r.enabled||this.disabled)&&(e[o]=r.value),e))}_reduceChildren(n,e){let r=n;return this._forEachChild((o,i)=>{r=e(r,o,i)}),r}_allControlsDisabled(){for(let n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}};var MY=uo;var ng=class extends uo{};var bi=new y("",{factory:()=>Lu}),Lu="always";function ju(t,n){return[...n.path,t]}function fa(t,n,e=Lu){ug(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),Ok(t,n),Fk(t,n),kk(t,n),Nk(t,n)}function Nu(t,n,e=!0){let r=()=>{};n?.valueAccessor?.registerOnChange(r),n?.valueAccessor?.registerOnTouched(r),ku(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function Ou(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function Nk(t,n){if(n.valueAccessor.setDisabledState){let e=r=>{n.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function ug(t,n){let e=gC(t);n.validator!==null?t.setValidators(Kw(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let r=vC(t);n.asyncValidator!==null?t.setAsyncValidators(Kw(r,n.asyncValidator)):typeof r=="function"&&t.setAsyncValidators([r]);let o=()=>t.updateValueAndValidity();Ou(n._rawValidators,o),Ou(n._rawAsyncValidators,o)}function ku(t,n){let e=!1;if(t!==null){if(n.validator!==null){let o=gC(t);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==n.validator);i.length!==o.length&&(e=!0,t.setValidators(i))}}if(n.asyncValidator!==null){let o=vC(t);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==n.asyncValidator);i.length!==o.length&&(e=!0,t.setAsyncValidators(i))}}}let r=()=>{};return Ou(n._rawValidators,r),Ou(n._rawAsyncValidators,r),e}function Ok(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&_C(t,n)})}function kk(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&_C(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function _C(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Fk(t,n){let e=(r,o)=>{n.valueAccessor.writeValue(r),o&&n.viewToModelUpdate(r)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function DC(t,n){t==null,ug(t,n)}function Pk(t,n){return ku(t,n)}function dg(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function Lk(t){return Object.getPrototypeOf(t.constructor)===Fu}function EC(t,n){t._syncPendingControls(),n.forEach(e=>{let r=e.control;r.updateOn==="submit"&&r._pendingChange&&(e.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function fg(t,n){if(!n)return null;Array.isArray(n);let e,r,o;return n.forEach(i=>{i.constructor===iC?e=i:Lk(i)?r=i:o=i}),o||r||e||null}function jk(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}var Vk={provide:rt,useExisting:Ie(()=>Bk)},ca=Promise.resolve(),Bk=(()=>{class t extends rt{callSetDisabledState;get submitted(){return Y(this.submittedReactive)}_submitted=Xt(()=>this.submittedReactive());submittedReactive=K(!1);_directives=new Set;form;ngSubmit=new H;options;constructor(e,r,o){super(),this.callSetDisabledState=o,this.form=new uo({},sg(e),ag(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){ca.then(()=>{let r=this._findContainer(e.path);e.control=r.registerControl(e.name,e.control),fa(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){ca.then(()=>{this._findContainer(e.path)?.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){ca.then(()=>{let r=this._findContainer(e.path),o=new uo({});DC(o,e),r.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){ca.then(()=>{this._findContainer(e.path)?.removeControl?.(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,r){ca.then(()=>{this.form.get(e.path).setValue(r)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),EC(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new Ru(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(r){return new(r||t)(E(Cn,10),E(ho,10),E(bi,8))};static \u0275dir=T({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,o){r&1&&Qt("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[ze([Vk]),ie]})}return t})();function Jw(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function eC(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var vi=class extends yi{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,e,r){super(cg(e),lg(r,e)),this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Pu(e)&&(e.nonNullable||e.initialValueIsDefault)&&(eC(n)?this.defaultValue=n.value:this.defaultValue=n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new da(this))}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){Jw(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){Jw(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(n){eC(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},xY=vi,Uk=t=>t instanceof vi,Hk=(()=>{class t extends rt{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective?.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return ju(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Pe(t)))(o||t)}})();static \u0275dir=T({type:t,standalone:!1,features:[ie]})}return t})();var $k={provide:Zn,useExisting:Ie(()=>zk)},tC=Promise.resolve(),zk=(()=>{class t extends Zn{_changeDetectorRef;callSetDisabledState;control=new vi;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new H;constructor(e,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=e,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=fg(this,i)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let r=e.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),dg(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){fa(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){tC.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let r=e.isDisabled.currentValue,o=r!==0&&ue(r);tC.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?ju(e,this._parent):[e]}static \u0275fac=function(r){return new(r||t)(E(rt,9),E(Cn,10),E(ho,10),E(fo,10),E(Jt,8),E(bi,8))};static \u0275dir=T({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[ze([$k]),ie,$e]})}return t})();var AY=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275dir=T({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),Gk={provide:fo,useExisting:Ie(()=>Wk),multi:!0},Wk=(()=>{class t extends Fu{writeValue(e){let r=e??"";this.setProperty("value",r)}registerOnChange(e){this.onChange=r=>{e(r==""?null:parseFloat(r))}}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Pe(t)))(o||t)}})();static \u0275dir=T({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,o){r&1&&Qt("input",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[ze([Gk]),ie]})}return t})();var rg=class extends yi{constructor(n,e,r){super(cg(e),lg(r,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){Array.isArray(n)?n.forEach(r=>{this.controls.push(r),this._registerControl(r)}):(this.controls.push(n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,r={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(n,e={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,r={}){let o=this._adjustIndex(n);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),e&&(this.controls.splice(o,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){bC(this,!1,n),n.forEach((r,o)=>{yC(this,!1,o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(n.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((r,o)=>{r.reset(n[o],F(g({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new da(this))}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,r)=>r._syncPendingControls()?!0:e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,r)=>{n(e,r)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(let n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}};var wC=(()=>{class t extends rt{callSetDisabledState;get submitted(){return Y(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Xt(()=>this._submittedReactive());_submittedReactive=K(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(e,r,o){super(),this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(r)}ngOnChanges(e){this.onChanges(e)}ngOnDestroy(){this.onDestroy()}onChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}onDestroy(){this.form&&(ku(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get path(){return[]}addControl(e){let r=this.form.get(e.path);return fa(r,e,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),r}getControl(e){return this.form.get(e.path)}removeControl(e){Nu(e.control||null,e,!1),jk(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}getFormArray(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}updateModel(e,r){this.form.get(e.path).setValue(r)}onReset(){this.resetForm()}resetForm(e=void 0,r={}){this.form.reset(e,r),this._submittedReactive.set(!1)}onSubmit(e){return this.submitted=!0,EC(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Ru(this.control)),e?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(e=>{let r=e.control,o=this.form.get(e.path);r!==o&&(Nu(r||null,e),Uk(o)&&(fa(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let r=this.form.get(e.path);DC(r,e),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){let r=this.form?.get(e.path);r&&Pk(r,e)&&r.updateValueAndValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{})}_updateValidators(){ug(this.form,this),this._oldForm&&ku(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(r){return new(r||t)(E(Cn,10),E(ho,10),E(bi,8))};static \u0275dir=T({type:t,features:[ie,$e]})}return t})();var hg=new y(""),qk={provide:Zn,useExisting:Ie(()=>Yk)},Yk=(()=>{class t extends Zn{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new H;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,r,o,i,s){super(),this._ngModelWarningConfig=i,this.callSetDisabledState=s,this._setValidators(e),this._setAsyncValidators(r),this.valueAccessor=fg(this,o)}ngOnChanges(e){if(this._isControlChanged(e)){let r=e.form.previousValue;r&&Nu(r,this,!1),fa(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}dg(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Nu(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(r){return new(r||t)(E(Cn,10),E(ho,10),E(fo,10),E(hg,8),E(bi,8))};static \u0275dir=T({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[ze([qk]),ie,$e]})}return t})(),Zk={provide:rt,useExisting:Ie(()=>CC)},CC=(()=>{class t extends Hk{name=null;constructor(e,r,o){super(),this._parent=e,this._setValidators(r),this._setAsyncValidators(o)}_checkParentType(){SC(this._parent)}static \u0275fac=function(r){return new(r||t)(E(rt,13),E(Cn,10),E(ho,10))};static \u0275dir=T({type:t,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[ze([Zk]),ie]})}return t})(),Kk={provide:rt,useExisting:Ie(()=>IC)},IC=(()=>{class t extends rt{_parent;name=null;constructor(e,r,o){super(),this._parent=e,this._setValidators(r),this._setAsyncValidators(o)}ngOnInit(){SC(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return ju(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(r){return new(r||t)(E(rt,13),E(Cn,10),E(ho,10))};static \u0275dir=T({type:t,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[ze([Kk]),ie]})}return t})();function SC(t){return!(t instanceof CC)&&!(t instanceof wC)&&!(t instanceof IC)}var Qk={provide:Zn,useExisting:Ie(()=>Xk)},Xk=(()=>{class t extends Zn{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new H;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,r,o,i,s){super(),this._ngModelWarningConfig=s,this._parent=e,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=fg(this,i)}ngOnChanges(e){this._added||this._setUpControl(),dg(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective?.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return ju(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(r){return new(r||t)(E(rt,13),E(Cn,10),E(ho,10),E(fo,10),E(hg,8))};static \u0275dir=T({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[ze([Qk]),ie,$e]})}return t})();var Jk={provide:rt,useExisting:Ie(()=>eF)},eF=(()=>{class t extends wC{form=null;ngSubmit=new H;get control(){return this.form}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Pe(t)))(o||t)}})();static \u0275dir=T({type:t,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&Qt("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[ze([Jk]),ie]})}return t})(),tF={provide:fo,useExisting:Ie(()=>TC),multi:!0};function MC(t,n){return t==null?`${n}`:(n&&typeof n=="object"&&(n="Object"),`${t}: ${n}`.slice(0,50))}function nF(t){return t.split(":")[0]}var TC=(()=>{class t extends Fu{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e}_compareWith=Object.is;appRefInjector=f(Ge).injector;destroyRef=f(Ue);cdr=f(Jt);_queuedWrite=!1;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=!0,At({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=!1,this.writeValue(this.value))}},{injector:this.appRefInjector}))}writeValue(e){this.cdr.markForCheck(),this.value=e;let r=this._getOptionId(e),o=MC(r,e);this.setProperty("value",o)}registerOnChange(e){this.onChange=r=>{this.value=this._getOptionValue(r),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),e))return r;return null}_getOptionValue(e){let r=nF(e);return this._optionMap.has(r)?this._optionMap.get(r):e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Pe(t)))(o||t)}})();static \u0275dir=T({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,o){r&1&&Qt("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[ze([tF]),ie]})}return t})(),RY=(()=>{class t{_element;_renderer;_select;id;constructor(e,r,o){this._element=e,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(e){this._select!=null&&(this._select._optionMap.set(this.id,e),this._setElementValue(MC(this.id,e)),this._select._writeValueAfterRender())}set value(e){this._setElementValue(e),this._select?._writeValueAfterRender()}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select?._optionMap.delete(this.id),this._select?._writeValueAfterRender()}static \u0275fac=function(r){return new(r||t)(E($),E(Le),E(TC,9))};static \u0275dir=T({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return t})(),rF={provide:fo,useExisting:Ie(()=>xC),multi:!0};function nC(t,n){return t==null?`${n}`:(typeof n=="string"&&(n=`'${n}'`),n&&typeof n=="object"&&(n="Object"),`${t}: ${n}`.slice(0,50))}function oF(t){return t.split(":")[0]}var xC=(()=>{class t extends Fu{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e}_compareWith=Object.is;writeValue(e){this.value=e;let r;if(Array.isArray(e)){let o=e.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s)>-1)}}else r=o=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(e){this.onChange=r=>{let o=[],i=r.selectedOptions;if(i!==void 0){let s=i;for(let a=0;a{let e;return function(o){return(e||(e=Pe(t)))(o||t)}})();static \u0275dir=T({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,o){r&1&&Qt("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[ze([rF]),ie]})}return t})(),NY=(()=>{class t{_element;_renderer;_select;id;_value;constructor(e,r,o){this._element=e,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){this._select!=null&&(this._value=e,this._setElementValue(nC(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(nC(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(r){return new(r||t)(E($),E(Le),E(xC,9))};static \u0275dir=T({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return t})();function AC(t){return typeof t=="number"?t:parseFloat(t)}var pg=(()=>{class t{_validator=Su;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let r=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Su,this._onChange?.()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(r){return new(r||t)};static \u0275dir=T({type:t,features:[$e]})}return t})(),iF={provide:Cn,useExisting:Ie(()=>sF),multi:!0},sF=(()=>{class t extends pg{max;inputName="max";normalizeInput=e=>AC(e);createValidator=e=>aC(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Pe(t)))(o||t)}})();static \u0275dir=T({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&yt("max",o._enabled?o.max:null)},inputs:{max:"max"},standalone:!1,features:[ze([iF]),ie]})}return t})(),aF={provide:Cn,useExisting:Ie(()=>cF),multi:!0},cF=(()=>{class t extends pg{min;inputName="min";normalizeInput=e=>AC(e);createValidator=e=>sC(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Pe(t)))(o||t)}})();static \u0275dir=T({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&&yt("min",o._enabled?o.min:null)},inputs:{min:"min"},standalone:!1,features:[ze([aF]),ie]})}return t})(),lF={provide:Cn,useExisting:Ie(()=>uF),multi:!0};var uF=(()=>{class t extends pg{required;inputName="required";normalizeInput=ue;createValidator=e=>cC;enabled(e){return e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Pe(t)))(o||t)}})();static \u0275dir=T({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,o){r&2&&yt("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[ze([lF]),ie]})}return t})();var RC=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=Q({type:t});static \u0275inj=q({})}return t})();function rC(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var dF=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,r=null){let o=this._reduceControls(e),i={};return rC(r)?i=r:r!==null&&(i.validators=r.validator,i.asyncValidators=r.asyncValidator),new uo(o,i)}record(e,r=null){let o=this._reduceControls(e);return new ng(o,r)}control(e,r,o){let i={};return this.useNonNullable?(rC(r)?i=r:(i.validators=r,i.asyncValidators=o),new vi(e,F(g({},i),{nonNullable:!0}))):new vi(e,r,o)}array(e,r,o){let i=e.map(s=>this._createControl(s));return new rg(i,r,o)}_reduceControls(e){let r={};return Object.keys(e).forEach(o=>{r[o]=this._createControl(e[o])}),r}_createControl(e){if(e instanceof vi)return e;if(e instanceof yi)return e;if(Array.isArray(e)){let r=e[0],o=e.length>1?e[1]:null,i=e.length>2?e[2]:null;return this.control(r,o,i)}else return this.control(e)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var OY=(()=>{class t extends dF{group(e,r=null){return super.group(e,r)}control(e,r,o){return super.control(e,r,o)}array(e,r,o){return super.array(e,r,o)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Pe(t)))(o||t)}})();static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),kY=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:bi,useValue:e.callSetDisabledState??Lu}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Q({type:t});static \u0275inj=q({imports:[RC]})}return t})(),FY=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:hg,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:bi,useValue:e.callSetDisabledState??Lu}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Q({type:t});static \u0275inj=q({imports:[RC]})}return t})();var Vu=new WeakMap,Nt=(()=>{class t{_appRef;_injector=f(W);_environmentInjector=f(re);load(e){let r=this._appRef=this._appRef||this._injector.get(Ge),o=Vu.get(r);o||(o={loaders:new Set,refs:[]},Vu.set(r,o),r.onDestroy(()=>{Vu.get(r)?.refs.forEach(i=>i.destroy()),Vu.delete(r)})),o.loaders.has(e)||(o.loaders.add(e),o.refs.push(Jl(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Uu=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Te({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(r,o){},styles:[`.cdk-visually-hidden { + `)}`:"",this.name="UnsubscriptionError",this.errors=e});function Rr(t,n){if(t){let e=t.indexOf(n);0<=e&&t.splice(e,1)}}var G=class t{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let i of e)i.remove(this);else e.remove(this);let{initialTeardown:r}=this;if(O(r))try{r()}catch(i){n=i instanceof za?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{Fv(i)}catch(s){n=n??[],s instanceof za?n=[...n,...s.errors]:n.push(s)}}if(n)throw new za(n)}}add(n){var e;if(n&&n!==this)if(this.closed)Fv(n);else{if(n instanceof t){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(n)}}_hasParent(n){let{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){let{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&Rr(e,n)}remove(n){let{_finalizers:e}=this;e&&Rr(e,n),n instanceof t&&n._removeParent(this)}};G.EMPTY=(()=>{let t=new G;return t.closed=!0,t})();var Gd=G.EMPTY;function Ga(t){return t instanceof G||t&&"closed"in t&&O(t.remove)&&O(t.add)&&O(t.unsubscribe)}function Fv(t){O(t)?t():t.unsubscribe()}var Pt={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Co={setTimeout(t,n,...e){let{delegate:r}=Co;return r?.setTimeout?r.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){let{delegate:n}=Co;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Wa(t){Co.setTimeout(()=>{let{onUnhandledError:n}=Pt;if(n)n(t);else throw t})}function Nr(){}var Pv=Wd("C",void 0,void 0);function Lv(t){return Wd("E",void 0,t)}function jv(t){return Wd("N",t,void 0)}function Wd(t,n,e){return{kind:t,value:n,error:e}}var Or=null;function Io(t){if(Pt.useDeprecatedSynchronousErrorHandling){let n=!Or;if(n&&(Or={errorThrown:!1,error:null}),t(),n){let{errorThrown:e,error:r}=Or;if(Or=null,e)throw r}}else t()}function Vv(t){Pt.useDeprecatedSynchronousErrorHandling&&Or&&(Or.errorThrown=!0,Or.error=t)}var kr=class extends G{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Ga(n)&&n.add(this)):this.destination=oM}static create(n,e,r){return new Lt(n,e,r)}next(n){this.isStopped?Yd(jv(n),this):this._next(n)}error(n){this.isStopped?Yd(Lv(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Yd(Pv,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},nM=Function.prototype.bind;function qd(t,n){return nM.call(t,n)}var Zd=class{constructor(n){this.partialObserver=n}next(n){let{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(r){qa(r)}}error(n){let{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(r){qa(r)}else qa(n)}complete(){let{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){qa(e)}}},Lt=class extends kr{constructor(n,e,r){super();let o;if(O(n)||!n)o={next:n??void 0,error:e??void 0,complete:r??void 0};else{let i;this&&Pt.useDeprecatedNextContext?(i=Object.create(n),i.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&qd(n.next,i),error:n.error&&qd(n.error,i),complete:n.complete&&qd(n.complete,i)}):o=n}this.destination=new Zd(o)}};function qa(t){Pt.useDeprecatedSynchronousErrorHandling?Vv(t):Wa(t)}function rM(t){throw t}function Yd(t,n){let{onStoppedNotification:e}=Pt;e&&Co.setTimeout(()=>e(t,n))}var oM={closed:!0,next:Nr,error:rM,complete:Nr};var So=typeof Symbol=="function"&&Symbol.observable||"@@observable";function ht(t){return t}function Kd(...t){return Qd(t)}function Qd(t){return t.length===0?ht:t.length===1?t[0]:function(e){return t.reduce((r,o)=>o(r),e)}}var P=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let r=new t;return r.source=this,r.operator=e,r}subscribe(e,r,o){let i=sM(e)?e:new Lt(e,r,o);return Io(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(e){try{return this._subscribe(e)}catch(r){e.error(r)}}forEach(e,r){return r=Bv(r),new r((o,i)=>{let s=new Lt({next:a=>{try{e(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)}[So](){return this}pipe(...e){return Qd(e)(this)}toPromise(e){return e=Bv(e),new e((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return t.create=n=>new t(n),t})();function Bv(t){var n;return(n=t??Pt.Promise)!==null&&n!==void 0?n:Promise}function iM(t){return t&&O(t.next)&&O(t.error)&&O(t.complete)}function sM(t){return t&&t instanceof kr||iM(t)&&Ga(t)}var Uv=tr(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var R=(()=>{class t extends P{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let r=new Ya(this,this);return r.operator=e,r}_throwIfClosed(){if(this.closed)throw new Uv}next(e){Io(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(e)}})}error(e){Io(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:r}=this;for(;r.length;)r.shift().error(e)}})}complete(){Io(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:r,isStopped:o,observers:i}=this;return r||o?Gd:(this.currentObservers=null,i.push(e),new G(()=>{this.currentObservers=null,Rr(i,e)}))}_checkFinalizedStatuses(e){let{hasError:r,thrownError:o,isStopped:i}=this;r?e.error(o):i&&e.complete()}asObservable(){let e=new P;return e.source=this,e}}return t.create=(n,e)=>new Ya(n,e),t})(),Ya=class extends R{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.next)===null||r===void 0||r.call(e,n)}error(n){var e,r;(r=(e=this.destination)===null||e===void 0?void 0:e.error)===null||r===void 0||r.call(e,n)}complete(){var n,e;(e=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||e===void 0||e.call(n)}_subscribe(n){var e,r;return(r=(e=this.source)===null||e===void 0?void 0:e.subscribe(n))!==null&&r!==void 0?r:Gd}};function Xd(t){return O(t?.lift)}function x(t){return n=>{if(Xd(n))return n.lift(function(e){try{return t(e,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function A(t,n,e,r,o){return new Jd(t,n,e,r,o)}var Jd=class extends kr{constructor(n,e,r,o,i,s){super(n),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=e?function(a){try{e(a)}catch(c){n.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((n=this.onFinalize)===null||n===void 0||n.call(this))}}};function $v(t,n,e,r){function o(i){return i instanceof e?i:new e(function(s){s(i)})}return new(e||(e=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(t,n||[])).next())})}function Hv(t){var n=typeof Symbol=="function"&&Symbol.iterator,e=n&&t[n],r=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function Fr(t){return this instanceof Fr?(this.v=t,this):new Fr(t)}function zv(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e.apply(t,n||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(p){return function(m){return Promise.resolve(m).then(p,d)}}function a(p,m){r[p]&&(o[p]=function(_){return new Promise(function(D,C){i.push([p,_,D,C])>1||c(p,_)})},m&&(o[p]=m(o[p])))}function c(p,m){try{l(r[p](m))}catch(_){h(i[0][3],_)}}function l(p){p.value instanceof Fr?Promise.resolve(p.value.v).then(u,d):h(i[0][2],p)}function u(p){c("next",p)}function d(p){c("throw",p)}function h(p,m){p(m),i.shift(),i.length&&c(i[0][0],i[0][1])}}function Gv(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t[Symbol.asyncIterator],e;return n?n.call(t):(t=typeof Hv=="function"?Hv(t):t[Symbol.iterator](),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(i){e[i]=t[i]&&function(s){return new Promise(function(a,c){s=t[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}var Mo=t=>t&&typeof t.length=="number"&&typeof t!="function";function Za(t){return O(t?.then)}function Ka(t){return O(t[So])}function Qa(t){return Symbol.asyncIterator&&O(t?.[Symbol.asyncIterator])}function Xa(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function aM(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ja=aM();function ec(t){return O(t?.[Ja])}function tc(t){return zv(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:r,done:o}=yield Fr(e.read());if(o)return yield Fr(void 0);yield yield Fr(r)}}finally{e.releaseLock()}})}function nc(t){return O(t?.getReader)}function q(t){if(t instanceof P)return t;if(t!=null){if(Ka(t))return cM(t);if(Mo(t))return lM(t);if(Za(t))return uM(t);if(Qa(t))return Wv(t);if(ec(t))return dM(t);if(nc(t))return fM(t)}throw Xa(t)}function cM(t){return new P(n=>{let e=t[So]();if(O(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function lM(t){return new P(n=>{for(let e=0;e{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,Wa)})}function dM(t){return new P(n=>{for(let e of t)if(n.next(e),n.closed)return;n.complete()})}function Wv(t){return new P(n=>{hM(t,n).catch(e=>n.error(e))})}function fM(t){return Wv(tc(t))}function hM(t,n){var e,r,o,i;return $v(this,void 0,void 0,function*(){try{for(e=Gv(t);r=yield e.next(),!r.done;){let s=r.value;if(n.next(s),n.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=e.return)&&(yield i.call(e))}finally{if(o)throw o.error}}n.complete()})}function jt(t){return x((n,e)=>{q(t).subscribe(A(e,()=>e.complete(),Nr)),!e.closed&&n.subscribe(e)})}function qv(){return x((t,n)=>{let e=null;t._refCount++;let r=A(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let o=t._connection,i=e;e=null,o&&(!i||o===i)&&o.unsubscribe(),n.unsubscribe()});t.subscribe(r),r.closed||(e=t.connect())})}var Ui=class extends P{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Xd(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){let n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new G;let e=this.getSubject();n.add(this.source.subscribe(A(e,void 0,()=>{this._teardown(),e.complete()},r=>{this._teardown(),e.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=G.EMPTY)}return n}refCount(){return qv()(this)}};var To={schedule(t){let n=requestAnimationFrame,e=cancelAnimationFrame,{delegate:r}=To;r&&(n=r.requestAnimationFrame,e=r.cancelAnimationFrame);let o=n(i=>{e=void 0,t(i)});return new G(()=>e?.(o))},requestAnimationFrame(...t){let{delegate:n}=To;return(n?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:n}=To;return(n?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var Re=class extends R{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){let e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){let{hasError:n,thrownError:e,_value:r}=this;if(n)throw e;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}};var Hi={now(){return(Hi.delegate||Date).now()},delegate:void 0};var $i=class extends R{constructor(n=1/0,e=1/0,r=Hi){super(),this._bufferSize=n,this._windowTime=e,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,n),this._windowTime=Math.max(1,e)}next(n){let{isStopped:e,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;e||(r.push(n),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(n)}_subscribe(n){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(n),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;sYv(n)&&t()),n},clearImmediate(t){Yv(t)}};var{setImmediate:mM,clearImmediate:gM}=Zv,Gi={setImmediate(...t){let{delegate:n}=Gi;return(n?.setImmediate||mM)(...t)},clearImmediate(t){let{delegate:n}=Gi;return(n?.clearImmediate||gM)(t)},delegate:void 0};var oc=class extends nr{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,r=0){return r!==null&&r>0?super.requestAsyncId(n,e,r):(n.actions.push(this),n._scheduled||(n._scheduled=Gi.setImmediate(n.flush.bind(n,void 0))))}recycleAsyncId(n,e,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(n,e,r);let{actions:i}=n;e!=null&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==e&&(Gi.clearImmediate(e),n._scheduled===e&&(n._scheduled=void 0))}};var xo=class t{constructor(n,e=t.now){this.schedulerActionCtor=n,this.now=e}schedule(n,e=0,r){return new this.schedulerActionCtor(this,n).schedule(r,e)}};xo.now=Hi.now;var rr=class extends xo{constructor(n,e=xo.now){super(n,e),this.actions=[],this._active=!1}flush(n){let{actions:e}=this;if(this._active){e.push(n);return}let r;this._active=!0;do if(r=n.execute(n.state,n.delay))break;while(n=e.shift());if(this._active=!1,r){for(;n=e.shift();)n.unsubscribe();throw r}}};var ic=class extends rr{flush(n){this._active=!0;let e=this._scheduled;this._scheduled=void 0;let{actions:r}=this,o;n=n||r.shift();do if(o=n.execute(n.state,n.delay))break;while((n=r[0])&&n.id===e&&r.shift());if(this._active=!1,o){for(;(n=r[0])&&n.id===e&&r.shift();)n.unsubscribe();throw o}}};var Kv=new ic(oc);var Ct=new rr(nr),nf=Ct;var sc=class extends nr{constructor(n,e){super(n,e),this.scheduler=n,this.work=e}requestAsyncId(n,e,r=0){return r!==null&&r>0?super.requestAsyncId(n,e,r):(n.actions.push(this),n._scheduled||(n._scheduled=To.requestAnimationFrame(()=>n.flush(void 0))))}recycleAsyncId(n,e,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(n,e,r);let{actions:i}=n;e!=null&&e===n._scheduled&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==e&&(To.cancelAnimationFrame(e),n._scheduled=void 0)}};var ac=class extends rr{flush(n){this._active=!0;let e;n?e=n.id:(e=this._scheduled,this._scheduled=void 0);let{actions:r}=this,o;n=n||r.shift();do if(o=n.execute(n.state,n.delay))break;while((n=r[0])&&n.id===e&&r.shift());if(this._active=!1,o){for(;(n=r[0])&&n.id===e&&r.shift();)n.unsubscribe();throw o}}};var Qv=new ac(sc);var Ne=new P(t=>t.complete());function cc(t){return t&&O(t.schedule)}function rf(t){return t[t.length-1]}function lc(t){return O(rf(t))?t.pop():void 0}function an(t){return cc(rf(t))?t.pop():void 0}function Xv(t,n){return typeof rf(t)=="number"?t.pop():n}function We(t,n,e,r=0,o=!1){let i=n.schedule(function(){e(),o?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(i),!o)return i}function uc(t,n=0){return x((e,r)=>{e.subscribe(A(r,o=>We(r,t,()=>r.next(o),n),()=>We(r,t,()=>r.complete(),n),o=>We(r,t,()=>r.error(o),n)))})}function Wi(t,n=0){return x((e,r)=>{r.add(t.schedule(()=>e.subscribe(r),n))})}function Jv(t,n){return q(t).pipe(Wi(n),uc(n))}function ey(t,n){return q(t).pipe(Wi(n),uc(n))}function ty(t,n){return new P(e=>{let r=0;return n.schedule(function(){r===t.length?e.complete():(e.next(t[r++]),e.closed||this.schedule())})})}function ny(t,n){return new P(e=>{let r;return We(e,n,()=>{r=t[Ja](),We(e,n,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){e.error(s);return}i?e.complete():e.next(o)},0,!0)}),()=>O(r?.return)&&r.return()})}function dc(t,n){if(!t)throw new Error("Iterable cannot be null");return new P(e=>{We(e,n,()=>{let r=t[Symbol.asyncIterator]();We(e,n,()=>{r.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function ry(t,n){return dc(tc(t),n)}function oy(t,n){if(t!=null){if(Ka(t))return Jv(t,n);if(Mo(t))return ty(t,n);if(Za(t))return ey(t,n);if(Qa(t))return dc(t,n);if(ec(t))return ny(t,n);if(nc(t))return ry(t,n)}throw Xa(t)}function ae(t,n){return n?oy(t,n):q(t)}function S(...t){let n=an(t);return ae(t,n)}function xn(t,n){let e=O(t)?t:()=>t,r=o=>o.error(e());return new P(n?o=>n.schedule(r,0,o):r)}function Vt(t){return!!t&&(t instanceof P||O(t.lift)&&O(t.subscribe))}var An=tr(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function vM(t,n){let e=typeof n=="object";return new Promise((r,o)=>{let i=new Lt({next:s=>{r(s),i.unsubscribe()},error:o,complete:()=>{e?r(n.defaultValue):o(new An)}});t.subscribe(i)})}function fc(t){return t instanceof Date&&!isNaN(t)}var yM=tr(t=>function(e=null){t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=e});function bM(t,n){let{first:e,each:r,with:o=_M,scheduler:i=n??Ct,meta:s=null}=fc(t)?{first:t}:typeof t=="number"?{each:t}:t;if(e==null&&r==null)throw new TypeError("No timeout provided.");return x((a,c)=>{let l,u,d=null,h=0,p=m=>{u=We(c,i,()=>{try{l.unsubscribe(),q(o({meta:s,lastValue:d,seen:h})).subscribe(c)}catch(_){c.error(_)}},m)};l=a.subscribe(A(c,m=>{u?.unsubscribe(),h++,c.next(d=m),r>0&&p(r)},void 0,void 0,()=>{u?.closed||u?.unsubscribe(),d=null})),!h&&p(e!=null?typeof e=="number"?e:+e-i.now():r)})}function _M(t){throw new yM(t)}function L(t,n){return x((e,r)=>{let o=0;e.subscribe(A(r,i=>{r.next(t.call(n,i,o++))}))})}var{isArray:DM}=Array;function EM(t,n){return DM(n)?t(...n):t(n)}function Ao(t){return L(n=>EM(t,n))}var{isArray:wM}=Array,{getPrototypeOf:CM,prototype:IM,keys:SM}=Object;function hc(t){if(t.length===1){let n=t[0];if(wM(n))return{args:n,keys:null};if(MM(n)){let e=SM(n);return{args:e.map(r=>n[r]),keys:e}}}return{args:t,keys:null}}function MM(t){return t&&typeof t=="object"&&CM(t)===IM}function pc(t,n){return t.reduce((e,r,o)=>(e[r]=n[o],e),{})}function Ro(...t){let n=an(t),e=lc(t),{args:r,keys:o}=hc(t);if(r.length===0)return ae([],n);let i=new P(TM(r,n,o?s=>pc(o,s):ht));return e?i.pipe(Ao(e)):i}function TM(t,n,e=ht){return r=>{iy(n,()=>{let{length:o}=t,i=new Array(o),s=o,a=o;for(let c=0;c{let l=ae(t[c],n),u=!1;l.subscribe(A(r,d=>{i[c]=d,u||(u=!0,a--),a||r.next(e(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function iy(t,n,e){t?We(e,t,n):n()}function sy(t,n,e,r,o,i,s,a){let c=[],l=0,u=0,d=!1,h=()=>{d&&!c.length&&!l&&n.complete()},p=_=>l{i&&n.next(_),l++;let D=!1;q(e(_,u++)).subscribe(A(n,C=>{o?.(C),i?p(C):n.next(C)},()=>{D=!0},void 0,()=>{if(D)try{for(l--;c.length&&lm(C)):m(C)}h()}catch(C){n.error(C)}}))};return t.subscribe(A(n,p,()=>{d=!0,h()})),()=>{a?.()}}function Ee(t,n,e=1/0){return O(n)?Ee((r,o)=>L((i,s)=>n(r,i,o,s))(q(t(r,o))),e):(typeof n=="number"&&(e=n),x((r,o)=>sy(r,o,t,e)))}function cn(t=1/0){return Ee(ht,t)}function ay(){return cn(1)}function ln(...t){return ay()(ae(t,an(t)))}function qi(t){return new P(n=>{q(t()).subscribe(n)})}function Yi(...t){let n=lc(t),{args:e,keys:r}=hc(t),o=new P(i=>{let{length:s}=e;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u{d||(d=!0,l--),a[u]=h},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?pc(r,a):a),i.complete())}))}});return n?o.pipe(Ao(n)):o}var xM=["addListener","removeListener"],AM=["addEventListener","removeEventListener"],RM=["on","off"];function of(t,n,e,r){if(O(e)&&(r=e,e=void 0),r)return of(t,n,e).pipe(Ao(r));let[o,i]=kM(t)?AM.map(s=>a=>t[s](n,a,e)):NM(t)?xM.map(cy(t,n)):OM(t)?RM.map(cy(t,n)):[];if(!o&&Mo(t))return Ee(s=>of(s,n,e))(q(t));if(!o)throw new TypeError("Invalid event target");return new P(s=>{let a=(...c)=>s.next(1i(a)})}function cy(t,n){return e=>r=>t[e](n,r)}function NM(t){return O(t.addListener)&&O(t.removeListener)}function OM(t){return O(t.on)&&O(t.off)}function kM(t){return O(t.addEventListener)&&O(t.removeEventListener)}function Pr(t=0,n,e=nf){let r=-1;return n!=null&&(cc(n)?e=n:r=n),new P(o=>{let i=fc(t)?+t-e.now():t;i<0&&(i=0);let s=0;return e.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function FM(t=0,n=Ct){return t<0&&(t=0),Pr(t,t,n)}function PM(...t){let n=an(t),e=Xv(t,1/0),r=t;return r.length?r.length===1?q(r[0]):cn(e)(ae(r,n)):Ne}function he(t,n){return x((e,r)=>{let o=0;e.subscribe(A(r,i=>t.call(n,i,o++)&&r.next(i)))})}function ly(t){return x((n,e)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let l=o;o=null,e.next(l)}s&&e.complete()},c=()=>{i=null,s&&e.complete()};n.subscribe(A(e,l=>{r=!0,o=l,i||q(t(l)).subscribe(i=A(e,a,c))},()=>{s=!0,(!r||!i||i.closed)&&e.complete()}))})}function mc(t,n=Ct){return ly(()=>Pr(t,n))}function It(t){return x((n,e)=>{let r=null,o=!1,i;r=n.subscribe(A(e,void 0,void 0,s=>{i=q(t(s,It(t)(n))),r?(r.unsubscribe(),r=null,i.subscribe(e)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(e))})}function uy(t,n,e,r,o){return(i,s)=>{let a=e,c=n,l=0;i.subscribe(A(s,u=>{let d=l++;c=a?t(c,u,d):(a=!0,u),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function sf(t,n){return x(uy(t,n,arguments.length>=2,!1,!0))}var LM=(t,n)=>(t.push(n),t);function jM(){return x((t,n)=>{sf(LM,[])(t).subscribe(n)})}function or(t,n){return O(n)?Ee(t,n,1):Ee(t,1)}function Lr(t,n=Ct){return x((e,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let l=i;i=null,r.next(l)}};function c(){let l=s+t,u=n.now();if(u{i=l,s=n.now(),o||(o=n.schedule(c,t),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function dy(t){return x((n,e)=>{let r=!1;n.subscribe(A(e,o=>{r=!0,e.next(o)},()=>{r||e.next(t),e.complete()}))})}function Oe(t){return t<=0?()=>Ne:x((n,e)=>{let r=0;n.subscribe(A(e,o=>{++r<=t&&(e.next(o),t<=r&&e.complete())}))})}function fy(){return x((t,n)=>{t.subscribe(A(n,Nr))})}function af(t){return L(()=>t)}function cf(t,n){return n?e=>ln(n.pipe(Oe(1),fy()),e.pipe(cf(t))):Ee((e,r)=>q(t(e,r)).pipe(Oe(1),af(e)))}function VM(t,n=Ct){let e=Pr(t,n);return cf(()=>e)}function gc(t,n=ht){return t=t??BM,x((e,r)=>{let o,i=!0;e.subscribe(A(r,s=>{let a=n(s);(i||!t(o,a))&&(i=!1,o=a,r.next(s))}))})}function BM(t,n){return t===n}function hy(t=UM){return x((n,e)=>{let r=!1;n.subscribe(A(e,o=>{r=!0,e.next(o)},()=>r?e.complete():e.error(t())))})}function UM(){return new An}function py(t,n){return n?e=>e.pipe(py((r,o)=>q(t(r,o)).pipe(L((i,s)=>n(r,i,o,s))))):x((e,r)=>{let o=0,i=null,s=!1;e.subscribe(A(r,a=>{i||(i=A(r,void 0,()=>{i=null,s&&r.complete()}),q(t(a,o++)).subscribe(i))},()=>{s=!0,!i&&r.complete()}))})}function Rn(t){return x((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}function Nn(t,n){let e=arguments.length>=2;return r=>r.pipe(t?he((o,i)=>t(o,i,r)):ht,Oe(1),e?dy(n):hy(()=>new An))}function vc(t){return t<=0?()=>Ne:x((n,e)=>{let r=[];n.subscribe(A(e,o=>{r.push(o),t{for(let o of r)e.next(o);e.complete()},void 0,()=>{r=null}))})}function my(){return x((t,n)=>{let e,r=!1;t.subscribe(A(n,o=>{let i=e;e=o,r&&n.next([i,o]),r=!0}))})}function Zi(t={}){let{connector:n=()=>new R,resetOnError:e=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=t;return i=>{let s,a,c,l=0,u=!1,d=!1,h=()=>{a?.unsubscribe(),a=void 0},p=()=>{h(),s=c=void 0,u=d=!1},m=()=>{let _=s;p(),_?.unsubscribe()};return x((_,D)=>{l++,!d&&!u&&h();let C=c=c??n();D.add(()=>{l--,l===0&&!d&&!u&&(a=lf(m,o))}),C.subscribe(D),!s&&l>0&&(s=new Lt({next:$=>C.next($),error:$=>{d=!0,h(),a=lf(p,e,$),C.error($)},complete:()=>{u=!0,h(),a=lf(p,r),C.complete()}}),q(_).subscribe(s))})(i)}}function lf(t,n,...e){if(n===!0){t();return}if(n===!1)return;let r=new Lt({next:()=>{r.unsubscribe(),t()}});return q(n(...e)).subscribe(r)}function gy(t,n,e){let r,o=!1;return t&&typeof t=="object"?{bufferSize:r=1/0,windowTime:n=1/0,refCount:o=!1,scheduler:e}=t:r=t??1/0,Zi({connector:()=>new $i(r,n,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Ki(t){return he((n,e)=>t<=e)}function No(...t){let n=an(t);return x((e,r)=>{(n?ln(t,e,n):ln(t,e)).subscribe(r)})}function Be(t,n){return x((e,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();e.subscribe(A(r,c=>{o?.unsubscribe();let l=0,u=i++;q(t(c,u)).subscribe(o=A(r,d=>r.next(n?n(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function yc(t,n=!1){return x((e,r)=>{let o=0;e.subscribe(A(r,i=>{let s=t(i,o++);(s||n)&&r.next(i),!s&&r.complete()}))})}function Ue(t,n,e){let r=O(t)||n||e?{next:t,error:n,complete:e}:t;return r?x((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(A(i,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),i.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):ht}var qe=null,bc=!1,uf=1,HM=null,me=Symbol("SIGNAL");function T(t){let n=qe;return qe=t,n}function _c(){return qe}var ir={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function On(t){if(bc)throw new Error("");if(qe===null)return;qe.consumerOnSignalRead(t);let n=qe.producersTail;if(n!==void 0&&n.producer===t)return;let e,r=qe.recomputing;if(r&&(e=n!==void 0?n.nextProducer:qe.producers,e!==void 0&&e.producer===t)){qe.producersTail=e,e.lastReadVersion=t.version;return}let o=t.consumersTail;if(o!==void 0&&o.consumer===qe&&(!r||zM(o,qe)))return;let i=Fo(qe),s={producer:t,consumer:qe,nextProducer:e,prevConsumer:o,lastReadVersion:t.version,nextConsumer:void 0};qe.producersTail=s,n!==void 0?n.nextProducer=s:qe.producers=s,i&&_y(t,s)}function vy(){uf++}function Br(t){if(!(Fo(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===uf)){if(!t.producerMustRecompute(t)&&!ko(t)){Oo(t);return}t.producerRecomputeValue(t),Oo(t)}}function df(t){if(t.consumers===void 0)return;let n=bc;bc=!0;try{for(let e=t.consumers;e!==void 0;e=e.nextConsumer){let r=e.consumer;r.dirty||$M(r)}}finally{bc=n}}function ff(){return qe?.consumerAllowSignalWrites!==!1}function $M(t){t.dirty=!0,df(t),t.consumerMarkedDirty?.(t)}function Oo(t){t.dirty=!1,t.lastCleanEpoch=uf}function kn(t){return t&&yy(t),T(t)}function yy(t){t.producersTail=void 0,t.recomputing=!0}function sr(t,n){T(n),t&&by(t)}function by(t){t.recomputing=!1;let n=t.producersTail,e=n!==void 0?n.nextProducer:t.producers;if(e!==void 0){if(Fo(t))do e=hf(e);while(e!==void 0);n!==void 0?n.nextProducer=void 0:t.producers=void 0}}function ko(t){for(let n=t.producers;n!==void 0;n=n.nextProducer){let e=n.producer,r=n.lastReadVersion;if(r!==e.version||(Br(e),r!==e.version))return!0}return!1}function ar(t){if(Fo(t)){let n=t.producers;for(;n!==void 0;)n=hf(n)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function _y(t,n){let e=t.consumersTail,r=Fo(t);if(e!==void 0?(n.nextConsumer=e.nextConsumer,e.nextConsumer=n):(n.nextConsumer=void 0,t.consumers=n),n.prevConsumer=e,t.consumersTail=n,!r)for(let o=t.producers;o!==void 0;o=o.nextProducer)_y(o.producer,o)}function hf(t){let n=t.producer,e=t.nextProducer,r=t.nextConsumer,o=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,r!==void 0?r.prevConsumer=o:n.consumersTail=o,o!==void 0)o.nextConsumer=r;else if(n.consumers=r,!Fo(n)){let i=n.producers;for(;i!==void 0;)i=hf(i)}return e}function Fo(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function Qi(t){HM?.(t)}function zM(t,n){let e=n.producersTail;if(e!==void 0){let r=n.producers;do{if(r===t)return!0;if(r===e)break;r=r.nextProducer}while(r!==void 0)}return!1}function Xi(t,n){return Object.is(t,n)}function Ji(t,n){let e=Object.create(GM);e.computation=t,n!==void 0&&(e.equal=n);let r=()=>{if(Br(e),On(e),e.value===un)throw e.error;return e.value};return r[me]=e,Qi(e),r}var jr=Symbol("UNSET"),Vr=Symbol("COMPUTING"),un=Symbol("ERRORED"),GM=F(g({},ir),{value:jr,dirty:!0,error:null,equal:Xi,kind:"computed",producerMustRecompute(t){return t.value===jr||t.value===Vr},producerRecomputeValue(t){if(t.value===Vr)throw new Error("");let n=t.value;t.value=Vr;let e=kn(t),r,o=!1;try{r=t.computation(),T(null),o=n!==jr&&n!==un&&r!==un&&t.equal(n,r)}catch(i){r=un,t.error=i}finally{sr(t,e)}if(o){t.value=n;return}t.value=r,t.version++}});function WM(){throw new Error}var Dy=WM;function Ey(t){Dy(t)}function pf(t){Dy=t}var qM=null;function mf(t,n){let e=Object.create(es);e.value=t,n!==void 0&&(e.equal=n);let r=()=>wy(e);return r[me]=e,Qi(e),[r,s=>cr(e,s),s=>Dc(e,s)]}function wy(t){return On(t),t.value}function cr(t,n){ff()||Ey(t),t.equal(t.value,n)||(t.value=n,YM(t))}function Dc(t,n){ff()||Ey(t),cr(t,n(t.value))}var es=F(g({},ir),{equal:Xi,value:void 0,kind:"signal"});function YM(t){t.version++,vy(),df(t),qM?.(t)}var gf=F(g({},ir),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function vf(t){if(t.dirty=!1,t.version>0&&!ko(t))return;t.version++;let n=kn(t);try{t.cleanup(),t.fn()}finally{sr(t,n)}}var yf;function Ec(){return yf}function dn(t){let n=yf;return yf=t,n}var Cy=Symbol("NotFound");function Po(t){return t===Cy||t?.name==="\u0275NotFound"}function bf(t,n,e){let r=Object.create(ZM);r.source=t,r.computation=n,e!=null&&(r.equal=e);let i=()=>{if(Br(r),On(r),r.value===un)throw r.error;return r.value};return i[me]=r,Qi(r),i}function Iy(t,n){Br(t),cr(t,n),Oo(t)}function Sy(t,n){if(Br(t),t.value===un)throw t.error;Dc(t,n),Oo(t)}var ZM=F(g({},ir),{value:jr,dirty:!0,error:null,equal:Xi,kind:"linkedSignal",producerMustRecompute(t){return t.value===jr||t.value===Vr},producerRecomputeValue(t){if(t.value===Vr)throw new Error("");let n=t.value;t.value=Vr;let e=kn(t),r,o=!1;try{let i=t.source(),s=n!==jr&&n!==un,a=s?{source:t.sourceValue,value:n}:void 0;r=t.computation(i,a),t.sourceValue=i,T(null),o=s&&r!==un&&t.equal(n,r)}catch(i){r=un,t.error=i}finally{sr(t,e)}if(o){t.value=n;return}t.value=r,t.version++}});function My(t){let n=T(null);try{return t()}finally{T(n)}}var Ac="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",b=class extends Error{code;constructor(n,e){super(St(n,e)),this.code=n}};function KM(t){return`NG0${Math.abs(t)}`}function St(t,n){return`${KM(t)}${n?": "+n:""}`}var we=globalThis;function re(t){for(let n in t)if(t[n]===re)return n;throw Error("")}function Ny(t,n){for(let e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function cs(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(cs).join(", ")}]`;if(t==null)return""+t;let n=t.overriddenName||t.name;if(n)return`${n}`;let e=t.toString();if(e==null)return""+e;let r=e.indexOf(` +`);return r>=0?e.slice(0,r):e}function Rc(t,n){return t?n?`${t} ${n}`:t:n||""}var QM=re({__forward_ref__:re});function Ce(t){return t.__forward_ref__=Ce,t}function ke(t){return Nf(t)?t():t}function Nf(t){return typeof t=="function"&&t.hasOwnProperty(QM)&&t.__forward_ref__===Ce}function v(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Y(t){return{providers:t.providers||[],imports:t.imports||[]}}function ls(t){return XM(t,Nc)}function Of(t){return ls(t)!==null}function XM(t,n){return t.hasOwnProperty(n)&&t[n]||null}function JM(t){let n=t?.[Nc]??null;return n||null}function Df(t){return t&&t.hasOwnProperty(Ic)?t[Ic]:null}var Nc=re({\u0275prov:re}),Ic=re({\u0275inj:re}),y=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(n,e){this._desc=n,this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=v({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function kf(t){return t&&!!t.\u0275providers}var us=re({\u0275cmp:re}),ds=re({\u0275dir:re}),Ff=re({\u0275pipe:re}),Pf=re({\u0275mod:re}),ns=re({\u0275fac:re}),Gr=re({__NG_ELEMENT_ID__:re}),Ty=re({__NG_ENV_ID__:re});function Lf(t){return kc(t,"@NgModule"),t[Pf]||null}function hn(t){return kc(t,"@Component"),t[us]||null}function Oc(t){return kc(t,"@Directive"),t[ds]||null}function Oy(t){return kc(t,"@Pipe"),t[Ff]||null}function kc(t,n){if(t==null)throw new b(-919,!1)}function Se(t){return typeof t=="string"?t:t==null?"":String(t)}var ky=re({ngErrorCode:re}),eT=re({ngErrorMessage:re}),tT=re({ngTokenPath:re});function jf(t,n){return Fy("",-200,n)}function Fc(t,n){throw new b(-201,!1)}function Fy(t,n,e){let r=new b(n,t);return r[ky]=n,r[eT]=t,e&&(r[tT]=e),r}function nT(t){return t[ky]}var Ef;function Py(){return Ef}function tt(t){let n=Ef;return Ef=t,n}function Vf(t,n,e){let r=ls(t);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(e&8)return null;if(n!==void 0)return n;Fc(t,"")}var rT={},Ur=rT,oT="__NG_DI_FLAG__",wf=class{injector;constructor(n){this.injector=n}retrieve(n,e){let r=Hr(e)||0;try{return this.injector.get(n,r&8?null:Ur,r)}catch(o){if(Po(o))return o;throw o}}};function iT(t,n=0){let e=Ec();if(e===void 0)throw new b(-203,!1);if(e===null)return Vf(t,void 0,n);{let r=sT(n),o=e.retrieve(t,r);if(Po(o)){if(r.optional)return null;throw o}return o}}function w(t,n=0){return(Py()||iT)(ke(t),n)}function f(t,n){return w(t,Hr(n))}function Hr(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function sT(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function Cf(t){let n=[];for(let e=0;eArray.isArray(e)?Pc(e,n):n(e))}function Bf(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function fs(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function Vy(t,n){let e=[];for(let r=0;rn;){let i=o-2;t[o]=t[i],o--}t[n]=e,t[n+1]=r}}function Lc(t,n,e){let r=jo(t,n);return r>=0?t[r|1]=e:(r=~r,By(t,r,n,e)),r}function jc(t,n){let e=jo(t,n);if(e>=0)return t[e|1]}function jo(t,n){return cT(t,n,1)}function cT(t,n,e){let r=0,o=t.length>>e;for(;o!==r;){let i=r+(o-r>>1),s=t[i<n?o=i:r=i+1}return~(o<{e.push(s)};return Pc(n,s=>{let a=s;Sc(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Hy(o,i),e}function Hy(t,n){for(let e=0;e{n(i,r)})}}function Sc(t,n,e,r){if(t=ke(t),!t)return!1;let o=null,i=Df(t),s=!i&&hn(t);if(!i&&!s){let c=t.ngModule;if(i=Df(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=t}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)Sc(l,n,e,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;Pc(i.imports,u=>{Sc(u,n,e,r)&&(l||=[],l.push(u))}),l!==void 0&&Hy(l,n)}if(!a){let l=ur(o)||(()=>new o);n({provide:o,useFactory:l,deps:Ye},o),n({provide:Hf,useValue:o,multi:!0},o),n({provide:Wr,useValue:()=>w(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=t;zf(c,u=>{n(u,l)})}}else return!1;return o!==t&&t.providers!==void 0}function zf(t,n){for(let e of t)kf(e)&&(e=e.\u0275providers),Array.isArray(e)?zf(e,n):n(e)}var lT=re({provide:String,useValue:re});function $y(t){return t!==null&&typeof t=="object"&&lT in t}function uT(t){return!!(t&&t.useExisting)}function dT(t){return!!(t&&t.useFactory)}function $r(t){return typeof t=="function"}function zy(t){return!!t.useClass}var hs=new y(""),wc={},xy={},_f;function Vo(){return _f===void 0&&(_f=new rs),_f}var oe=class{},zr=class extends oe{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(n,e,r,o){super(),this.parent=e,this.source=r,this.scopes=o,Sf(n,s=>this.processProvider(s)),this.records.set(Uf,Lo(void 0,this)),o.has("environment")&&this.records.set(oe,Lo(void 0,this));let i=this.records.get(hs);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Hf,Ye,{self:!0}))}retrieve(n,e){let r=Hr(e)||0;try{return this.get(n,Ur,r)}catch(o){if(Po(o))return o;throw o}}destroy(){ts(this),this._destroyed=!0;let n=T(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of e)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),T(n)}}onDestroy(n){return ts(this),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){ts(this);let e=dn(this),r=tt(void 0),o;try{return n()}finally{dn(e),tt(r)}}get(n,e=Ur,r){if(ts(this),n.hasOwnProperty(Ty))return n[Ty](this);let o=Hr(r),i,s=dn(this),a=tt(void 0);try{if(!(o&4)){let l=this.records.get(n);if(l===void 0){let u=gT(n)&&ls(n);u&&this.injectableDefInScope(u)?l=Lo(If(n),wc):l=null,this.records.set(n,l)}if(l!=null)return this.hydrate(n,l,o)}let c=o&2?Vo():this.parent;return e=o&8&&e===Ur?null:e,c.get(n,e)}catch(c){let l=nT(c);throw l===-200||l===-201?new b(l,null):c}finally{tt(a),dn(s)}}resolveInjectorInitializers(){let n=T(null),e=dn(this),r=tt(void 0),o;try{let i=this.get(Wr,Ye,{self:!0});for(let s of i)s()}finally{dn(e),tt(r),T(n)}}toString(){return"R3Injector[...]"}processProvider(n){n=ke(n);let e=$r(n)?n:ke(n&&n.provide),r=hT(n);if(!$r(n)&&n.multi===!0){let o=this.records.get(e);o||(o=Lo(void 0,wc,!0),o.factory=()=>Cf(o.multi),this.records.set(e,o)),e=n,o.multi.push(n)}this.records.set(e,r)}hydrate(n,e,r){let o=T(null);try{if(e.value===xy)throw jf("");return e.value===wc&&(e.value=xy,e.value=e.factory(void 0,r)),typeof e.value=="object"&&e.value&&mT(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{T(o)}}injectableDefInScope(n){if(!n.providedIn)return!1;let e=ke(n.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(n){let e=this._onDestroyHooks.indexOf(n);e!==-1&&this._onDestroyHooks.splice(e,1)}};function If(t){let n=ls(t),e=n!==null?n.factory:ur(t);if(e!==null)return e;if(t instanceof y)throw new b(-204,!1);if(t instanceof Function)return fT(t);throw new b(-204,!1)}function fT(t){if(t.length>0)throw new b(-204,!1);let e=JM(t);return e!==null?()=>e.factory(t):()=>new t}function hT(t){if($y(t))return Lo(void 0,t.useValue);{let n=Gf(t);return Lo(n,wc)}}function Gf(t,n,e){let r;if($r(t)){let o=ke(t);return ur(o)||If(o)}else if($y(t))r=()=>ke(t.useValue);else if(dT(t))r=()=>t.useFactory(...Cf(t.deps||[]));else if(uT(t))r=(o,i)=>w(ke(t.useExisting),i!==void 0&&i&8?8:void 0);else{let o=ke(t&&(t.useClass||t.provide));if(pT(t))r=()=>new o(...Cf(t.deps));else return ur(o)||If(o)}return r}function ts(t){if(t.destroyed)throw new b(-205,!1)}function Lo(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function pT(t){return!!t.deps}function mT(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function gT(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function Sf(t,n){for(let e of t)Array.isArray(e)?Sf(e,n):e&&kf(e)?Sf(e.\u0275providers,n):n(e)}function Pe(t,n){let e;t instanceof zr?(ts(t),e=t):e=new wf(t);let r,o=dn(e),i=tt(void 0);try{return n()}finally{dn(o),tt(i)}}function Wf(){return Py()!==void 0||Ec()!=null}var Ut=0,N=1,j=2,Fe=3,Mt=4,nt=5,qr=6,Bo=7,ge=8,Pn=9,Ht=10,se=11,Uo=12,qf=13,Yr=14,Ke=15,pr=16,Zr=17,pn=18,Ln=19,Yf=20,Fn=21,Vc=22,dr=23,pt=24,Kr=25,mr=26,de=27,Gy=1,Zf=6,gr=7,ps=8,Qr=9,ve=10;function jn(t){return Array.isArray(t)&&typeof t[Gy]=="object"}function $t(t){return Array.isArray(t)&&t[Gy]===!0}function Kf(t){return(t.flags&4)!==0}function mn(t){return t.componentOffset>-1}function Ho(t){return(t.flags&1)===1}function zt(t){return!!t.template}function $o(t){return(t[j]&512)!==0}function Xr(t){return(t[j]&256)===256}var J=(function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t[t.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",t})(J||{}),Cc,os="svg",Qf="math";function Wy(){return Cc||(Cc={},lr(J.HTML,void 0,[["iframe",["srcdoc"]],["*",["innerHTML","outerHTML"]]]),lr(J.STYLE,void 0,[["*",["style"]]]),lr(J.URL,void 0,[["*",["formAction"]],["area",["href"]],["a",["href","xlink:href"]],["form",["action"]],["img",["src"]],["video",["src"]]]),lr(J.URL,Qf,[["*",["href","xlink:href"]],["annotation",["href","xlink:href"]],["annotation-xml",["href","xlink:href"]],["maction",["href","xlink:href"]],["malignmark",["href","xlink:href"]],["math",["href","xlink:href"]],["mroot",["href","xlink:href"]],["msqrt",["href","xlink:href"]],["merror",["href","xlink:href"]],["mfrac",["href","xlink:href"]],["mglyph",["href","xlink:href"]],["msub",["href","xlink:href"]],["msup",["href","xlink:href"]],["msubsup",["href","xlink:href"]],["mmultiscripts",["href","xlink:href"]],["mprescripts",["href","xlink:href"]],["mi",["href","xlink:href"]],["mn",["href","xlink:href"]],["mo",["href","xlink:href"]],["mpadded",["href","xlink:href"]],["mphantom",["href","xlink:href"]],["mrow",["href","xlink:href"]],["ms",["href","xlink:href"]],["mspace",["href","xlink:href"]],["mstyle",["href","xlink:href"]],["mtable",["href","xlink:href"]],["mtd",["href","xlink:href"]],["mtr",["href","xlink:href"]],["mtext",["href","xlink:href"]],["mover",["href","xlink:href"]],["munder",["href","xlink:href"]],["munderover",["href","xlink:href"]],["semantics",["href","xlink:href"]],["none",["href","xlink:href"]]]),lr(J.RESOURCE_URL,void 0,[["base",["href"]],["embed",["src"]],["frame",["src"]],["iframe",["src"]],["link",["href"]],["object",["codebase","data"]]]),lr(J.URL,os,[["a",["href","xlink:href"]]]),lr(J.ATTRIBUTE_NO_BINDING,os,[["animate",["attributeName","values","to","from"]],["set",["to","attributeName"]],["animateMotion",["attributeName"]],["animateTransform",["attributeName"]]]),lr(J.ATTRIBUTE_NO_BINDING,void 0,[["unknown",["attributeName","values","to","from","sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority"]],["iframe",["sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority"]]])),Cc}function lr(t,n,e){for(let[r,o]of e){let i=n&&r!=="unknown"?`:${n}:${r}`:r;i=i.toLowerCase();for(let s of o)Cc[`${i}|${s.toLowerCase()}`]=t}}function qy(t,n,e){let r=Wy(),o=t.toLowerCase(),i=n.toLowerCase(),s=e&&o!=="*"&&o!=="unknown"?r[`:${e}:${o}|${i}`]:void 0,a=e?r[`:${e}:*|${i}`]:void 0;return s??a??r[`${o}|${i}`]??r[`*|${i}`]??J.NONE}function Tt(t){for(;Array.isArray(t);)t=t[Ut];return t}function Xf(t,n){return Tt(n[t])}function mt(t,n){return Tt(n[t.index])}function Bc(t,n){return t.data[n]}function ms(t,n){return t[n]}function Jf(t,n,e,r){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=r}function xt(t,n){let e=n[t];return jn(e)?e:e[Ut]}function Yy(t){return(t[j]&4)===4}function Uc(t){return(t[j]&128)===128}function Zy(t){return $t(t[Fe])}function gt(t,n){return n==null?null:t[n]}function eh(t){t[Zr]=0}function th(t){t[j]&1024||(t[j]|=1024,Uc(t)&&Jr(t))}function Ky(t,n){for(;t>0;)n=n[Yr],t--;return n}function gs(t){return!!(t[j]&9216||t[pt]?.dirty)}function Hc(t){t[Ht].changeDetectionScheduler?.notify(8),t[j]&64&&(t[j]|=1024),gs(t)&&Jr(t)}function Jr(t){t[Ht].changeDetectionScheduler?.notify(0);let n=fr(t);for(;n!==null&&!(n[j]&8192||(n[j]|=8192,!Uc(n)));)n=fr(n)}function nh(t,n){if(Xr(t))throw new b(911,!1);t[Fn]===null&&(t[Fn]=[]),t[Fn].push(n)}function Qy(t,n){if(t[Fn]===null)return;let e=t[Fn].indexOf(n);e!==-1&&t[Fn].splice(e,1)}function fr(t){let n=t[Fe];return $t(n)?n[Fe]:n}function rh(t){return t[Bo]??=[]}function oh(t){return t.cleanup??=[]}function Xy(t,n,e,r){let o=rh(n);o.push(e),t.firstCreatePass&&oh(t).push(r,o.length-1)}var U={lFrame:db(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Mf=!1;function Jy(){return U.lFrame.elementDepthCount}function eb(){U.lFrame.elementDepthCount++}function ih(){U.lFrame.elementDepthCount--}function $c(){return U.bindingsEnabled}function sh(){return U.skipHydrationRootTNode!==null}function ah(t){return U.skipHydrationRootTNode===t}function ch(){U.skipHydrationRootTNode=null}function I(){return U.lFrame.lView}function le(){return U.lFrame.tView}function tb(t){return U.lFrame.contextLView=t,t[ge]}function nb(t){return U.lFrame.contextLView=null,t}function Me(){let t=lh();for(;t!==null&&t.type===64;)t=t.parent;return t}function lh(){return U.lFrame.currentTNode}function rb(){let t=U.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}function zo(t,n){let e=U.lFrame;e.currentTNode=t,e.isParent=n}function uh(){return U.lFrame.isParent}function dh(){U.lFrame.isParent=!1}function ob(){return U.lFrame.contextLView}function fh(){return Mf}function is(t){let n=Mf;return Mf=t,n}function gn(){let t=U.lFrame,n=t.bindingRootIndex;return n===-1&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function vs(){return U.lFrame.bindingIndex}function ib(t){return U.lFrame.bindingIndex=t}function Vn(){return U.lFrame.bindingIndex++}function eo(t){let n=U.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function sb(){return U.lFrame.inI18n}function ab(t,n){let e=U.lFrame;e.bindingIndex=e.bindingRootIndex=t,zc(n)}function cb(){return U.lFrame.currentDirectiveIndex}function zc(t){U.lFrame.currentDirectiveIndex=t}function lb(t){let n=U.lFrame.currentDirectiveIndex;return n===-1?null:t[n]}function Gc(){return U.lFrame.currentQueryIndex}function ys(t){U.lFrame.currentQueryIndex=t}function vT(t){let n=t[N];return n.type===2?n.declTNode:n.type===1?t[nt]:null}function hh(t,n,e){if(e&4){let o=n,i=t;for(;o=o.parent,o===null&&!(e&1);)if(o=vT(i),o===null||(i=i[Yr],o.type&10))break;if(o===null)return!1;n=o,t=i}let r=U.lFrame=ub();return r.currentTNode=n,r.lView=t,!0}function Wc(t){let n=ub(),e=t[N];U.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function ub(){let t=U.lFrame,n=t===null?null:t.child;return n===null?db(t):n}function db(t){let n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=n),n}function fb(){let t=U.lFrame;return U.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var ph=fb;function qc(){let t=fb();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function hb(t){return(U.lFrame.contextLView=Ky(t,U.lFrame.contextLView))[ge]}function at(){return U.lFrame.selectedIndex}function vr(t){U.lFrame.selectedIndex=t}function to(){let t=U.lFrame;return Bc(t.tView,t.selectedIndex)}function pb(){U.lFrame.currentNamespace=os}function mb(){yT()}function yT(){U.lFrame.currentNamespace=null}function mh(){return U.lFrame.currentNamespace}var gb=!0;function Yc(){return gb}function bs(t){gb=t}function Tf(t,n=null,e=null,r){let o=gh(t,n,e,r);return o.resolveInjectorInitializers(),o}function gh(t,n=null,e=null,r,o=new Set){let i=[e||Ye,Uy(t)],s;return new zr(i,n||Vo(),s||null,o)}var W=class t{static THROW_IF_NOT_FOUND=Ur;static NULL=new rs;static create(n,e){if(Array.isArray(n))return Tf({name:""},e,n,"");{let r=n.name??"";return Tf({name:r},n.parent,n.providers,r)}}static \u0275prov=v({token:t,providedIn:"any",factory:()=>w(Uf)});static __NG_ELEMENT_ID__=-1},k=new y(""),He=(()=>{class t{static __NG_ELEMENT_ID__=bT;static __NG_ENV_ID__=e=>e}return t})(),Mc=class extends He{_lView;constructor(n){super(),this._lView=n}get destroyed(){return Xr(this._lView)}onDestroy(n){let e=this._lView;return nh(e,n),()=>Qy(e,n)}};function bT(){return new Mc(I())}var vb=!1,yb=new y(""),Bn=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new Re(!1);debugTaskTracker=f(yb,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new P(e=>{e.next(!1),e.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),this.debugTaskTracker?.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.debugTaskTracker?.remove(e),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=v({token:t,providedIn:"root",factory:()=>new t})}return t})(),xf=class extends R{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(n=!1){super(),this.__isAsync=n,Wf()&&(this.destroyRef=f(He,{optional:!0})??void 0,this.pendingTasks=f(Bn,{optional:!0})??void 0)}emit(n){let e=T(null);try{super.next(n)}finally{T(e)}}subscribe(n,e,r){let o=n,i=e||(()=>null),s=r;if(n&&typeof n=="object"){let c=n;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return n instanceof G&&n.add(a),a}wrapInTimeout(n){return e=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{n(e)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},H=xf;function Tc(...t){}function vh(t){let n,e;function r(){t=Tc;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),n!==void 0&&clearTimeout(n)}catch{}}return n=setTimeout(()=>{t(),r()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),r()})),()=>r()}function bb(t){return queueMicrotask(()=>t()),()=>{t=Tc}}var yh="isAngularZone",ss=yh+"_ID",_T=0,V=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new H(!1);onMicrotaskEmpty=new H(!1);onStable=new H(!1);onError=new H(!1);constructor(n){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=vb}=n;if(typeof Zone>"u")throw new b(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,wT(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(yh)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new b(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new b(909,!1)}run(n,e,r){return this._inner.run(n,e,r)}runTask(n,e,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,n,DT,Tc,Tc);try{return i.runTask(s,e,r)}finally{i.cancelTask(s)}}runGuarded(n,e,r){return this._inner.runGuarded(n,e,r)}runOutsideAngular(n){return this._outer.run(n)}},DT={};function bh(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function ET(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function n(){vh(()=>{t.callbackScheduled=!1,Af(t),t.isCheckStableRunning=!0,bh(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{n()}):t._outer.run(()=>{n()}),Af(t)}function wT(t){let n=()=>{ET(t)},e=_T++;t._inner=t._inner.fork({name:"angular",properties:{[yh]:!0,[ss]:e,[ss+e]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(CT(c))return r.invokeTask(i,s,a,c);try{return Ay(t),r.invokeTask(i,s,a,c)}finally{(t.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&n(),Ry(t)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return Ay(t),r.invoke(i,s,a,c,l)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!IT(c)&&n(),Ry(t)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(t._hasPendingMicrotasks=s.microTask,Af(t),bh(t)):s.change=="macroTask"&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}function Af(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function Ay(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Ry(t){t._nesting--,bh(t)}var as=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new H;onMicrotaskEmpty=new H;onStable=new H;onError=new H;run(n,e,r){return n.apply(e,r)}runGuarded(n,e,r){return n.apply(e,r)}runOutsideAngular(n){return n()}runTask(n,e,r,o){return n.apply(e,r)}};function CT(t){return _b(t,"__ignore_ng_zone__")}function IT(t){return _b(t,"__scheduler_tick__")}function _b(t,n){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[n]===!0}var Ze=class{_console=console;handleError(n){this._console.error("ERROR",n)}},vt=new y("",{factory:()=>{let t=f(V),n=f(oe),e;return r=>{t.runOutsideAngular(()=>{n.destroyed&&!e?setTimeout(()=>{throw r}):(e??=n.get(Ze),e.handleError(r))})}}}),Db={provide:Wr,useValue:()=>{let t=f(Ze,{optional:!0})},multi:!0};function Q(t,n){let[e,r,o]=mf(t,n?.equal),i=e,s=i[me];return i.set=r,i.update=o,i.asReadonly=_s.bind(i),i}function _s(){let t=this[me];if(t.readonlyFn===void 0){let n=()=>this();n[me]=t,t.readonlyFn=n}return t.readonlyFn}var Go=(()=>{class t{view;node;constructor(e,r){this.view=e,this.node=r}static __NG_ELEMENT_ID__=ST}return t})();function ST(){return new Go(I(),Me())}var fn=class{},Ds=new y("",{factory:()=>!0});var _h=new y(""),Wo=(()=>{class t{internalPendingTasks=f(Bn);scheduler=f(fn);errorHandler=f(vt);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let r=this.add();e().catch(this.errorHandler).finally(r)}static \u0275prov=v({token:t,providedIn:"root",factory:()=>new t})}return t})(),Zc=(()=>{class t{static \u0275prov=v({token:t,providedIn:"root",factory:()=>new Rf})}return t})(),Rf=class{dirtyEffectCount=0;queues=new Map;add(n){this.enqueue(n),this.schedule(n)}schedule(n){n.dirty&&this.dirtyEffectCount++}remove(n){let e=n.zone,r=this.queues.get(e);r.has(n)&&(r.delete(n),n.dirty&&this.dirtyEffectCount--)}enqueue(n){let e=n.zone;this.queues.has(e)||this.queues.set(e,new Set);let r=this.queues.get(e);r.has(n)||r.add(n)}flush(){for(;this.dirtyEffectCount>0;){let n=!1;for(let[e,r]of this.queues)e===null?n||=this.flushQueue(r):n||=e.run(()=>this.flushQueue(r));n||(this.dirtyEffectCount=0)}}flushQueue(n){let e=!1;for(let r of n)r.dirty&&(this.dirtyEffectCount--,e=!0,r.run());return e}},xc=class{[me];constructor(n){this[me]=n}destroy(){this[me].destroy()}};function Es(t,n){let e=n?.injector??f(W),r=n?.manualCleanup!==!0?e.get(He):null,o,i=e.get(Go,null,{optional:!0}),s=e.get(fn);return i!==null?(o=xT(i.view,s,t),r instanceof Mc&&r._lView===i.view&&(r=null)):o=AT(t,e.get(Zc),s),o.injector=e,r!==null&&(o.onDestroyFns=[r.onDestroy(()=>o.destroy())]),new xc(o)}var Eb=F(g({},gf),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let t=is(!1);try{vf(this)}finally{is(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=T(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],T(t)}}}),MT=F(g({},Eb),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(ar(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.scheduler.remove(this)}}),TT=F(g({},Eb),{consumerMarkedDirty(){this.view[j]|=8192,Jr(this.view),this.notifier.notify(13)},destroy(){if(ar(this),this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();this.cleanup(),this.view[dr]?.delete(this)}});function xT(t,n,e){let r=Object.create(TT);return r.view=t,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=n,r.fn=wb(r,e),t[dr]??=new Set,t[dr].add(r),r.consumerMarkedDirty(r),r}function AT(t,n,e){let r=Object.create(MT);return r.fn=wb(r,t),r.scheduler=n,r.notifier=e,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.add(r),r.notifier.notify(12),r}function wb(t,n){return()=>{n(e=>(t.cleanupFns??=[]).push(e))}}function Os(t){return{toString:t}.toString()}function LT(t){return typeof t=="function"}function a_(t,n,e,r){n!==null?n.applyValueToInputSignal(n,r):t[e]=r}var il=class{previousValue;currentValue;firstChange;constructor(n,e,r){this.previousValue=n,this.currentValue=e,this.firstChange=r}isFirstChange(){return this.firstChange}},ze=(()=>{let t=()=>c_;return t.ngInherit=!0,t})();function c_(t){return t.type.prototype.ngOnChanges&&(t.setInput=VT),jT}function jT(){let t=u_(this),n=t?.current;if(n){let e=t.previous;if(e===Bt)t.previous=n;else for(let r in n)e[r]=n[r];t.current=null,this.ngOnChanges(n)}}function VT(t,n,e,r,o){let i=this.declaredInputs[r],s=u_(t)||BT(t,{previous:Bt,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new il(l&&l.currentValue,e,c===Bt),a_(t,n,o,e)}var l_="__ngSimpleChanges__";function u_(t){return t[l_]||null}function BT(t,n){return t[l_]=n}var Cb=[];var ie=function(t,n=null,e){for(let r=0;r=r)break}else n[c]<0&&(t[Zr]+=65536),(a>14>16&&(t[j]&3)===n&&(t[j]+=16384,Ib(a,i)):Ib(a,i)}var Yo=-1,ro=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(n,e,r,o){this.factory=n,this.name=o,this.canSeeViewProviders=e,this.injectImpl=r}};function $T(t){return(t.flags&8)!==0}function zT(t){return(t.flags&16)!==0}function GT(t,n,e){let r=0;for(;rn){s=i-1;break}}}for(;i>16}function al(t,n){let e=qT(t),r=n;for(;e>0;)r=r[Yr],e--;return r}var Nh=!0;function cl(t){let n=Nh;return Nh=t,n}var YT=256,m_=YT-1,g_=5,ZT=0,vn={};function KT(t,n,e){let r;typeof e=="string"?r=e.charCodeAt(0)||0:e.hasOwnProperty(Gr)&&(r=e[Gr]),r==null&&(r=e[Gr]=ZT++);let o=r&m_,i=1<>g_)]|=i}function ll(t,n){let e=v_(t,n);if(e!==-1)return e;let r=n[N];r.firstCreatePass&&(t.injectorIndex=n.length,Eh(r.data,t),Eh(n,null),Eh(r.blueprint,null));let o=gp(t,n),i=t.injectorIndex;if(p_(o)){let s=sl(o),a=al(o,n),c=a[N].data;for(let l=0;l<8;l++)n[i+l]=a[s+l]|c[s+l]}return n[i+8]=o,i}function Eh(t,n){t.push(0,0,0,0,0,0,0,0,n)}function v_(t,n){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||n[t.injectorIndex+8]===null?-1:t.injectorIndex}function gp(t,n){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,r=null,o=n;for(;o!==null;){if(r=E_(o),r===null)return Yo;if(e++,o=o[Yr],r.injectorIndex!==-1)return r.injectorIndex|e<<16}return Yo}function Oh(t,n,e){KT(t,n,e)}function QT(t,n){if(n==="class")return t.classes;if(n==="style")return t.styles;let e=t.attrs;if(e){let r=e.length,o=0;for(;o>20,d=r?a:a+u,h=o?a+u:l;for(let p=d;p=c&&m.type===e)return p}if(o){let p=s[c];if(p&&zt(p)&&p.type===e)return c}return null}function Ms(t,n,e,r,o){let i=t[e],s=n.data;if(i instanceof ro){let a=i;if(a.resolving)throw jf("");let c=cl(a.canSeeViewProviders);a.resolving=!0;let l=s[e].type||s[e],u,d=a.injectImpl?tt(a.injectImpl):null,h=hh(t,r,0);try{i=t[e]=a.factory(void 0,o,s,t,r),n.firstCreatePass&&e>=r.directiveStart&&UT(e,s[e],n)}finally{d!==null&&tt(d),cl(c),a.resolving=!1,ph()}}return i}function JT(t){if(typeof t=="string")return t.charCodeAt(0)||0;let n=t.hasOwnProperty(Gr)?t[Gr]:void 0;return typeof n=="number"?n>=0?n&m_:e0:n}function Mb(t,n,e){let r=1<>g_)]&r)}function Tb(t,n){return!(t&2)&&!(t&1&&n)}var no=class{_tNode;_lView;constructor(n,e){this._tNode=n,this._lView=e}get(n,e,r){return __(this._tNode,this._lView,n,Hr(r),e)}};function e0(){return new no(Me(),I())}function Te(t){return Os(()=>{let n=t.prototype.constructor,e=n[ns]||kh(n),r=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==r;){let i=o[ns]||kh(o);if(i&&i!==e)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function kh(t){return Nf(t)?()=>{let n=kh(ke(t));return n&&n()}:ur(t)}function t0(t,n,e,r,o){let i=t,s=n;for(;i!==null&&s!==null&&s[j]&2048&&!$o(s);){let a=D_(i,s,e,r|2,vn);if(a!==vn)return a;let c=i.parent;if(!c){let l=s[Yf];if(l){let u=l.get(e,vn,r&-5);if(u!==vn)return u}c=E_(s),s=s[Yr]}i=c}return o}function E_(t){let n=t[N],e=n.type;return e===2?n.declTNode:e===1?t[nt]:null}function ks(t){return QT(Me(),t)}function n0(){return ti(Me(),I())}function ti(t,n){return new z(mt(t,n))}var z=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=n0}return t})();function w_(t){return t instanceof z?t.nativeElement:t}function r0(){return this._results[Symbol.iterator]()}var Un=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new R}constructor(n=!1){this._emitDistinctChangesOnly=n}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){this.dirty=!1;let r=jy(n);(this._changesDetected=!Ly(this._results,r,e))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(n){this._onDirty=n}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=r0};function C_(t){return(t.flags&128)===128}var vp=(function(t){return t[t.OnPush=0]="OnPush",t[t.Eager=1]="Eager",t[t.Default=1]="Default",t})(vp||{}),I_=new Map,o0=0;function i0(){return o0++}function s0(t){I_.set(t[Ln],t)}function Fh(t){I_.delete(t[Ln])}var xb="__ngContext__";function Ko(t,n){jn(n)?(t[xb]=n[Ln],s0(n)):t[xb]=n}function S_(t){return T_(t[Uo])}function M_(t){return T_(t[Mt])}function T_(t){for(;t!==null&&!$t(t);)t=t[Mt];return t}var Ph;function yp(t){Ph=t}function x_(){if(Ph!==void 0)return Ph;if(typeof document<"u")return document;throw new b(210,!1)}var _r=new y("",{factory:()=>a0}),a0="ng";var wl=new y(""),so=new y("",{providedIn:"platform",factory:()=>"unknown"}),Fs=new y(""),ao=new y("",{factory:()=>f(k).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var A_="r";var R_="di";var bp=new y(""),N_=!1,O_=new y("",{factory:()=>N_});var Cl=new y("");var Ab=new WeakMap;function c0(t,n){if(t==null||typeof t!="object")return;let e=Ab.get(t);e||(e=new WeakSet,Ab.set(t,e)),e.add(n)}var l0=(t,n,e,r)=>{};function u0(t,n,e,r){l0(t,n,e,r)}function Il(t){return(t.flags&32)===32}var d0=()=>null;function k_(t,n,e=!1){return d0(t,n,e)}function F_(t,n){let e=t.contentQueries;if(e!==null){let r=T(null);try{for(let o=0;ot,createScript:t=>t,createScriptURL:t=>t})}catch{}return Kc}function Sl(t){return m0()?.createHTML(t)||t}var Qc;function P_(){if(Qc===void 0&&(Qc=null,we.trustedTypes))try{Qc=we.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return Qc}function Rb(t){return P_()?.createHTML(t)||t}function Nb(t){return P_()?.createScriptURL(t)||t}var Hn=class{changingThisBreaksApplicationSecurity;constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ac})`}},jh=class extends Hn{getTypeName(){return"HTML"}},Vh=class extends Hn{getTypeName(){return"Style"}},Bh=class extends Hn{getTypeName(){return"Script"}},Uh=class extends Hn{getTypeName(){return"URL"}},Hh=class extends Hn{getTypeName(){return"ResourceURL"}};function bt(t){return t instanceof Hn?t.changingThisBreaksApplicationSecurity:t}function bn(t,n){let e=L_(t);if(e!=null&&e!==n){if(e==="ResourceURL"&&n==="URL")return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${Ac})`)}return e===n}function L_(t){return t instanceof Hn&&t.getTypeName()||null}function Dp(t){return new jh(t)}function Ep(t){return new Vh(t)}function wp(t){return new Bh(t)}function Cp(t){return new Uh(t)}function Ip(t){return new Hh(t)}function g0(t){let n=new zh(t);return v0()?new $h(n):n}var $h=class{inertDocumentHelper;constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{let e=new window.DOMParser().parseFromString(Sl(n),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(n):(e.firstChild?.remove(),e)}catch{return null}}},zh=class{defaultDoc;inertDocument;constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){let e=this.inertDocument.createElement("template");return e.innerHTML=Sl(n),e}};function v0(){try{return!!new window.DOMParser().parseFromString(Sl(""),"text/html")}catch{return!1}}var y0=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Ps(t){return t=String(t),t.match(y0)?t:"unsafe:"+t}function $n(t){let n={};for(let e of t.split(","))n[e]=!0;return n}function Ls(...t){let n={};for(let e of t)for(let r in e)e.hasOwnProperty(r)&&(n[r]=!0);return n}var j_=$n("area,br,col,hr,img,wbr"),V_=$n("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),B_=$n("rp,rt"),b0=Ls(B_,V_),_0=Ls(V_,$n("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),D0=Ls(B_,$n("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Ob=Ls(j_,_0,D0,b0),U_=$n("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),E0=$n("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),w0=$n("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),C0=Ls(U_,E0,w0),I0=$n("script,style,template"),Gh=class{sanitizedSomething=!1;buf=[];sanitizeChildren(n){let e=n.firstChild,r=!0,o=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?r=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,r&&e.firstChild){o.push(e),e=T0(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let i=M0(e);if(i){e=i;break}e=o.pop()}}return this.buf.join("")}startElement(n){let e=kb(n).toLowerCase();if(!Ob.hasOwnProperty(e))return this.sanitizedSomething=!0,!I0.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let r=n.attributes;for(let o=0;o"),!0}endElement(n){let e=kb(n).toLowerCase();Ob.hasOwnProperty(e)&&!j_.hasOwnProperty(e)&&(this.buf.push(""))}chars(n){this.buf.push(Fb(n))}};function S0(t,n){return(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function M0(t){let n=t.nextSibling;if(n&&t!==n.previousSibling)throw H_(n);return n}function T0(t){let n=t.firstChild;if(n&&S0(t,n))throw H_(n);return n}function kb(t){let n=t.nodeName;return typeof n=="string"?n:"FORM"}function H_(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var x0=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,A0=/([^\#-~ |!])/g;function Fb(t){return t.replace(/&/g,"&").replace(x0,function(n){let e=n.charCodeAt(0),r=n.charCodeAt(1);return"&#"+((e-55296)*1024+(r-56320)+65536)+";"}).replace(A0,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}var Xc;function Ml(t,n){let e=null;try{Xc=Xc||g0(t);let r=n?String(n):"";e=Xc.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=e.innerHTML,e=Xc.getInertBodyElement(r)}while(r!==i);let a=new Gh().sanitizeChildren(Pb(e)||e);return Sl(a)}finally{if(e){let r=Pb(e)||e;for(;r.firstChild;)r.firstChild.remove()}}}function Pb(t){return"content"in t&&R0(t)?t.content:null}function R0(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var N0=/^>|^->||--!>|)/g,k0="\u200B$1\u200B";function F0(t){return t.replace(N0,n=>n.replace(O0,k0))}function P0(t,n){return t.createText(n)}function L0(t,n,e){t.setValue(n,e)}function j0(t,n){return t.createComment(F0(n))}function $_(t,n,e){return t.createElement(n,e)}function ul(t,n,e,r,o){t.insertBefore(n,e,r,o)}function z_(t,n,e){t.appendChild(n,e)}function Lb(t,n,e,r,o){r!==null?ul(t,n,e,r,o):z_(t,n,e)}function G_(t,n,e,r){t.removeChild(null,n,e,r)}function V0(t,n,e){t.setAttribute(n,"style",e)}function B0(t,n,e){e===""?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}function W_(t,n,e){let{mergedAttrs:r,classes:o,styles:i}=e;r!==null&>(t,n,r),o!==null&&B0(t,n,o),i!==null&&V0(t,n,i)}function U0(t,n=!0){if(t[0]!=":")return[null,t];let e=t.indexOf(":",1);if(e===-1){if(n)throw new Error(`Unsupported format "${t}" expecting ":namespace:name"`);return[null,t]}return[t.slice(1,e),t.slice(e+1)]}function H0(t,n,e){if(n!==void 0&&e!==void 0&&Z_(n,e)!==J.HTML)return t;let r=Mp();return r?Rb(r.sanitize(J.HTML,t)||""):bn(t,"HTML")?Rb(bt(t)):Ml(x_(),Se(t))}function q_(t){let n=Mp();return n?n.sanitize(J.URL,t)||"":bn(t,"URL")?bt(t):Ps(Se(t))}function Y_(t){let n=Mp();if(n)return Nb(n.sanitize(J.RESOURCE_URL,t)||"");if(bn(t,"ResourceURL"))return Nb(bt(t));throw new b(904,!1)}function $0(t,n){switch(Z_(t,n)){case J.RESOURCE_URL:return Y_;case J.URL:return q_;default:return null}}function Sp(t,n,e){return $0(n,e)?.(t)??t}function Mp(){let t=I();return t&&t[Ht].sanitizer}function Z_(t,n){let[e,r]=z0(t);return qy(r,n,e)}function z0(t){t=t.toLowerCase();let n=U0(t,!1);if(n[0])return n;let r=at()===-1?null:to(),o=r?.namespace;if(t==="#host"&&r?.type===2){let i=mt(r,I());if(i.tagName&&(t=i.tagName.toLowerCase()),o==null){let s=i.namespaceURI;o=s&&p0[s]}}return[o,t]}function G0(t){return t.ownerDocument.defaultView}function W0(t){return t.ownerDocument}function K_(t){return t instanceof Function?t():t}function q0(t,n,e){let r=t.length;for(;;){let o=t.indexOf(n,e);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let i=n.length;if(o+i===r||t.charCodeAt(o+i)<=32)return o}e=o+1}}var Q_="ng-template";function Y0(t,n,e,r){let o=0;if(r){for(;o-1){let i;for(;++oi?d="":d=o[u+1].toLowerCase(),r&2&&l!==d){if(Gt(r))return!1;s=!0}}}}return Gt(r)||s}function Gt(t){return(t&1)===0}function Q0(t,n,e,r){if(n===null)return-1;let o=0;if(r||!e){let i=!1;for(;o-1)for(e++;e0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!Gt(s)&&(n+=jb(i,o),o=""),r=s,i=i||!Gt(r);e++}return o!==""&&(n+=jb(i,o)),n}function rx(t){return t.map(nx).join(",")}function ox(t){let n=[],e=[],r=1,o=2;for(;r=0;i--){let s=e[i],a=s.parentNode;s===n?(e.splice(i,1),Cs.add(s),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):(o&&s===o||a&&r&&a!==r)&&(e.splice(i,1),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),s.parentNode?.removeChild(s))}}function ux(t,n){let e=qh.get(t);e?e.includes(n)||e.push(n):qh.set(t,[n])}var oo=new Set,xl=(function(t){return t[t.CHANGE_DETECTION=0]="CHANGE_DETECTION",t[t.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",t})(xl||{}),Zt=new y(""),Vb=new Set;function Kt(t){Vb.has(t)||(Vb.add(t),performance?.mark?.("mark_feature_usage",{detail:{feature:t}}))}var Al=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=v({token:t,providedIn:"root",factory:()=>new t})}return t})(),Op=[0,1,2,3],kp=(()=>{class t{ngZone=f(V);scheduler=f(fn);errorHandler=f(Ze,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){f(Zt,{optional:!0})}execute(){let e=this.sequences.size>0;e&&ie(ee.AfterRenderHooksStart),this.executing=!0;for(let r of Op)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot))}catch(i){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&ie(ee.AfterRenderHooksEnd)}register(e){let{view:r}=e;r!==void 0?((r[Kr]??=[]).push(e),Jr(r),r[j]|=8192):this.executing?this.deferredRegistrations.add(e):this.addSequence(e)}addSequence(e){this.sequences.add(e),this.scheduler.notify(7)}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}maybeTrace(e,r){return r?r.run(xl.AFTER_NEXT_RENDER,e):e()}static \u0275prov=v({token:t,providedIn:"root",factory:()=>new t})}return t})(),Ts=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(n,e,r,o,i,s=null){this.impl=n,this.hooks=e,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let n=this.view?.[Kr];n&&(this.view[Kr]=n.filter(e=>e!==this))}};function At(t,n){let e=n?.injector??f(W);return Kt("NgAfterNextRender"),fx(t,e,n,!0)}function dx(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function fx(t,n,e,r){let o=n.get(Al);o.impl??=n.get(kp);let i=n.get(Zt,null,{optional:!0}),s=e?.manualCleanup!==!0?n.get(He):null,a=n.get(Go,null,{optional:!0}),c=new Ts(o.impl,dx(t),a?.view,r,s,i?.snapshot(null));return o.impl.register(c),c}var rD=new y("",{factory:()=>({queue:new Set,isScheduled:!1,scheduler:null,injector:f(oe)})});function oD(t,n,e){let r=t.get(rD);if(Array.isArray(n))for(let o of n)r.queue.add(o),e?.detachedLeaveAnimationFns?.push(o);else r.queue.add(n),e?.detachedLeaveAnimationFns?.push(n);r.scheduler&&r.scheduler(t)}function hx(t,n){let e=t.get(rD);if(n.detachedLeaveAnimationFns){for(let r of n.detachedLeaveAnimationFns)e.queue.delete(r);n.detachedLeaveAnimationFns=void 0}}function px(t,n){for(let[e,r]of n)oD(t,r.animateFns)}function Bb(t,n,e,r){let o=t?.[mr]?.enter;n!==null&&o&&o.has(e.index)&&px(r,o)}function qo(t,n,e,r,o,i,s,a){if(o!=null){let c,l=!1;$t(o)?c=o:jn(o)&&(l=!0,o=o[Ut]);let u=Tt(o);t===0&&r!==null?(Bb(a,r,i,e),s==null?z_(n,r,u):ul(n,r,u,s||null,!0)):t===1&&r!==null?(Bb(a,r,i,e),ul(n,r,u,s||null,!0),lx(i,u)):t===2?(a?.[mr]?.leave?.has(i.index)&&ux(i,u),Cs.delete(u),Ub(a,i,e,d=>{if(Cs.has(u)){Cs.delete(u);return}G_(n,u,l,d)})):t===3&&(Cs.delete(u),Ub(a,i,e,()=>{n.destroyNode(u)})),c!=null&&Ix(n,t,e,c,i,r,s)}}function mx(t,n){iD(t,n),n[Ut]=null,n[nt]=null}function gx(t,n,e,r,o,i){r[Ut]=o,r[nt]=n,Nl(t,r,e,1,o,i)}function iD(t,n){n[Ht].changeDetectionScheduler?.notify(9),Nl(t,n,n[se],2,null,null)}function vx(t){let n=t[Uo];if(!n)return wh(t[N],t);for(;n;){let e=null;if(jn(n))e=n[Uo];else{let r=n[ve];r&&(e=r)}if(!e){for(;n&&!n[Mt]&&n!==t;)jn(n)&&wh(n[N],n),n=n[Fe];n===null&&(n=t),jn(n)&&wh(n[N],n),e=n&&n[Mt]}n=e}}function Fp(t,n){let e=t[Qr],r=e.indexOf(n);e.splice(r,1)}function Rl(t,n){if(Xr(n))return;let e=n[se];e.destroyNode&&Nl(t,n,e,3,null,null),vx(n)}function wh(t,n){if(Xr(n))return;let e=T(null);try{n[j]&=-129,n[j]|=256,n[pt]&&ar(n[pt]),_x(t,n),bx(t,n),n[N].type===1&&n[se].destroy();let r=n[pr];if(r!==null&&$t(n[Fe])){r!==n[Fe]&&Fp(r,n);let o=n[pn];o!==null&&o.detachView(t)}Fh(n)}finally{T(e)}}function Ub(t,n,e,r){let o=t?.[mr];if(o==null||o.leave==null||!o.leave.has(n.index))return r(!1);t&&oo.add(t[Ln]),oD(e,()=>{if(o.leave&&o.leave.has(n.index)){let s=o.leave.get(n.index),a=[];if(s){for(let c=0;c{t[mr].running=void 0,oo.delete(t[Ln]),n(!0)});return}n(!1)}function bx(t,n){let e=t.cleanup,r=n[Bo];if(e!==null)for(let s=0;s=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[e[s+1]];e[s].call(a)}r!==null&&(n[Bo]=null);let o=n[Fn];if(o!==null){n[Fn]=null;for(let s=0;sde&&nD(t,n,de,!1);let a=s?ee.TemplateUpdateStart:ee.TemplateCreateStart;ie(a,o,e),e(r,o)}finally{vr(i);let a=s?ee.TemplateUpdateEnd:ee.TemplateCreateEnd;ie(a,o,e)}}function Ol(t,n,e){Rx(t,n,e),(e.flags&64)===64&&Nx(t,n,e)}function js(t,n,e=mt){let r=n.localNames;if(r!==null){let o=n.index+1;for(let i=0;inull;function Ax(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function dD(t,n,e,r,o,i){let s=n[N];if(kl(t,s,n,e,r)){mn(t)&&hD(n,t.index);return}t.type&3&&(e=Ax(e)),fD(t,n,e,r,o,i)}function fD(t,n,e,r,o,i){if(t.type&3){let s=mt(t,n);r=i!=null?i(r,t.value||"",e):r,o.setProperty(s,e,r)}else t.type&12}function hD(t,n){let e=xt(n,t);e[j]&16||(e[j]|=64)}function Rx(t,n,e){let r=e.directiveStart,o=e.directiveEnd;mn(e)&&ax(n,e,t.data[r+e.componentOffset]),t.firstCreatePass||ll(e,n);let i=e.initialInputs;for(let s=r;s{Jr(t.lView)},consumerOnSignalRead(){this.lView[pt]=this}});function zx(t){let n=t[pt]??Object.create(Gx);return n.lView=t,n}var Gx=F(g({},ir),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let n=fr(t.lView);for(;n&&!yD(n[N]);)n=fr(n);n&&th(n)},consumerOnSignalRead(){this.lView[pt]=this}});function yD(t){return t.type!==2}function bD(t){if(t[dr]===null)return;let n=!0;for(;n;){let e=!1;for(let r of t[dr])r.dirty&&(e=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));n=e&&!!(t[j]&8192)}}var Wx=100;function _D(t,n=0){let r=t[Ht].rendererFactory,o=!1;o||r.begin?.();try{qx(t,n)}finally{o||r.end?.()}}function qx(t,n){let e=fh();try{is(!0),Zh(t,n);let r=0;for(;gs(t);){if(r===Wx)throw new b(103,!1);r++,Zh(t,1)}}finally{is(e)}}function Yx(t,n,e,r){if(Xr(n))return;let o=n[j],i=!1,s=!1;Wc(n);let a=!0,c=null,l=null;i||(yD(t)?(l=Bx(n),c=kn(l)):_c()===null?(a=!1,l=zx(n),c=kn(l)):n[pt]&&(ar(n[pt]),n[pt]=null));try{eh(n),ib(t.bindingStartIndex),e!==null&&uD(t,n,e,2,r);let u=(o&3)===3;if(!i)if(u){let p=t.preOrderCheckHooks;p!==null&&el(n,p,null)}else{let p=t.preOrderHooks;p!==null&&tl(n,p,0,null),Dh(n,0)}if(s||Zx(n),bD(n),DD(n,0),t.contentQueries!==null&&F_(t,n),!i)if(u){let p=t.contentCheckHooks;p!==null&&el(n,p)}else{let p=t.contentHooks;p!==null&&tl(n,p,1),Dh(n,1)}Qx(t,n);let d=t.components;d!==null&&wD(n,d,0);let h=t.viewQuery;if(h!==null&&Lh(2,h,r),!i)if(u){let p=t.viewCheckHooks;p!==null&&el(n,p)}else{let p=t.viewHooks;p!==null&&tl(n,p,2),Dh(n,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),n[Vc]){for(let p of n[Vc])p();n[Vc]=null}i||(gD(n),n[j]&=-73)}catch(u){throw i||Jr(n),u}finally{l!==null&&(sr(l,c),a&&Hx(l)),qc()}}function DD(t,n){for(let e=S_(t);e!==null;e=M_(e))for(let r=ve;r0&&(t[e-1][Mt]=r[Mt]);let i=fs(t,ve+n);mx(r[N],r);let s=i[pn];s!==null&&s.detachView(i[N]),r[Fe]=null,r[Mt]=null,r[j]&=-129}return r}function Xx(t,n,e,r){let o=ve+r,i=e.length;r>0&&(e[o-1][Mt]=n),r-1&&(As(n,r),fs(e,r))}this._attachedToViewContainer=!1}Rl(this._lView[N],this._lView)}onDestroy(n){nh(this._lView,n)}markForCheck(){Hp(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[j]&=-129}reattach(){Hc(this._lView),this._lView[j]|=128}detectChanges(){this._lView[j]|=1024,_D(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new b(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let n=$o(this._lView),e=this._lView[pr];e!==null&&!n&&Fp(e,this._lView),iD(this._lView[N],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new b(902,!1);this._appRef=n;let e=$o(this._lView),r=this._lView[pr];r!==null&&!e&&MD(r,this._lView),Hc(this._lView)}};var yt=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=Jx;constructor(e,r,o){this._declarationLView=e,this._declarationTContainer=r,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,r){return this.createEmbeddedViewImpl(e,r)}createEmbeddedViewImpl(e,r,o){let i=Vs(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:r,dehydratedView:o});return new yr(i)}}return t})();function Jx(){return Fl(Me(),I())}function Fl(t,n){return t.type&4?new yt(n,t,ti(t,n)):null}function ni(t,n,e,r,o){let i=t.data[n];if(i===null)i=eA(t,n,e,r,o),sb()&&(i.flags|=32);else if(i.type&64){i.type=e,i.value=r,i.attrs=o;let s=rb();i.injectorIndex=s===null?-1:s.injectorIndex}return zo(i,!0),i}function eA(t,n,e,r,o){let i=lh(),s=uh(),a=s?i:i&&i.parent,c=t.data[n]=nA(t,a,e,n,r,o);return tA(t,c,i,s),c}function tA(t,n,e,r){t.firstChild===null&&(t.firstChild=n),e!==null&&(r?e.child==null&&n.parent!==null&&(e.child=n):e.next===null&&(e.next=n,n.prev=e))}function nA(t,n,e,r,o,i){let s=n?n.injectorIndex:-1,a=0;return sh()&&(a|=128),{type:e,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,namespace:mh(),attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}function rA(t){let n=t[Zf]??[],r=t[Fe][se],o=[];for(let i of n)i.data[R_]!==void 0?o.push(i):oA(i,r);t[Zf]=o}function oA(t,n){let e=0,r=t.firstChild;if(r){let o=t.data[A_];for(;enull,sA=()=>null;function dl(t,n){return iA(t,n)}function TD(t,n,e){return sA(t,n,e)}var xD=class{},Pl=class{},Kh=class{resolveComponentFactory(n){throw new b(917,!1)}},Us=class{static NULL=new Kh},$e=class{},Le=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>aA()}return t})();function aA(){let t=I(),n=Me(),e=xt(n.index,t);return(jn(e)?e:t)[se]}var AD=(()=>{class t{static \u0275prov=v({token:t,providedIn:"root",factory:()=>null})}return t})();var rl={},Qh=class{injector;parentInjector;constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,r){let o=this.injector.get(n,rl,r);return o!==rl||e===rl?o:this.parentInjector.get(n,e,r)}};function fl(t,n,e){let r=e?t.styles:null,o=e?t.classes:null,i=0;if(n!==null)for(let s=0;s0&&(e.directiveToIndex=new Map);for(let h=0;h0;){let e=t[--n];if(typeof e=="number"&&e<0)return e}return 0}function mA(t,n,e){if(e){if(n.exportAs)for(let r=0;rr(Tt(_[t.index])):t.index;LD(m,n,e,i,a,p,!1)}}return l}function yA(t){return t.startsWith("animation")||t.startsWith("transition")}function bA(t,n,e,r){let o=t.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function LD(t,n,e,r,o,i,s){let a=n.firstCreatePass?oh(n):null,c=rh(e),l=c.length;c.push(o,i),a&&a.push(r,t,l,(l+1)*(s?-1:1))}function qb(t,n,e,r,o,i){let s=n[e],a=n[N],l=a.data[e].outputs[r],d=s[l].subscribe(i);LD(t.index,a,n,o,i,d,!0)}var Xh=Symbol("BINDING");function jD(t){return t.debugInfo?.className||t.type.name||null}var hl=class extends Us{ngModule;constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){let e=hn(n);return new br(e,this.ngModule)}};function _A(t){return Object.keys(t).map(n=>{let[e,r,o]=t[n],i={propName:e,templateName:n,isSignal:(r&Tl.SignalBased)!==0};return o&&(i.transform=o),i})}function DA(t){return Object.keys(t).map(n=>({propName:t[n],templateName:n}))}function EA(t,n,e){let r=n instanceof oe?n:n?.injector;return r&&t.getStandaloneInjector!==null&&(r=t.getStandaloneInjector(r)||r),r?new Qh(e,r):e}function wA(t){let n=t.get($e,null);if(n===null)throw new b(407,!1);let e=t.get(AD,null),r=t.get(fn,null),o=t.get(Zt,null,{optional:!0});return{rendererFactory:n,sanitizer:e,changeDetectionScheduler:r,ngReflect:!1,tracingService:o}}function CA(t,n){let e=VD(t);return $_(n,e,e==="svg"?os:e==="math"?Qf:null)}function IA(t){if(t?.toLowerCase()==="script")throw new b(905,!1)}function VD(t){return(t.selectors[0][0]||"div").toLowerCase()}var br=class extends Pl{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=_A(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=DA(this.componentDef.outputs),this.cachedOutputs}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=rx(n.selectors),this.ngContentSelectors=n.ngContentSelectors??[],this.isBoundToModule=!!e}create(n,e,r,o,i,s){ie(ee.DynamicComponentStart);let a=T(null);try{let c=this.componentDef,l=EA(c,o||this.ngModule,n),u=wA(l),d=u.tracingService;return d&&d.componentCreate?d.componentCreate(jD(c),()=>this.createComponentRef(u,l,e,r,i,s)):this.createComponentRef(u,l,e,r,i,s)}finally{T(a)}}createComponentRef(n,e,r,o,i,s){let a=this.componentDef,c=SA(o,a,s,i),l=n.rendererFactory.createRenderer(null,a),u=o?Mx(l,o,a.encapsulation,e):CA(a,l);IA(u?.tagName);let d=s?.some(Yb)||i?.some(m=>typeof m!="function"&&m.bindings.some(Yb)),h=Ap(null,c,null,512|J_(a),null,null,n,l,e,null,k_(u,e,!0));h[de]=u,Wc(h);let p=null;try{let m=zp(de,h,2,"#host",()=>c.directiveRegistry,!0,0);W_(l,u,m),Ko(u,h),Ol(c,h,m),_p(c,m,h),Gp(c,m),r!==void 0&&TA(m,this.ngContentSelectors,r),p=xt(m.index,h),h[ge]=p[ge],Up(c,h,null)}catch(m){throw p!==null&&Fh(p),Fh(h),m}finally{ie(ee.DynamicComponentEnd),qc()}return new pl(this.componentType,h,!!d)}};function SA(t,n,e,r){let o=t?["ng-version","21.2.25"]:ox(n.selectors[0]),i=null,s=null,a=0;if(e)for(let u of e)a+=u[Xh].requiredVars,u.create&&(u.targetIdx=0,(i??=[]).push(u)),u.update&&(u.targetIdx=0,(s??=[]).push(u));if(r)for(let u=0;u{if(e&1&&t)for(let r of t)r.create();if(e&2&&n)for(let r of n)r.update()}}function Yb(t){let n=t[Xh].kind;return n==="input"||n==="twoWay"}var pl=class extends xD{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(n,e,r){super(),this._rootLView=e,this._hasInputBindings=r,this._tNode=Bc(e[N],de),this.location=ti(this._tNode,e),this.instance=xt(this._tNode.index,e)[ge],this.hostView=this.changeDetectorRef=new yr(e,void 0),this.componentType=n}setInput(n,e){this._hasInputBindings;let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(n)&&Object.is(this.previousInputValues.get(n),e))return;let o=this._rootLView,i=kl(r,o[N],o,n,e);this.previousInputValues.set(n,e);let s=xt(r.index,o);Hp(s,1)}get injector(){return new no(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}};function TA(t,n,e){let r=t.projection=[];for(let o=0;o{class t{static __NG_ELEMENT_ID__=xA}return t})();function xA(){let t=Me();return BD(t,I())}var Jh=class t extends Qe{_lContainer;_hostTNode;_hostLView;constructor(n,e,r){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=r}get element(){return ti(this._hostTNode,this._hostLView)}get injector(){return new no(this._hostTNode,this._hostLView)}get parentInjector(){let n=gp(this._hostTNode,this._hostLView);if(p_(n)){let e=al(n,this._hostLView),r=sl(n),o=e[N].data[r+8];return new no(o,e)}else return new no(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){let e=Zb(this._lContainer);return e!==null&&e[n]||null}get length(){return this._lContainer.length-ve}createEmbeddedView(n,e,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=dl(this._lContainer,n.ssrId),a=n.createEmbeddedViewImpl(e||{},i,s);return this.insertImpl(a,o,Qo(this._hostTNode,s)),a}createComponent(n,e,r,o,i,s,a){let c=n&&!LT(n),l;if(c)l=e;else{let D=e||{};l=D.index,r=D.injector,o=D.projectableNodes,i=D.environmentInjector||D.ngModuleRef,s=D.directives,a=D.bindings}let u=c?n:new br(hn(n)),d=r||this.parentInjector;if(!i&&u.ngModule==null){let C=(c?d:this.parentInjector).get(oe,null);C&&(i=C)}let h=hn(u.componentType??{}),p=dl(this._lContainer,h?.id??null),m=p?.firstChild??null,_=u.create(d,o,m,i,s,a);return this.insertImpl(_.hostView,l,Qo(this._hostTNode,p)),_}insert(n,e){return this.insertImpl(n,e,!0)}insertImpl(n,e,r){let o=n._lView;if(Zy(o)){let a=this.indexOf(n);if(a!==-1)this.detach(a);else{let c=o[Fe],l=new t(c,c[nt],c[Fe]);l.detach(l.indexOf(n))}}let i=this._adjustIndex(e),s=this._lContainer;return Bs(s,o,i,r),n.attachToViewContainerRef(),Bf(Ch(s),i,n),n}move(n,e){return this.insert(n,e)}indexOf(n){let e=Zb(this._lContainer);return e!==null?e.indexOf(n):-1}remove(n){let e=this._adjustIndex(n,-1),r=As(this._lContainer,e);r&&(fs(Ch(this._lContainer),e),Rl(r[N],r))}detach(n){let e=this._adjustIndex(n,-1),r=As(this._lContainer,e);return r&&fs(Ch(this._lContainer),e)!=null?new yr(r):null}_adjustIndex(n,e=0){return n??this.length+e}};function Zb(t){return t[ps]}function Ch(t){return t[ps]||(t[ps]=[])}function BD(t,n){let e,r=n[t.index];return $t(r)?e=r:(e=CD(r,n,null,t),n[t.index]=e,Rp(n,e)),RA(e,n,t,r),new Jh(e,t,n)}function AA(t,n){let e=t[se],r=e.createComment(""),o=mt(n,t),i=e.parentNode(o);return ul(e,i,r,e.nextSibling(o),!1),r}var RA=kA,NA=()=>!1;function OA(t,n,e){return NA(t,n,e)}function kA(t,n,e,r){if(t[gr])return;let o;e.type&8?o=Tt(r):o=AA(n,e),t[gr]=o}var ep=class t{queryList;matches=null;constructor(n){this.queryList=n}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},tp=class t{queries;constructor(n=[]){this.queries=n}createEmbeddedView(n){let e=n.queries;if(e!==null){let r=n.contentQueries!==null?n.contentQueries[0]:e.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let l=i[a+1],u=n[-c];for(let d=ve;dn.trim())}function GD(t,n,e){t.queries===null&&(t.queries=new np),t.queries.track(new rp(n,e))}function BA(t,n){let e=t.contentQueries||(t.contentQueries=[]),r=e.length?e[e.length-1]:-1;n!==r&&e.push(t.queries.length-1,n)}function Zp(t,n){return t.queries.getByIndex(n)}function WD(t,n){let e=t[N],r=Zp(e,n);return r.crossesNgTemplate?op(e,t,n,[]):UD(e,t,r,n)}function Kp(t,n,e){let r,o=Ji(()=>{r._dirtyCounter();let i=UA(r,t);if(n&&i===void 0)throw new b(-951,!1);return i});return r=o[me],r._dirtyCounter=Q(0),r._flatValue=void 0,o}function Qp(t){return Kp(!0,!1,t)}function Xp(t){return Kp(!0,!0,t)}function qD(t){return Kp(!1,!1,t)}function YD(t,n){let e=t[me];e._lView=I(),e._queryIndex=n,e._queryList=Yp(e._lView,n),e._queryList.onDirty(()=>e._dirtyCounter.update(r=>r+1))}function UA(t,n){let e=t._lView,r=t._queryIndex;if(e===void 0||r===void 0||e[j]&4)return n?void 0:Ye;let o=Yp(e,r),i=WD(e,r);return o.reset(i,w_),n?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}var yn=class{},jl=class{};var gl=class extends yn{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new hl(this);constructor(n,e,r,o=!0){super(),this.ngModuleType=n,this._parent=e;let i=Lf(n);this._bootstrapComponents=K_(i.bootstrap),this._r3Injector=gh(n,e,[{provide:yn,useValue:this},{provide:Us,useValue:this.componentFactoryResolver},...r],cs(n),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}},vl=class extends jl{moduleType;constructor(n){super(),this.moduleType=n}create(n){return new gl(this.moduleType,n,[])}};var Rs=class extends yn{injector;componentFactoryResolver=new hl(this);instance=null;constructor(n){super();let e=new zr([...n.providers,{provide:yn,useValue:this},{provide:Us,useValue:this.componentFactoryResolver}],n.parent||Vo(),n.debugName,new Set(["environment"]));this.injector=e,n.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}};function oi(t,n,e=null){return new Rs({providers:t,parent:n,debugName:e,runEnvironmentInitializers:!0}).injector}var HA=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let r=$f(!1,e.type),o=r.length>0?oi([r],this._injector,""):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=v({token:t,providedIn:"environment",factory:()=>new t(w(oe))})}return t})();function xe(t){return Os(()=>{let n=ZD(t),e=F(g({},n),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===vp.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&t.dependencies||null,getStandaloneInjector:n.standalone?o=>o.get(HA).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||qt.Emulated,styles:t.styles||Ye,_:null,schemas:t.schemas||null,tView:null,id:""});n.standalone&&Kt("NgStandalone"),KD(e);let r=t.dependencies;return e.directiveDefs=Kb(r,$A),e.pipeDefs=Kb(r,Oy),e.id=WA(e),e})}function $A(t){return hn(t)||Oc(t)}function X(t){return Os(()=>({type:t.type,bootstrap:t.bootstrap||Ye,declarations:t.declarations||Ye,imports:t.imports||Ye,exports:t.exports||Ye,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function zA(t,n){if(t==null)return Bt;let e={};for(let r in t)if(t.hasOwnProperty(r)){let o=t[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Tl.None,c=null),e[i]=[r,a,c],n[i]=s}return e}function GA(t){if(t==null)return Bt;let n={};for(let e in t)t.hasOwnProperty(e)&&(n[t[e]]=e);return n}function M(t){return Os(()=>{let n=ZD(t);return KD(n),n})}function ii(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function ZD(t){let n={};return{type:t.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputConfig:t.inputs||Bt,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||Ye,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,inputs:zA(t.inputs,n),outputs:GA(t.outputs),debugInfo:null}}function KD(t){t.features?.forEach(n=>n(t))}function Kb(t,n){return t?()=>{let e=typeof t=="function"?t():t,r=[];for(let o of e){let i=n(o);i!==null&&r.push(i)}return r}:null}function WA(t){let n=0,e=typeof t.consts=="function"?"":t.consts,r=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,e,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let i of r.join("|"))n=Math.imul(31,n)+i.charCodeAt(0)<<0;return n+=2147483648,"c"+n}function qA(t){let n=e=>{let r=Array.isArray(t);e.hostDirectives===null?(e.resolveHostDirectives=YA,e.hostDirectives=r?t.map(ip):[t]):r?e.hostDirectives.unshift(...t.map(ip)):e.hostDirectives.unshift(t)};return n.ngInherit=!0,n}function YA(t){let n=[],e=!1,r=null,o=null;for(let i=0;i=0;r--){let o=t[r];o.hostVars=n+=o.hostVars,o.hostAttrs=Zo(o.hostAttrs,e=Zo(e,o.hostAttrs))}}function Ih(t){return t===Bt?{}:t===Ye?[]:t}function JA(t,n){let e=t.viewQuery;e?t.viewQuery=(r,o)=>{n(r,o),e(r,o)}:t.viewQuery=n}function eR(t,n){let e=t.contentQueries;e?t.contentQueries=(r,o,i)=>{n(r,o,i),e(r,o,i)}:t.contentQueries=n}function tR(t,n){let e=t.hostBindings;e?t.hostBindings=(r,o)=>{n(r,o),e(r,o)}:t.hostBindings=n}function XD(t,n,e,r,o,i,s,a){if(e.firstCreatePass){t.mergedAttrs=Zo(t.mergedAttrs,t.attrs);let u=t.tView=xp(2,t,o,i,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,e.consts,null);e.queries!==null&&(e.queries.template(e,t),u.queries=e.queries.embeddedTView(t))}a&&(t.flags|=a),zo(t,!1);let c=rR(e,n,t,r);Yc()&&Pp(e,n,c,t),Ko(c,n);let l=CD(c,n,c,t);n[r+de]=l,Rp(n,l),OA(l,t,n)}function nR(t,n,e,r,o,i,s,a,c,l,u){let d=e+de,h;return n.firstCreatePass?(h=ni(n,d,4,s||null,a||null),$c()&&RD(n,t,h,gt(n.consts,l),jp),d_(n,h)):h=n.data[d],XD(h,t,n,e,r,o,i,c),Ho(h)&&Ol(n,t,h),l!=null&&js(t,h,u),h}function Jo(t,n,e,r,o,i,s,a,c,l,u){let d=e+de,h;if(n.firstCreatePass){if(h=ni(n,d,4,s||null,a||null),l!=null){let p=gt(n.consts,l);h.localNames=[];for(let m=0;m{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function si(t){return typeof t=="function"&&t[me]!==void 0}function Jp(t){return si(t)&&typeof t.set=="function"}var Bl=new y(""),Ul=new y(""),Hs=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(e,r,o){this._ngZone=e,this.registry=r,Wf()&&(this._destroyRef=f(He,{optional:!0})??void 0),em||(nE(o),o.addToWindow(r)),this._watchAngularEvents(),e.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){let e=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),r=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{V.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{e.unsubscribe(),r.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>r.updateCb&&r.updateCb(e)?(clearTimeout(r.timeoutId),!1):!0)}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),e()},r)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:o})}whenStable(e,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(e,r,o),this._runCallbacksIfReady()}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,r,o){return[]}static \u0275fac=function(r){return new(r||t)(w(V),w(tE),w(Ul))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),tE=(()=>{class t{_applications=new Map;registerApplication(e,r){this._applications.set(e,r)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,r=!0){return em?.findTestabilityInTree(this,e,r)??null}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function nE(t){em=t}var em;function zn(t){return!!t&&typeof t.then=="function"}function Hl(t){return!!t&&typeof t.subscribe=="function"}var tm=new y("");function $l(t){return hr([{provide:tm,multi:!0,useValue:t}])}var nm=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,r)=>{this.resolve=e,this.reject=r});appInits=f(tm,{optional:!0})??[];injector=f(W);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let o of this.appInits){let i=Pe(this.injector,o);if(zn(i))e.push(i);else if(Hl(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});e.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{r()}).catch(o=>{this.reject(o)}),e.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),zl=new y("");function rE(){pf(()=>{let t="";throw new b(600,t)})}function oE(t){return t.isBoundToModule}var iR=10;var Ge=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=f(vt);afterRenderManager=f(Al);zonelessEnabled=f(Ds);rootEffectScheduler=f(Zc);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new R;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=f(Bn);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(L(e=>!e))}constructor(){f(Zt,{optional:!0})}whenStable(){let e;return new Promise(r=>{e=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{e.unsubscribe()})}_injector=f(oe);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,r){return this.bootstrapImpl(e,r)}bootstrapImpl(e,r,o=W.NULL){return this._injector.get(V).run(()=>{ie(ee.BootstrapComponentStart);let s=e instanceof Pl;if(!this._injector.get(nm).done){let m="";throw new b(405,m)}let c;s?c=e:c=this._injector.get(Us).resolveComponentFactory(e),this.componentTypes.push(c.componentType);let l=oE(c)?void 0:this._injector.get(yn),u=r||c.selector,d=c.create(o,[],u,l),h=d.location.nativeElement,p=d.injector.get(Bl,null);return p?.registerApplication(h),d.onDestroy(()=>{this.detachView(d.hostView),Ss(this.components,d),p?.unregisterApplication(h)}),this._loadComponent(d),ie(ee.BootstrapComponentEnd,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){ie(ee.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(xl.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw ie(ee.ChangeDetectionEnd),new b(101,!1);let e=T(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,T(e),this.afterTick.next(),ie(ee.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get($e,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++gs(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let r=e;this._views.push(r),r.attachToAppRef(this)}detachView(e){let r=e;Ss(this._views,r),r.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(e),this._injector.get(zl,[]).forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>Ss(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new b(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ss(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function iE(t,n){let e=I(),r=Vn();if(ct(e,r,n)){let o=le(),i=to();if(kl(i,o,e,t,n))mn(i)&&hD(e,i.index);else{let a=mt(i,e);pD(e[se],a,null,i.value,t,n,null)}}return iE}function lt(t,n,e,r){let o=I(),i=Vn();if(ct(o,i,n)){let s=le(),a=to();kx(a,o,t,n,e,r)}return lt}function sR(){return I()[Ke][ge]}var sp=class{destroy(n){}updateValue(n,e){}swap(n,e){let r=Math.min(n,e),o=Math.max(n,e),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(n,e){this.attach(e,this.detach(n))}};function Sh(t,n,e,r,o){return t===e&&Object.is(n,r)?1:Object.is(o(t,n),o(e,r))?-1:0}function aR(t,n,e,r){let o,i,s=0,a=t.length-1,c=void 0;if(Array.isArray(n)){T(r);let l=n.length-1;for(T(null);s<=a&&s<=l;){let u=t.at(s),d=n[s],h=Sh(s,u,s,d,e);if(h!==0){h<0&&t.updateValue(s,d),s++;continue}let p=t.at(a),m=n[l],_=Sh(a,p,l,m,e);if(_!==0){_<0&&t.updateValue(a,m),a--,l--;continue}let D=e(s,u),C=e(a,p),$=e(s,d);if(Object.is($,C)){let De=e(l,m);Object.is(De,D)?(t.swap(s,a),t.updateValue(a,m),l--,a--):t.move(a,s),t.updateValue(s,d),s++;continue}if(o??=new yl,i??=e_(t,s,a,e),ap(t,o,s,$))t.updateValue(s,d),s++,a++;else if(i.has($))o.set(D,t.detach(s)),a--;else{let De=t.create(s,n[s]);t.attach(s,De),s++,a++}}for(;s<=l;)Jb(t,o,e,s,n[s]),s++}else if(n!=null){T(r);let l=n[Symbol.iterator]();T(null);let u=l.next();for(;!u.done&&s<=a;){let d=t.at(s),h=u.value,p=Sh(s,d,s,h,e);if(p!==0)p<0&&t.updateValue(s,h),s++,u=l.next();else{o??=new yl,i??=e_(t,s,a,e);let m=e(s,h);if(ap(t,o,s,m))t.updateValue(s,h),s++,a++,u=l.next();else if(!i.has(m))t.attach(s,t.create(s,h)),s++,a++,u=l.next();else{let _=e(s,d);o.set(_,t.detach(s)),a--}}}for(;!u.done;)Jb(t,o,e,t.length,u.value),u=l.next()}for(;s<=a;)t.destroy(t.detach(a--));o?.forEach(l=>{t.destroy(l)})}function ap(t,n,e,r){return n!==void 0&&n.has(r)?(t.attach(e,n.get(r)),n.delete(r),!0):!1}function Jb(t,n,e,r,o){if(ap(t,n,r,e(r,o)))t.updateValue(r,o);else{let i=t.create(r,o);t.attach(r,i)}}function e_(t,n,e,r){let o=new Set;for(let i=n;i<=e;i++)o.add(r(i,t.at(i)));return o}var yl=class{kvMap=new Map;_vMap=void 0;has(n){return this.kvMap.has(n)}delete(n){if(!this.has(n))return!1;let e=this.kvMap.get(n);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(n,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(n),!0}get(n){return this.kvMap.get(n)}set(n,e){if(this.kvMap.has(n)){let r=this.kvMap.get(n);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,e)}else this.kvMap.set(n,e)}forEach(n){for(let[e,r]of this.kvMap)if(n(r,e),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),n(r,e)}}};function cR(t,n,e,r,o,i,s,a){Kt("NgControlFlow");let c=I(),l=le(),u=gt(l.consts,i);return Jo(c,l,t,n,e,r,o,u,256,s,a),rm}function rm(t,n,e,r,o,i,s,a){Kt("NgControlFlow");let c=I(),l=le(),u=gt(l.consts,i);return Jo(c,l,t,n,e,r,o,u,512,s,a),rm}function lR(t,n){Kt("NgControlFlow");let e=I(),r=Vn(),o=e[r]!==ye?e[r]:-1,i=o!==-1?bl(e,de+o):void 0,s=0;if(ct(e,r,t)){let a=T(null);try{if(i!==void 0&&SD(i,s),t!==-1){let c=de+t,l=bl(e,c),u=dp(e[N],c),d=TD(l,u,e),h=Vs(e,u,n,{dehydratedView:d});Bs(l,h,s,Qo(u,d))}}finally{T(a)}}else if(i!==void 0){let a=ID(i,s);a!==void 0&&(a[ge]=n)}}var cp=class{lContainer;$implicit;$index;constructor(n,e,r){this.lContainer=n,this.$implicit=e,this.$index=r}get $count(){return this.lContainer.length-ve}};function uR(t){return t}function dR(t,n){return n}var lp=class{hasEmptyBlock;trackByFn;liveCollection;constructor(n,e,r){this.hasEmptyBlock=n,this.trackByFn=e,this.liveCollection=r}};function fR(t,n,e,r,o,i,s,a,c,l,u,d,h){Kt("NgControlFlow");let p=I(),m=le(),_=c!==void 0,D=I(),C=a?s.bind(D[Ke][ge]):s,$=new lp(_,C);D[de+t]=$,Jo(p,m,t+1,n,e,r,o,gt(m.consts,i),256),_&&Jo(p,m,t+2,c,l,u,d,gt(m.consts,h),512)}var up=class extends sp{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(n,e,r){super(),this.lContainer=n,this.hostLView=e,this.templateTNode=r}get length(){return this.lContainer.length-ve}at(n){return this.getLView(n)[ge].$implicit}attach(n,e){let r=e[qr];this.needsIndexUpdate||=n!==this.length,Bs(this.lContainer,e,n,Qo(this.templateTNode,r)),pR(this.lContainer,n)}detach(n){return this.needsIndexUpdate||=n!==this.length-1,mR(this.lContainer,n),gR(this.lContainer,n)}create(n,e){let r=dl(this.lContainer,this.templateTNode.tView.ssrId);return Vs(this.hostLView,this.templateTNode,new cp(this.lContainer,e,n),{dehydratedView:r})}destroy(n){Rl(n[N],n)}updateValue(n,e){this.getLView(n)[ge].$implicit=e}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let n=0;n0){let i=r[Pn];hx(i,o),oo.delete(r[Ln]),o.detachedLeaveAnimationFns=void 0}}function mR(t,n){if(t.length<=ve)return;let e=ve+n,r=t[e],o=r?r[mr]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function gR(t,n){return As(t,n)}function vR(t,n){return ID(t,n)}function dp(t,n){return Bc(t,n)}function sE(t,n,e){let r=I(),o=Vn();if(ct(r,o,n)){let i=le(),s=to();dD(s,r,t,n,r[se],e)}return sE}function fp(t,n,e,r,o){kl(n,t,e,o?"class":"style",r)}function _l(t,n,e,r){let o=I(),i=o[N],s=t+de,a=i.firstCreatePass?zp(s,o,2,n,jp,$c(),e,r):i.data[s];if(mn(a)){let c=o[Ht].tracingService;if(c&&c.componentCreate){let l=i.data[a.directiveStart+a.componentOffset];return c.componentCreate(jD(l),()=>(t_(t,n,o,a,r),_l))}}return t_(t,n,o,a,r),_l}function t_(t,n,e,r,o){if(Vp(r,e,t,n,aE),Ho(r)){let i=e[N];Ol(i,e,r),_p(i,r,e)}o!=null&&js(e,r)}function om(){let t=le(),n=Me(),e=Bp(n);return t.firstCreatePass&&Gp(t,e),ah(e)&&ch(),ih(),e.classesWithoutHost!=null&&$T(e)&&fp(t,e,I(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&zT(e)&&fp(t,e,I(),e.stylesWithoutHost,!1),om}function Gl(t,n,e,r){return _l(t,n,e,r),om(),Gl}function ai(t,n,e,r){let o=I(),i=o[N],s=t+de,a=i.firstCreatePass?vA(s,i,2,n,e,r):i.data[s];return Vp(a,o,t,n,aE),r!=null&&js(o,a),ai}function ci(){let t=Me(),n=Bp(t);return ah(n)&&ch(),ih(),ci}function Gn(t,n,e,r){return ai(t,n,e,r),ci(),Gn}var aE=(t,n,e,r,o)=>(bs(!0),$_(n[se],r,mh()));function im(t,n,e){let r=I(),o=r[N],i=t+de,s=o.firstCreatePass?zp(i,r,8,"ng-container",jp,$c(),n,e):o.data[i];if(Vp(s,r,t,"ng-container",yR),Ho(s)){let a=r[N];Ol(a,r,s),_p(a,s,r)}return e!=null&&js(r,s),im}function sm(){let t=le(),n=Me(),e=Bp(n);return t.firstCreatePass&&Gp(t,e),sm}function cE(t,n,e){return im(t,n,e),sm(),cE}var yR=(t,n,e,r,o)=>(bs(!0),j0(n[se],""));function bR(){return I()}function lE(t,n,e){let r=I(),o=Vn();if(ct(r,o,n)){let i=le(),s=to();fD(s,r,t,n,r[se],e)}return lE}var ws=void 0;function _R(t){let n=Math.floor(Math.abs(t)),e=t.toString().replace(/^[^.]*\.?/,"").length;return n===1&&e===0?1:5}var DR=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["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"]],ws,[["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"]],ws,[["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\u202Fa","h:mm:ss\u202Fa","h:mm:ss\u202Fa z","h:mm:ss\u202Fa zzzz"],["{1}, {0}",ws,ws,ws],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",_R],Mh=Object.create(null);function ut(t){let n=ER(t),e=n_(n);if(e)return e;let r=n.split("-")[0];if(e=n_(r),e)return e;if(r==="en")return DR;throw new b(701,!1)}function n_(t){if(!(t in Mh)){let n=we.ng&&we.ng.common&&we.ng.common.locales&&we.ng.common.locales[t];return n!==void 0&&(Mh[t]=n),n}return Mh[t]}var be=(function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t})(be||{});function ER(t){return t.toLowerCase().replace(/_/g,"-")}var $s="en-US";var wR=$s;function uE(t){typeof t=="string"&&(wR=t.toLowerCase().replace(/_/g,"-"))}function Qt(t,n,e){let r=I(),o=le(),i=Me();return fE(o,r,r[se],i,t,n,e),Qt}function dE(t,n,e){let r=I(),o=le(),i=Me();return(i.type&3||e)&&PD(i,o,r,e,r[se],t,n,ol(i,r,n)),dE}function fE(t,n,e,r,o,i,s){let a=!0,c=null;if((r.type&3||s)&&(c??=ol(r,n,i),PD(r,t,n,s,e,o,i,c)&&(a=!1)),a){let l=r.outputs?.[o],u=r.hostDirectiveOutputs?.[o];if(u&&u.length)for(let d=0;d>17&32767}function xR(t){return(t&2)==2}function AR(t,n){return t&131071|n<<17}function hp(t){return t|2}function ei(t){return(t&131068)>>2}function Th(t,n){return t&-131069|n<<2}function RR(t){return(t&1)===1}function pp(t){return t|1}function NR(t,n,e,r,o,i){let s=i?n.classBindings:n.styleBindings,a=io(s),c=ei(s);t[r]=e;let l=!1,u;if(Array.isArray(e)){let d=e;u=d[1],(u===null||jo(d,u)>0)&&(l=!0)}else u=e;if(o)if(c!==0){let h=io(t[a+1]);t[r+1]=Jc(h,a),h!==0&&(t[h+1]=Th(t[h+1],r)),t[a+1]=AR(t[a+1],r)}else t[r+1]=Jc(a,0),a!==0&&(t[a+1]=Th(t[a+1],r)),a=r;else t[r+1]=Jc(c,0),a===0?a=r:t[c+1]=Th(t[c+1],r),c=r;l&&(t[r+1]=hp(t[r+1])),r_(t,u,r,!0),r_(t,u,r,!1),OR(n,u,t,r,i),s=Jc(a,c),i?n.classBindings=s:n.styleBindings=s}function OR(t,n,e,r,o){let i=o?t.residualClasses:t.residualStyles;i!=null&&typeof n=="string"&&jo(i,n)>=0&&(e[r+1]=pp(e[r+1]))}function r_(t,n,e,r){let o=t[e+1],i=n===null,s=r?io(o):ei(o),a=!1;for(;s!==0&&(a===!1||i);){let c=t[s],l=t[s+1];kR(c,n)&&(a=!0,t[s+1]=r?pp(l):hp(l)),s=r?io(l):ei(l)}a&&(t[e+1]=r?hp(o):pp(o))}function kR(t,n){return t===null||n==null||(Array.isArray(t)?t[1]:t)===n?!0:Array.isArray(t)&&typeof n=="string"?jo(t,n)>=0:!1}var Wt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function FR(t){return t.substring(Wt.key,Wt.keyEnd)}function PR(t){return LR(t),mE(t,gE(t,0,Wt.textEnd))}function mE(t,n){let e=Wt.textEnd;return e===n?-1:(n=Wt.keyEnd=jR(t,Wt.key=n,e),gE(t,n,e))}function LR(t){Wt.key=0,Wt.keyEnd=0,Wt.value=0,Wt.valueEnd=0,Wt.textEnd=t.length}function gE(t,n,e){for(;n32;)n++;return n}function cm(t,n,e){return vE(t,n,e,!1),cm}function Xe(t,n){return vE(t,n,null,!0),Xe}function zs(t){BR(WR,VR,t,!0)}function VR(t,n){for(let e=PR(n);e>=0;e=mE(n,e))Lc(t,FR(n),!0)}function vE(t,n,e,r){let o=I(),i=le(),s=eo(2);if(i.firstUpdatePass&&bE(i,t,s,r),n!==ye&&ct(o,s,n)){let a=i.data[at()];_E(i,a,o,o[se],t,o[s+1]=YR(n,e),r,s)}}function BR(t,n,e,r){let o=le(),i=eo(2);o.firstUpdatePass&&bE(o,null,i,r);let s=I();if(e!==ye&&ct(s,i,e)){let a=o.data[at()];if(DE(a,r)&&!yE(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(e=Rc(c,e||"")),fp(o,a,s,e,r)}else qR(o,a,s,s[se],s[i+1],s[i+1]=GR(t,n,e),r,i)}}function yE(t,n){return n>=t.expandoStartIndex}function bE(t,n,e,r){let o=t.data;if(o[e+1]===null){let i=o[at()],s=yE(t,e);DE(i,r)&&n===null&&!s&&(n=!1),n=UR(o,i,n,r),NR(o,i,n,e,s,r)}}function UR(t,n,e,r){let o=lb(t),i=r?n.residualClasses:n.residualStyles;if(o===null)(r?n.classBindings:n.styleBindings)===0&&(e=xh(null,t,n,e,r),e=Ns(e,n.attrs,r),i=null);else{let s=n.directiveStylingLast;if(s===-1||t[s]!==o)if(e=xh(o,t,n,e,r),i===null){let c=HR(t,n,r);c!==void 0&&Array.isArray(c)&&(c=xh(null,t,n,c[1],r),c=Ns(c,n.attrs,r),$R(t,n,r,c))}else i=zR(t,n,r)}return i!==void 0&&(r?n.residualClasses=i:n.residualStyles=i),e}function HR(t,n,e){let r=e?n.classBindings:n.styleBindings;if(ei(r)!==0)return t[io(r)]}function $R(t,n,e,r){let o=e?n.classBindings:n.styleBindings;t[io(o)]=r}function zR(t,n,e){let r,o=n.directiveEnd;for(let i=1+n.directiveStylingLast;i0;){let c=t[o],l=Array.isArray(c),u=l?c[1]:c,d=u===null,h=e[o+1];h===ye&&(h=d?Ye:void 0);let p=d?jc(h,r):u===r?h:void 0;if(l&&!Dl(p)&&(p=jc(c,r)),Dl(p)&&(a=p,s))return a;let m=t[o+1];o=s?io(m):ei(m)}if(n!==null){let c=i?n.residualClasses:n.residualStyles;c!=null&&(a=jc(c,r))}return a}function Dl(t){return t!==void 0}function YR(t,n){return t==null||t===""||(typeof n=="string"?t=t+n:typeof t=="object"&&(t=cs(bt(t)))),t}function DE(t,n){return(t.flags&(n?8:16))!==0}function ZR(t,n=""){let e=I(),r=le(),o=t+de,i=r.firstCreatePass?ni(r,o,1,n,null):r.data[o],s=KR(r,e,i,n);e[o]=s,Yc()&&Pp(r,e,s,i),zo(i,!1)}var KR=(t,n,e,r)=>(bs(!0),P0(n[se],r));function EE(t,n,e,r=""){return ct(t,Vn(),e)?n+Se(e)+r:ye}function QR(t,n,e,r,o,i=""){let s=vs(),a=Xo(t,s,e,o);return eo(2),a?n+Se(e)+r+Se(o)+i:ye}function XR(t,n,e,r,o,i,s,a=""){let c=vs(),l=FD(t,c,e,o,s);return eo(3),l?n+Se(e)+r+Se(o)+i+Se(s)+a:ye}function JR(t,n,e,r,o,i,s,a,c,l=""){let u=vs(),d=qp(t,u,e,o,s,c);return eo(4),d?n+Se(e)+r+Se(o)+i+Se(s)+a+Se(c)+l:ye}function eN(t,n,e,r,o,i,s,a,c,l,u,d,h,p=""){let m=vs(),_=qp(t,m,e,o,s,c);return _=Xo(t,m+4,u,h)||_,eo(6),_?n+Se(e)+r+Se(o)+i+Se(s)+a+Se(c)+l+Se(u)+d+Se(h)+p:ye}function wE(t){return lm("",t),wE}function lm(t,n,e){let r=I(),o=EE(r,t,n,e);return o!==ye&&Gs(r,at(),o),lm}function CE(t,n,e,r,o){let i=I(),s=QR(i,t,n,e,r,o);return s!==ye&&Gs(i,at(),s),CE}function IE(t,n,e,r,o,i,s){let a=I(),c=XR(a,t,n,e,r,o,i,s);return c!==ye&&Gs(a,at(),c),IE}function SE(t,n,e,r,o,i,s,a,c){let l=I(),u=JR(l,t,n,e,r,o,i,s,a,c);return u!==ye&&Gs(l,at(),u),SE}function ME(t,n,e,r,o,i,s,a,c,l,u,d,h){let p=I(),m=eN(p,t,n,e,r,o,i,s,a,c,l,u,d,h);return m!==ye&&Gs(p,at(),m),ME}function Gs(t,n,e){let r=Xf(n,t);L0(t[se],r,e)}function TE(t,n,e){Jp(n)&&(n=n());let r=I(),o=Vn();if(ct(r,o,n)){let i=le(),s=to();dD(s,r,t,n,r[se],e)}return TE}function tN(t,n){let e=Jp(t);return e&&t.set(n),e}function xE(t,n){let e=I(),r=le(),o=Me();return fE(r,e,e[se],o,t,n),xE}function nN(t,n,e=""){return EE(I(),t,n,e)}function rN(t,n,e){let r=gn()+t,o=I();return o[r]===ye?ri(o,r,n(e,o)):kD(o,r)}function i_(t,n,e){let r=le();r.firstCreatePass&&AE(n,r.data,r.blueprint,zt(t),e)}function AE(t,n,e,r,o){if(t=ke(t),Array.isArray(t))for(let i=0;i>20;if($r(t)||!t.multi){let p=new ro(l,o,E,null),m=Rh(c,n,o?u:u+h,d);m===-1?(Oh(ll(a,s),i,c),Ah(i,t,n.length),n.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),e.push(p),s.push(p)):(e[m]=p,s[m]=p)}else{let p=Rh(c,n,u+h,d),m=Rh(c,n,u,u+h),_=p>=0&&e[p],D=m>=0&&e[m];if(o&&!D||!o&&!_){Oh(ll(a,s),i,c);let C=sN(o?iN:oN,e.length,o,r,l,t);!o&&D&&(e[m].providerFactory=C),Ah(i,t,n.length,0),n.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),e.push(C),s.push(C)}else{let C=RE(e[o?m:p],l,!o&&r);Ah(i,t,p>-1?p:m,C)}!o&&r&&D&&e[m].componentProviders++}}}function Ah(t,n,e,r){let o=$r(n),i=zy(n);if(o||i){let c=(i?ke(n.useClass):n).prototype.ngOnDestroy;if(c){let l=t.destroyHooks||(t.destroyHooks=[]);if(!o&&n.multi){let u=l.indexOf(e);u===-1?l.push(e,[r,c]):l[u+1].push(r,c)}else l.push(e,c)}}}function RE(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function Rh(t,n,e,r){for(let o=e;o{e.providersResolver=(r,o)=>i_(r,o?o(t):t,!1),n&&(e.viewProvidersResolver=(r,o)=>i_(r,o?o(n):n,!0))}}function aN(t,n){let e=gn()+t,r=I();return r[e]===ye?ri(r,e,n()):kD(r,e)}function cN(t,n,e){return NE(I(),gn(),t,n,e)}function lN(t,n,e,r){return OE(I(),gn(),t,n,e,r)}function uN(t,n,e,r,o){return kE(I(),gn(),t,n,e,r,o)}function dN(t,n,e,r,o,i,s){return fN(I(),gn(),t,n,e,r,o,i)}function Zl(t,n){let e=t[n];return e===ye?void 0:e}function NE(t,n,e,r,o,i){let s=n+e;return ct(t,s,o)?ri(t,s+1,i?r.call(i,o):r(o)):Zl(t,s+1)}function OE(t,n,e,r,o,i,s){let a=n+e;return Xo(t,a,o,i)?ri(t,a+2,s?r.call(s,o,i):r(o,i)):Zl(t,a+2)}function kE(t,n,e,r,o,i,s,a){let c=n+e;return FD(t,c,o,i,s)?ri(t,c+3,a?r.call(a,o,i,s):r(o,i,s)):Zl(t,c+3)}function fN(t,n,e,r,o,i,s,a,c){let l=n+e;return qp(t,l,o,i,s,a)?ri(t,l+4,c?r.call(c,o,i,s,a):r(o,i,s,a)):Zl(t,l+4)}function hN(t,n){let e=le(),r,o=t+de;e.firstCreatePass?(r=pN(n,e.pipeRegistry),e.data[o]=r,r.onDestroy&&(e.destroyHooks??=[]).push(o,r.onDestroy)):r=e.data[o];let i=r.factory||(r.factory=ur(r.type,!0)),s,a=tt(E);try{let c=cl(!1),l=i();return cl(c),Jf(e,I(),o,l),l}finally{tt(a)}}function pN(t,n){if(n)for(let e=n.length-1;e>=0;e--){let r=n[e];if(t===r.name)return r}}function mN(t,n,e){let r=t+de,o=I(),i=ms(o,r);return um(o,r)?NE(o,gn(),n,i.transform,e,i):i.transform(e)}function gN(t,n,e,r){let o=t+de,i=I(),s=ms(i,o);return um(i,o)?OE(i,gn(),n,s.transform,e,r,s):s.transform(e,r)}function vN(t,n,e,r,o){let i=t+de,s=I(),a=ms(s,i);return um(s,i)?kE(s,gn(),n,a.transform,e,r,o,a):a.transform(e,r,o)}function um(t,n){return t[N].data[n].pure}function yN(t,n){return Fl(t,n)}var El=class{ngModuleFactory;componentFactories;constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}},dm=(()=>{class t{compileModuleSync(e){return new vl(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let r=this.compileModuleSync(e),o=Lf(e),i=K_(o.declarations).reduce((s,a)=>{let c=hn(a);return c&&s.push(new br(c)),s},[]);return new El(r,i)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var FE=(()=>{class t{applicationErrorHandler=f(vt);appRef=f(Ge);taskService=f(Bn);ngZone=f(V);zonelessEnabled=f(Ds);tracing=f(Zt,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new G;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(ss):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(f(_h,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let e=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(e);return}this.switchToMicrotaskScheduler(),this.taskService.remove(e)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let e=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})})}notify(e){if(!this.zonelessEnabled&&e===5)return;switch(e){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2;break}case 12:{this.appRef.dirtyFlags|=16;break}case 13:{this.appRef.dirtyFlags|=2;break}case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let r=this.useMicrotaskScheduler?bb:vh;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>r(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(ss+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.applicationErrorHandler(r)}finally{this.taskService.remove(e),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function bN(){return Kt("NgZoneless"),hr([...fm(),[]])}function fm(){return[{provide:fn,useExisting:FE},{provide:V,useClass:as},{provide:Ds,useValue:!0}]}function _N(){return typeof $localize<"u"&&$localize.locale||$s}var li=new y("",{factory:()=>f(li,{optional:!0,skipSelf:!0})||_N()});var Ws=class{destroyed=!1;listeners=null;errorHandler=f(Ze,{optional:!0});destroyRef=f(He);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(n){if(this.destroyed)throw new b(953,!1);return(this.listeners??=[]).push(n),{unsubscribe:()=>{let e=this.listeners?.indexOf(n);e!==void 0&&e!==-1&&this.listeners?.splice(e,1)}}}emit(n){if(this.destroyed){console.warn(St(953,!1));return}if(this.listeners===null)return;let e=T(null);try{for(let r of this.listeners)try{r(n)}catch(o){this.errorHandler?.handleError(o)}}finally{T(e)}}};function Z(t){return My(t)}function Wn(t,n){return Ji(t,n?.equal)}var DN=t=>t;function hm(t,n){if(typeof t=="function"){let e=bf(t,DN,n?.equal);return PE(e,n?.debugName)}else{let e=bf(t.source,t.computation,t.equal);return PE(e,t.debugName)}}function PE(t,n){let e=t[me],r=t;return r.set=o=>Iy(e,o),r.update=o=>Sy(e,o),r.asReadonly=_s.bind(t),r}var Xl=Symbol("InputSignalNode#UNSET"),WE=F(g({},es),{transformFn:void 0,applyValueToInputSignal(t,n){cr(t,n)}});function qE(t,n){let e=Object.create(WE);e.value=t,e.transformFn=n?.transform;function r(){if(On(e),e.value===Xl){let o=null;throw new b(-950,o)}return e.value}return r[me]=e,r}var ui=class{attributeName;constructor(n){this.attributeName=n}__NG_ELEMENT_ID__=()=>ks(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},q5=(()=>{let t=new y("");return t.__NG_ELEMENT_ID__=n=>{let e=Me();if(e===null)throw new b(-204,!1);if(e.type&2)return e.value;if(n&8)return null;throw new b(-204,!1)},t})();function Y5(t){return new Ws}function LE(t,n){return qE(t,n)}function NN(t){return qE(Xl,t)}var YE=(LE.required=NN,LE);function jE(t,n){return Qp(n)}function ON(t,n){return Xp(n)}var Z5=(jE.required=ON,jE);function K5(t,n){return qD(n)}function VE(t,n){return Qp(n)}function kN(t,n){return Xp(n)}var Q5=(VE.required=kN,VE);function ZE(t,n){let e=Object.create(WE),r=new Ws;e.value=t;function o(){return On(e),BE(e.value),e.value}return o[me]=e,o.asReadonly=_s.bind(o),o.set=i=>{e.equal(e.value,i)||(cr(e,i),r.emit(i))},o.update=i=>{BE(e.value),o.set(i(e.value))},o.subscribe=r.subscribe.bind(r),o.destroyRef=r.destroyRef,o}function BE(t){if(t===Xl)throw new b(952,!1)}function UE(t,n){return ZE(t,n)}function FN(t){return ZE(Xl,t)}var X5=(UE.required=FN,UE);var mm=new y(""),PN=new y("");function qs(t){return!t.moduleRef}function LN(t){let n=qs(t)?t.r3Injector:t.moduleRef.injector,e=n.get(V);return e.run(()=>{qs(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let r=n.get(vt),o;if(e.runOutsideAngular(()=>{o=e.onError.subscribe({next:r})}),qs(t)){let i=()=>n.destroy(),s=t.platformInjector.get(mm);s.add(i),n.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>t.moduleRef.destroy(),s=t.platformInjector.get(mm);s.add(i),t.moduleRef.onDestroy(()=>{Ss(t.allPlatformModules,t.moduleRef),o.unsubscribe(),s.delete(i)})}return VN(r,e,()=>{let i=n.get(Bn),s=i.add(),a=n.get(nm);return a.runInitializers(),a.donePromise.then(()=>{let c=n.get(li,$s);if(uE(c||$s),!n.get(PN,!0))return qs(t)?n.get(Ge):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(qs(t)){let u=n.get(Ge);return t.rootComponent!==void 0&&u.bootstrap(t.rootComponent),u}else return jN?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>{i.remove(s)})})})}var jN;function VN(t,n,e){try{let r=e();return zn(r)?r.catch(o=>{throw n.runOutsideAngular(()=>t(o)),o}):r}catch(r){throw n.runOutsideAngular(()=>t(r)),r}}var Kl=null;function BN(t=[],n){return W.create({name:n,providers:[{provide:hs,useValue:"platform"},{provide:mm,useValue:new Set([()=>Kl=null])},...t]})}function UN(t=[]){if(Kl)return Kl;let n=BN(t);return Kl=n,rE(),HN(n),n}function HN(t){let n=t.get(wl,null);Pe(t,()=>{n?.forEach(e=>e())})}var $N=1e4;var J5=$N-1e3;var Xt=(()=>{class t{static __NG_ELEMENT_ID__=zN}return t})();function zN(t){return GN(Me(),I(),(t&16)===16)}function GN(t,n,e){if(mn(t)&&!e){let r=xt(t.index,n);return new yr(r,r)}else if(t.type&175){let r=n[Ke];return new yr(r,n)}return null}var gm=class{supports(n){return Wp(n)}create(n){return new vm(n)}},WN=(t,n)=>n,vm=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(n){this._trackByFn=n||WN}forEachItem(n){let e;for(e=this._itHead;e!==null;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,r=this._removalsHead,o=0,i=null;for(;e||r;){let s=!r||e&&e.currentIndex{s=this._trackByFn(o,a),e===null||!Object.is(e.trackById,s)?(e=this._mismatch(e,a,s,o),r=!0):(r&&(e=this._verifyReinsertion(e,a,s,o)),Object.is(e.item,a)||this._addIdentityChange(e,a)),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=n,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;n!==null;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;n!==null;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,r,o){let i;return n===null?i=this._itTail:(i=n._prev,this._remove(n)),n=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,i,o)):(n=this._linkedRecords===null?null:this._linkedRecords.get(r,o),n!==null?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,i,o)):n=this._addAfter(new ym(e,r),i,o)),n}_verifyReinsertion(n,e,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?n=this._reinsertAfter(i,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;n!==null;){let e=n._next;this._addToRemovals(this._unlink(n)),n=e}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,e,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(n);let o=n._prevRemoved,i=n._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(n,e,r),this._addToMoves(n,r),n}_moveAfter(n,e,r){return this._unlink(n),this._insertAfter(n,e,r),this._addToMoves(n,r),n}_addAfter(n,e,r){return this._insertAfter(n,e,r),this._additionsTail===null?this._additionsTail=this._additionsHead=n:this._additionsTail=this._additionsTail._nextAdded=n,n}_insertAfter(n,e,r){let o=e===null?this._itHead:e._next;return n._next=o,n._prev=e,o===null?this._itTail=n:o._prev=n,e===null?this._itHead=n:e._next=n,this._linkedRecords===null&&(this._linkedRecords=new Ql),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){this._linkedRecords!==null&&this._linkedRecords.remove(n);let e=n._prev,r=n._next;return e===null?this._itHead=r:e._next=r,r===null?this._itTail=e:r._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=n:this._movesTail=this._movesTail._nextMoved=n),n}_addToRemovals(n){return this._unlinkedRecords===null&&(this._unlinkedRecords=new Ql),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=n:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=n,n}},ym=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(n,e){this.item=n,this.trackById=e}},bm=class{_head=null;_tail=null;add(n){this._head===null?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let r;for(r=this._head;r!==null;r=r._nextDup)if((e===null||e<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){let e=n._prevDup,r=n._nextDup;return e===null?this._head=r:e._nextDup=r,r===null?this._tail=e:r._prevDup=e,this._head===null}},Ql=class{map=new Map;put(n){let e=n.trackById,r=this.map.get(e);r||(r=new bm,this.map.set(e,r)),r.add(n)}get(n,e){let r=n,o=this.map.get(r);return o?o.get(n,e):null}remove(n){let e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function HE(t,n,e){let r=t.previousIndex;if(r===null)return r;let o=0;return e&&r{if(e&&e.key===o)this._maybeAddToChanges(e,r),this._appendAfter=e,e=e._next;else{let i=this._getOrCreateRecordForKey(o,r);e=this._insertBeforeOrAppend(e,i)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let r=e;r!==null;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(n,e){if(n){let r=n._prev;return e._next=n,e._prev=r,n._prev=e,r&&(r._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){let o=this._records.get(n);this._maybeAddToChanges(o,e);let i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}let r=new Em(n);return this._records.set(n,r),r.currentValue=e,this._addToAdditions(r),r}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;n!==null;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;n!==null;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;n!=null;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){this._additionsHead===null?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){this._changesHead===null?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(r=>e(n[r],r))}},Em=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(n){this.key=n}};function $E(){return new Jl([new gm])}var Jl=(()=>{class t{factories;static \u0275prov=v({token:t,providedIn:"root",factory:$E});constructor(e){this.factories=e}static create(e,r){if(r!=null){let o=r.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let r=f(t,{optional:!0,skipSelf:!0});return t.create(e,r||$E())}}}find(e){let r=this.factories.find(o=>o.supports(e));if(r!=null)return r;throw new b(901,!1)}}return t})();function zE(){return new Im([new _m])}var Im=(()=>{class t{static \u0275prov=v({token:t,providedIn:"root",factory:zE});factories;constructor(e){this.factories=e}static create(e,r){if(r){let o=r.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let r=f(t,{optional:!0,skipSelf:!0});return t.create(e,r||zE())}}}find(e){let r=this.factories.find(o=>o.supports(e));if(r)return r;throw new b(901,!1)}}return t})();var KE=(()=>{class t{constructor(e){}static \u0275fac=function(r){return new(r||t)(w(Ge))};static \u0275mod=X({type:t});static \u0275inj=Y({})}return t})();function QE(t){let{rootComponent:n,appProviders:e,platformProviders:r,platformRef:o}=t;ie(ee.BootstrapApplicationStart);try{let i=o?.injector??UN(r),s=[fm(),Db,...e||[]],a=new Rs({providers:s,parent:i,debugName:"",runEnvironmentInitializers:!1});return LN({r3Injector:a.injector,platformInjector:i,rootComponent:n})}catch(i){return Promise.reject(i)}finally{ie(ee.BootstrapApplicationEnd)}}function ue(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function Sm(t,n=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):n}var pm=Symbol("NOT_SET"),XE=new Set,qN=F(g({},es),{kind:"afterRenderEffectPhase",consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:pm,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase(On(l),l.value),l.signal[me]=l,l.registerCleanupFn=u=>(l.cleanup??=new Set).add(u),this.nodes[a]=l,this.hooks[a]=u=>l.phaseFn(u)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){if(this.onDestroyFns!==null)for(let n of this.onDestroyFns)n();super.destroy();for(let n of this.nodes)if(n)try{for(let e of n.cleanup??XE)e()}finally{ar(n)}}};function e6(t,n){let e=n?.injector??f(W),r=e.get(fn),o=e.get(Al),i=e.get(Zt,null,{optional:!0});o.impl??=e.get(kp);let s=t;typeof s=="function"&&(s={mixedReadWrite:t});let a=e.get(Go,null,{optional:!0}),c=new wm(o.impl,[s.earlyRead,s.write,s.mixedReadWrite,s.read],a?.view,r,e,i?.snapshot(null));return o.impl.register(c),c}function eu(t,n){let e=hn(t),r=n.elementInjector||Vo();return new br(e).create(r,n.projectableNodes,n.hostElement,n.environmentInjector,n.directives,n.bindings)}function JE(t){let n=hn(t);if(!n)return null;let e=new br(n);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}var ew=null;function _t(){return ew}function Mm(t){ew??=t}var Ys=class{},qn=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:()=>f(tw),providedIn:"platform"})}return t})(),Tm=new y(""),tw=(()=>{class t extends qn{_location;_history;_doc=f(k);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return _t().getBaseHref(this._doc)}onPopState(e){let r=_t().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",e,!1),()=>r.removeEventListener("popstate",e)}onHashChange(e){let r=_t().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",e,!1),()=>r.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,r,o){this._history.pushState(e,r,o)}replaceState(e,r,o){this._history.replaceState(e,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function tu(t,n){return t?n?t.endsWith("/")?n.startsWith("/")?t+n.slice(1):t+n:n.startsWith("/")?t+n:`${t}/${n}`:t:n}function nw(t){let n=t.search(/#|\?|$/);return t[n-1]==="/"?t.slice(0,n-1)+t.slice(n):t}function Jt(t){return t&&t[0]!=="?"?`?${t}`:t}var en=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:()=>f(ru),providedIn:"root"})}return t})(),nu=new y(""),ru=(()=>{class t extends en{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,r){super(),this._platformLocation=e,this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??f(k).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return tu(this._baseHref,e)}path(e=!1){let r=this._platformLocation.pathname+Jt(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${r}${o}`:r}pushState(e,r,o,i){let s=this.prepareExternalUrl(o+Jt(i));this._platformLocation.pushState(e,r,s)}replaceState(e,r,o,i){let s=this.prepareExternalUrl(o+Jt(i));this._platformLocation.replaceState(e,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(r){return new(r||t)(w(qn),w(nu,8))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Dn=(()=>{class t{_subject=new R;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let r=this._locationStrategy.getBaseHref();this._basePath=KN(nw(rw(r))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,r=""){return this.path()==this.normalize(e+Jt(r))}normalize(e){return t.stripTrailingSlash(ZN(this._basePath,rw(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,r="",o=null){this._locationStrategy.pushState(o,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Jt(r)),o)}replaceState(e,r="",o=null){this._locationStrategy.replaceState(o,"",e,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Jt(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{let r=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(r,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",r){this._urlChangeListeners.forEach(o=>o(e,r))}subscribe(e,r,o){return this._subject.subscribe({next:e,error:r??void 0,complete:o??void 0})}static normalizeQueryParams=Jt;static joinWithSlash=tu;static stripTrailingSlash=nw;static \u0275fac=function(r){return new(r||t)(w(en))};static \u0275prov=v({token:t,factory:()=>YN(),providedIn:"root"})}return t})();function YN(){return new Dn(w(en))}function ZN(t,n){if(!t||!n.startsWith(t))return n;let e=n.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:n}function rw(t){return t.replace(/\/index\.html$/,"")}function KN(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var Lm=(()=>{class t extends en{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,r){super(),this._platformLocation=e,r!=null&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(e){let r=tu(this._baseHref,e);return r.length>0?"#"+r:r}pushState(e,r,o,i){let s=this.prepareExternalUrl(o+Jt(i))||this._platformLocation.pathname;this._platformLocation.pushState(e,r,s)}replaceState(e,r,o,i){let s=this.prepareExternalUrl(o+Jt(i))||this._platformLocation.pathname;this._platformLocation.replaceState(e,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(r){return new(r||t)(w(qn),w(nu,8))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();var jm=(function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t})(jm||{});var Je=(function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t})(Je||{}),ce=(function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t})(ce||{}),dt=(function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t})(dt||{}),ft={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function lw(t){return ut(t)[be.LocaleId]}function uw(t,n,e){let r=ut(t),o=[r[be.DayPeriodsFormat],r[be.DayPeriodsStandalone]],i=Rt(o,n);return Rt(i,e)}function dw(t,n,e){let r=ut(t),o=[r[be.DaysFormat],r[be.DaysStandalone]],i=Rt(o,n);return Rt(i,e)}function fw(t,n,e){let r=ut(t),o=[r[be.MonthsFormat],r[be.MonthsStandalone]],i=Rt(o,n);return Rt(i,e)}function hw(t,n){let r=ut(t)[be.Eras];return Rt(r,n)}function Zs(t,n){let e=ut(t);return Rt(e[be.DateFormat],n)}function Ks(t,n){let e=ut(t);return Rt(e[be.TimeFormat],n)}function Qs(t,n){let r=ut(t)[be.DateTimeFormat];return Rt(r,n)}function En(t,n){let e=ut(t),r=e[be.NumberSymbols][n];if(typeof r>"u"){if(n===ft.CurrencyDecimal)return e[be.NumberSymbols][ft.Decimal];if(n===ft.CurrencyGroup)return e[be.NumberSymbols][ft.Group]}return r}function pw(t,n){return ut(t)[be.NumberFormats][n]}function mw(t){if(!t[be.ExtraData])throw new b(2303,!1)}function gw(t){let n=ut(t);return mw(n),(n[be.ExtraData][2]||[]).map(r=>typeof r=="string"?xm(r):[xm(r[0]),xm(r[1])])}function vw(t,n,e){let r=ut(t);mw(r);let o=[r[be.ExtraData][0],r[be.ExtraData][1]],i=Rt(o,n)||[];return Rt(i,e)||[]}function Rt(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new b(2304,!1)}function xm(t){let[n,e]=t.split(":");return{hours:+n,minutes:+e}}var QN=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ou={},XN=/((?:[^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]*)/,JN=256;function yw(t,n,e,r){let o=lO(t);eO(n),n=Yn(e,n)||n;let s=[],a;for(;n;)if(a=XN.exec(n),a){s=s.concat(a.slice(1));let u=s.pop();if(!u)break;n=u}else{s.push(n);break}let c=o.getTimezoneOffset();r&&(c=_w(r,c),o=cO(o,r));let l="";return s.forEach(u=>{let d=sO(u);l+=d?d(o,e,c):u==="''"?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function eO(t){if(t.length>JN)throw new b(2300,!1)}function lu(t,n,e){let r=new Date(0);return r.setFullYear(t,n,e),r.setHours(0,0,0),r}function Yn(t,n){let e=lw(t);if(ou[e]??={},ou[e][n])return ou[e][n];let r="";switch(n){case"shortDate":r=Zs(t,dt.Short);break;case"mediumDate":r=Zs(t,dt.Medium);break;case"longDate":r=Zs(t,dt.Long);break;case"fullDate":r=Zs(t,dt.Full);break;case"shortTime":r=Ks(t,dt.Short);break;case"mediumTime":r=Ks(t,dt.Medium);break;case"longTime":r=Ks(t,dt.Long);break;case"fullTime":r=Ks(t,dt.Full);break;case"short":let o=Yn(t,"shortTime"),i=Yn(t,"shortDate");r=iu(Qs(t,dt.Short),[o,i]);break;case"medium":let s=Yn(t,"mediumTime"),a=Yn(t,"mediumDate");r=iu(Qs(t,dt.Medium),[s,a]);break;case"long":let c=Yn(t,"longTime"),l=Yn(t,"longDate");r=iu(Qs(t,dt.Long),[c,l]);break;case"full":let u=Yn(t,"fullTime"),d=Yn(t,"fullDate");r=iu(Qs(t,dt.Full),[u,d]);break}return r&&(ou[e][n]=r),r}function iu(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,r){return n!=null&&r in n?n[r]:e})),t}function tn(t,n,e="-",r,o){let i="";(t<0||o&&t<=0)&&(o?t=-t+1:(t=-t,i=e));let s=String(t);for(;s.length0||a>-e)&&(a+=e),t===3)a===0&&e===-12&&(a=12);else if(t===6)return tO(a,n);let c=En(s,ft.MinusSign);return tn(a,n,c,r,o)}}function nO(t,n){switch(t){case 0:return n.getFullYear();case 1:return n.getMonth();case 2:return n.getDate();case 3:return n.getHours();case 4:return n.getMinutes();case 5:return n.getSeconds();case 6:return n.getMilliseconds();case 7:return n.getDay();default:throw new b(2301,!1)}}function fe(t,n,e=Je.Format,r=!1){return function(o,i){return rO(o,i,t,n,e,r)}}function rO(t,n,e,r,o,i){switch(e){case 2:return fw(n,o,r)[t.getMonth()];case 1:return dw(n,o,r)[t.getDay()];case 0:let s=t.getHours(),a=t.getMinutes();if(i){let l=gw(n),u=vw(n,o,r),d=l.findIndex(h=>{if(Array.isArray(h)){let[p,m]=h,_=s>=p.hours&&a>=p.minutes,D=s0?Math.floor(o/60):Math.ceil(o/60);switch(t){case 0:return(o>=0?"+":"")+tn(s,2,i)+tn(Math.abs(o%60),2,i);case 1:return"GMT"+(o>=0?"+":"")+tn(s,1,i);case 2:return"GMT"+(o>=0?"+":"")+tn(s,2,i)+":"+tn(Math.abs(o%60),2,i);case 3:return r===0?"Z":(o>=0?"+":"")+tn(s,2,i)+":"+tn(Math.abs(o%60),2,i);default:throw new b(2310,!1)}}}var oO=0,cu=4;function iO(t){let n=lu(t,oO,1).getDay();return lu(t,0,1+(n<=cu?cu:cu+7)-n)}function bw(t){let n=t.getDay(),e=n===0?-3:cu-n;return lu(t.getFullYear(),t.getMonth(),t.getDate()+e)}function Am(t,n=!1){return function(e,r){let o;if(n){let i=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,s=e.getDate();o=1+Math.floor((s+i)/7)}else{let i=bw(e),s=iO(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return tn(o,t,En(r,ft.MinusSign))}}function au(t,n=!1){return function(e,r){let i=bw(e).getFullYear();return tn(i,t,En(r,ft.MinusSign),n)}}var Rm={};function sO(t){if(Rm[t])return Rm[t];let n;switch(t){case"G":case"GG":case"GGG":n=fe(3,ce.Abbreviated);break;case"GGGG":n=fe(3,ce.Wide);break;case"GGGGG":n=fe(3,ce.Narrow);break;case"y":n=Ae(0,1,0,!1,!0);break;case"yy":n=Ae(0,2,0,!0,!0);break;case"yyy":n=Ae(0,3,0,!1,!0);break;case"yyyy":n=Ae(0,4,0,!1,!0);break;case"Y":n=au(1);break;case"YY":n=au(2,!0);break;case"YYY":n=au(3);break;case"YYYY":n=au(4);break;case"M":case"L":n=Ae(1,1,1);break;case"MM":case"LL":n=Ae(1,2,1);break;case"MMM":n=fe(2,ce.Abbreviated);break;case"MMMM":n=fe(2,ce.Wide);break;case"MMMMM":n=fe(2,ce.Narrow);break;case"LLL":n=fe(2,ce.Abbreviated,Je.Standalone);break;case"LLLL":n=fe(2,ce.Wide,Je.Standalone);break;case"LLLLL":n=fe(2,ce.Narrow,Je.Standalone);break;case"w":n=Am(1);break;case"ww":n=Am(2);break;case"W":n=Am(1,!0);break;case"d":n=Ae(2,1);break;case"dd":n=Ae(2,2);break;case"c":case"cc":n=Ae(7,1);break;case"ccc":n=fe(1,ce.Abbreviated,Je.Standalone);break;case"cccc":n=fe(1,ce.Wide,Je.Standalone);break;case"ccccc":n=fe(1,ce.Narrow,Je.Standalone);break;case"cccccc":n=fe(1,ce.Short,Je.Standalone);break;case"E":case"EE":case"EEE":n=fe(1,ce.Abbreviated);break;case"EEEE":n=fe(1,ce.Wide);break;case"EEEEE":n=fe(1,ce.Narrow);break;case"EEEEEE":n=fe(1,ce.Short);break;case"a":case"aa":case"aaa":n=fe(0,ce.Abbreviated);break;case"aaaa":n=fe(0,ce.Wide);break;case"aaaaa":n=fe(0,ce.Narrow);break;case"b":case"bb":case"bbb":n=fe(0,ce.Abbreviated,Je.Standalone,!0);break;case"bbbb":n=fe(0,ce.Wide,Je.Standalone,!0);break;case"bbbbb":n=fe(0,ce.Narrow,Je.Standalone,!0);break;case"B":case"BB":case"BBB":n=fe(0,ce.Abbreviated,Je.Format,!0);break;case"BBBB":n=fe(0,ce.Wide,Je.Format,!0);break;case"BBBBB":n=fe(0,ce.Narrow,Je.Format,!0);break;case"h":n=Ae(3,1,-12);break;case"hh":n=Ae(3,2,-12);break;case"H":n=Ae(3,1);break;case"HH":n=Ae(3,2);break;case"m":n=Ae(4,1);break;case"mm":n=Ae(4,2);break;case"s":n=Ae(5,1);break;case"ss":n=Ae(5,2);break;case"S":n=Ae(6,1);break;case"SS":n=Ae(6,2);break;case"SSS":n=Ae(6,3);break;case"Z":case"ZZ":case"ZZZ":n=su(0);break;case"ZZZZZ":n=su(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=su(1);break;case"OOOO":case"ZZZZ":case"zzzz":n=su(2);break;default:return null}return Rm[t]=n,n}function _w(t,n){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function aO(t,n){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+n),t}function cO(t,n,e){let o=t.getTimezoneOffset(),i=_w(n,o);return aO(t,-1*(i-o))}function lO(t){if(ow(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[o,i=1,s=1]=t.split("-").map(a=>+a);return lu(o,i-1,s)}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let r;if(r=t.match(QN))return uO(r)}let n=new Date(t);if(!ow(n))throw new b(2311,!1);return n}function uO(t){let n=new Date(0),e=0,r=0,o=t[8]?n.setUTCFullYear:n.setFullYear,i=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),r=Number(t[9]+t[11])),o.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));let s=Number(t[4]||0)-e,a=Number(t[5]||0)-r,c=Number(t[6]||0),l=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return i.call(n,s,a,c,l),n}function ow(t){return t instanceof Date&&!isNaN(t.valueOf())}var dO=/^(\d+)?\.((\d+)(-(\d+))?)?$/,iw=22,uu=".",Xs="0",fO=";",hO=",",Nm="#";function pO(t,n,e,r,o,i,s=!1){let a="",c=!1;if(!isFinite(t))a=En(e,ft.Infinity);else{let l=vO(t);s&&(l=gO(l));let u=n.minInt,d=n.minFrac,h=n.maxFrac;if(i){let $=i.match(dO);if($===null)throw new b(2306,!1);let De=$[1],pe=$[3],er=$[5];De!=null&&(u=Om(De)),pe!=null&&(d=Om(pe)),er!=null?h=Om(er):pe!=null&&d>h&&(h=d);let Tn=100;if(u>Tn||d>Tn||h>Tn)throw new b(2306,!1)}yO(l,d,h);let p=l.digits,m=l.integerLen,_=l.exponent,D=[];for(c=p.every($=>!$);m0?D=p.splice(m,p.length):(D=p,p=[0]);let C=[];for(p.length>=n.lgSize&&C.unshift(p.splice(-n.lgSize,p.length).join(""));p.length>n.gSize;)C.unshift(p.splice(-n.gSize,p.length).join(""));p.length&&C.unshift(p.join("")),a=C.join(En(e,r)),D.length&&(a+=En(e,o)+D.join("")),_&&(a+=En(e,ft.Exponential)+"+"+_)}return t<0&&!c?a=n.negPre+a+n.negSuf:a=n.posPre+a+n.posSuf,a}function Dw(t,n,e){let r=pw(n,jm.Decimal),o=mO(r,En(n,ft.MinusSign));return pO(t,o,n,ft.Group,ft.Decimal,e)}function mO(t,n="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},r=t.split(fO),o=r[0],i=r[1],s=o.indexOf(uu)!==-1?o.split(uu):[o.substring(0,o.lastIndexOf(Xs)+1),o.substring(o.lastIndexOf(Xs)+1)],a=s[0],c=s[1]||"";e.posPre=a.substring(0,a.indexOf(Nm));for(let u=0;u-1&&(n=n.replace(uu,"")),(i=n.search(/e/i))>0?(o<0&&(o=i),o+=+n.slice(i+1),n=n.substring(0,i)):o<0&&(o=n.length),i=0;n.charAt(i)===Xs;i++);if(i===(a=n.length))r=[0],o=1;else{for(a--;n.charAt(a)===Xs;)a--;for(o-=i,r=[],s=0;i<=a;i++,s++)r[s]=Number(n.charAt(i))}return o>iw&&(r=r.splice(0,iw-1),e=o-1,o=1),{digits:r,exponent:e,integerLen:o}}function yO(t,n,e){if(n>e)throw new b(2307,!1);let r=t.digits,o=r.length-t.integerLen,i=Math.min(Math.max(n,o),e),s=i+t.integerLen,a=r[s];if(s>0){r.splice(Math.max(t.integerLen,s));for(let d=s;d=5)if(s-1<0){for(let d=0;d>s;d--)r.unshift(0),t.integerLen++;r.unshift(1),t.integerLen++}else r[s-1]++;for(;o=l?m.pop():c=!1),h>=10?1:0},0);u&&(r.unshift(u),t.integerLen++)}function Om(t){let n=parseInt(t);if(isNaN(n))throw new b(2305,!1);return n}var km=/\s+/,sw=[],bO=(()=>{class t{_ngEl;_renderer;initialClasses=sw;rawClass;stateMap=new Map;constructor(e,r){this._ngEl=e,this._renderer=r}set klass(e){this.initialClasses=e!=null?e.trim().split(km):sw}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(km):e}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let r of e)this._updateState(r,!0);else if(e!=null)for(let r of Object.keys(e))this._updateState(r,!!e[r]);this._applyStateDiff()}_updateState(e,r){let o=this.stateMap.get(e);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(e,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let r=e[0],o=e[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(e,r){e=e.trim(),e.length>0&&e.split(km).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(r){return new(r||t)(E(z),E(Le))};static \u0275dir=M({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var du=class{$implicit;ngForOf;index;count;constructor(n,e,r,o){this.$implicit=n,this.ngForOf=e,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Ew=(()=>{class t{_viewContainer;_template;_differs;set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(e,r,o){this._viewContainer=e,this._template=r,this._differs=o}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){let e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){let r=this._viewContainer;e.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new du(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),aw(a,o)}});for(let o=0,i=r.length;o{let i=r.get(o.currentIndex);aw(i,o)})}static ngTemplateContextGuard(e,r){return!0}static \u0275fac=function(r){return new(r||t)(E(Qe),E(yt),E(Jl))};static \u0275dir=M({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function aw(t,n){t.context.$implicit=n.item}var _O=(()=>{class t{_viewContainer;_context=new fu;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,r){this._viewContainer=e,this._thenTemplateRef=r}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){cw(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){cw(e,!1),this._elseTemplateRef=e,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 ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(e,r){return!0}static \u0275fac=function(r){return new(r||t)(E(Qe),E(yt))};static \u0275dir=M({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),fu=class{$implicit=null;ngIf=null};function cw(t,n){if(t&&!t.createEmbeddedView)throw new b(2020,!1)}var DO=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,r,o){this._ngEl=e,this._differs=r,this._renderer=o}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,r){let[o,i]=e.split("."),s=o.indexOf("-")===-1?void 0:Yt.DashCase;r!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,i?`${r}${i}`:r,s):this._renderer.removeStyle(this._ngEl.nativeElement,o,s)}_applyChanges(e){e.forEachRemovedItem(r=>this._setStyle(r.key,null)),e.forEachAddedItem(r=>this._setStyle(r.key,r.currentValue)),e.forEachChangedItem(r=>this._setStyle(r.key,r.currentValue))}static \u0275fac=function(r){return new(r||t)(E(z),E(Im),E(Le))};static \u0275dir=M({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),EO=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=f(W);constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let r=this._viewContainerRef;if(this._viewRef&&r.remove(r.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=r.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this._getInjector()})}}_getInjector(){return this.ngTemplateOutletInjector==="outlet"?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,r,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,r,o):!1,get:(e,r,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,r,o)}})}static \u0275fac=function(r){return new(r||t)(E(Qe))};static \u0275dir=M({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[ze]})}return t})();function hu(t,n){return new b(2100,!1)}var Fm=class{createSubscription(n,e,r){return Z(()=>n.subscribe({next:e,error:r}))}dispose(n){Z(()=>n.unsubscribe())}},Pm=class{createSubscription(n,e,r){return n.then(o=>e?.(o),o=>r?.(o)),{unsubscribe:()=>{e=null,r=null}}}dispose(n){n.unsubscribe()}},wO=new Pm,CO=new Fm,IO=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=f(vt);constructor(e){this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,r=>this._updateLatestValue(e,r),r=>this.applicationErrorHandler(r))}_selectStrategy(e){if(zn(e))return wO;if(Hl(e))return CO;throw hu(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,r){e===this._obj&&(this._latestValue=r,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(r){return new(r||t)(E(Xt,16))};static \u0275pipe=ii({name:"async",type:t,pure:!1})}return t})();var SO=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,MO=(()=>{class t{transform(e){return e==null?null:(TO(t,e),e.replace(SO,r=>r[0].toUpperCase()+r.slice(1).toLowerCase()))}static \u0275fac=function(r){return new(r||t)};static \u0275pipe=ii({name:"titlecase",type:t,pure:!0})}return t})();function TO(t,n){if(typeof n!="string")throw hu(t,n)}var xO="mediumDate",ww=new y(""),Cw=new y(""),AO=(()=>{class t{locale;defaultTimezone;defaultOptions;constructor(e,r,o){this.locale=e,this.defaultTimezone=r,this.defaultOptions=o}transform(e,r,o,i){if(e==null||e===""||e!==e)return null;try{let s=r??this.defaultOptions?.dateFormat??xO,a=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return yw(e,s,i||this.locale,a)}catch(s){throw hu(t,s.message)}}static \u0275fac=function(r){return new(r||t)(E(li,16),E(ww,24),E(Cw,24))};static \u0275pipe=ii({name:"date",type:t,pure:!0})}return t})();var RO=(()=>{class t{_locale;constructor(e){this._locale=e}transform(e,r,o){if(!NO(e))return null;o||=this._locale;try{let i=OO(e);return Dw(i,o,r)}catch(i){throw hu(t,i.message)}}static \u0275fac=function(r){return new(r||t)(E(li,16))};static \u0275pipe=ii({name:"number",type:t,pure:!0})}return t})();function NO(t){return!(t==null||t===""||t!==t)}function OO(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new b(2309,!1);return t}var Vm=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=X({type:t});static \u0275inj=Y({})}return t})();function Js(t,n){n=encodeURIComponent(n);for(let e of t.split(";")){let r=e.indexOf("="),[o,i]=r==-1?[e,""]:[e.slice(0,r),e.slice(r+1)];if(o.trim()===n)return decodeURIComponent(i)}return null}var co=class{};var Um="browser";function Iw(t){return t===Um}var Hm=(()=>{class t{static \u0275prov=v({token:t,providedIn:"root",factory:()=>new Bm(f(k),window)})}return t})(),Bm=class{document;window;offset=()=>[0,0];constructor(n,e){this.document=n,this.window=e}setOffset(n){Array.isArray(n)?this.offset=()=>n:this.offset=n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n,e){this.window.scrollTo(F(g({},e),{left:n[0],top:n[1]}))}scrollToAnchor(n,e){let r=kO(this.document,n);r&&(this.scrollToElement(r,e),r.focus({preventScroll:!0}))}setHistoryScrollRestoration(n){try{this.window.history.scrollRestoration=n}catch{console.warn(St(2400,!1))}}scrollToElement(n,e){let r=n.getBoundingClientRect(),o=r.left+this.window.pageXOffset,i=r.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(F(g({},e),{left:o-s[0],top:i-s[1]}))}};function kO(t,n){let e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),o=r.currentNode;for(;o;){let i=o.shadowRoot;if(i){let s=i.getElementById(n)||i.querySelector(`[name="${n}"]`);if(s)return s}o=r.nextNode()}}return null}var ea=class{_doc;constructor(n){this._doc=n}manager},pu=(()=>{class t extends ea{constructor(e){super(e)}supports(e){return!0}addEventListener(e,r,o,i){return e.addEventListener(r,o,i),()=>this.removeEventListener(e,r,o,i)}removeEventListener(e,r,o,i){return e.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||t)(w(k))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),vu=new y(""),Wm=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,r){this._zone=r,e.forEach(s=>{s.manager=this});let o=e.filter(s=>!(s instanceof pu));this._plugins=o.slice().reverse();let i=e.find(s=>s instanceof pu);i&&this._plugins.push(i)}addEventListener(e,r,o,i){return this._findPluginFor(r).addEventListener(e,r,o,i)}getZone(){return this._zone}_findPluginFor(e){let r=this._eventNameToPlugin.get(e);if(r)return r;if(r=this._plugins.find(i=>i.supports(e)),!r)throw new b(5101,!1);return this._eventNameToPlugin.set(e,r),r}static \u0275fac=function(r){return new(r||t)(w(vu),w(V))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),$m="ng-app-id";function Sw(t){for(let n of t)n.remove()}function Mw(t,n){let e=n.createElement("style");return e.textContent=t,e}function PO(t,n,e,r){let o=t.head?.querySelectorAll(`style[${$m}="${n}"],link[${$m}="${n}"]`);if(o)for(let i of o)i.removeAttribute($m),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&e.set(i.textContent,{usage:0,elements:[i]})}function Gm(t,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var qm=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,r,o,i={}){this.doc=e,this.appId=r,this.nonce=o,PO(e,r,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,r){for(let o of e)this.addUsage(o,this.inline,Mw);r?.forEach(o=>this.addUsage(o,this.external,Gm))}removeStyles(e,r){for(let o of e)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,r,o){let i=r.get(e);i?i.usage++:r.set(e,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(e,this.doc)))})}removeUsage(e,r){let o=r.get(e);o&&(o.usage--,o.usage<=0&&(Sw(o.elements),r.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])Sw(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(e,Mw(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(e,Gm(r,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,r){return this.nonce&&r.setAttribute("nonce",this.nonce),e.appendChild(r)}static \u0275fac=function(r){return new(r||t)(w(k),w(_r),w(ao,8),w(so))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),zm={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},Ym=/%COMP%/g;var xw="%COMP%",LO=`_nghost-${xw}`,jO=`_ngcontent-${xw}`,VO=!0,BO=new y("",{factory:()=>VO});function UO(t){return jO.replace(Ym,t)}function HO(t){return LO.replace(Ym,t)}function Aw(t,n){return n.map(e=>e.replace(Ym,t))}var Zm=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(e,r,o,i,s,a,c=null,l=null){this.eventManager=e,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=l,this.defaultRenderer=new ta(e,s,a,this.tracingService)}createRenderer(e,r){if(!e||!r)return this.defaultRenderer;let o=this.getOrCreateRenderer(e,r);return o instanceof gu?o.applyToHost(e):o instanceof na&&o.applyStyles(),o}getOrCreateRenderer(e,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.tracingService;switch(r.encapsulation){case qt.Emulated:i=new gu(c,l,r,this.appId,u,s,a,d);break;case qt.ShadowDom:return new mu(c,e,r,s,a,this.nonce,d,l);case qt.ExperimentalIsolatedShadowDom:return new mu(c,e,r,s,a,this.nonce,d);default:i=new na(c,l,r,u,s,a,d);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(r){return new(r||t)(w(Wm),w(qm),w(_r),w(BO),w(k),w(V),w(ao),w(Zt,8))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),ta=class{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,r,o){this.eventManager=n,this.doc=e,this.ngZone=r,this.tracingService=o}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(zm[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(Tw(n)?n.content:n).appendChild(e)}insertBefore(n,e,r){n&&(Tw(n)?n.content:n).insertBefore(e,r)}removeChild(n,e){e.remove()}selectRootElement(n,e){let r=typeof n=="string"?this.doc.querySelector(n):n;if(!r)throw new b(-5104,!1);return e||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,r,o){if(o){e=o+":"+e;let i=zm[o];i?n.setAttributeNS(i,e,r):n.setAttribute(e,r)}else n.setAttribute(e,r)}removeAttribute(n,e,r){if(r){let o=zm[r];o?n.removeAttributeNS(o,e):n.removeAttribute(`${r}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,r,o){o&(Yt.DashCase|Yt.Important)?n.style.setProperty(e,r,o&Yt.Important?"important":""):n.style[e]=r}removeStyle(n,e,r){r&Yt.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,r){n!=null&&(n[e]=r)}setValue(n,e){n.nodeValue=e}listen(n,e,r,o){if(typeof n=="string"&&(n=_t().getGlobalEventTarget(this.doc,n),!n))throw new b(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(n,e,i)),this.eventManager.addEventListener(n,e,i,o)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;n(e)===!1&&e.preventDefault()}}};function Tw(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var mu=class extends ta{hostEl;sharedStylesHost;shadowRoot;constructor(n,e,r,o,i,s,a,c){super(n,o,i,a),this.hostEl=e,this.sharedStylesHost=c,this.shadowRoot=e.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let l=r.styles;l=Aw(r.id,l);for(let d of l){let h=document.createElement("style");s&&h.setAttribute("nonce",s),h.textContent=d,this.shadowRoot.appendChild(h)}let u=r.getExternalStyles?.();if(u)for(let d of u){let h=Gm(d,o);s&&h.setAttribute("nonce",s),this.shadowRoot.appendChild(h)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,r){return super.insertBefore(this.nodeOrShadowRoot(n),e,r)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}},na=class extends ta{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,r,o,i,s,a,c){super(n,i,s,a),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let l=r.styles;this.styles=c?Aw(c,l):l,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&oo.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},gu=class extends na{contentAttr;hostAttr;constructor(n,e,r,o,i,s,a,c){let l=o+"-"+r.id;super(n,e,r,i,s,a,c,l),this.contentAttr=UO(l),this.hostAttr=HO(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let r=super.createElement(n,e);return super.setAttribute(r,this.contentAttr,""),r}};var yu=class t extends Ys{supportsDOMEvents=!0;static makeCurrent(){Mm(new t)}onAndCancel(n,e,r,o){return n.addEventListener(e,r,o),()=>{n.removeEventListener(e,r,o)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=$O();return e==null?null:zO(e)}resetBaseElement(){ra=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return Js(document.cookie,n)}},ra=null;function $O(){return ra=ra||document.head.querySelector("base"),ra?ra.getAttribute("href"):null}function zO(t){return new URL(t,document.baseURI).pathname}var bu=class{addToWindow(n){we.getAngularTestability=(r,o=!0)=>{let i=n.findTestabilityInTree(r,o);if(i==null)throw new b(5103,!1);return i},we.getAllAngularTestabilities=()=>n.getAllTestabilities(),we.getAllAngularRootElements=()=>n.getAllRootElements();let e=r=>{let o=we.getAllAngularTestabilities(),i=o.length,s=function(){i--,i==0&&r()};o.forEach(a=>{a.whenStable(s)})};we.frameworkStabilizers||(we.frameworkStabilizers=[]),we.frameworkStabilizers.push(e)}findTestabilityInTree(n,e,r){if(e==null)return null;let o=n.getTestability(e);return o??(r?_t().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},GO=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),Rw=["alt","control","meta","shift"],WO={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},qO={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},Nw=(()=>{class t extends ea{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,r,o,i){let s=t.parseEventName(r),a=t.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>_t().onAndCancel(e,s.domEventName,a,i))}static parseEventName(e){let r=e.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=t._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Rw.forEach(l=>{let u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(e,r){let o=WO[e.key]||e.key,i="";return r.indexOf("code.")>-1&&(o=e.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),Rw.forEach(s=>{if(s!==o){let a=qO[s];a(e)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(e,r,o){return i=>{t.matchEventFullKeyCode(i,e)&&o.runGuarded(()=>r(i))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(r){return new(r||t)(w(k))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();async function YO(t,n,e){let r=g({rootComponent:t},ZO(n,e));return QE(r)}function ZO(t,n){return{platformRef:n?.platformRef,appProviders:[...Ow,...t?.providers??[]],platformProviders:JO}}function KO(){yu.makeCurrent()}function QO(){return new Ze}function XO(){return yp(document),document}var JO=[{provide:so,useValue:Um},{provide:wl,useValue:KO,multi:!0},{provide:k,useFactory:XO}];var ek=[{provide:Ul,useClass:bu},{provide:Bl,useClass:Hs},{provide:Hs,useClass:Hs}],Ow=[{provide:hs,useValue:"root"},{provide:Ze,useFactory:QO},{provide:vu,useClass:pu,multi:!0},{provide:vu,useClass:Nw,multi:!0},Zm,qm,Wm,{provide:$e,useExisting:Zm},{provide:co,useClass:GO},[]],tk=(()=>{class t{constructor(){}static \u0275fac=function(r){return new(r||t)};static \u0275mod=X({type:t});static \u0275inj=Y({providers:[...Ow,...ek],imports:[Vm,KE]})}return t})();var wn=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(n){n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map,n.split(` +`).forEach(e=>{let r=e.indexOf(":");if(r>0){let o=e.slice(0,r),i=e.slice(r+1).trim();this.addHeaderEntry(o,i)}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,r)=>{this.addHeaderEntry(r,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,r])=>{this.setHeaderEntries(e,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();let e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init();for(let[e,r]of n.headers.entries())this.headers.set(e,r),this.normalizedNames.set(e,n.normalizedNames.get(e))}clone(n){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){let e=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if(typeof r=="string"&&(r=[r]),r.length===0)return;this.maybeSetNormalizedName(n.name,e);let o=n.op==="a"?(this.headers.get(e)||[]).slice():[];o.push(...r),this.headers.set(e,o);break;case"d":let i=n.value;if(i===void 0)this.headers.delete(e),this.normalizedNames.delete(e);else{let s=Array.isArray(i)?i:[i],a=this.headers.get(e);if(!a)return;a=a.filter(c=>s.indexOf(c)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}addHeaderEntry(n,e){let r=n.toLowerCase();this.maybeSetNormalizedName(n,r),this.headers.has(r)?this.headers.get(r).push(e):this.headers.set(r,[e])}setHeaderEntries(n,e){let r=(Array.isArray(e)?e:[e]).map(i=>i.toString()),o=n.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(n,o)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}};var Du=class{map=new Map;set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}},Eu=class{encodeKey(n){return kw(n)}encodeValue(n){return kw(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function nk(t,n){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let i=o.indexOf("="),[s,a]=i==-1?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,i)),n.decodeValue(o.slice(i+1))],c=e.get(s)||[];c.push(a),e.set(s,c)}),e}var rk=/%(\d[a-f0-9])/gi,ok={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function kw(t){return encodeURIComponent(t).replace(rk,(n,e)=>ok[e]??n)}function _u(t){return`${t}`}var Zn=class t{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new Eu,n.fromString){if(n.fromObject)throw new b(2805,!1);this.map=nk(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let r=n.fromObject[e],o=Array.isArray(r)?r.map(_u):[_u(r)];this.map.set(e,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();let e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){let e=[];return Object.keys(n).forEach(r=>{let o=n[r];Array.isArray(o)?o.forEach(i=>{e.push({param:r,value:i,op:"a"})}):e.push({param:r,value:o,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{let e=this.encoder.encodeKey(n);return this.map.get(n).map(r=>e+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>n!=="").join("&")}clone(n){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){if(this.map===null&&(this.map=new Map),this.cloneFrom!==null){this.cloneFrom.init();for(let[n,e]of this.cloneFrom.map.entries())this.map.set(n,e);this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=n.op==="a"?(this.map.get(n.param)||[]).slice():[];e.push(_u(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let r=(this.map.get(n.param)||[]).slice(),o=r.indexOf(_u(n.value));o!==-1&&r.splice(o,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null}}};function ik(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function Fw(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function Pw(t){return typeof Blob<"u"&&t instanceof Blob}function Lw(t){return typeof FormData<"u"&&t instanceof FormData}function sk(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var jw="Content-Type",Vw="Accept",Uw="text/plain",Hw="application/json",ak=`${Hw}, ${Uw}, */*`,di=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(n,e,r,o){this.url=e,this.method=n.toUpperCase();let i;if(ik(this.method)||o?(this.body=r!==void 0?r:null,i=o):i=r,i){if(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,this.keepalive=!!i.keepalive,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params),i.priority&&(this.priority=i.priority),i.cache&&(this.cache=i.cache),i.credentials&&(this.credentials=i.credentials),typeof i.timeout=="number"){if(i.timeout<1||!Number.isInteger(i.timeout))throw new b(2822,"");this.timeout=i.timeout}i.mode&&(this.mode=i.mode),i.redirect&&(this.redirect=i.redirect),i.integrity&&(this.integrity=i.integrity),i.referrer!==void 0&&(this.referrer=i.referrer),i.referrerPolicy&&(this.referrerPolicy=i.referrerPolicy),this.transferCache=i.transferCache}if(this.headers??=new wn,this.context??=new Du,!this.params)this.params=new Zn,this.urlWithParams=e;else{let s=this.params.toString();if(s.length===0)this.urlWithParams=e;else{let a=e.indexOf("?"),c=a===-1?"?":aTn.set(Ar,n.setHeaders[Ar]),De)),n.setParams&&(pe=Object.keys(n.setParams).reduce((Tn,Ar)=>Tn.set(Ar,n.setParams[Ar]),pe)),new t(e,r,D,{params:pe,headers:De,context:er,reportProgress:$,responseType:o,withCredentials:C,transferCache:m,keepalive:i,cache:a,priority:s,timeout:_,mode:c,redirect:l,credentials:u,referrer:d,integrity:h,referrerPolicy:p})}},lo=(function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t})(lo||{}),hi=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(n,e=200,r="OK"){this.headers=n.headers||new wn,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||r,this.url=n.url||null,this.redirected=n.redirected,this.responseType=n.responseType,this.ok=this.status>=200&&this.status<300}},wu=class t extends hi{constructor(n={}){super(n)}type=lo.ResponseHeader;clone(n={}){return new t({headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},oa=class t extends hi{body;constructor(n={}){super(n),this.body=n.body!==void 0?n.body:null}type=lo.Response;clone(n={}){return new t({body:n.body!==void 0?n.body:this.body,headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0,redirected:n.redirected??this.redirected,responseType:n.responseType??this.responseType})}},fi=class extends hi{name="HttpErrorResponse";message;error;ok=!1;constructor(n){super(n,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${n.url||"(unknown url)"}`:this.message=`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}},ck=200,lk=204;var uk=new y("");var dk=/^\)\]\}',?\n/;var Qm=(()=>{class t{xhrFactory;tracingService=f(Zt,{optional:!0});constructor(e){this.xhrFactory=e}maybePropagateTrace(e){return this.tracingService?.propagate?this.tracingService.propagate(e):e}handle(e){if(e.method==="JSONP")throw new b(-2800,!1);let r=this.xhrFactory;return S(null).pipe(Be(()=>new P(i=>{let s=r.build();if(s.open(e.method,e.urlWithParams),e.withCredentials&&(s.withCredentials=!0),e.headers.forEach((D,C)=>s.setRequestHeader(D,C.join(","))),e.headers.has(Vw)||s.setRequestHeader(Vw,ak),!e.headers.has(jw)){let D=e.detectContentTypeHeader();D!==null&&s.setRequestHeader(jw,D)}if(e.timeout&&(s.timeout=e.timeout),e.responseType){let D=e.responseType.toLowerCase();s.responseType=D!=="json"?D:"text"}let a=e.serializeBody(),c=null,l=()=>{if(c!==null)return c;let D=s.statusText||"OK",C=new wn(s.getAllResponseHeaders()),$=s.responseURL||e.url;return c=new wu({headers:C,status:s.status,statusText:D,url:$}),c},u=this.maybePropagateTrace(()=>{let{headers:D,status:C,statusText:$,url:De}=l(),pe=null;C!==lk&&(pe=typeof s.response>"u"?s.responseText:s.response),C===0&&(C=pe?ck:0);let er=C>=200&&C<300;if(e.responseType==="json"&&typeof pe=="string"){let Tn=pe;pe=pe.replace(dk,"");try{pe=pe!==""?JSON.parse(pe):null}catch(Ar){pe=Tn,er&&(er=!1,pe={error:Ar,text:pe})}}er?(i.next(new oa({body:pe,headers:D,status:C,statusText:$,url:De||void 0})),i.complete()):i.error(new fi({error:pe,headers:D,status:C,statusText:$,url:De||void 0}))}),d=this.maybePropagateTrace(D=>{let{url:C}=l(),$=new fi({error:D,status:s.status||0,statusText:s.statusText||"Unknown Error",url:C||void 0});i.error($)}),h=d;e.timeout&&(h=this.maybePropagateTrace(D=>{let{url:C}=l(),$=new fi({error:new DOMException("Request timed out","TimeoutError"),status:s.status||0,statusText:s.statusText||"Request timeout",url:C||void 0});i.error($)}));let p=!1,m=this.maybePropagateTrace(D=>{p||(i.next(l()),p=!0);let C={type:lo.DownloadProgress,loaded:D.loaded};D.lengthComputable&&(C.total=D.total),e.responseType==="text"&&s.responseText&&(C.partialText=s.responseText),i.next(C)}),_=this.maybePropagateTrace(D=>{let C={type:lo.UploadProgress,loaded:D.loaded};D.lengthComputable&&(C.total=D.total),i.next(C)});return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",h),s.addEventListener("abort",d),e.reportProgress&&(s.addEventListener("progress",m),a!==null&&s.upload&&s.upload.addEventListener("progress",_)),s.send(a),i.next({type:lo.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",h),e.reportProgress&&(s.removeEventListener("progress",m),a!==null&&s.upload&&s.upload.removeEventListener("progress",_)),s.readyState!==s.DONE&&s.abort()}})))}static \u0275fac=function(r){return new(r||t)(w(co))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),fk=new y("",{factory:()=>!0}),hk="XSRF-TOKEN",pk=new y("",{factory:()=>hk}),mk="X-XSRF-TOKEN",gk=new y("",{factory:()=>mk}),vk=(()=>{class t{cookieName=f(pk);doc=f(k);lastCookieString="";lastToken=null;parseCount=0;getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Js(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),$w=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:function(r){let o=null;return r?o=new(r||t):o=w(vk),o},providedIn:"root"})}return t})();function zw(t,n){if(!f(fk)||t.method==="GET"||t.method==="HEAD")return n(t);try{let o=f(qn).href,{origin:i}=new URL(o),{origin:s}=new URL(t.url,i);if(i!==s)return n(t)}catch{return n(t)}let e=f($w).getToken(),r=f(gk);return e!=null&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,e)})),n(t)}function Gw(t,n){return n(t)}function yk(t,n){return(e,r)=>n.intercept(e,{handle:o=>t(o,r)})}function bk(t,n,e){return(r,o)=>Pe(e,()=>n(r,i=>t(i,o)))}var Ww=new y(""),Xm=new y("",{factory:()=>[zw]}),qw=new y(""),Jm=new y("",{factory:()=>!0});function _k(){let t=null;return(n,e)=>{t===null&&(t=(f(Ww,{optional:!0})??[]).reduceRight(yk,Gw));let r=f(Wo);if(f(Jm)){let i=r.add();return t(n,e).pipe(Rn(i))}else return t(n,e)}}var eg=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:function(r){let o=null;return r?o=new(r||t):o=w(Qm),o},providedIn:"root"})}return t})();var Cu=(()=>{class t{backend;injector;chain=null;pendingTasks=f(Wo);contributeToStability=f(Jm);constructor(e,r){this.backend=e,this.injector=r}handle(e){if(this.chain===null){let r=this.injector.get(Iu,null,{skipSelf:!0}),o=r!==null&&this.backend===r,i=this.injector.get(qw,[],o?{self:!0}:void 0),s=Array.from(new Set([...this.injector.get(Xm),...i]));this.chain=s.reduceRight((a,c)=>bk(a,c,this.injector),Gw)}if(this.contributeToStability){let r=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(Rn(r))}else return this.chain(e,r=>this.backend.handle(r))}static \u0275fac=function(r){return new(r||t)(w(eg),w(oe))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Iu=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:function(r){let o=null;return r?o=new(r||t):o=w(Cu),o},providedIn:"root"})}return t})();function Km(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,credentials:t.credentials,transferCache:t.transferCache,timeout:t.timeout,keepalive:t.keepalive,priority:t.priority,cache:t.cache,mode:t.mode,redirect:t.redirect,integrity:t.integrity,referrer:t.referrer,referrerPolicy:t.referrerPolicy}}var pi=(()=>{class t{handler;constructor(e){this.handler=e}request(e,r,o={}){let i;if(e instanceof di)i=e;else{let c;o.headers instanceof wn?c=o.headers:c=new wn(o.headers);let l;o.params&&(o.params instanceof Zn?l=o.params:l=new Zn({fromObject:o.params})),i=new di(e,r,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,referrerPolicy:o.referrerPolicy,integrity:o.integrity,timeout:o.timeout})}let s=S(i).pipe(or(c=>this.handler.handle(c)));if(e instanceof di||o.observe==="events")return s;let a=s.pipe(he(c=>c instanceof oa));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(L(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new b(2806,!1);return c.body}));case"blob":return a.pipe(L(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new b(2807,!1);return c.body}));case"text":return a.pipe(L(c=>{if(c.body!==null&&typeof c.body!="string")throw new b(2808,!1);return c.body}));default:return a.pipe(L(c=>c.body))}case"response":return a;default:throw new b(2809,!1)}}delete(e,r={}){return this.request("DELETE",e,r)}get(e,r={}){return this.request("GET",e,r)}head(e,r={}){return this.request("HEAD",e,r)}jsonp(e,r){return this.request("JSONP",e,{params:new Zn().append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,r={}){return this.request("OPTIONS",e,r)}patch(e,r,o={}){return this.request("PATCH",e,Km(o,r))}post(e,r,o={}){return this.request("POST",e,Km(o,r))}put(e,r,o={}){return this.request("PUT",e,Km(o,r))}static \u0275fac=function(r){return new(r||t)(w(Iu))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var tg=(function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t})(tg||{});function Dk(t,n){return{\u0275kind:t,\u0275providers:n}}function Yw(...t){let n=[pi,Cu,{provide:Iu,useExisting:Cu},{provide:eg,useFactory:()=>f(uk,{optional:!0})??f(Qm)},{provide:Xm,useValue:zw,multi:!0}];for(let e of t)n.push(...e.\u0275providers);return hr(n)}var Bw=new y("");function Zw(){return Dk(tg.LegacyInterceptors,[{provide:Bw,useFactory:_k},{provide:Xm,useExisting:Bw,multi:!0}])}var Ek=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=X({type:t});static \u0275inj=Y({providers:[Yw(Zw())]})}return t})();var Qw=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(r){return new(r||t)(w(k))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function wk(t,n){if(typeof COMPILED>"u"||!COMPILED){let e=we.ng=we.ng||{};e[t]=n}}var ng=class{msPerTick;numTicks;constructor(n,e){this.msPerTick=n,this.numTicks=e}},rg=class{appRef;constructor(n){this.appRef=n.injector.get(Ge)}timeChangeDetection(n){let e=n&&n.record,r="Change Detection";e&&"profile"in console&&typeof console.profile=="function"&&console.profile(r);let o=performance.now(),i=0;for(;i<5||performance.now()-o<500;)this.appRef.tick(),i++;let s=performance.now();e&&"profileEnd"in console&&typeof console.profileEnd=="function"&&console.profileEnd(r);let a=(s-o)/i;return console.log(`ran ${i} change detection cycles`),console.log(`${a.toFixed(2)} ms per check`),new ng(a,i)}},Ck="profiler";function TY(t){return wk(Ck,new rg(t)),t}var ia=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:function(r){let o=null;return r?o=new(r||t):o=w(Ik),o},providedIn:"root"})}return t})(),Ik=(()=>{class t extends ia{_doc;constructor(e){super(),this._doc=e}sanitize(e,r){if(r==null)return null;switch(e){case J.NONE:return r;case J.HTML:return bn(r,"HTML")?bt(r):Ml(this._doc,String(r)).toString();case J.STYLE:return bn(r,"Style")?bt(r):r;case J.SCRIPT:if(bn(r,"Script"))return bt(r);throw new b(5200,!1);case J.URL:return bn(r,"URL")?bt(r):Ps(String(r));case J.RESOURCE_URL:if(bn(r,"ResourceURL"))return bt(r);throw new b(5201,!1);default:throw new b(5202,!1)}}bypassSecurityTrustHtml(e){return Dp(e)}bypassSecurityTrustStyle(e){return Ep(e)}bypassSecurityTrustScript(e){return wp(e)}bypassSecurityTrustUrl(e){return Cp(e)}bypassSecurityTrustResourceUrl(e){return Ip(e)}static \u0275fac=function(r){return new(r||t)(w(k))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var cC=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,r){this._renderer=e,this._elementRef=r}setProperty(e,r){this._renderer.setProperty(this._elementRef.nativeElement,e,r)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(r){return new(r||t)(E(Le),E(z))};static \u0275dir=M({type:t})}return t})(),Pu=(()=>{class t extends cC{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=M({type:t,features:[te]})}return t})(),fo=new y("");var Sk={provide:fo,useExisting:Ce(()=>lC),multi:!0};function Mk(){let t=_t()?_t().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var Tk=new y(""),lC=(()=>{class t extends cC{_compositionMode;_composing=!1;constructor(e,r,o){super(e,r),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!Mk())}writeValue(e){let r=e??"";this.setProperty("value",r)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(r){return new(r||t)(E(Le),E(z),E(Tk,8))};static \u0275dir=M({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,o){r&1&&Qt("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},standalone:!1,features:[je([Sk]),te]})}return t})();function ag(t){return t==null||cg(t)===0}function cg(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var nn=new y(""),ho=new y(""),xk=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Jw=class{static min(n){return uC(n)}static max(n){return dC(n)}static required(n){return fC(n)}static requiredTrue(n){return Ak(n)}static email(n){return Rk(n)}static minLength(n){return Nk(n)}static maxLength(n){return hC(n)}static pattern(n){return Ok(n)}static nullValidator(n){return Mu()}static compose(n){return bC(n)}static composeAsync(n){return _C(n)}};function uC(t){return n=>{if(n.value==null||t==null)return null;let e=parseFloat(n.value);return!isNaN(e)&&e{if(n.value==null||t==null)return null;let e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}}function fC(t){return ag(t.value)?{required:!0}:null}function Ak(t){return t.value===!0?null:{required:!0}}function Rk(t){return ag(t.value)||xk.test(t.value)?null:{email:!0}}function Nk(t){return n=>{let e=n.value?.length??cg(n.value);return e===null||e===0?null:e{let e=n.value?.length??cg(n.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function Ok(t){if(!t)return Mu;let n,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),n=new RegExp(e)):(e=t.toString(),n=t),r=>{if(ag(r.value))return null;let o=r.value;return n.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function Mu(t){return null}function pC(t){return t!=null}function mC(t){return zn(t)?ae(t):t}function gC(t){let n={};return t.forEach(e=>{n=e!=null?g(g({},n),e):n}),Object.keys(n).length===0?null:n}function vC(t,n){return n.map(e=>e(t))}function kk(t){return!t.validate}function yC(t){return t.map(n=>kk(n)?n:e=>n.validate(e))}function bC(t){if(!t)return null;let n=t.filter(pC);return n.length==0?null:function(e){return gC(vC(e,n))}}function lg(t){return t!=null?bC(yC(t)):null}function _C(t){if(!t)return null;let n=t.filter(pC);return n.length==0?null:function(e){let r=vC(e,n).map(mC);return Yi(r).pipe(L(gC))}}function ug(t){return t!=null?_C(yC(t)):null}function eC(t,n){return t===null?[n]:Array.isArray(t)?[...t,n]:[t,n]}function DC(t){return t._rawValidators}function EC(t){return t._rawAsyncValidators}function og(t){return t?Array.isArray(t)?t:[t]:[]}function Tu(t,n){return Array.isArray(t)?t.includes(n):t===n}function tC(t,n){let e=og(n);return og(t).forEach(o=>{Tu(e,o)||e.push(o)}),e}function nC(t,n){return og(n).filter(e=>!Tu(t,e))}var xu=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=lg(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=ug(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control?.reset(n)}hasError(n,e){return this.control?this.control.hasError(n,e):!1}getError(n,e){return this.control?this.control.getError(n,e):null}},rt=class extends xu{name;get formDirective(){return null}get path(){return null}},Kn=class extends xu{_parent=null;name=null;valueAccessor=null},Au=class{_cd;constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}};var GY=(()=>{class t extends Au{constructor(e){super(e)}static \u0275fac=function(r){return new(r||t)(E(Kn,2))};static \u0275dir=M({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){r&2&&Xe("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[te]})}return t})(),WY=(()=>{class t extends Au{constructor(e){super(e)}static \u0275fac=function(r){return new(r||t)(E(rt,10))};static \u0275dir=M({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["","formArray",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){r&2&&Xe("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},standalone:!1,features:[te]})}return t})();var sa="VALID",Su="INVALID",mi="PENDING",aa="DISABLED",Er=class{},Ru=class extends Er{value;source;constructor(n,e){super(),this.value=n,this.source=e}},la=class extends Er{pristine;source;constructor(n,e){super(),this.pristine=n,this.source=e}},ua=class extends Er{touched;source;constructor(n,e){super(),this.touched=n,this.source=e}},gi=class extends Er{status;source;constructor(n,e){super(),this.status=n,this.source=e}},Nu=class extends Er{source;constructor(n){super(),this.source=n}},da=class extends Er{source;constructor(n){super(),this.source=n}};function dg(t){return(Lu(t)?t.validators:t)||null}function Fk(t){return Array.isArray(t)?lg(t):t||null}function fg(t,n){return(Lu(n)?n.asyncValidators:t)||null}function Pk(t){return Array.isArray(t)?ug(t):t||null}function Lu(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function wC(t,n,e){let r=t.controls;if(!(n?Object.keys(r):r).length)throw new b(1e3,"");if(!r[e])throw new b(1001,"")}function CC(t,n,e){t._forEachChild((r,o)=>{if(e[o]===void 0)throw new b(-1002,"")})}var yi=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(n,e){this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return Z(this.statusReactive)}set status(n){Z(()=>this.statusReactive.set(n))}_status=Wn(()=>this.statusReactive());statusReactive=Q(void 0);get valid(){return this.status===sa}get invalid(){return this.status===Su}get pending(){return this.status===mi}get disabled(){return this.status===aa}get enabled(){return this.status!==aa}errors;get pristine(){return Z(this.pristineReactive)}set pristine(n){Z(()=>this.pristineReactive.set(n))}_pristine=Wn(()=>this.pristineReactive());pristineReactive=Q(!0);get dirty(){return!this.pristine}get touched(){return Z(this.touchedReactive)}set touched(n){Z(()=>this.touchedReactive.set(n))}_touched=Wn(()=>this.touchedReactive());touchedReactive=Q(!1);get untouched(){return!this.touched}_events=new R;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(tC(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(tC(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(nC(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(nC(n,this._rawAsyncValidators))}hasValidator(n){return Tu(this._rawValidators,n)}hasAsyncValidator(n){return Tu(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let r=n.sourceControl??this;n.onlySelf||this._parent?.markAsTouched(F(g({},n),{sourceControl:r})),e&&n.emitEvent!==!1&&this._events.next(new ua(!0,r))}markAllAsDirty(n={}){this.markAsDirty({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(n))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(n))}markAsUntouched(n={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=n.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:r})}),n.onlySelf||this._parent?._updateTouched(n,r),e&&n.emitEvent!==!1&&this._events.next(new ua(!1,r))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let r=n.sourceControl??this;n.onlySelf||this._parent?.markAsDirty(F(g({},n),{sourceControl:r})),e&&n.emitEvent!==!1&&this._events.next(new la(!1,r))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=n.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),n.onlySelf||this._parent?._updatePristine(n,r),e&&n.emitEvent!==!1&&this._events.next(new la(!0,r))}markAsPending(n={}){this.status=mi;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new gi(this.status,e)),this.statusChanges.emit(this.status)),n.onlySelf||this._parent?.markAsPending(F(g({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=aa,this.errors=null,this._forEachChild(o=>{o.disable(F(g({},n),{onlySelf:!0}))}),this._updateValue();let r=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Ru(this.value,r)),this._events.next(new gi(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(F(g({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=sa,this._forEachChild(r=>{r.enable(F(g({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(F(g({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n,e){n.onlySelf||(this._parent?.updateValueAndValidity(n),n.skipPristineCheck||this._parent?._updatePristine({},e),this._parent?._updateTouched({},e))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===sa||this.status===mi)&&this._runAsyncValidator(r,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Ru(this.value,e)),this._events.next(new gi(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),n.onlySelf||this._parent?.updateValueAndValidity(F(g({},n),{sourceControl:e}))}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?aa:sa}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=mi,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:n!==!1};let r=mC(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:e,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(n){let e=n;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((r,o)=>r&&r._find(o),this)}getError(n,e){let r=e?this.get(e):this;return r?.errors?r.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,e,r){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||r)&&this._events.next(new gi(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,r)}_initObservables(){this.valueChanges=new H,this.statusChanges=new H}_calculateStatus(){return this._allControlsDisabled()?aa:this.errors?Su:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(mi)?mi:this._anyControlsHaveStatus(Su)?Su:sa}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,e){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,n.onlySelf||this._parent?._updatePristine(n,e),o&&this._events.next(new la(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new ua(this.touched,e)),n.onlySelf||this._parent?._updateTouched(n,e)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Lu(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!!this._parent?.dirty&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=Fk(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=Pk(this._rawAsyncValidators)}},uo=class extends yi{constructor(n,e,r){super(dg(e),fg(r,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,r={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){CC(this,!0,n),Object.keys(n).forEach(r=>{wC(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(Object.keys(n).forEach(r=>{let o=this.controls[r];o&&o.patchValue(n[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((r,o)=>{r.reset(n?n[o]:null,F(g({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new da(this))}getRawValue(){return this._reduceChildren({},(n,e,r)=>(n[r]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,r)=>r._syncPendingControls()?!0:e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{let r=this.controls[e];r&&n(r,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(let[e,r]of Object.entries(this.controls))if(this.contains(e)&&n(r))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(e,r,o)=>((r.enabled||this.disabled)&&(e[o]=r.value),e))}_reduceChildren(n,e){let r=n;return this._forEachChild((o,i)=>{r=e(r,o,i)}),r}_allControlsDisabled(){for(let n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}};var qY=uo;var ig=class extends uo{};var bi=new y("",{factory:()=>ju}),ju="always";function Vu(t,n){return[...n.path,t]}function fa(t,n,e=ju){hg(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(t.disabled),jk(t,n),Bk(t,n),Vk(t,n),Lk(t,n)}function Ou(t,n,e=!0){let r=()=>{};n?.valueAccessor?.registerOnChange(r),n?.valueAccessor?.registerOnTouched(r),Fu(t,n),t&&(n._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function ku(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function Lk(t,n){if(n.valueAccessor.setDisabledState){let e=r=>{n.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function hg(t,n){let e=DC(t);n.validator!==null?t.setValidators(eC(e,n.validator)):typeof e=="function"&&t.setValidators([e]);let r=EC(t);n.asyncValidator!==null?t.setAsyncValidators(eC(r,n.asyncValidator)):typeof r=="function"&&t.setAsyncValidators([r]);let o=()=>t.updateValueAndValidity();ku(n._rawValidators,o),ku(n._rawAsyncValidators,o)}function Fu(t,n){let e=!1;if(t!==null){if(n.validator!==null){let o=DC(t);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==n.validator);i.length!==o.length&&(e=!0,t.setValidators(i))}}if(n.asyncValidator!==null){let o=EC(t);if(Array.isArray(o)&&o.length>0){let i=o.filter(s=>s!==n.asyncValidator);i.length!==o.length&&(e=!0,t.setAsyncValidators(i))}}}let r=()=>{};return ku(n._rawValidators,r),ku(n._rawAsyncValidators,r),e}function jk(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&IC(t,n)})}function Vk(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&IC(t,n),t.updateOn!=="submit"&&t.markAsTouched()})}function IC(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Bk(t,n){let e=(r,o)=>{n.valueAccessor.writeValue(r),o&&n.viewToModelUpdate(r)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function SC(t,n){t==null,hg(t,n)}function Uk(t,n){return Fu(t,n)}function pg(t,n){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function Hk(t){return Object.getPrototypeOf(t.constructor)===Pu}function MC(t,n){t._syncPendingControls(),n.forEach(e=>{let r=e.control;r.updateOn==="submit"&&r._pendingChange&&(e.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}function mg(t,n){if(!n)return null;Array.isArray(n);let e,r,o;return n.forEach(i=>{i.constructor===lC?e=i:Hk(i)?r=i:o=i}),o||r||e||null}function $k(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}var zk={provide:rt,useExisting:Ce(()=>Gk)},ca=Promise.resolve(),Gk=(()=>{class t extends rt{callSetDisabledState;get submitted(){return Z(this.submittedReactive)}_submitted=Wn(()=>this.submittedReactive());submittedReactive=Q(!1);_directives=new Set;form;ngSubmit=new H;options;constructor(e,r,o){super(),this.callSetDisabledState=o,this.form=new uo({},lg(e),ug(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){ca.then(()=>{let r=this._findContainer(e.path);e.control=r.registerControl(e.name,e.control),fa(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){ca.then(()=>{this._findContainer(e.path)?.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){ca.then(()=>{let r=this._findContainer(e.path),o=new uo({});SC(o,e),r.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){ca.then(()=>{this._findContainer(e.path)?.removeControl?.(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,r){ca.then(()=>{this.form.get(e.path).setValue(r)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),MC(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new Nu(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(r){return new(r||t)(E(nn,10),E(ho,10),E(bi,8))};static \u0275dir=M({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup","",3,"formArray",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,o){r&1&&Qt("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[je([zk]),te]})}return t})();function rC(t,n){let e=t.indexOf(n);e>-1&&t.splice(e,1)}function oC(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var vi=class extends yi{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,e,r){super(dg(e),fg(r,e)),this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Lu(e)&&(e.nonNullable||e.initialValueIsDefault)&&(oC(n)?this.defaultValue=n.value:this.defaultValue=n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),e.overwriteDefaultValue&&(this.defaultValue=this.value),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new da(this))}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){rC(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){rC(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(n){oC(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},ZY=vi,Wk=t=>t instanceof vi,qk=(()=>{class t extends rt{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective?.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Vu(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=M({type:t,standalone:!1,features:[te]})}return t})();var Yk={provide:Kn,useExisting:Ce(()=>Zk)},iC=Promise.resolve(),Zk=(()=>{class t extends Kn{_changeDetectorRef;callSetDisabledState;control=new vi;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new H;constructor(e,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this._parent=e,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=mg(this,i)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let r=e.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),pg(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective?.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){fa(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){iC.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let r=e.isDisabled.currentValue,o=r!==0&&ue(r);iC.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Vu(e,this._parent):[e]}static \u0275fac=function(r){return new(r||t)(E(rt,9),E(nn,10),E(ho,10),E(fo,10),E(Xt,8),E(bi,8))};static \u0275dir=M({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[je([Yk]),te,ze]})}return t})();var KY=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275dir=M({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),Kk={provide:fo,useExisting:Ce(()=>Qk),multi:!0},Qk=(()=>{class t extends Pu{writeValue(e){let r=e??"";this.setProperty("value",r)}registerOnChange(e){this.onChange=r=>{e(r==""?null:parseFloat(r))}}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=M({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,o){r&1&&Qt("input",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[je([Kk]),te]})}return t})();var sg=class extends yi{constructor(n,e,r){super(dg(e),fg(r,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){Array.isArray(n)?n.forEach(r=>{this.controls.push(r),this._registerControl(r)}):(this.controls.push(n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,r={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(n,e={}){let r=this._adjustIndex(n);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,r={}){let o=this._adjustIndex(n);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),e&&(this.controls.splice(o,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){CC(this,!1,n),n.forEach((r,o)=>{wC(this,!1,o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(n.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((r,o)=>{r.reset(n[o],F(g({},e),{onlySelf:!0}))}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new da(this))}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,r)=>r._syncPendingControls()?!0:e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,r)=>{n(e,r)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(let n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}};var TC=(()=>{class t extends rt{callSetDisabledState;get submitted(){return Z(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Wn(()=>this._submittedReactive());_submittedReactive=Q(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];constructor(e,r,o){super(),this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(r)}ngOnChanges(e){this.onChanges(e)}ngOnDestroy(){this.onDestroy()}onChanges(e){this._checkFormPresent(),e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}onDestroy(){this.form&&(Fu(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get path(){return[]}addControl(e){let r=this.form.get(e.path);return fa(r,e,this.callSetDisabledState),r.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),r}getControl(e){return this.form.get(e.path)}removeControl(e){Ou(e.control||null,e,!1),$k(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}getFormArray(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}updateModel(e,r){this.form.get(e.path).setValue(r)}onReset(){this.resetForm()}resetForm(e=void 0,r={}){this.form.reset(e,r),this._submittedReactive.set(!1)}onSubmit(e){return this.submitted=!0,MC(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Nu(this.control)),e?.target?.method==="dialog"}_updateDomValue(){this.directives.forEach(e=>{let r=e.control,o=this.form.get(e.path);r!==o&&(Ou(r||null,e),Wk(o)&&(fa(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let r=this.form.get(e.path);SC(r,e),r.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){let r=this.form?.get(e.path);r&&Uk(r,e)&&r.updateValueAndValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm?._registerOnCollectionChange(()=>{})}_updateValidators(){hg(this.form,this),this._oldForm&&Fu(this._oldForm,this)}_checkFormPresent(){this.form}static \u0275fac=function(r){return new(r||t)(E(nn,10),E(ho,10),E(bi,8))};static \u0275dir=M({type:t,features:[te,ze]})}return t})();var gg=new y(""),Xk={provide:Kn,useExisting:Ce(()=>Jk)},Jk=(()=>{class t extends Kn{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new H;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,r,o,i,s){super(),this._ngModelWarningConfig=i,this.callSetDisabledState=s,this._setValidators(e),this._setAsyncValidators(r),this.valueAccessor=mg(this,o)}ngOnChanges(e){if(this._isControlChanged(e)){let r=e.form.previousValue;r&&Ou(r,this,!1),fa(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}pg(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&Ou(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(r){return new(r||t)(E(nn,10),E(ho,10),E(fo,10),E(gg,8),E(bi,8))};static \u0275dir=M({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[je([Xk]),te,ze]})}return t})(),eF={provide:rt,useExisting:Ce(()=>xC)},xC=(()=>{class t extends qk{name=null;constructor(e,r,o){super(),this._parent=e,this._setValidators(r),this._setAsyncValidators(o)}_checkParentType(){RC(this._parent)}static \u0275fac=function(r){return new(r||t)(E(rt,13),E(nn,10),E(ho,10))};static \u0275dir=M({type:t,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[je([eF]),te]})}return t})(),tF={provide:rt,useExisting:Ce(()=>AC)},AC=(()=>{class t extends rt{_parent;name=null;constructor(e,r,o){super(),this._parent=e,this._setValidators(r),this._setAsyncValidators(o)}ngOnInit(){RC(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Vu(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(r){return new(r||t)(E(rt,13),E(nn,10),E(ho,10))};static \u0275dir=M({type:t,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[je([tF]),te]})}return t})();function RC(t){return!(t instanceof xC)&&!(t instanceof TC)&&!(t instanceof AC)}var nF={provide:Kn,useExisting:Ce(()=>rF)},rF=(()=>{class t extends Kn{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new H;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,r,o,i,s){super(),this._ngModelWarningConfig=s,this._parent=e,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=mg(this,i)}ngOnChanges(e){this._added||this._setUpControl(),pg(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective?.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Vu(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(r){return new(r||t)(E(rt,13),E(nn,10),E(ho,10),E(fo,10),E(gg,8))};static \u0275dir=M({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[je([nF]),te,ze]})}return t})();var oF={provide:rt,useExisting:Ce(()=>iF)},iF=(()=>{class t extends TC{form=null;ngSubmit=new H;get control(){return this.form}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=M({type:t,selectors:[["","formGroup",""]],hostBindings:function(r,o){r&1&&Qt("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[je([oF]),te]})}return t})(),sF={provide:fo,useExisting:Ce(()=>OC),multi:!0};function NC(t,n){return t==null?`${n}`:(n&&typeof n=="object"&&(n="Object"),`${t}: ${n}`.slice(0,50))}function aF(t){return t.split(":")[0]}var OC=(()=>{class t extends Pu{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e}_compareWith=Object.is;appRefInjector=f(Ge).injector;destroyRef=f(He);cdr=f(Xt);_queuedWrite=!1;_writeValueAfterRender(){this._queuedWrite||this.appRefInjector.destroyed||(this._queuedWrite=!0,At({write:()=>{this.destroyRef.destroyed||(this._queuedWrite=!1,this.writeValue(this.value))}},{injector:this.appRefInjector}))}writeValue(e){this.cdr.markForCheck(),this.value=e;let r=this._getOptionId(e),o=NC(r,e);this.setProperty("value",o)}registerOnChange(e){this.onChange=r=>{this.value=this._getOptionValue(r),e(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(e){for(let r of this._optionMap.keys())if(this._compareWith(this._optionMap.get(r),e))return r;return null}_getOptionValue(e){let r=aF(e);return this._optionMap.has(r)?this._optionMap.get(r):e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=M({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(r,o){r&1&&Qt("change",function(s){return o.onChange(s.target.value)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[je([sF]),te]})}return t})(),QY=(()=>{class t{_element;_renderer;_select;id;constructor(e,r,o){this._element=e,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(e){this._select!=null&&(this._select._optionMap.set(this.id,e),this._setElementValue(NC(this.id,e)),this._select._writeValueAfterRender())}set value(e){this._setElementValue(e),this._select?._writeValueAfterRender()}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}ngOnDestroy(){this._select?._optionMap.delete(this.id),this._select?._writeValueAfterRender()}static \u0275fac=function(r){return new(r||t)(E(z),E(Le),E(OC,9))};static \u0275dir=M({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return t})(),cF={provide:fo,useExisting:Ce(()=>kC),multi:!0};function sC(t,n){return t==null?`${n}`:(typeof n=="string"&&(n=`'${n}'`),n&&typeof n=="object"&&(n="Object"),`${t}: ${n}`.slice(0,50))}function lF(t){return t.split(":")[0]}var kC=(()=>{class t extends Pu{value;_optionMap=new Map;_idCounter=0;set compareWith(e){this._compareWith=e}_compareWith=Object.is;writeValue(e){this.value=e;let r;if(Array.isArray(e)){let o=e.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s)>-1)}}else r=o=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(e){this.onChange=r=>{let o=[],i=r.selectedOptions;if(i!==void 0){let s=i;for(let a=0;a{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=M({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(r,o){r&1&&Qt("change",function(s){return o.onChange(s.target)})("blur",function(){return o.onTouched()})},inputs:{compareWith:"compareWith"},standalone:!1,features:[je([cF]),te]})}return t})(),XY=(()=>{class t{_element;_renderer;_select;id;_value;constructor(e,r,o){this._element=e,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(e){this._select!=null&&(this._value=e,this._setElementValue(sC(this.id,e)),this._select.writeValue(this._select.value))}set value(e){this._select?(this._value=e,this._setElementValue(sC(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}_setElementValue(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}_setSelected(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}static \u0275fac=function(r){return new(r||t)(E(z),E(Le),E(kC,9))};static \u0275dir=M({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"},standalone:!1})}return t})();function uF(t){return typeof t=="number"?t:parseInt(t,10)}function FC(t){return typeof t=="number"?t:parseFloat(t)}var Bu=(()=>{class t{_validator=Mu;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let r=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):Mu,this._onChange?.()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(r){return new(r||t)};static \u0275dir=M({type:t,features:[ze]})}return t})(),dF={provide:nn,useExisting:Ce(()=>fF),multi:!0},fF=(()=>{class t extends Bu{max;inputName="max";normalizeInput=e=>FC(e);createValidator=e=>dC(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=M({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&<("max",o._enabled?o.max:null)},inputs:{max:"max"},standalone:!1,features:[je([dF]),te]})}return t})(),hF={provide:nn,useExisting:Ce(()=>pF),multi:!0},pF=(()=>{class t extends Bu{min;inputName="min";normalizeInput=e=>FC(e);createValidator=e=>uC(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=M({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&<("min",o._enabled?o.min:null)},inputs:{min:"min"},standalone:!1,features:[je([hF]),te]})}return t})(),mF={provide:nn,useExisting:Ce(()=>gF),multi:!0};var gF=(()=>{class t extends Bu{required;inputName="required";normalizeInput=ue;createValidator=e=>fC;enabled(e){return e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=M({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,o){r&2&<("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[je([mF]),te]})}return t})();var vF={provide:nn,useExisting:Ce(()=>yF),multi:!0},yF=(()=>{class t extends Bu{maxlength;inputName="maxlength";normalizeInput=e=>uF(e);createValidator=e=>hC(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275dir=M({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,o){r&2&<("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[je([vF]),te]})}return t})();var PC=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=X({type:t});static \u0275inj=Y({})}return t})();function aC(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var bF=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,r=null){let o=this._reduceControls(e),i={};return aC(r)?i=r:r!==null&&(i.validators=r.validator,i.asyncValidators=r.asyncValidator),new uo(o,i)}record(e,r=null){let o=this._reduceControls(e);return new ig(o,r)}control(e,r,o){let i={};return this.useNonNullable?(aC(r)?i=r:(i.validators=r,i.asyncValidators=o),new vi(e,F(g({},i),{nonNullable:!0}))):new vi(e,r,o)}array(e,r,o){let i=e.map(s=>this._createControl(s));return new sg(i,r,o)}_reduceControls(e){let r={};return Object.keys(e).forEach(o=>{r[o]=this._createControl(e[o])}),r}_createControl(e){if(e instanceof vi)return e;if(e instanceof yi)return e;if(Array.isArray(e)){let r=e[0],o=e.length>1?e[1]:null,i=e.length>2?e[2]:null;return this.control(r,o,i)}else return this.control(e)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var JY=(()=>{class t extends bF{group(e,r=null){return super.group(e,r)}control(e,r,o){return super.control(e,r,o)}array(e,r,o){return super.array(e,r,o)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),eZ=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:bi,useValue:e.callSetDisabledState??ju}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=X({type:t});static \u0275inj=Y({imports:[PC]})}return t})(),tZ=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:gg,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:bi,useValue:e.callSetDisabledState??ju}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=X({type:t});static \u0275inj=Y({imports:[PC]})}return t})();var Uu=new WeakMap,Nt=(()=>{class t{_appRef;_injector=f(W);_environmentInjector=f(oe);load(e){let r=this._appRef=this._appRef||this._injector.get(Ge),o=Uu.get(r);o||(o={loaders:new Set,refs:[]},Uu.set(r,o),r.onDestroy(()=>{Uu.get(r)?.refs.forEach(i=>i.destroy()),Uu.delete(r)})),o.loaders.has(e)||(o.loaders.add(e),o.refs.push(eu(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var $u=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=xe({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(r,o){},styles:[`.cdk-visually-hidden { border: 0; clip: rect(0 0 0 0); height: 1px; @@ -21,7 +21,7 @@ ${e.map((r,o)=>`${o+1}) ${r.toString()}`).join(` left: auto; right: 0; } -`],encapsulation:2,changeDetection:0})}return t})(),Bu;function fF(){if(Bu===void 0&&(Bu=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(Bu=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return Bu}function po(t){return fF()?.createHTML(t)||t}function NC(t,n,e){let r=e.sanitize(J.HTML,n);t.innerHTML=po(r||"")}function OC(t){return Error(`Unable to find icon with the name "${t}"`)}function hF(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function kC(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function FC(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var Kn=class{url;svgText;options;svgElement=null;constructor(n,e,r){this.url=n,this.svgText=e,this.options=r}},LC=(()=>{class t{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,r,o,i){this._httpClient=e,this._sanitizer=r,this._errorHandler=i,this._document=o}addSvgIcon(e,r,o){return this.addSvgIconInNamespace("",e,r,o)}addSvgIconLiteral(e,r,o){return this.addSvgIconLiteralInNamespace("",e,r,o)}addSvgIconInNamespace(e,r,o,i){return this._addSvgIconConfig(e,r,new Kn(o,null,i))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,r,o,i){let s=this._sanitizer.sanitize(J.HTML,o);if(!s)throw FC(o);let a=po(s);return this._addSvgIconConfig(e,r,new Kn("",a,i))}addSvgIconSet(e,r){return this.addSvgIconSetInNamespace("",e,r)}addSvgIconSetLiteral(e,r){return this.addSvgIconSetLiteralInNamespace("",e,r)}addSvgIconSetInNamespace(e,r,o){return this._addSvgIconSetConfig(e,new Kn(r,null,o))}addSvgIconSetLiteralInNamespace(e,r,o){let i=this._sanitizer.sanitize(J.HTML,r);if(!i)throw FC(r);let s=po(i);return this._addSvgIconSetConfig(e,new Kn("",s,o))}registerFontClassAlias(e,r=e){return this._fontCssClassesByAlias.set(e,r),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let r=this._sanitizer.sanitize(J.RESOURCE_URL,e);if(!r)throw kC(e);let o=this._cachedIconsByUrl.get(r);return o?S(Hu(o)):this._loadSvgIconFromConfig(new Kn(e,null)).pipe(Be(i=>this._cachedIconsByUrl.set(r,i)),V(i=>Hu(i)))}getNamedSvgIcon(e,r=""){let o=PC(r,e),i=this._svgIconConfigs.get(o);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(r,e),i)return this._svgIconConfigs.set(o,i),this._getSvgFromConfig(i);let s=this._iconSetConfigs.get(r);return s?this._getSvgFromIconSetConfigs(e,s):xn(OC(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?S(Hu(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(V(r=>Hu(r)))}_getSvgFromIconSetConfigs(e,r){let o=this._extractIconWithNameFromAnySet(e,r);if(o)return S(o);let i=r.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(It(a=>{let l=`Loading icon set URL: ${this._sanitizer.sanitize(J.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(l)),S(null)})));return Yi(i).pipe(V(()=>{let s=this._extractIconWithNameFromAnySet(e,r);if(!s)throw OC(e);return s}))}_extractIconWithNameFromAnySet(e,r){for(let o=r.length-1;o>=0;o--){let i=r[o];if(i.svgText&&i.svgText.toString().indexOf(e)>-1){let s=this._svgElementFromConfig(i),a=this._extractSvgIconFromSet(s,e,i.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Be(r=>e.svgText=r),V(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?S(null):this._fetchIcon(e).pipe(Be(r=>e.svgText=r))}_extractSvgIconFromSet(e,r,o){let i=e.querySelector(`[id="${r}"]`);if(!i)return null;let s=i.cloneNode(!0);if(s.removeAttribute("id"),s.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(s,o);if(s.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(s),o);let a=this._svgElementFromString(po(""));return a.appendChild(s),this._setSvgAttributes(a,o)}_svgElementFromString(e){let r=this._document.createElement("DIV");r.innerHTML=e;let o=r.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){let r=this._svgElementFromString(po("")),o=e.attributes;for(let i=0;ipo(l)),Rn(()=>this._inProgressUrlFetches.delete(s)),Zi());return this._inProgressUrlFetches.set(s,c),c}_addSvgIconConfig(e,r,o){return this._svgIconConfigs.set(PC(e,r),o),this}_addSvgIconSetConfig(e,r){let o=this._iconSetConfigs.get(e);return o?o.push(r):this._iconSetConfigs.set(e,[r]),this}_svgElementFromConfig(e){if(!e.svgElement){let r=this._svgElementFromString(e.svgText);this._setSvgAttributes(r,e.options),e.svgElement=r}return e.svgElement}_getIconConfigFromResolvers(e,r){for(let o=0;of(O)}),gF=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function jC(t){let n=t?.toLowerCase()||"";return n==="auto"&&typeof navigator<"u"&&navigator?.language?gF.test(navigator.language)?"rtl":"ltr":n==="rtl"?"rtl":"ltr"}var _i=(()=>{class t{get value(){return this.valueSignal()}valueSignal=K("ltr");change=new H;constructor(){let e=f(mF,{optional:!0});if(e){let r=e.body?e.body.dir:null,o=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(jC(r||o||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var rn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=Q({type:t});static \u0275inj=q({})}return t})();var vF=["*"],yF=new y("MAT_ICON_DEFAULT_OPTIONS"),bF=new y("mat-icon-location",{providedIn:"root",factory:()=>{let t=f(O),n=t?t.location:null;return{getPathname:()=>n?n.pathname+n.search:""}}}),VC=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],_F=VC.map(t=>`[${t}]`).join(", "),DF=/^url\(['"]?#(.*?)['"]?\)$/,gZ=(()=>{class t{_elementRef=f($);_iconRegistry=f(LC);_location=f(bF);_errorHandler=f(Ze);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let r=this._cleanupFontValue(e);r!==this._fontSet&&(this._fontSet=r,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let r=this._cleanupFontValue(e);r!==this._fontIcon&&(this._fontIcon=r,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName=null;_svgNamespace=null;_previousPath;_elementsWithExternalReferences;_currentIconFetch=G.EMPTY;constructor(){let e=f(new ui("aria-hidden"),{optional:!0}),r=f(yF,{optional:!0});r&&(r.color&&(this.color=this._defaultColor=r.color),r.fontSet&&(this.fontSet=r.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let r=e.split(":");switch(r.length){case 1:return["",r[0]];case 2:return r;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let r=this._location.getPathname();r!==this._previousPath&&(this._previousPath=r,this._prependPathToReferences(r))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,r=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();r--;){let o=e.childNodes[r];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,r=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),r.forEach(o=>e.classList.add(o)),this._previousFontSetClass=r,this.fontIcon!==this._previousFontIconClass&&!r.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let r=this._elementsWithExternalReferences;r&&r.forEach((o,i)=>{o.forEach(s=>{i.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){let r=e.querySelectorAll(_F),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i{let a=r[i],c=a.getAttribute(s),l=c?c.match(DF):null;if(l){let u=o.get(a);u||(u=[],o.set(a,u)),u.push({name:s,value:l[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[r,o]=this._splitIconName(e);r&&(this._svgNamespace=r),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,r).pipe(Ne(1)).subscribe(i=>this._setSvgElement(i),i=>{let s=`Error retrieving icon ${r}:${o}! ${i.message}`;this._errorHandler.handleError(new Error(s))})}}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Te({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(r,o){r&2&&(yt("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),zs(o.color?"mat-"+o.color:""),Xe("mat-icon-inline",o.inline)("mat-icon-no-color",o.color!=="primary"&&o.color!=="accent"&&o.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",ue],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:vF,decls:1,vars:0,template:function(r,o){r&1&&(Dr(),_n(0))},styles:[`mat-icon, mat-icon.mat-primary, mat-icon.mat-accent, mat-icon.mat-warn { +`],encapsulation:2,changeDetection:0})}return t})(),Hu;function _F(){if(Hu===void 0&&(Hu=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(Hu=t.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return Hu}function po(t){return _F()?.createHTML(t)||t}function LC(t,n,e){let r=e.sanitize(J.HTML,n);t.innerHTML=po(r||"")}function jC(t){return Error(`Unable to find icon with the name "${t}"`)}function DF(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function VC(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function BC(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var Qn=class{url;svgText;options;svgElement=null;constructor(n,e,r){this.url=n,this.svgText=e,this.options=r}},HC=(()=>{class t{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,r,o,i){this._httpClient=e,this._sanitizer=r,this._errorHandler=i,this._document=o}addSvgIcon(e,r,o){return this.addSvgIconInNamespace("",e,r,o)}addSvgIconLiteral(e,r,o){return this.addSvgIconLiteralInNamespace("",e,r,o)}addSvgIconInNamespace(e,r,o,i){return this._addSvgIconConfig(e,r,new Qn(o,null,i))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,r,o,i){let s=this._sanitizer.sanitize(J.HTML,o);if(!s)throw BC(o);let a=po(s);return this._addSvgIconConfig(e,r,new Qn("",a,i))}addSvgIconSet(e,r){return this.addSvgIconSetInNamespace("",e,r)}addSvgIconSetLiteral(e,r){return this.addSvgIconSetLiteralInNamespace("",e,r)}addSvgIconSetInNamespace(e,r,o){return this._addSvgIconSetConfig(e,new Qn(r,null,o))}addSvgIconSetLiteralInNamespace(e,r,o){let i=this._sanitizer.sanitize(J.HTML,r);if(!i)throw BC(r);let s=po(i);return this._addSvgIconSetConfig(e,new Qn("",s,o))}registerFontClassAlias(e,r=e){return this._fontCssClassesByAlias.set(e,r),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let r=this._sanitizer.sanitize(J.RESOURCE_URL,e);if(!r)throw VC(e);let o=this._cachedIconsByUrl.get(r);return o?S(zu(o)):this._loadSvgIconFromConfig(new Qn(e,null)).pipe(Ue(i=>this._cachedIconsByUrl.set(r,i)),L(i=>zu(i)))}getNamedSvgIcon(e,r=""){let o=UC(r,e),i=this._svgIconConfigs.get(o);if(i)return this._getSvgFromConfig(i);if(i=this._getIconConfigFromResolvers(r,e),i)return this._svgIconConfigs.set(o,i),this._getSvgFromConfig(i);let s=this._iconSetConfigs.get(r);return s?this._getSvgFromIconSetConfigs(e,s):xn(jC(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?S(zu(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(L(r=>zu(r)))}_getSvgFromIconSetConfigs(e,r){let o=this._extractIconWithNameFromAnySet(e,r);if(o)return S(o);let i=r.filter(s=>!s.svgText).map(s=>this._loadSvgIconSetFromConfig(s).pipe(It(a=>{let l=`Loading icon set URL: ${this._sanitizer.sanitize(J.RESOURCE_URL,s.url)} failed: ${a.message}`;return this._errorHandler.handleError(new Error(l)),S(null)})));return Yi(i).pipe(L(()=>{let s=this._extractIconWithNameFromAnySet(e,r);if(!s)throw jC(e);return s}))}_extractIconWithNameFromAnySet(e,r){for(let o=r.length-1;o>=0;o--){let i=r[o];if(i.svgText&&i.svgText.toString().indexOf(e)>-1){let s=this._svgElementFromConfig(i),a=this._extractSvgIconFromSet(s,e,i.options);if(a)return a}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Ue(r=>e.svgText=r),L(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?S(null):this._fetchIcon(e).pipe(Ue(r=>e.svgText=r))}_extractSvgIconFromSet(e,r,o){let i=e.querySelector(`[id="${r}"]`);if(!i)return null;let s=i.cloneNode(!0);if(s.removeAttribute("id"),s.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(s,o);if(s.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(s),o);let a=this._svgElementFromString(po(""));return a.appendChild(s),this._setSvgAttributes(a,o)}_svgElementFromString(e){let r=this._document.createElement("DIV");r.innerHTML=e;let o=r.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){let r=this._svgElementFromString(po("")),o=e.attributes;for(let i=0;ipo(l)),Rn(()=>this._inProgressUrlFetches.delete(s)),Zi());return this._inProgressUrlFetches.set(s,c),c}_addSvgIconConfig(e,r,o){return this._svgIconConfigs.set(UC(e,r),o),this}_addSvgIconSetConfig(e,r){let o=this._iconSetConfigs.get(e);return o?o.push(r):this._iconSetConfigs.set(e,[r]),this}_svgElementFromConfig(e){if(!e.svgElement){let r=this._svgElementFromString(e.svgText);this._setSvgAttributes(r,e.options),e.svgElement=r}return e.svgElement}_getIconConfigFromResolvers(e,r){for(let o=0;of(k)}),CF=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function $C(t){let n=t?.toLowerCase()||"";return n==="auto"&&typeof navigator<"u"&&navigator?.language?CF.test(navigator.language)?"rtl":"ltr":n==="rtl"?"rtl":"ltr"}var _i=(()=>{class t{get value(){return this.valueSignal()}valueSignal=Q("ltr");change=new H;constructor(){let e=f(wF,{optional:!0});if(e){let r=e.body?e.body.dir:null,o=e.documentElement?e.documentElement.dir:null;this.valueSignal.set($C(r||o||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var rn=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=X({type:t});static \u0275inj=Y({})}return t})();var IF=["*"],SF=new y("MAT_ICON_DEFAULT_OPTIONS"),MF=new y("mat-icon-location",{providedIn:"root",factory:()=>{let t=f(k),n=t?t.location:null;return{getPathname:()=>n?n.pathname+n.search:""}}}),zC=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],TF=zC.map(t=>`[${t}]`).join(", "),xF=/^url\(['"]?#(.*?)['"]?\)$/,PZ=(()=>{class t{_elementRef=f(z);_iconRegistry=f(HC);_location=f(MF);_errorHandler=f(Ze);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let r=this._cleanupFontValue(e);r!==this._fontSet&&(this._fontSet=r,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let r=this._cleanupFontValue(e);r!==this._fontIcon&&(this._fontIcon=r,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName=null;_svgNamespace=null;_previousPath;_elementsWithExternalReferences;_currentIconFetch=G.EMPTY;constructor(){let e=f(new ui("aria-hidden"),{optional:!0}),r=f(SF,{optional:!0});r&&(r.color&&(this.color=this._defaultColor=r.color),r.fontSet&&(this.fontSet=r.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let r=e.split(":");switch(r.length){case 1:return["",r[0]];case 2:return r;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let r=this._location.getPathname();r!==this._previousPath&&(this._previousPath=r,this._prependPathToReferences(r))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let r=this._location.getPathname();this._previousPath=r,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(r),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,r=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();r--;){let o=e.childNodes[r];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,r=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),r.forEach(o=>e.classList.add(o)),this._previousFontSetClass=r,this.fontIcon!==this._previousFontIconClass&&!r.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let r=this._elementsWithExternalReferences;r&&r.forEach((o,i)=>{o.forEach(s=>{i.setAttribute(s.name,`url('${e}#${s.value}')`)})})}_cacheChildrenWithExternalReferences(e){let r=e.querySelectorAll(TF),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let i=0;i{let a=r[i],c=a.getAttribute(s),l=c?c.match(xF):null;if(l){let u=o.get(a);u||(u=[],o.set(a,u)),u.push({name:s,value:l[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[r,o]=this._splitIconName(e);r&&(this._svgNamespace=r),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,r).pipe(Oe(1)).subscribe(i=>this._setSvgElement(i),i=>{let s=`Error retrieving icon ${r}:${o}! ${i.message}`;this._errorHandler.handleError(new Error(s))})}}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=xe({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(r,o){r&2&&(lt("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),zs(o.color?"mat-"+o.color:""),Xe("mat-icon-inline",o.inline)("mat-icon-no-color",o.color!=="primary"&&o.color!=="accent"&&o.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",ue],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:IF,decls:1,vars:0,template:function(r,o){r&1&&(Dr(),_n(0))},styles:[`mat-icon, mat-icon.mat-primary, mat-icon.mat-accent, mat-icon.mat-warn { color: var(--mat-icon-color, inherit); } @@ -57,7 +57,7 @@ ${e.map((r,o)=>`${o+1}) ${r.toString()}`).join(` .mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon { margin: auto; } -`],encapsulation:2,changeDetection:0})}return t})(),vZ=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=Q({type:t});static \u0275inj=q({imports:[rn]})}return t})();function ha(t){return t.buttons===0||t.detail===0}function pa(t){let n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!n&&n.identifier===-1&&(n.radiusX==null||n.radiusX===1)&&(n.radiusY==null||n.radiusY===1)}var mg;function BC(){if(mg==null){let t=typeof document<"u"?document.head:null;mg=!!(t&&(t.createShadowRoot||t.attachShadow))}return mg}function gg(t){if(BC()){let n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function EF(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function ot(t){return t.composedPath?t.composedPath()[0]:t.target}var vg;try{vg=typeof Intl<"u"&&Intl.v8BreakIterator}catch{vg=!1}var _e=(()=>{class t{_platformId=f(so);isBrowser=this._platformId?Dw(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||vg)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ma;function UC(){if(ma==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ma=!0}))}finally{ma=ma||!1}return ma}function Di(t){return UC()?t:!!t.capture}function $u(t,n=0){return HC(t)?Number(t):arguments.length===2?n:0}function HC(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Ot(t){return t instanceof $?t.nativeElement:t}var $C=new y("cdk-input-modality-detector-options"),zC={ignoreKeys:[18,17,224,91,16]},GC=650,yg={passive:!0,capture:!0},WC=(()=>{class t{_platform=f(_e);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new Ae(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(r=>r===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=ot(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(pa(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ot(e)};constructor(){let e=f(j),r=f(O),o=f($C,{optional:!0});if(this._options=g(g({},zC),o),this.modalityDetected=this._modality.pipe(Ki(1)),this.modalityChanged=this.modalityDetected.pipe(gc()),this._platform.isBrowser){let i=f(He).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[i.listen(r,"keydown",this._onKeydown,yg),i.listen(r,"mousedown",this._onMousedown,yg),i.listen(r,"touchstart",this._onTouchstart,yg)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ga=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(ga||{}),qC=new y("cdk-focus-monitor-default-options"),zu=Di({passive:!0,capture:!0}),Gu=(()=>{class t{_ngZone=f(j);_platform=f(_e);_inputModalityDetector=f(WC);_origin=null;_lastFocusOrigin=null;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=f(O);_stopInputModalityDetector=new x;constructor(){let e=f(qC,{optional:!0});this._detectionMode=e?.detectionMode||ga.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let r=ot(e);for(let o=r;o;o=o.parentElement)e.type==="focus"?this._onFocus(e,o):this._onBlur(e,o)};monitor(e,r=!1){let o=Ot(e);if(!this._platform.isBrowser||o.nodeType!==1)return S();let i=gg(o)||this._document,s=this._elementInfo.get(o);if(s)return r&&(s.checkChildren=!0),s.subject;let a={checkChildren:r,subject:new x,rootNode:i};return this._elementInfo.set(o,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){let r=Ot(e),o=this._elementInfo.get(r);o&&(o.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(o))}focusVia(e,r,o){let i=Ot(e),s=this._document.activeElement;i===s?this._getClosestElementsInfo(i).forEach(([a,c])=>this._originChanged(a,r,c)):(this._setOrigin(r),typeof i.focus=="function"&&i.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,r)=>this.stopMonitoring(r))}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===ga.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,r){e.classList.toggle("cdk-focused",!!r),e.classList.toggle("cdk-touch-focused",r==="touch"),e.classList.toggle("cdk-keyboard-focused",r==="keyboard"),e.classList.toggle("cdk-mouse-focused",r==="mouse"),e.classList.toggle("cdk-program-focused",r==="program")}_setOrigin(e,r=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&r,this._detectionMode===ga.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?GC:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(e,r){let o=this._elementInfo.get(r),i=ot(e);!o||!o.checkChildren&&r!==i||this._originChanged(r,this._getFocusOrigin(i),o)}_onBlur(e,r){let o=this._elementInfo.get(r);!o||o.checkChildren&&e.relatedTarget instanceof Node&&r.contains(e.relatedTarget)||(this._setClasses(r),this._emitOrigin(o,null))}_emitOrigin(e,r){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(r))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let r=e.rootNode,o=this._rootNodeFocusListenerCount.get(r)||0;o||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,zu),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,zu)}),this._rootNodeFocusListenerCount.set(r,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(jt(this._stopInputModalityDetector)).subscribe(i=>{this._setOrigin(i,!0)}))}_removeGlobalListeners(e){let r=e.rootNode;if(this._rootNodeFocusListenerCount.has(r)){let o=this._rootNodeFocusListenerCount.get(r);o>1?this._rootNodeFocusListenerCount.set(r,o-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,zu),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,zu),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,r,o){this._setClasses(e,r),this._emitOrigin(o,r),this._lastFocusOrigin=r}_getClosestElementsInfo(e){let r=[];return this._elementInfo.forEach((o,i)=>{(i===e||o.checkChildren&&i.contains(e))&&r.push([i,o])}),r}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:r,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!r||r===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let i=e.labels;if(i){for(let s=0;s{class t{_elementRef=f($);_focusMonitor=f(Gu);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new H;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(r=>{this._focusOrigin=r,this.cdkFocusChange.emit(r)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||t)};static \u0275dir=T({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();function mo(t){return Array.isArray(t)?t:[t]}var YC=new Set,go,Wu=(()=>{class t{_platform=f(_e);_nonce=f(ao,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):IF}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&CF(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function CF(t,n){if(!YC.has(t))try{go||(go=document.createElement("style"),n&&go.setAttribute("nonce",n),go.setAttribute("type","text/css"),document.head.appendChild(go)),go.sheet&&(go.sheet.insertRule(`@media ${t} {body{ }}`,0),YC.add(t))}catch(e){console.error(e)}}function IF(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var bg=(()=>{class t{_mediaMatcher=f(Wu);_zone=f(j);_queries=new Map;_destroySubject=new x;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return ZC(mo(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let o=ZC(mo(e)).map(s=>this._registerQuery(s).observable),i=Ro(o);return i=ln(i.pipe(Ne(1)),i.pipe(Ki(1),Lr(0))),i.pipe(V(s=>{let a={matches:!1,breakpoints:{}};return s.forEach(({matches:c,query:l})=>{a.matches=a.matches||c,a.breakpoints[l]=c}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let r=this._mediaMatcher.matchMedia(e),i={observable:new P(s=>{let a=c=>this._zone.run(()=>s.next(c));return r.addListener(a),()=>{r.removeListener(a)}}).pipe(No(r),V(({matches:s})=>({query:e,matches:s})),jt(this._destroySubject)),mql:r};return this._queries.set(e,i),i}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ZC(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}function SF(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let n=0;n{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),QC=(()=>{class t{_mutationObserverFactory=f(KC);_observedElements=new Map;_ngZone=f(j);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,r)=>this._cleanupObserver(r))}observe(e){let r=Ot(e);return new P(o=>{let s=this._observeElement(r).pipe(V(a=>a.filter(c=>!SF(c))),he(a=>!!a.length)).subscribe(a=>{this._ngZone.run(()=>{o.next(a)})});return()=>{s.unsubscribe(),this._unobserveElement(r)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let r=new x,o=this._mutationObserverFactory.create(i=>r.next(i));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:r,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:r,stream:o}=this._observedElements.get(e);r&&r.disconnect(),o.complete(),this._observedElements.delete(e)}}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),l7=(()=>{class t{_contentObserver=f(QC);_elementRef=f($);event=new H;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(e){this._debounce=$u(e),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(Lr(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||t)};static \u0275dir=T({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",ue],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),XC=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=Q({type:t});static \u0275inj=q({providers:[KC]})}return t})();var nI=(()=>{class t{_platform=f(_e);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return TF(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let r=MF(PF(e));if(r&&(JC(r)===-1||!this.isVisible(r)))return!1;let o=e.nodeName.toLowerCase(),i=JC(e);return e.hasAttribute("contenteditable")?i!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!kF(e)?!1:o==="audio"?e.hasAttribute("controls")?i!==-1:!1:o==="video"?i===-1?!1:i!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,r){return FF(e)&&!this.isDisabled(e)&&(r?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function MF(t){try{return t.frameElement}catch{return null}}function TF(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function xF(t){let n=t.nodeName.toLowerCase();return n==="input"||n==="select"||n==="button"||n==="textarea"}function AF(t){return NF(t)&&t.type=="hidden"}function RF(t){return OF(t)&&t.hasAttribute("href")}function NF(t){return t.nodeName.toLowerCase()=="input"}function OF(t){return t.nodeName.toLowerCase()=="a"}function rI(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let n=t.getAttribute("tabindex");return!!(n&&!isNaN(parseInt(n,10)))}function JC(t){if(!rI(t))return null;let n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}function kF(t){let n=t.nodeName.toLowerCase(),e=n==="input"&&t.type;return e==="text"||e==="password"||n==="select"||n==="textarea"}function FF(t){return AF(t)?!1:xF(t)||RF(t)||t.hasAttribute("contenteditable")||rI(t)}function PF(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var qu=class{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_enabled=!0;constructor(n,e,r,o,i=!1,s){this._element=n,this._checker=e,this._ngZone=r,this._document=o,this._injector=s,i||this.attachAnchors()}destroy(){let n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){let e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return n=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let r=this._getFirstTabbableElement(e);return r?.focus(n),!!r}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){let e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){let e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;let e=n.children;for(let r=0;r=0;r--){let o=e[r].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[r]):null;if(o)return o}return null}_createAnchor(){let n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._injector?At(n,{injector:this._injector}):setTimeout(n)}},LF=(()=>{class t{_checker=f(nI);_ngZone=f(j);_document=f(O);_injector=f(W);constructor(){f(Nt).load(Uu)}create(e,r=!1){return new qu(e,this._checker,this._ngZone,this._document,r,this._injector)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var oI=new y("liveAnnouncerElement",{providedIn:"root",factory:()=>null}),iI=new y("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),jF=0,VF=(()=>{class t{_ngZone=f(j);_defaultOptions=f(iI,{optional:!0});_liveElement;_document=f(O);_sanitizer=f(ia);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=f(oI,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...r){let o=this._defaultOptions,i,s;return r.length===1&&typeof r[0]=="number"?s=r[0]:[i,s]=r,this.clear(),clearTimeout(this._previousTimeout),i||(i=o&&o.politeness?o.politeness:"polite"),s==null&&o&&(s=o.duration),this._liveElement.setAttribute("aria-live",i),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{!e||typeof e=="string"?this._liveElement.textContent=e:NC(this._liveElement,e,this._sanitizer),typeof s=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",r=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let i=0;i .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{class t{_platform=f(_e);_hasCheckedHighContrastMode=!1;_document=f(O);_breakpointSubscription;constructor(){this._breakpointSubscription=f(bg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return wr.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let r=this._document.defaultView||window,o=r&&r.getComputedStyle?r.getComputedStyle(e):null,i=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),i){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return wr.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return wr.BLACK_ON_WHITE}return wr.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(_g,eI,tI),this._hasCheckedHighContrastMode=!0;let r=this.getHighContrastMode();r===wr.BLACK_ON_WHITE?e.add(_g,eI):r===wr.WHITE_ON_BLACK&&e.add(_g,tI)}}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),BF=(()=>{class t{constructor(){f(sI)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Q({type:t});static \u0275inj=q({imports:[XC]})}return t})();var UF=200,Ei=class{_letterKeyStream=new x;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new x;selectedItem=this._selectedItem;constructor(n,e){let r=typeof e?.debounceInterval=="number"?e.debounceInterval:UF;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(n),this._setupKeyHandler(r)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(n){this._selectedItemIndex=n}setItems(n){this._items=n}handleKey(n){let e=n.keyCode;n.key&&n.key.length===1?this._letterKeyStream.next(n.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(n){this._letterKeyStream.pipe(Be(e=>this._pressedLetters.push(e)),Lr(n),he(()=>this._pressedLetters.length>0),V(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let r=1;rt[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var wi=class{_items;_activeItemIndex=K(-1);_activeItem=K(null);_wrap=!1;_typeaheadSubscription=G.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal=null;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=n=>n.disabled;constructor(n,e){this._items=n,n instanceof Un?this._itemChangesSubscription=n.changes.subscribe(r=>this._itemsChanged(r.toArray())):si(n)&&(this._effectRef=Es(()=>this._itemsChanged(n()),{injector:e}))}tabOut=new x;change=new x;skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new Ei(e,{debounceInterval:typeof n=="number"?n:void 0,skipPredicate:r=>this._skipPredicateFn(r)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(r=>{this.setActiveItem(r)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(n=!0){return this._homeAndEnd=n,this}withPageUpDown(n=!0,e=10){return this._pageUpAndDown={enabled:n,delta:e},this}setActiveItem(n){let e=this._activeItem();this.updateActiveItem(n),this._activeItem()!==e&&this.change.next(this._activeItemIndex())}onKeydown(n){let e=n.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(i=>!n[i]||this._allowedModifierKeys.indexOf(i)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&o){this.setNextItemActive();break}else return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&o){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&o){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&o){let i=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(i>0?i:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&o){let i=this._activeItemIndex()+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(i-1&&r!==this._activeItemIndex()&&(this._activeItemIndex.set(r),this._typeahead?.setCurrentSelectedItemIndex(r))}}};var Dg=class extends wi{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}};var Eg=class extends wi{_origin="program";setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}};function wg(t){return Vt(t)?t:S(t)}var Cg=class{_activeItemIndex=-1;_activeItem=null;_shouldActivationFollowFocus=!1;_horizontalOrientation="ltr";_skipPredicateFn=n=>!1;_trackByFn=n=>n;_items=[];_typeahead;_typeaheadSubscription=G.EMPTY;_hasInitialFocused=!1;_initializeFocus(){if(this._hasInitialFocused||this._items.length===0)return;let n=0;for(let r=0;rthis._itemsChanged(r.toArray()))):Vt(n)?n.subscribe(r=>this._itemsChanged(r)):(this._items=n,this._initializeFocus()),typeof e.shouldActivationFollowFocus=="boolean"&&(this._shouldActivationFollowFocus=e.shouldActivationFollowFocus),e.horizontalOrientation&&(this._horizontalOrientation=e.horizontalOrientation),e.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),e.trackBy&&(this._trackByFn=e.trackBy),typeof e.typeAheadDebounceInterval<"u"&&this._setTypeAhead(e.typeAheadDebounceInterval)}change=new x;destroy(){this._typeaheadSubscription.unsubscribe(),this._typeahead?.destroy(),this.change.complete()}onKeydown(n){switch(n.key){case"Tab":return;case"ArrowDown":this._focusNextItem();break;case"ArrowUp":this._focusPreviousItem();break;case"ArrowRight":this._horizontalOrientation==="rtl"?this._collapseCurrentItem():this._expandCurrentItem();break;case"ArrowLeft":this._horizontalOrientation==="rtl"?this._expandCurrentItem():this._collapseCurrentItem();break;case"Home":this._focusFirstItem();break;case"End":this._focusLastItem();break;case"Enter":case" ":this._activateCurrentItem();break;default:if(n.key==="*"){this._expandAllItemsAtCurrentItemLevel();break}this._typeahead?.handleKey(n);return}this._typeahead?.reset(),n.preventDefault()}getActiveItemIndex(){return this._activeItemIndex}getActiveItem(){return this._activeItem}_itemsChanged(n){this._hasInitialFocused&&this._activeItem&&!n.includes(this._activeItem)&&(this._activeItem=null,this._hasInitialFocused=!1),this._items=n,this._typeahead?.setItems(this._items),this._updateActiveItemIndex(this._items),this._initializeFocus()}_focusFirstItem(){this.focusItem(this._findNextAvailableItemIndex(-1))}_focusLastItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._items.length))}_focusNextItem(){this.focusItem(this._findNextAvailableItemIndex(this._activeItemIndex))}_focusPreviousItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._activeItemIndex))}focusItem(n,e={}){e.emitChangeEvent??=!0;let r=typeof n=="number"?n:this._items.findIndex(s=>this._trackByFn(s)===this._trackByFn(n));if(r<0||r>=this._items.length)return;let o=this._items[r];if(this._activeItem!==null&&this._trackByFn(o)===this._trackByFn(this._activeItem))return;let i=this._activeItem;this._activeItem=o??null,this._activeItemIndex=r,this._typeahead?.setCurrentSelectedItemIndex(r),this._activeItem?.focus(),i?.unfocus(),e.emitChangeEvent&&this.change.next(this._activeItem),this._shouldActivationFollowFocus&&this._activateCurrentItem()}_updateActiveItemIndex(n){let e=this._activeItem;if(!e)return;let r=n.findIndex(o=>this._trackByFn(o)===this._trackByFn(e));r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r,this._typeahead?.setCurrentSelectedItemIndex(r))}_setTypeAhead(n){this._typeahead=new Ei(this._items,{debounceInterval:typeof n=="number"?n:void 0,skipPredicate:e=>this._skipPredicateFn(e)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(e=>{this.focusItem(e)})}_findNextAvailableItemIndex(n){for(let e=n+1;e=0;e--)if(!this._skipPredicateFn(this._items[e]))return e;return n}_collapseCurrentItem(){if(this._activeItem)if(this._isCurrentItemExpanded())this._activeItem.collapse();else{let n=this._activeItem.getParent();if(!n||this._skipPredicateFn(n))return;this.focusItem(n)}}_expandCurrentItem(){this._activeItem&&(this._isCurrentItemExpanded()?wg(this._activeItem.getChildren()).pipe(Ne(1)).subscribe(n=>{let e=n.find(r=>!this._skipPredicateFn(r));e&&this.focusItem(e)}):this._activeItem.expand())}_isCurrentItemExpanded(){return this._activeItem?typeof this._activeItem.isExpanded=="boolean"?this._activeItem.isExpanded:this._activeItem.isExpanded():!1}_isItemDisabled(n){return typeof n.isDisabled=="boolean"?n.isDisabled:n.isDisabled?.()}_expandAllItemsAtCurrentItemLevel(){if(!this._activeItem)return;let n=this._activeItem.getParent(),e;n?e=wg(n.getChildren()):e=S(this._items.filter(r=>r.getParent()===null)),e.pipe(Ne(1)).subscribe(r=>{for(let o of r)o.expand()})}_activateCurrentItem(){this._activeItem?.activate()}},nK=new y("tree-key-manager",{providedIn:"root",factory:()=>(t,n)=>new Cg(t,n)});var Ig={},va=class t{_appId=f(_r);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(n,e=!1){return this._appId!=="ng"&&(n+=this._appId),Ig.hasOwnProperty(n)||(Ig[n]=0),`${n}${e?t._infix+"-":""}${Ig[n]++}`}static \u0275fac=function(e){return new(e||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})};var cI=" ";function HF(t,n,e){let r=Ku(t,n);e=e.trim(),!r.some(o=>o.trim()===e)&&(r.push(e),t.setAttribute(n,r.join(cI)))}function $F(t,n,e){let r=Ku(t,n);e=e.trim();let o=r.filter(i=>i!==e);o.length?t.setAttribute(n,o.join(cI)):t.removeAttribute(n)}function Ku(t,n){return t.getAttribute(n)?.match(/\S+/g)??[]}var lI="cdk-describedby-message",Zu="cdk-describedby-host",Mg=0,gK=(()=>{class t{_platform=f(_e);_document=f(O);_messageRegistry=new Map;_messagesContainer=null;_id=`${Mg++}`;constructor(){f(Nt).load(Uu),this._id=f(_r)+"-"+Mg++}describe(e,r,o){if(!this._canBeDescribed(e,r))return;let i=Sg(r,o);typeof r!="string"?(aI(r,this._id),this._messageRegistry.set(i,{messageElement:r,referenceCount:0})):this._messageRegistry.has(i)||this._createMessageElement(r,o),this._isElementDescribedByMessage(e,i)||this._addMessageReference(e,i)}removeDescription(e,r,o){if(!r||!this._isElementNode(e))return;let i=Sg(r,o);if(this._isElementDescribedByMessage(e,i)&&this._removeMessageReference(e,i),typeof r=="string"){let s=this._messageRegistry.get(i);s&&s.referenceCount===0&&this._deleteMessageElement(i)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${Zu}="${this._id}"]`);for(let r=0;ro.indexOf(lI)!=0);e.setAttribute("aria-describedby",r.join(" "))}_addMessageReference(e,r){let o=this._messageRegistry.get(r);HF(e,"aria-describedby",o.messageElement.id),e.setAttribute(Zu,this._id),o.referenceCount++}_removeMessageReference(e,r){let o=this._messageRegistry.get(r);o.referenceCount--,$F(e,"aria-describedby",o.messageElement.id),e.removeAttribute(Zu)}_isElementDescribedByMessage(e,r){let o=Ku(e,"aria-describedby"),i=this._messageRegistry.get(r),s=i&&i.messageElement.id;return!!s&&o.indexOf(s)!=-1}_canBeDescribed(e,r){if(!this._isElementNode(e))return!1;if(r&&typeof r=="object")return!0;let o=r==null?"":`${r}`.trim(),i=e.getAttribute("aria-label");return o?!i||i.trim()!==o:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Sg(t,n){return typeof t=="string"?`${n||""}/${t}`:t}function aI(t,n){t.id||(t.id=`${lI}-${n}-${Mg++}`)}var on=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(on||{}),Qu,vo;function Xu(){if(vo==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return vo=!1,vo;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)vo=!0;else{let t=Element.prototype.scrollTo;t?vo=!/\{\s*\[native code\]\s*\}/.test(t.toString()):vo=!1}}return vo}function Ci(){if(typeof document!="object"||!document)return on.NORMAL;if(Qu==null){let t=document.createElement("div"),n=t.style;t.dir="rtl",n.width="1px",n.overflow="auto",n.visibility="hidden",n.pointerEvents="none",n.position="absolute";let e=document.createElement("div"),r=e.style;r.width="2px",r.height="1px",t.appendChild(e),document.body.appendChild(t),Qu=on.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,Qu=t.scrollLeft===0?on.NEGATED:on.INVERTED),t.remove()}return Qu}function Tg(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var Ii,uI=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function SK(){if(Ii)return Ii;if(typeof document!="object"||!document)return Ii=new Set(uI),Ii;let t=document.createElement("input");return Ii=new Set(uI.filter(n=>(t.setAttribute("type",n),t.type===n))),Ii}var RK={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var zF=new y("MATERIAL_ANIMATIONS"),dI=null;function GF(){return f(zF,{optional:!0})?.animationsDisabled||f(Fs,{optional:!0})==="NoopAnimations"?"di-disabled":(dI??=f(Wu).matchMedia("(prefers-reduced-motion)").matches,dI?"reduced-motion":"enabled")}function Cr(){return GF()!=="enabled"}function Ce(t){return t==null?"":typeof t=="string"?t:`${t}px`}function jK(t){return t!=null&&`${t}`!="false"}var kt=(function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t})(kt||{}),xg=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=kt.HIDDEN;constructor(n,e,r,o=!1){this._renderer=n,this.element=e,this.config=r,this._animationForciblyDisabledThroughCss=o}fadeOut(){this._renderer.fadeOutRipple(this)}},fI=Di({passive:!0,capture:!0}),Ag=class{_events=new Map;addHandler(n,e,r,o){let i=this._events.get(e);if(i){let s=i.get(r);s?s.add(o):i.set(r,new Set([o]))}else this._events.set(e,new Map([[r,new Set([o])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,fI)})}removeHandler(n,e,r){let o=this._events.get(n);if(!o)return;let i=o.get(e);i&&(i.delete(r),i.size===0&&o.delete(e),o.size===0&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,fI)))}_delegateEventHandler=n=>{let e=ot(n);e&&this._events.get(n.type)?.forEach((r,o)=>{(o===e||o.contains(e))&&r.forEach(i=>i.handleEvent(n))})}},ya={enterDuration:225,exitDuration:150},WF=800,hI=Di({passive:!0,capture:!0}),pI=["mousedown","touchstart"],mI=["mouseup","mouseleave","touchend","touchcancel"],qF=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Te({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(r,o){},styles:[`.mat-ripple { +`],encapsulation:2,changeDetection:0})}return t})(),LZ=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=X({type:t});static \u0275inj=Y({imports:[rn]})}return t})();function ha(t){return t.buttons===0||t.detail===0}function pa(t){let n=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!n&&n.identifier===-1&&(n.radiusX==null||n.radiusX===1)&&(n.radiusY==null||n.radiusY===1)}var vg;function GC(){if(vg==null){let t=typeof document<"u"?document.head:null;vg=!!(t&&(t.createShadowRoot||t.attachShadow))}return vg}function yg(t){if(GC()){let n=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&n instanceof ShadowRoot)return n}return null}function AF(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let n=t.shadowRoot.activeElement;if(n===t)break;t=n}return t}function ot(t){return t.composedPath?t.composedPath()[0]:t.target}var bg;try{bg=typeof Intl<"u"&&Intl.v8BreakIterator}catch{bg=!1}var _e=(()=>{class t{_platformId=f(so);isBrowser=this._platformId?Iw(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||bg)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var ma;function WC(){if(ma==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>ma=!0}))}finally{ma=ma||!1}return ma}function Di(t){return WC()?t:!!t.capture}function Gu(t,n=0){return qC(t)?Number(t):arguments.length===2?n:0}function qC(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function Ot(t){return t instanceof z?t.nativeElement:t}var YC=new y("cdk-input-modality-detector-options"),ZC={ignoreKeys:[18,17,224,91,16]},KC=650,_g={passive:!0,capture:!0},QC=(()=>{class t{_platform=f(_e);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new Re(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(r=>r===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=ot(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(pa(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=ot(e)};constructor(){let e=f(V),r=f(k),o=f(YC,{optional:!0});if(this._options=g(g({},ZC),o),this.modalityDetected=this._modality.pipe(Ki(1)),this.modalityChanged=this.modalityDetected.pipe(gc()),this._platform.isBrowser){let i=f($e).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[i.listen(r,"keydown",this._onKeydown,_g),i.listen(r,"mousedown",this._onMousedown,_g),i.listen(r,"touchstart",this._onTouchstart,_g)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ga=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(ga||{}),XC=new y("cdk-focus-monitor-default-options"),Wu=Di({passive:!0,capture:!0}),qu=(()=>{class t{_ngZone=f(V);_platform=f(_e);_inputModalityDetector=f(QC);_origin=null;_lastFocusOrigin=null;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=f(k);_stopInputModalityDetector=new R;constructor(){let e=f(XC,{optional:!0});this._detectionMode=e?.detectionMode||ga.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let r=ot(e);for(let o=r;o;o=o.parentElement)e.type==="focus"?this._onFocus(e,o):this._onBlur(e,o)};monitor(e,r=!1){let o=Ot(e);if(!this._platform.isBrowser||o.nodeType!==1)return S();let i=yg(o)||this._document,s=this._elementInfo.get(o);if(s)return r&&(s.checkChildren=!0),s.subject;let a={checkChildren:r,subject:new R,rootNode:i};return this._elementInfo.set(o,a),this._registerGlobalListeners(a),a.subject}stopMonitoring(e){let r=Ot(e),o=this._elementInfo.get(r);o&&(o.subject.complete(),this._setClasses(r),this._elementInfo.delete(r),this._removeGlobalListeners(o))}focusVia(e,r,o){let i=Ot(e),s=this._document.activeElement;i===s?this._getClosestElementsInfo(i).forEach(([a,c])=>this._originChanged(a,r,c)):(this._setOrigin(r),typeof i.focus=="function"&&i.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,r)=>this.stopMonitoring(r))}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===ga.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,r){e.classList.toggle("cdk-focused",!!r),e.classList.toggle("cdk-touch-focused",r==="touch"),e.classList.toggle("cdk-keyboard-focused",r==="keyboard"),e.classList.toggle("cdk-mouse-focused",r==="mouse"),e.classList.toggle("cdk-program-focused",r==="program")}_setOrigin(e,r=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&r,this._detectionMode===ga.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?KC:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(e,r){let o=this._elementInfo.get(r),i=ot(e);!o||!o.checkChildren&&r!==i||this._originChanged(r,this._getFocusOrigin(i),o)}_onBlur(e,r){let o=this._elementInfo.get(r);!o||o.checkChildren&&e.relatedTarget instanceof Node&&r.contains(e.relatedTarget)||(this._setClasses(r),this._emitOrigin(o,null))}_emitOrigin(e,r){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(r))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let r=e.rootNode,o=this._rootNodeFocusListenerCount.get(r)||0;o||this._ngZone.runOutsideAngular(()=>{r.addEventListener("focus",this._rootNodeFocusAndBlurListener,Wu),r.addEventListener("blur",this._rootNodeFocusAndBlurListener,Wu)}),this._rootNodeFocusListenerCount.set(r,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(jt(this._stopInputModalityDetector)).subscribe(i=>{this._setOrigin(i,!0)}))}_removeGlobalListeners(e){let r=e.rootNode;if(this._rootNodeFocusListenerCount.has(r)){let o=this._rootNodeFocusListenerCount.get(r);o>1?this._rootNodeFocusListenerCount.set(r,o-1):(r.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Wu),r.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Wu),this._rootNodeFocusListenerCount.delete(r))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,r,o){this._setClasses(e,r),this._emitOrigin(o,r),this._lastFocusOrigin=r}_getClosestElementsInfo(e){let r=[];return this._elementInfo.forEach((o,i)=>{(i===e||o.checkChildren&&i.contains(e))&&r.push([i,o])}),r}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:r,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!r||r===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let i=e.labels;if(i){for(let s=0;s{class t{_elementRef=f(z);_focusMonitor=f(qu);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new H;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(r=>{this._focusOrigin=r,this.cdkFocusChange.emit(r)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||t)};static \u0275dir=M({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();function mo(t){return Array.isArray(t)?t:[t]}var JC=new Set,go,Yu=(()=>{class t{_platform=f(_e);_nonce=f(ao,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):OF}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&NF(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function NF(t,n){if(!JC.has(t))try{go||(go=document.createElement("style"),n&&go.setAttribute("nonce",n),go.setAttribute("type","text/css"),document.head.appendChild(go)),go.sheet&&(go.sheet.insertRule(`@media ${t} {body{ }}`,0),JC.add(t))}catch(e){console.error(e)}}function OF(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var Dg=(()=>{class t{_mediaMatcher=f(Yu);_zone=f(V);_queries=new Map;_destroySubject=new R;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return eI(mo(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let o=eI(mo(e)).map(s=>this._registerQuery(s).observable),i=Ro(o);return i=ln(i.pipe(Oe(1)),i.pipe(Ki(1),Lr(0))),i.pipe(L(s=>{let a={matches:!1,breakpoints:{}};return s.forEach(({matches:c,query:l})=>{a.matches=a.matches||c,a.breakpoints[l]=c}),a}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let r=this._mediaMatcher.matchMedia(e),i={observable:new P(s=>{let a=c=>this._zone.run(()=>s.next(c));return r.addListener(a),()=>{r.removeListener(a)}}).pipe(No(r),L(({matches:s})=>({query:e,matches:s})),jt(this._destroySubject)),mql:r};return this._queries.set(e,i),i}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function eI(t){return t.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}function kF(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let n=0;n{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),nI=(()=>{class t{_mutationObserverFactory=f(tI);_observedElements=new Map;_ngZone=f(V);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,r)=>this._cleanupObserver(r))}observe(e){let r=Ot(e);return new P(o=>{let s=this._observeElement(r).pipe(L(a=>a.filter(c=>!kF(c))),he(a=>!!a.length)).subscribe(a=>{this._ngZone.run(()=>{o.next(a)})});return()=>{s.unsubscribe(),this._unobserveElement(r)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let r=new R,o=this._mutationObserverFactory.create(i=>r.next(i));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:r,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:r,stream:o}=this._observedElements.get(e);r&&r.disconnect(),o.complete(),this._observedElements.delete(e)}}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),x7=(()=>{class t{_contentObserver=f(nI);_elementRef=f(z);event=new H;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(e){this._debounce=Gu(e),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(Lr(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||t)};static \u0275dir=M({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",ue],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),rI=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=X({type:t});static \u0275inj=Y({providers:[tI]})}return t})();var aI=(()=>{class t{_platform=f(_e);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return PF(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let r=FF(zF(e));if(r&&(oI(r)===-1||!this.isVisible(r)))return!1;let o=e.nodeName.toLowerCase(),i=oI(e);return e.hasAttribute("contenteditable")?i!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!HF(e)?!1:o==="audio"?e.hasAttribute("controls")?i!==-1:!1:o==="video"?i===-1?!1:i!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,r){return $F(e)&&!this.isDisabled(e)&&(r?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function FF(t){try{return t.frameElement}catch{return null}}function PF(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function LF(t){let n=t.nodeName.toLowerCase();return n==="input"||n==="select"||n==="button"||n==="textarea"}function jF(t){return BF(t)&&t.type=="hidden"}function VF(t){return UF(t)&&t.hasAttribute("href")}function BF(t){return t.nodeName.toLowerCase()=="input"}function UF(t){return t.nodeName.toLowerCase()=="a"}function cI(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let n=t.getAttribute("tabindex");return!!(n&&!isNaN(parseInt(n,10)))}function oI(t){if(!cI(t))return null;let n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}function HF(t){let n=t.nodeName.toLowerCase(),e=n==="input"&&t.type;return e==="text"||e==="password"||n==="select"||n==="textarea"}function $F(t){return jF(t)?!1:LF(t)||VF(t)||t.hasAttribute("contenteditable")||cI(t)}function zF(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var Zu=class{_element;_checker;_ngZone;_document;_injector;_startAnchor=null;_endAnchor=null;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_enabled=!0;constructor(n,e,r,o,i=!1,s){this._element=n,this._checker=e,this._ngZone=r,this._document=o,this._injector=s,i||this.attachAnchors()}destroy(){let n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){let e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return n=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let r=this._getFirstTabbableElement(e);return r?.focus(n),!!r}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){let e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){let e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;let e=n.children;for(let r=0;r=0;r--){let o=e[r].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[r]):null;if(o)return o}return null}_createAnchor(){let n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._injector?At(n,{injector:this._injector}):setTimeout(n)}},GF=(()=>{class t{_checker=f(aI);_ngZone=f(V);_document=f(k);_injector=f(W);constructor(){f(Nt).load($u)}create(e,r=!1){return new Zu(e,this._checker,this._ngZone,this._document,r,this._injector)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var lI=new y("liveAnnouncerElement",{providedIn:"root",factory:()=>null}),uI=new y("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),WF=0,qF=(()=>{class t{_ngZone=f(V);_defaultOptions=f(uI,{optional:!0});_liveElement;_document=f(k);_sanitizer=f(ia);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=f(lI,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...r){let o=this._defaultOptions,i,s;return r.length===1&&typeof r[0]=="number"?s=r[0]:[i,s]=r,this.clear(),clearTimeout(this._previousTimeout),i||(i=o&&o.politeness?o.politeness:"polite"),s==null&&o&&(s=o.duration),this._liveElement.setAttribute("aria-live",i),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(a=>this._currentResolve=a)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{!e||typeof e=="string"?this._liveElement.textContent=e:LC(this._liveElement,e,this._sanitizer),typeof s=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),s)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",r=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let i=0;i .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{class t{_platform=f(_e);_hasCheckedHighContrastMode=!1;_document=f(k);_breakpointSubscription;constructor(){this._breakpointSubscription=f(Dg).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return wr.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let r=this._document.defaultView||window,o=r&&r.getComputedStyle?r.getComputedStyle(e):null,i=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),i){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return wr.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return wr.BLACK_ON_WHITE}return wr.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(Eg,iI,sI),this._hasCheckedHighContrastMode=!0;let r=this.getHighContrastMode();r===wr.BLACK_ON_WHITE?e.add(Eg,iI):r===wr.WHITE_ON_BLACK&&e.add(Eg,sI)}}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),YF=(()=>{class t{constructor(){f(dI)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(r){return new(r||t)};static \u0275mod=X({type:t});static \u0275inj=Y({imports:[rI]})}return t})();var ZF=200,Ei=class{_letterKeyStream=new R;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new R;selectedItem=this._selectedItem;constructor(n,e){let r=typeof e?.debounceInterval=="number"?e.debounceInterval:ZF;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(n),this._setupKeyHandler(r)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(n){this._selectedItemIndex=n}setItems(n){this._items=n}handleKey(n){let e=n.keyCode;n.key&&n.key.length===1?this._letterKeyStream.next(n.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(n){this._letterKeyStream.pipe(Ue(e=>this._pressedLetters.push(e)),Lr(n),he(()=>this._pressedLetters.length>0),L(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let r=1;rt[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var wi=class{_items;_activeItemIndex=Q(-1);_activeItem=Q(null);_wrap=!1;_typeaheadSubscription=G.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal=null;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=n=>n.disabled;constructor(n,e){this._items=n,n instanceof Un?this._itemChangesSubscription=n.changes.subscribe(r=>this._itemsChanged(r.toArray())):si(n)&&(this._effectRef=Es(()=>this._itemsChanged(n()),{injector:e}))}tabOut=new R;change=new R;skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new Ei(e,{debounceInterval:typeof n=="number"?n:void 0,skipPredicate:r=>this._skipPredicateFn(r)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(r=>{this.setActiveItem(r)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(n=!0){return this._homeAndEnd=n,this}withPageUpDown(n=!0,e=10){return this._pageUpAndDown={enabled:n,delta:e},this}setActiveItem(n){let e=this._activeItem();this.updateActiveItem(n),this._activeItem()!==e&&this.change.next(this._activeItemIndex())}onKeydown(n){let e=n.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(i=>!n[i]||this._allowedModifierKeys.indexOf(i)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&o){this.setNextItemActive();break}else return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&o){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&o){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&o){let i=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(i>0?i:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&o){let i=this._activeItemIndex()+this._pageUpAndDown.delta,s=this._getItemsArray().length;this._setActiveItemByIndex(i-1&&r!==this._activeItemIndex()&&(this._activeItemIndex.set(r),this._typeahead?.setCurrentSelectedItemIndex(r))}}};var wg=class extends wi{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}};var Cg=class extends wi{_origin="program";setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}};function Ig(t){return Vt(t)?t:S(t)}var Sg=class{_activeItemIndex=-1;_activeItem=null;_shouldActivationFollowFocus=!1;_horizontalOrientation="ltr";_skipPredicateFn=n=>!1;_trackByFn=n=>n;_items=[];_typeahead;_typeaheadSubscription=G.EMPTY;_hasInitialFocused=!1;_initializeFocus(){if(this._hasInitialFocused||this._items.length===0)return;let n=0;for(let r=0;rthis._itemsChanged(r.toArray()))):Vt(n)?n.subscribe(r=>this._itemsChanged(r)):(this._items=n,this._initializeFocus()),typeof e.shouldActivationFollowFocus=="boolean"&&(this._shouldActivationFollowFocus=e.shouldActivationFollowFocus),e.horizontalOrientation&&(this._horizontalOrientation=e.horizontalOrientation),e.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),e.trackBy&&(this._trackByFn=e.trackBy),typeof e.typeAheadDebounceInterval<"u"&&this._setTypeAhead(e.typeAheadDebounceInterval)}change=new R;destroy(){this._typeaheadSubscription.unsubscribe(),this._typeahead?.destroy(),this.change.complete()}onKeydown(n){switch(n.key){case"Tab":return;case"ArrowDown":this._focusNextItem();break;case"ArrowUp":this._focusPreviousItem();break;case"ArrowRight":this._horizontalOrientation==="rtl"?this._collapseCurrentItem():this._expandCurrentItem();break;case"ArrowLeft":this._horizontalOrientation==="rtl"?this._expandCurrentItem():this._collapseCurrentItem();break;case"Home":this._focusFirstItem();break;case"End":this._focusLastItem();break;case"Enter":case" ":this._activateCurrentItem();break;default:if(n.key==="*"){this._expandAllItemsAtCurrentItemLevel();break}this._typeahead?.handleKey(n);return}this._typeahead?.reset(),n.preventDefault()}getActiveItemIndex(){return this._activeItemIndex}getActiveItem(){return this._activeItem}_itemsChanged(n){this._hasInitialFocused&&this._activeItem&&!n.includes(this._activeItem)&&(this._activeItem=null,this._hasInitialFocused=!1),this._items=n,this._typeahead?.setItems(this._items),this._updateActiveItemIndex(this._items),this._initializeFocus()}_focusFirstItem(){this.focusItem(this._findNextAvailableItemIndex(-1))}_focusLastItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._items.length))}_focusNextItem(){this.focusItem(this._findNextAvailableItemIndex(this._activeItemIndex))}_focusPreviousItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._activeItemIndex))}focusItem(n,e={}){e.emitChangeEvent??=!0;let r=typeof n=="number"?n:this._items.findIndex(s=>this._trackByFn(s)===this._trackByFn(n));if(r<0||r>=this._items.length)return;let o=this._items[r];if(this._activeItem!==null&&this._trackByFn(o)===this._trackByFn(this._activeItem))return;let i=this._activeItem;this._activeItem=o??null,this._activeItemIndex=r,this._typeahead?.setCurrentSelectedItemIndex(r),this._activeItem?.focus(),i?.unfocus(),e.emitChangeEvent&&this.change.next(this._activeItem),this._shouldActivationFollowFocus&&this._activateCurrentItem()}_updateActiveItemIndex(n){let e=this._activeItem;if(!e)return;let r=n.findIndex(o=>this._trackByFn(o)===this._trackByFn(e));r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r,this._typeahead?.setCurrentSelectedItemIndex(r))}_setTypeAhead(n){this._typeahead=new Ei(this._items,{debounceInterval:typeof n=="number"?n:void 0,skipPredicate:e=>this._skipPredicateFn(e)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(e=>{this.focusItem(e)})}_findNextAvailableItemIndex(n){for(let e=n+1;e=0;e--)if(!this._skipPredicateFn(this._items[e]))return e;return n}_collapseCurrentItem(){if(this._activeItem)if(this._isCurrentItemExpanded())this._activeItem.collapse();else{let n=this._activeItem.getParent();if(!n||this._skipPredicateFn(n))return;this.focusItem(n)}}_expandCurrentItem(){this._activeItem&&(this._isCurrentItemExpanded()?Ig(this._activeItem.getChildren()).pipe(Oe(1)).subscribe(n=>{let e=n.find(r=>!this._skipPredicateFn(r));e&&this.focusItem(e)}):this._activeItem.expand())}_isCurrentItemExpanded(){return this._activeItem?typeof this._activeItem.isExpanded=="boolean"?this._activeItem.isExpanded:this._activeItem.isExpanded():!1}_isItemDisabled(n){return typeof n.isDisabled=="boolean"?n.isDisabled:n.isDisabled?.()}_expandAllItemsAtCurrentItemLevel(){if(!this._activeItem)return;let n=this._activeItem.getParent(),e;n?e=Ig(n.getChildren()):e=S(this._items.filter(r=>r.getParent()===null)),e.pipe(Oe(1)).subscribe(r=>{for(let o of r)o.expand()})}_activateCurrentItem(){this._activeItem?.activate()}},EK=new y("tree-key-manager",{providedIn:"root",factory:()=>(t,n)=>new Sg(t,n)});var Mg={},va=class t{_appId=f(_r);static _infix=`a${Math.floor(Math.random()*1e5).toString()}`;getId(n,e=!1){return this._appId!=="ng"&&(n+=this._appId),Mg.hasOwnProperty(n)||(Mg[n]=0),`${n}${e?t._infix+"-":""}${Mg[n]++}`}static \u0275fac=function(e){return new(e||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})};var hI=" ";function KF(t,n,e){let r=Xu(t,n);e=e.trim(),!r.some(o=>o.trim()===e)&&(r.push(e),t.setAttribute(n,r.join(hI)))}function QF(t,n,e){let r=Xu(t,n);e=e.trim();let o=r.filter(i=>i!==e);o.length?t.setAttribute(n,o.join(hI)):t.removeAttribute(n)}function Xu(t,n){return t.getAttribute(n)?.match(/\S+/g)??[]}var pI="cdk-describedby-message",Qu="cdk-describedby-host",xg=0,PK=(()=>{class t{_platform=f(_e);_document=f(k);_messageRegistry=new Map;_messagesContainer=null;_id=`${xg++}`;constructor(){f(Nt).load($u),this._id=f(_r)+"-"+xg++}describe(e,r,o){if(!this._canBeDescribed(e,r))return;let i=Tg(r,o);typeof r!="string"?(fI(r,this._id),this._messageRegistry.set(i,{messageElement:r,referenceCount:0})):this._messageRegistry.has(i)||this._createMessageElement(r,o),this._isElementDescribedByMessage(e,i)||this._addMessageReference(e,i)}removeDescription(e,r,o){if(!r||!this._isElementNode(e))return;let i=Tg(r,o);if(this._isElementDescribedByMessage(e,i)&&this._removeMessageReference(e,i),typeof r=="string"){let s=this._messageRegistry.get(i);s&&s.referenceCount===0&&this._deleteMessageElement(i)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${Qu}="${this._id}"]`);for(let r=0;ro.indexOf(pI)!=0);e.setAttribute("aria-describedby",r.join(" "))}_addMessageReference(e,r){let o=this._messageRegistry.get(r);KF(e,"aria-describedby",o.messageElement.id),e.setAttribute(Qu,this._id),o.referenceCount++}_removeMessageReference(e,r){let o=this._messageRegistry.get(r);o.referenceCount--,QF(e,"aria-describedby",o.messageElement.id),e.removeAttribute(Qu)}_isElementDescribedByMessage(e,r){let o=Xu(e,"aria-describedby"),i=this._messageRegistry.get(r),s=i&&i.messageElement.id;return!!s&&o.indexOf(s)!=-1}_canBeDescribed(e,r){if(!this._isElementNode(e))return!1;if(r&&typeof r=="object")return!0;let o=r==null?"":`${r}`.trim(),i=e.getAttribute("aria-label");return o?!i||i.trim()!==o:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Tg(t,n){return typeof t=="string"?`${n||""}/${t}`:t}function fI(t,n){t.id||(t.id=`${pI}-${n}-${xg++}`)}var on=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(on||{}),Ju,vo;function ed(){if(vo==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return vo=!1,vo;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)vo=!0;else{let t=Element.prototype.scrollTo;t?vo=!/\{\s*\[native code\]\s*\}/.test(t.toString()):vo=!1}}return vo}function Ci(){if(typeof document!="object"||!document)return on.NORMAL;if(Ju==null){let t=document.createElement("div"),n=t.style;t.dir="rtl",n.width="1px",n.overflow="auto",n.visibility="hidden",n.pointerEvents="none",n.position="absolute";let e=document.createElement("div"),r=e.style;r.width="2px",r.height="1px",t.appendChild(e),document.body.appendChild(t),Ju=on.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,Ju=t.scrollLeft===0?on.NEGATED:on.INVERTED),t.remove()}return Ju}function Ag(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var Ii,mI=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function WK(){if(Ii)return Ii;if(typeof document!="object"||!document)return Ii=new Set(mI),Ii;let t=document.createElement("input");return Ii=new Set(mI.filter(n=>(t.setAttribute("type",n),t.type===n))),Ii}var QK={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var XF=new y("MATERIAL_ANIMATIONS"),gI=null;function JF(){return f(XF,{optional:!0})?.animationsDisabled||f(Fs,{optional:!0})==="NoopAnimations"?"di-disabled":(gI??=f(Yu).matchMedia("(prefers-reduced-motion)").matches,gI?"reduced-motion":"enabled")}function Cr(){return JF()!=="enabled"}function Ie(t){return t==null?"":typeof t=="string"?t:`${t}px`}function oQ(t){return t!=null&&`${t}`!="false"}var kt=(function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t})(kt||{}),Rg=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=kt.HIDDEN;constructor(n,e,r,o=!1){this._renderer=n,this.element=e,this.config=r,this._animationForciblyDisabledThroughCss=o}fadeOut(){this._renderer.fadeOutRipple(this)}},vI=Di({passive:!0,capture:!0}),Ng=class{_events=new Map;addHandler(n,e,r,o){let i=this._events.get(e);if(i){let s=i.get(r);s?s.add(o):i.set(r,new Set([o]))}else this._events.set(e,new Map([[r,new Set([o])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,vI)})}removeHandler(n,e,r){let o=this._events.get(n);if(!o)return;let i=o.get(e);i&&(i.delete(r),i.size===0&&o.delete(e),o.size===0&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,vI)))}_delegateEventHandler=n=>{let e=ot(n);e&&this._events.get(n.type)?.forEach((r,o)=>{(o===e||o.contains(e))&&r.forEach(i=>i.handleEvent(n))})}},ya={enterDuration:225,exitDuration:150},eP=800,yI=Di({passive:!0,capture:!0}),bI=["mousedown","touchstart"],_I=["mouseup","mouseleave","touchend","touchcancel"],tP=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=xe({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(r,o){},styles:[`.mat-ripple { overflow: hidden; position: relative; } @@ -85,7 +85,7 @@ ${e.map((r,o)=>`${o+1}) ${r.toString()}`).join(` .cdk-drag-preview .mat-ripple-element, .cdk-drag-placeholder .mat-ripple-element { display: none; } -`],encapsulation:2,changeDetection:0})}return t})(),ba=class t{_target;_ngZone;_platform;_containerElement;_triggerElement=null;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple=null;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect=null;static _eventManager=new Ag;constructor(n,e,r,o,i){this._target=n,this._ngZone=e,this._platform=o,o.isBrowser&&(this._containerElement=Ot(r)),i&&i.get(Nt).load(qF)}fadeInRipple(n,e,r={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),i=g(g({},ya),r.animation);r.centered&&(n=o.left+o.width/2,e=o.top+o.height/2);let s=r.radius||YF(n,e,o),a=n-o.left,c=e-o.top,l=i.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=`${a-s}px`,u.style.top=`${c-s}px`,u.style.height=`${s*2}px`,u.style.width=`${s*2}px`,r.color!=null&&(u.style.backgroundColor=r.color),u.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(u);let d=window.getComputedStyle(u),h=d.transitionProperty,p=d.transitionDuration,m=h==="none"||p==="0s"||p==="0s, 0s"||o.width===0&&o.height===0,_=new xg(this,u,r,m);u.style.transform="scale3d(1, 1, 1)",_.state=kt.FADING_IN,r.persistent||(this._mostRecentTransientRipple=_);let D=null;return!m&&(l||i.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let C=()=>{D&&(D.fallbackTimer=null),clearTimeout(De),this._finishRippleTransition(_)},z=()=>this._destroyRipple(_),De=setTimeout(z,l+100);u.addEventListener("transitionend",C),u.addEventListener("transitioncancel",z),D={onTransitionEnd:C,onTransitionCancel:z,fallbackTimer:De}}),this._activeRipples.set(_,D),(m||!l)&&this._finishRippleTransition(_),_}fadeOutRipple(n){if(n.state===kt.FADING_OUT||n.state===kt.HIDDEN)return;let e=n.element,r=g(g({},ya),n.config.animation);e.style.transitionDuration=`${r.exitDuration}ms`,e.style.opacity="0",n.state=kt.FADING_OUT,(n._animationForciblyDisabledThroughCss||!r.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){let e=Ot(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,pI.forEach(r=>{t._eventManager.addHandler(this._ngZone,r,e,this)}))}handleEvent(n){n.type==="mousedown"?this._onMousedown(n):n.type==="touchstart"?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{mI.forEach(e=>{this._triggerElement.addEventListener(e,this,hI)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===kt.FADING_IN?this._startFadeOutTransition(n):n.state===kt.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){let e=n===this._mostRecentTransientRipple,{persistent:r}=n.config;n.state=kt.VISIBLE,!r&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){let e=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=kt.HIDDEN,e!==null&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),n.element.remove()}_onMousedown(n){let e=ha(n),r=this._lastTouchStartEvent&&Date.now(){let e=n.state===kt.VISIBLE||n.config.terminateOnPointerUp&&n.state===kt.FADING_IN;!n.config.persistent&&e&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let n=this._triggerElement;n&&(pI.forEach(e=>t._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&(mI.forEach(e=>n.removeEventListener(e,this,hI)),this._pointerUpEventsRegistered=!1))}};function YF(t,n,e){let r=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(r*r+o*o)}var Rg=new y("mat-ripple-global-options"),JK=(()=>{class t{_elementRef=f($);_animationsDisabled=Cr();color;unbounded=!1;centered=!1;radius=0;animation;get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let e=f(j),r=f(_e),o=f(Rg,{optional:!0}),i=f(W);this._globalOptions=o||{},this._rippleRenderer=new ba(this,e,this._elementRef,r,i)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:g(g(g({},this._globalOptions.animation),this._animationsDisabled?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,r=0,o){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,r,g(g({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,g(g({},this.rippleConfig),e))}static \u0275fac=function(r){return new(r||t)};static \u0275dir=T({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(r,o){r&2&&Xe("mat-ripple-unbounded",o.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return t})();var ZF={capture:!0},KF=["focus","mousedown","mouseenter","touchstart"],Ng="mat-ripple-loader-uninitialized",Og="mat-ripple-loader-class-name",gI="mat-ripple-loader-centered",Ju="mat-ripple-loader-disabled",vI=(()=>{class t{_document=f(O);_animationsDisabled=Cr();_globalRippleOptions=f(Rg,{optional:!0});_platform=f(_e);_ngZone=f(j);_injector=f(W);_eventCleanups;_hosts=new Map;constructor(){let e=f(He).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>KF.map(r=>e.listen(this._document,r,this._onInteraction,ZF)))}ngOnDestroy(){let e=this._hosts.keys();for(let r of e)this.destroyRipple(r);this._eventCleanups.forEach(r=>r())}configureRipple(e,r){e.setAttribute(Ng,this._globalRippleOptions?.namespace??""),(r.className||!e.hasAttribute(Og))&&e.setAttribute(Og,r.className||""),r.centered&&e.setAttribute(gI,""),r.disabled&&e.setAttribute(Ju,"")}setDisabled(e,r){let o=this._hosts.get(e);o?(o.target.rippleDisabled=r,!r&&!o.hasSetUpEvents&&(o.hasSetUpEvents=!0,o.renderer.setupTriggerEvents(e))):r?e.setAttribute(Ju,""):e.removeAttribute(Ju)}_onInteraction=e=>{let r=ot(e);if(r instanceof HTMLElement){let o=r.closest(`[${Ng}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let r=this._document.createElement("span");r.classList.add("mat-ripple",e.getAttribute(Og)),e.append(r);let o=this._globalRippleOptions,i=this._animationsDisabled?0:o?.animation?.enterDuration??ya.enterDuration,s=this._animationsDisabled?0:o?.animation?.exitDuration??ya.exitDuration,a={rippleDisabled:this._animationsDisabled||o?.disabled||e.hasAttribute(Ju),rippleConfig:{centered:e.hasAttribute(gI),terminateOnPointerUp:o?.terminateOnPointerUp,animation:{enterDuration:i,exitDuration:s}}},c=new ba(a,this._ngZone,r,this._platform,this._injector),l=!a.rippleDisabled;l&&c.setupTriggerEvents(e),this._hosts.set(e,{target:a,renderer:c,hasSetUpEvents:l}),e.removeAttribute(Ng)}destroyRipple(e){let r=this._hosts.get(e);r&&(r.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var yI=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Te({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(r,o){},styles:[`.mat-focus-indicator { +`],encapsulation:2,changeDetection:0})}return t})(),ba=class t{_target;_ngZone;_platform;_containerElement;_triggerElement=null;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple=null;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect=null;static _eventManager=new Ng;constructor(n,e,r,o,i){this._target=n,this._ngZone=e,this._platform=o,o.isBrowser&&(this._containerElement=Ot(r)),i&&i.get(Nt).load(tP)}fadeInRipple(n,e,r={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),i=g(g({},ya),r.animation);r.centered&&(n=o.left+o.width/2,e=o.top+o.height/2);let s=r.radius||nP(n,e,o),a=n-o.left,c=e-o.top,l=i.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=`${a-s}px`,u.style.top=`${c-s}px`,u.style.height=`${s*2}px`,u.style.width=`${s*2}px`,r.color!=null&&(u.style.backgroundColor=r.color),u.style.transitionDuration=`${l}ms`,this._containerElement.appendChild(u);let d=window.getComputedStyle(u),h=d.transitionProperty,p=d.transitionDuration,m=h==="none"||p==="0s"||p==="0s, 0s"||o.width===0&&o.height===0,_=new Rg(this,u,r,m);u.style.transform="scale3d(1, 1, 1)",_.state=kt.FADING_IN,r.persistent||(this._mostRecentTransientRipple=_);let D=null;return!m&&(l||i.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let C=()=>{D&&(D.fallbackTimer=null),clearTimeout(De),this._finishRippleTransition(_)},$=()=>this._destroyRipple(_),De=setTimeout($,l+100);u.addEventListener("transitionend",C),u.addEventListener("transitioncancel",$),D={onTransitionEnd:C,onTransitionCancel:$,fallbackTimer:De}}),this._activeRipples.set(_,D),(m||!l)&&this._finishRippleTransition(_),_}fadeOutRipple(n){if(n.state===kt.FADING_OUT||n.state===kt.HIDDEN)return;let e=n.element,r=g(g({},ya),n.config.animation);e.style.transitionDuration=`${r.exitDuration}ms`,e.style.opacity="0",n.state=kt.FADING_OUT,(n._animationForciblyDisabledThroughCss||!r.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){let e=Ot(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,bI.forEach(r=>{t._eventManager.addHandler(this._ngZone,r,e,this)}))}handleEvent(n){n.type==="mousedown"?this._onMousedown(n):n.type==="touchstart"?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{_I.forEach(e=>{this._triggerElement.addEventListener(e,this,yI)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===kt.FADING_IN?this._startFadeOutTransition(n):n.state===kt.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){let e=n===this._mostRecentTransientRipple,{persistent:r}=n.config;n.state=kt.VISIBLE,!r&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){let e=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=kt.HIDDEN,e!==null&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),n.element.remove()}_onMousedown(n){let e=ha(n),r=this._lastTouchStartEvent&&Date.now(){let e=n.state===kt.VISIBLE||n.config.terminateOnPointerUp&&n.state===kt.FADING_IN;!n.config.persistent&&e&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let n=this._triggerElement;n&&(bI.forEach(e=>t._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&(_I.forEach(e=>n.removeEventListener(e,this,yI)),this._pointerUpEventsRegistered=!1))}};function nP(t,n,e){let r=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(r*r+o*o)}var Og=new y("mat-ripple-global-options"),bQ=(()=>{class t{_elementRef=f(z);_animationsDisabled=Cr();color;unbounded=!1;centered=!1;radius=0;animation;get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let e=f(V),r=f(_e),o=f(Og,{optional:!0}),i=f(W);this._globalOptions=o||{},this._rippleRenderer=new ba(this,e,this._elementRef,r,i)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:g(g(g({},this._globalOptions.animation),this._animationsDisabled?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,r=0,o){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,r,g(g({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,g(g({},this.rippleConfig),e))}static \u0275fac=function(r){return new(r||t)};static \u0275dir=M({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(r,o){r&2&&Xe("mat-ripple-unbounded",o.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return t})();var rP={capture:!0},oP=["focus","mousedown","mouseenter","touchstart"],kg="mat-ripple-loader-uninitialized",Fg="mat-ripple-loader-class-name",DI="mat-ripple-loader-centered",td="mat-ripple-loader-disabled",EI=(()=>{class t{_document=f(k);_animationsDisabled=Cr();_globalRippleOptions=f(Og,{optional:!0});_platform=f(_e);_ngZone=f(V);_injector=f(W);_eventCleanups;_hosts=new Map;constructor(){let e=f($e).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>oP.map(r=>e.listen(this._document,r,this._onInteraction,rP)))}ngOnDestroy(){let e=this._hosts.keys();for(let r of e)this.destroyRipple(r);this._eventCleanups.forEach(r=>r())}configureRipple(e,r){e.setAttribute(kg,this._globalRippleOptions?.namespace??""),(r.className||!e.hasAttribute(Fg))&&e.setAttribute(Fg,r.className||""),r.centered&&e.setAttribute(DI,""),r.disabled&&e.setAttribute(td,"")}setDisabled(e,r){let o=this._hosts.get(e);o?(o.target.rippleDisabled=r,!r&&!o.hasSetUpEvents&&(o.hasSetUpEvents=!0,o.renderer.setupTriggerEvents(e))):r?e.setAttribute(td,""):e.removeAttribute(td)}_onInteraction=e=>{let r=ot(e);if(r instanceof HTMLElement){let o=r.closest(`[${kg}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let r=this._document.createElement("span");r.classList.add("mat-ripple",e.getAttribute(Fg)),e.append(r);let o=this._globalRippleOptions,i=this._animationsDisabled?0:o?.animation?.enterDuration??ya.enterDuration,s=this._animationsDisabled?0:o?.animation?.exitDuration??ya.exitDuration,a={rippleDisabled:this._animationsDisabled||o?.disabled||e.hasAttribute(td),rippleConfig:{centered:e.hasAttribute(DI),terminateOnPointerUp:o?.terminateOnPointerUp,animation:{enterDuration:i,exitDuration:s}}},c=new ba(a,this._ngZone,r,this._platform,this._injector),l=!a.rippleDisabled;l&&c.setupTriggerEvents(e),this._hosts.set(e,{target:a,renderer:c,hasSetUpEvents:l}),e.removeAttribute(kg)}destroyRipple(e){let r=this._hosts.get(e);r&&(r.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var wI=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=xe({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(r,o){},styles:[`.mat-focus-indicator { position: relative; } .mat-focus-indicator::before { @@ -111,7 +111,7 @@ ${e.map((r,o)=>`${o+1}) ${r.toString()}`).join(` --mat-focus-indicator-display: block; } } -`],encapsulation:2,changeDetection:0})}return t})();var QF=["mat-icon-button",""],XF=["*"],JF=new y("MAT_BUTTON_CONFIG");function bI(t){return t==null?void 0:wm(t)}var kg=(()=>{class t{_elementRef=f($);_ngZone=f(j);_animationsDisabled=Cr();_config=f(JF,{optional:!0});_focusMonitor=f(Gu);_cleanupClick;_renderer=f(Le);_rippleLoader=f(vI);_isAnchor;_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(e){this.tabIndex=e}constructor(){f(Nt).load(yI);let e=this._elementRef.nativeElement;this._isAnchor=e.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??!1,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(e,{className:"mat-mdc-button-ripple"})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0),this._isAnchor&&this._setupAsAnchor()}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",r){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,r):this._elementRef.nativeElement.focus(r)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}))}static \u0275fac=function(r){return new(r||t)};static \u0275dir=T({type:t,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(r,o){r&2&&(yt("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled())("tabindex",o._getTabIndex()),zs(o.color?"mat-"+o.color:""),Xe("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("mat-unthemed",!o.color)("_mat-animation-noopable",o._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",ue],disabled:[2,"disabled","disabled",ue],ariaDisabled:[2,"aria-disabled","ariaDisabled",ue],disabledInteractive:[2,"disabledInteractive","disabledInteractive",ue],tabIndex:[2,"tabIndex","tabIndex",bI],_tabindex:[2,"tabindex","_tabindex",bI]}})}return t})(),eP=(()=>{class t extends kg{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Te({type:t,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[ie],attrs:QF,ngContentSelectors:XF,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(r,o){r&1&&(Dr(),Gn(0,"span",0),_n(1),Gn(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button { +`],encapsulation:2,changeDetection:0})}return t})();var iP=["mat-icon-button",""],sP=["*"],aP=new y("MAT_BUTTON_CONFIG");function CI(t){return t==null?void 0:Sm(t)}var Pg=(()=>{class t{_elementRef=f(z);_ngZone=f(V);_animationsDisabled=Cr();_config=f(aP,{optional:!0});_focusMonitor=f(qu);_cleanupClick;_renderer=f(Le);_rippleLoader=f(EI);_isAnchor;_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(e){this.tabIndex=e}constructor(){f(Nt).load(wI);let e=this._elementRef.nativeElement;this._isAnchor=e.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??!1,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(e,{className:"mat-mdc-button-ripple"})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0),this._isAnchor&&this._setupAsAnchor()}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",r){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,r):this._elementRef.nativeElement.focus(r)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}))}static \u0275fac=function(r){return new(r||t)};static \u0275dir=M({type:t,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(r,o){r&2&&(lt("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled())("tabindex",o._getTabIndex()),zs(o.color?"mat-"+o.color:""),Xe("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("mat-unthemed",!o.color)("_mat-animation-noopable",o._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",ue],disabled:[2,"disabled","disabled",ue],ariaDisabled:[2,"aria-disabled","ariaDisabled",ue],disabledInteractive:[2,"disabledInteractive","disabledInteractive",ue],tabIndex:[2,"tabIndex","tabIndex",CI],_tabindex:[2,"tabindex","_tabindex",CI]}})}return t})(),cP=(()=>{class t extends Pg{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=xe({type:t,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[te],attrs:iP,ngContentSelectors:sP,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(r,o){r&1&&(Dr(),Gn(0,"span",0),_n(1),Gn(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button { -webkit-user-select: none; user-select: none; display: inline-block; @@ -236,7 +236,7 @@ ${e.map((r,o)=>`${o+1}) ${r.toString()}`).join(` outline: solid 1px; } } -`],encapsulation:2,changeDetection:0})}return t})();var _I=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=Q({type:t});static \u0275inj=q({imports:[rn]})}return t})();var tP=["matButton",""],nP=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],rP=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var DI=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]),SQ=(()=>{class t extends kg{get appearance(){return this._appearance}set appearance(e){this.setAppearance(e||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let e=oP(this._elementRef.nativeElement);e&&this.setAppearance(e)}setAppearance(e){if(e===this._appearance)return;let r=this._elementRef.nativeElement.classList,o=this._appearance?DI.get(this._appearance):null,i=DI.get(e);o&&r.remove(...o),r.add(...i),this._appearance=e}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Te({type:t,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[ie],attrs:tP,ngContentSelectors:rP,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(r,o){r&1&&(Dr(nP),Gn(0,"span",0),_n(1),ai(2,"span",1),_n(3,1),ci(),_n(4,2),Gn(5,"span",2)(6,"span",3)),r&2&&Xe("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[`.mat-mdc-button-base { +`],encapsulation:2,changeDetection:0})}return t})();var II=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=X({type:t});static \u0275inj=Y({imports:[rn]})}return t})();var lP=["matButton",""],uP=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],dP=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var SI=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]),WQ=(()=>{class t extends Pg{get appearance(){return this._appearance}set appearance(e){this.setAppearance(e||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let e=fP(this._elementRef.nativeElement);e&&this.setAppearance(e)}setAppearance(e){if(e===this._appearance)return;let r=this._elementRef.nativeElement.classList,o=this._appearance?SI.get(this._appearance):null,i=SI.get(e);o&&r.remove(...o),r.add(...i),this._appearance=e}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=xe({type:t,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[te],attrs:lP,ngContentSelectors:dP,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(r,o){r&1&&(Dr(uP),Gn(0,"span",0),_n(1),ai(2,"span",1),_n(3,1),ci(),_n(4,2),Gn(5,"span",2)(6,"span",3)),r&2&&Xe("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[`.mat-mdc-button-base { text-decoration: none; } .mat-mdc-button-base .mat-icon { @@ -780,7 +780,7 @@ ${e.map((r,o)=>`${o+1}) ${r.toString()}`).join(` outline: solid 1px; } } -`],encapsulation:2,changeDetection:0})}return t})();function oP(t){return t.hasAttribute("mat-raised-button")?"elevated":t.hasAttribute("mat-stroked-button")?"outlined":t.hasAttribute("mat-flat-button")?"filled":t.hasAttribute("mat-button")?"text":null}var MQ=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=Q({type:t});static \u0275inj=q({imports:[_I,rn]})}return t})();var ed={production:!0,electron:!1,githubio:!1,solarputty_download_url:"",current_version:"v3",compute_id:"local"};var _a=class{};function iP(t){return t&&typeof t.connect=="function"&&!(t instanceof Ui)}var Fg=class extends _a{_data;constructor(n){super(),this._data=n}connect(){return Vt(this._data)?this._data:S(this._data)}disconnect(){}},In=(function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t})(In||{}),Pg=class{viewCacheSize=20;_viewCache=[];applyChanges(n,e,r,o,i){n.forEachOperation((s,a,c)=>{let l,u;if(s.previousIndex==null){let d=()=>r(s,a,c);l=this._insertView(d,c,e,o(s)),u=l?In.INSERTED:In.REPLACED}else c==null?(this._detachAndCacheView(a,e),u=In.REMOVED):(l=this._moveView(a,c,e,o(s)),u=In.MOVED);i&&i({context:l?.context,operation:u,record:s})})}detach(){for(let n of this._viewCache)n.destroy();this._viewCache=[]}_insertView(n,e,r,o){let i=this._insertViewFromCache(e,r);if(i){i.context.$implicit=o;return}let s=n();return r.createEmbeddedView(s.templateRef,s.context,s.index)}_detachAndCacheView(n,e){let r=e.detach(n);this._maybeCacheView(r,e)}_moveView(n,e,r,o){let i=r.get(n);return r.move(i,e),i.context.$implicit=o,i}_maybeCacheView(n,e){if(this._viewCache.length{class t{_ngZone=f(j);_platform=f(_e);_renderer=f(He).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new x;_scrolledCount=0;scrollContainers=new Map;register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let r=this.scrollContainers.get(e);r&&(r.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=sP){return this._platform.isBrowser?new P(r=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=e>0?this._scrolled.pipe(mc(e)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):S()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(e,r){let o=this.getAncestorScrollContainers(e);return this.scrolled(r).pipe(he(i=>!i||o.indexOf(i)>-1))}getAncestorScrollContainers(e){let r=[];return this.scrollContainers.forEach((o,i)=>{this._scrollableContainsElement(i,e)&&r.push(i)}),r}_scrollableContainsElement(e,r){let o=Ot(r),i=e.getElementRef().nativeElement;do if(o==i)return!0;while(o=o.parentElement);return!1}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),aP=(()=>{class t{elementRef=f($);scrollDispatcher=f(Da);ngZone=f(j);dir=f(_i,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new x;_renderer=f(Le);_cleanupScroll;_elementScrolled=new x;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",e=>this._elementScrolled.next(e))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){let r=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=o?e.end:e.start),e.right==null&&(e.right=o?e.start:e.end),e.bottom!=null&&(e.top=r.scrollHeight-r.clientHeight-e.bottom),o&&Ci()!=on.NORMAL?(e.left!=null&&(e.right=r.scrollWidth-r.clientWidth-e.left),Ci()==on.INVERTED?e.left=e.right:Ci()==on.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=r.scrollWidth-r.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let r=this.elementRef.nativeElement;Xu()?r.scrollTo(e):(e.top!=null&&(r.scrollTop=e.top),e.left!=null&&(r.scrollLeft=e.left))}measureScrollOffset(e){let r="left",o="right",i=this.elementRef.nativeElement;if(e=="top")return i.scrollTop;if(e=="bottom")return i.scrollHeight-i.clientHeight-i.scrollTop;let s=this.dir&&this.dir.value=="rtl";return e=="start"?e=s?o:r:e=="end"&&(e=s?r:o),s&&Ci()==on.INVERTED?e==r?i.scrollWidth-i.clientWidth-i.scrollLeft:i.scrollLeft:s&&Ci()==on.NEGATED?e==r?i.scrollLeft+i.scrollWidth-i.clientWidth:-i.scrollLeft:e==r?i.scrollLeft:i.scrollWidth-i.clientWidth-i.scrollLeft}static \u0275fac=function(r){return new(r||t)};static \u0275dir=T({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),cP=20,Si=(()=>{class t{_platform=f(_e);_listeners;_viewportSize=null;_change=new x;_document=f(O);constructor(){let e=f(j),r=f(He).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=i=>this._change.next(i);this._listeners=[r.listen("window","resize",o),r.listen("window","orientationchange",o)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(e=>e()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:r,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+r,height:o,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,r=this._getWindow(),o=e.documentElement,i=o.getBoundingClientRect(),s=-i.top||e.body?.scrollTop||r.scrollY||o.scrollTop||0,a=-i.left||e.body?.scrollLeft||r.scrollX||o.scrollLeft||0;return{top:s,left:a}}change(e=cP){return e>0?this._change.pipe(mc(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var XQ=new y("CDK_VIRTUAL_SCROLL_VIEWPORT");var Lg=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=Q({type:t});static \u0275inj=q({})}return t})(),jg=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=Q({type:t});static \u0275inj=q({imports:[rn,Lg,rn,Lg]})}return t})();var Ea=class{_attachedHost=null;attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;n!=null&&(this._attachedHost=null,n.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(n){this._attachedHost=n}},Vg=class extends Ea{component;viewContainerRef;injector;projectableNodes;bindings;constructor(n,e,r,o,i){super(),this.component=n,this.viewContainerRef=e,this.injector=r,this.projectableNodes=o,this.bindings=i||null}},Mi=class extends Ea{templateRef;viewContainerRef;context;injector;constructor(n,e,r,o){super(),this.templateRef=n,this.viewContainerRef=e,this.context=r,this.injector=o}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}},Bg=class extends Ea{element;constructor(n){super(),this.element=n instanceof $?n.nativeElement:n}},td=class{_attachedPortal=null;_disposeFn=null;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(n){if(n instanceof Vg)return this._attachedPortal=n,this.attachComponentPortal(n);if(n instanceof Mi)return this._attachedPortal=n,this.attachTemplatePortal(n);if(this.attachDomPortal&&n instanceof Bg)return this._attachedPortal=n,this.attachDomPortal(n)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},nd=class extends td{outletElement;_appRef;_defaultInjector;constructor(n,e,r){super(),this.outletElement=n,this._appRef=e,this._defaultInjector=r}attachComponentPortal(n){let e;if(n.viewContainerRef){let r=n.injector||n.viewContainerRef.injector,o=r.get(yn,null,{optional:!0})||void 0;e=n.viewContainerRef.createComponent(n.component,{index:n.viewContainerRef.length,injector:r,ngModuleRef:o,projectableNodes:n.projectableNodes||void 0,bindings:n.bindings||void 0}),this.setDisposeFn(()=>e.destroy())}else{let r=this._appRef,o=n.injector||this._defaultInjector||W.NULL,i=o.get(re,r.injector);e=Jl(n.component,{elementInjector:o,environmentInjector:i,projectableNodes:n.projectableNodes||void 0,bindings:n.bindings||void 0}),r.attachView(e.hostView),this.setDisposeFn(()=>{r.viewCount>0&&r.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=n,e}attachTemplatePortal(n){let e=n.viewContainerRef,r=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return r.rootNodes.forEach(o=>this.outletElement.appendChild(o)),r.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(r);o!==-1&&e.remove(o)}),this._attachedPortal=n,r}attachDomPortal=n=>{let e=n.element;e.parentNode;let r=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(r,e),this.outletElement.appendChild(e),this._attachedPortal=n,super.setDisposeFn(()=>{r.parentNode&&r.parentNode.replaceChild(e,r)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}},iX=(()=>{class t extends Mi{constructor(){let e=f(gt),r=f(Qe);super(e,r)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=T({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[ie]})}return t})(),sX=(()=>{class t extends td{_moduleRef=f(yn,{optional:!0});_document=f(O);_viewContainerRef=f(Qe);_isInitialized=!1;_attachedRef=null;constructor(){super()}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}attached=new H;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let r=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,o=r.createComponent(e.component,{index:r.length,injector:e.injector||r.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:e.bindings||void 0});return r!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(e){e.setAttachedHost(this);let r=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}attachDomPortal=e=>{let r=e.element;r.parentNode;let o=this._document.createComment("dom-portal");e.setAttachedHost(this),r.parentNode.insertBefore(o,r),this._getRootNode().appendChild(r),this._attachedPortal=e,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(r,o)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(r){return new(r||t)};static \u0275dir=T({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ie]})}return t})(),EI=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=Q({type:t});static \u0275inj=q({})}return t})();var wI=Xu();function AI(t){return new rd(t.get(Si),t.get(O))}var rd=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(n,e){this._viewportRuler=n,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=Ce(-this._previousScrollPosition.left),n.style.top=Ce(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let n=this._document.documentElement,e=this._document.body,r=n.style,o=e.style,i=r.scrollBehavior||"",s=o.scrollBehavior||"";this._isEnabled=!1,r.left=this._previousHTMLStyles.left,r.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),wI&&(r.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),wI&&(r.scrollBehavior=i,o.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,r=this._viewportRuler.getViewportSize();return e.scrollHeight>r.height||e.scrollWidth>r.width}};function RI(t,n){return new od(t.get(Da),t.get(j),t.get(Si),n)}var od=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(n,e,r,o){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=r,this._config=o}attach(n){this._overlayRef,this._overlayRef=n}enable(){if(this._scrollSubscription)return;let n=this._scrollDispatcher.scrolled(0).pipe(he(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}};var wa=class{enable(){}disable(){}attach(){}};function Ug(t,n){return n.some(e=>{let r=t.bottome.bottom,i=t.righte.right;return r||o||i||s})}function CI(t,n){return n.some(e=>{let r=t.tope.bottom,i=t.lefte.right;return r||o||i||s})}function zg(t,n){return new id(t.get(Da),t.get(Si),t.get(j),n)}var id=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(n,e,r,o){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=r,this._config=o}attach(n){this._overlayRef,this._overlayRef=n}enable(){if(!this._scrollSubscription){let n=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(n).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:r,height:o}=this._viewportRuler.getViewportSize();Ug(e,[{width:r,height:o,bottom:o,right:r,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},NI=(()=>{class t{_injector=f(W);constructor(){}noop=()=>new wa;close=e=>RI(this._injector,e);block=()=>AI(this._injector);reposition=e=>zg(this._injector,e);static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ca=class{positionStrategy;scrollStrategy=new wa;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;usePopover;eventPredicate;constructor(n){if(n){let e=Object.keys(n);for(let r of e)n[r]!==void 0&&(this[r]=n[r])}}};var sd=class{connectionPair;scrollableViewProperties;constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}};var OI=(()=>{class t{_attachedOverlays=[];_document=f(O);_isAttached=!1;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let r=this._attachedOverlays.indexOf(e);r>-1&&this._attachedOverlays.splice(r,1),this._attachedOverlays.length===0&&this.detach()}canReceiveEvent(e,r,o){return o.observers.length<1?!1:e.eventPredicate?e.eventPredicate(r):!0}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),kI=(()=>{class t extends OI{_ngZone=f(j);_renderer=f(He).createRenderer(null,null);_cleanupKeydown;add(e){super.add(e),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=e=>{let r=this._attachedOverlays;for(let o=r.length-1;o>-1;o--){let i=r[o];if(this.canReceiveEvent(i,e,i._keydownEvents)){this._ngZone.run(()=>i._keydownEvents.next(e));break}}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=Pe(t)))(o||t)}})();static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),FI=(()=>{class t extends OI{_platform=f(_e);_ngZone=f(j);_renderer=f(He).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget=null;_cleanups;add(e){if(super.add(e),!this._isAttached){let r=this._document.body,o={capture:!0},i=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[i.listen(r,"pointerdown",this._pointerDownListener,o),i.listen(r,"click",this._clickListener,o),i.listen(r,"auxclick",this._clickListener,o),i.listen(r,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=r.style.cursor,r.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(e=>e()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=e=>{this._pointerDownEventTarget=ot(e)};_clickListener=e=>{let r=ot(e),o=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:r;this._pointerDownEventTarget=null;let i=this._attachedOverlays.slice();for(let s=i.length-1;s>-1;s--){let a=i[s],c=a._outsidePointerEvents;if(!(!a.hasAttached()||!this.canReceiveEvent(a,e,c))){if(II(a.overlayElement,r)||II(a.overlayElement,o))break;this._ngZone?this._ngZone.run(()=>c.next(e)):c.next(e)}}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=Pe(t)))(o||t)}})();static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function II(t,n){let e=typeof ShadowRoot<"u"&&ShadowRoot,r=n;for(;r;){if(r===t)return!0;r=e&&r instanceof ShadowRoot?r.host:r.parentNode}return!1}var PI=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Te({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(r,o){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper { +`],encapsulation:2,changeDetection:0})}return t})();function fP(t){return t.hasAttribute("mat-raised-button")?"elevated":t.hasAttribute("mat-stroked-button")?"outlined":t.hasAttribute("mat-flat-button")?"filled":t.hasAttribute("mat-button")?"text":null}var qQ=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=X({type:t});static \u0275inj=Y({imports:[II,rn]})}return t})();var nd={production:!0,electron:!1,githubio:!1,solarputty_download_url:"",current_version:"v3",compute_id:"local"};var _a=class{};function hP(t){return t&&typeof t.connect=="function"&&!(t instanceof Ui)}var Lg=class extends _a{_data;constructor(n){super(),this._data=n}connect(){return Vt(this._data)?this._data:S(this._data)}disconnect(){}},Cn=(function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t})(Cn||{}),jg=class{viewCacheSize=20;_viewCache=[];applyChanges(n,e,r,o,i){n.forEachOperation((s,a,c)=>{let l,u;if(s.previousIndex==null){let d=()=>r(s,a,c);l=this._insertView(d,c,e,o(s)),u=l?Cn.INSERTED:Cn.REPLACED}else c==null?(this._detachAndCacheView(a,e),u=Cn.REMOVED):(l=this._moveView(a,c,e,o(s)),u=Cn.MOVED);i&&i({context:l?.context,operation:u,record:s})})}detach(){for(let n of this._viewCache)n.destroy();this._viewCache=[]}_insertView(n,e,r,o){let i=this._insertViewFromCache(e,r);if(i){i.context.$implicit=o;return}let s=n();return r.createEmbeddedView(s.templateRef,s.context,s.index)}_detachAndCacheView(n,e){let r=e.detach(n);this._maybeCacheView(r,e)}_moveView(n,e,r,o){let i=r.get(n);return r.move(i,e),i.context.$implicit=o,i}_maybeCacheView(n,e){if(this._viewCache.length{class t{_ngZone=f(V);_platform=f(_e);_renderer=f($e).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new R;_scrolledCount=0;scrollContainers=new Map;register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let r=this.scrollContainers.get(e);r&&(r.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=pP){return this._platform.isBrowser?new P(r=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=e>0?this._scrolled.pipe(mc(e)).subscribe(r):this._scrolled.subscribe(r);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):S()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,r)=>this.deregister(r)),this._scrolled.complete()}ancestorScrolled(e,r){let o=this.getAncestorScrollContainers(e);return this.scrolled(r).pipe(he(i=>!i||o.indexOf(i)>-1))}getAncestorScrollContainers(e){let r=[];return this.scrollContainers.forEach((o,i)=>{this._scrollableContainsElement(i,e)&&r.push(i)}),r}_scrollableContainsElement(e,r){let o=Ot(r),i=e.getElementRef().nativeElement;do if(o==i)return!0;while(o=o.parentElement);return!1}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),mP=(()=>{class t{elementRef=f(z);scrollDispatcher=f(Da);ngZone=f(V);dir=f(_i,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new R;_renderer=f(Le);_cleanupScroll;_elementScrolled=new R;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",e=>this._elementScrolled.next(e))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){let r=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=o?e.end:e.start),e.right==null&&(e.right=o?e.start:e.end),e.bottom!=null&&(e.top=r.scrollHeight-r.clientHeight-e.bottom),o&&Ci()!=on.NORMAL?(e.left!=null&&(e.right=r.scrollWidth-r.clientWidth-e.left),Ci()==on.INVERTED?e.left=e.right:Ci()==on.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=r.scrollWidth-r.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let r=this.elementRef.nativeElement;ed()?r.scrollTo(e):(e.top!=null&&(r.scrollTop=e.top),e.left!=null&&(r.scrollLeft=e.left))}measureScrollOffset(e){let r="left",o="right",i=this.elementRef.nativeElement;if(e=="top")return i.scrollTop;if(e=="bottom")return i.scrollHeight-i.clientHeight-i.scrollTop;let s=this.dir&&this.dir.value=="rtl";return e=="start"?e=s?o:r:e=="end"&&(e=s?r:o),s&&Ci()==on.INVERTED?e==r?i.scrollWidth-i.clientWidth-i.scrollLeft:i.scrollLeft:s&&Ci()==on.NEGATED?e==r?i.scrollLeft+i.scrollWidth-i.clientWidth:-i.scrollLeft:e==r?i.scrollLeft:i.scrollWidth-i.clientWidth-i.scrollLeft}static \u0275fac=function(r){return new(r||t)};static \u0275dir=M({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),gP=20,Si=(()=>{class t{_platform=f(_e);_listeners;_viewportSize=null;_change=new R;_document=f(k);constructor(){let e=f(V),r=f($e).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=i=>this._change.next(i);this._listeners=[r.listen("window","resize",o),r.listen("window","orientationchange",o)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(e=>e()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:r,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+r,height:o,width:r}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,r=this._getWindow(),o=e.documentElement,i=o.getBoundingClientRect(),s=-i.top||e.body?.scrollTop||r.scrollY||o.scrollTop||0,a=-i.left||e.body?.scrollLeft||r.scrollX||o.scrollLeft||0;return{top:s,left:a}}change(e=gP){return e>0?this._change.pipe(mc(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var yX=new y("CDK_VIRTUAL_SCROLL_VIEWPORT");var Vg=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=X({type:t});static \u0275inj=Y({})}return t})(),Bg=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=X({type:t});static \u0275inj=Y({imports:[rn,Vg,rn,Vg]})}return t})();var Ea=class{_attachedHost=null;attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;n!=null&&(this._attachedHost=null,n.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(n){this._attachedHost=n}},Ug=class extends Ea{component;viewContainerRef;injector;projectableNodes;bindings;constructor(n,e,r,o,i){super(),this.component=n,this.viewContainerRef=e,this.injector=r,this.projectableNodes=o,this.bindings=i||null}},Mi=class extends Ea{templateRef;viewContainerRef;context;injector;constructor(n,e,r,o){super(),this.templateRef=n,this.viewContainerRef=e,this.context=r,this.injector=o}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}},Hg=class extends Ea{element;constructor(n){super(),this.element=n instanceof z?n.nativeElement:n}},rd=class{_attachedPortal=null;_disposeFn=null;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(n){if(n instanceof Ug)return this._attachedPortal=n,this.attachComponentPortal(n);if(n instanceof Mi)return this._attachedPortal=n,this.attachTemplatePortal(n);if(this.attachDomPortal&&n instanceof Hg)return this._attachedPortal=n,this.attachDomPortal(n)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},od=class extends rd{outletElement;_appRef;_defaultInjector;constructor(n,e,r){super(),this.outletElement=n,this._appRef=e,this._defaultInjector=r}attachComponentPortal(n){let e;if(n.viewContainerRef){let r=n.injector||n.viewContainerRef.injector,o=r.get(yn,null,{optional:!0})||void 0;e=n.viewContainerRef.createComponent(n.component,{index:n.viewContainerRef.length,injector:r,ngModuleRef:o,projectableNodes:n.projectableNodes||void 0,bindings:n.bindings||void 0}),this.setDisposeFn(()=>e.destroy())}else{let r=this._appRef,o=n.injector||this._defaultInjector||W.NULL,i=o.get(oe,r.injector);e=eu(n.component,{elementInjector:o,environmentInjector:i,projectableNodes:n.projectableNodes||void 0,bindings:n.bindings||void 0}),r.attachView(e.hostView),this.setDisposeFn(()=>{r.viewCount>0&&r.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=n,e}attachTemplatePortal(n){let e=n.viewContainerRef,r=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return r.rootNodes.forEach(o=>this.outletElement.appendChild(o)),r.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(r);o!==-1&&e.remove(o)}),this._attachedPortal=n,r}attachDomPortal=n=>{let e=n.element;e.parentNode;let r=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(r,e),this.outletElement.appendChild(e),this._attachedPortal=n,super.setDisposeFn(()=>{r.parentNode&&r.parentNode.replaceChild(e,r)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}},IX=(()=>{class t extends Mi{constructor(){let e=f(yt),r=f(Qe);super(e,r)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=M({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[te]})}return t})(),SX=(()=>{class t extends rd{_moduleRef=f(yn,{optional:!0});_document=f(k);_viewContainerRef=f(Qe);_isInitialized=!1;_attachedRef=null;constructor(){super()}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}attached=new H;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let r=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,o=r.createComponent(e.component,{index:r.length,injector:e.injector||r.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0,bindings:e.bindings||void 0});return r!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(e){e.setAttachedHost(this);let r=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=r,this.attached.emit(r),r}attachDomPortal=e=>{let r=e.element;r.parentNode;let o=this._document.createComment("dom-portal");e.setAttachedHost(this),r.parentNode.insertBefore(o,r),this._getRootNode().appendChild(r),this._attachedPortal=e,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(r,o)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(r){return new(r||t)};static \u0275dir=M({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[te]})}return t})(),MI=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=X({type:t});static \u0275inj=Y({})}return t})();var TI=ed();function FI(t){return new id(t.get(Si),t.get(k))}var id=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(n,e){this._viewportRuler=n,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=Ie(-this._previousScrollPosition.left),n.style.top=Ie(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let n=this._document.documentElement,e=this._document.body,r=n.style,o=e.style,i=r.scrollBehavior||"",s=o.scrollBehavior||"";this._isEnabled=!1,r.left=this._previousHTMLStyles.left,r.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),TI&&(r.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),TI&&(r.scrollBehavior=i,o.scrollBehavior=s)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,r=this._viewportRuler.getViewportSize();return e.scrollHeight>r.height||e.scrollWidth>r.width}};function PI(t,n){return new sd(t.get(Da),t.get(V),t.get(Si),n)}var sd=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(n,e,r,o){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=r,this._config=o}attach(n){this._overlayRef,this._overlayRef=n}enable(){if(this._scrollSubscription)return;let n=this._scrollDispatcher.scrolled(0).pipe(he(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}};var wa=class{enable(){}disable(){}attach(){}};function $g(t,n){return n.some(e=>{let r=t.bottome.bottom,i=t.righte.right;return r||o||i||s})}function xI(t,n){return n.some(e=>{let r=t.tope.bottom,i=t.lefte.right;return r||o||i||s})}function Wg(t,n){return new ad(t.get(Da),t.get(Si),t.get(V),n)}var ad=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(n,e,r,o){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=r,this._config=o}attach(n){this._overlayRef,this._overlayRef=n}enable(){if(!this._scrollSubscription){let n=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(n).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:r,height:o}=this._viewportRuler.getViewportSize();$g(e,[{width:r,height:o,bottom:o,right:r,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},LI=(()=>{class t{_injector=f(W);constructor(){}noop=()=>new wa;close=e=>PI(this._injector,e);block=()=>FI(this._injector);reposition=e=>Wg(this._injector,e);static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ca=class{positionStrategy;scrollStrategy=new wa;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;usePopover;eventPredicate;constructor(n){if(n){let e=Object.keys(n);for(let r of e)n[r]!==void 0&&(this[r]=n[r])}}};var cd=class{connectionPair;scrollableViewProperties;constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}};var jI=(()=>{class t{_attachedOverlays=[];_document=f(k);_isAttached=!1;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let r=this._attachedOverlays.indexOf(e);r>-1&&this._attachedOverlays.splice(r,1),this._attachedOverlays.length===0&&this.detach()}canReceiveEvent(e,r,o){return o.observers.length<1?!1:e.eventPredicate?e.eventPredicate(r):!0}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),VI=(()=>{class t extends jI{_ngZone=f(V);_renderer=f($e).createRenderer(null,null);_cleanupKeydown;add(e){super.add(e),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=e=>{let r=this._attachedOverlays;for(let o=r.length-1;o>-1;o--){let i=r[o];if(this.canReceiveEvent(i,e,i._keydownEvents)){this._ngZone.run(()=>i._keydownEvents.next(e));break}}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),BI=(()=>{class t extends jI{_platform=f(_e);_ngZone=f(V);_renderer=f($e).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget=null;_cleanups;add(e){if(super.add(e),!this._isAttached){let r=this._document.body,o={capture:!0},i=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[i.listen(r,"pointerdown",this._pointerDownListener,o),i.listen(r,"click",this._clickListener,o),i.listen(r,"auxclick",this._clickListener,o),i.listen(r,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=r.style.cursor,r.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(e=>e()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=e=>{this._pointerDownEventTarget=ot(e)};_clickListener=e=>{let r=ot(e),o=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:r;this._pointerDownEventTarget=null;let i=this._attachedOverlays.slice();for(let s=i.length-1;s>-1;s--){let a=i[s],c=a._outsidePointerEvents;if(!(!a.hasAttached()||!this.canReceiveEvent(a,e,c))){if(AI(a.overlayElement,r)||AI(a.overlayElement,o))break;this._ngZone?this._ngZone.run(()=>c.next(e)):c.next(e)}}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function AI(t,n){let e=typeof ShadowRoot<"u"&&ShadowRoot,r=n;for(;r;){if(r===t)return!0;r=e&&r instanceof ShadowRoot?r.host:r.parentNode}return!1}var UI=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=xe({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(r,o){},styles:[`.cdk-overlay-container, .cdk-global-overlay-wrapper { pointer-events: none; top: 0; left: 0; @@ -919,7 +919,7 @@ ${e.map((r,o)=>`${o+1}) ${r.toString()}`).join(` position: fixed; z-index: auto; } -`],encapsulation:2,changeDetection:0})}return t})(),Gg=(()=>{class t{_platform=f(_e);_containerElement;_document=f(O);_styleLoader=f(Nt);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||Tg()){let o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let i=0;i{let n=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(n,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),n.style.pointerEvents="none",n.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}};function Wg(t){return t&&t.nodeType===1}var ad=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new x;_attachments=new x;_detachments=new x;_positionStrategy;_scrollStrategy;_locationChanges=G.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=!1;_previousHostParent;_keydownEvents=new x;_outsidePointerEvents=new x;_afterNextRenderRef;constructor(n,e,r,o,i,s,a,c,l,u=!1,d,h){this._portalOutlet=n,this._host=e,this._pane=r,this._config=o,this._ngZone=i,this._keyboardDispatcher=s,this._document=a,this._location=c,this._outsideClickDispatcher=l,this._animationsDisabled=u,this._injector=d,this._renderer=h,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(n){if(this._disposed)return null;this._attachHost();let e=this._portalOutlet.attach(n);return this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=At(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let n=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){if(this._disposed)return;let n=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,n&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=!0}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config=g(g({},this._config),n),this._updateElementSize()}setDirection(n){this._config=F(g({},this._config),{direction:n}),this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){let n=this._config.direction;return n?typeof n=="string"?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let n=this._pane.style;n.width=Ce(this._config.width),n.height=Ce(this._config.height),n.minWidth=Ce(this._config.minWidth),n.minHeight=Ce(this._config.minHeight),n.maxWidth=Ce(this._config.maxWidth),n.maxHeight=Ce(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachHost(){if(!this._host.parentElement){let n=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;Wg(n)?n.after(this._host):n?.type==="parent"?n.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host)}if(this._config.usePopover)try{this._host.showPopover()}catch{}}_attachBackdrop(){let n="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new Hg(this._document,this._renderer,this._ngZone,e=>{this._backdropClick.next(e)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(n))}):this._backdropRef.element.classList.add(n)}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(n,e,r){let o=mo(e||[]).filter(i=>!!i);o.length&&(r?n.classList.add(...o):n.classList.remove(...o))}_detachContentWhenEmpty(){let n=!1;try{this._detachContentAfterRenderRef=At(()=>{n=!0,this._detachContent()},{injector:this._injector})}catch(e){if(n)throw e;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){let n=this._scrollStrategy;n?.disable(),n?.detach?.()}},SI="cdk-overlay-connected-position-bounding-box",lP=/([A-Za-z%]+)$/;function qg(t,n){return new cd(n,t.get(Si),t.get(O),t.get(_e),t.get(Gg))}var cd=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender=!1;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed=!1;_boundingBox=null;_lastPosition=null;_lastScrollVisibility=null;_positionChanges=new x;_resizeSubscription=G.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(n,e,r,o,i){this._viewportRuler=e,this._document=r,this._platform=o,this._overlayContainer=i,this.setOrigin(n)}attach(n){this._overlayRef&&this._overlayRef,this._validatePositions(),n.hostElement.classList.add(SI),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._getContainerRect();let n=this._originRect,e=this._overlayRect,r=this._viewportRect,o=this._containerRect,i=[],s;for(let a of this._preferredPositions){let c=this._getOriginPoint(n,o,a),l=this._getOverlayPoint(c,e,a),u=this._getOverlayFit(l,e,r,a);if(u.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,c);return}if(this._canFitWithFlexibleDimensions(u,l,r)){i.push({position:a,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,a)});continue}(!s||s.overlayFit.visibleAreac&&(c=u,a=l)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(s.position,s.originPoint);return}this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&yo(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(SI),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let n=this._lastPosition;n?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(n,this._getOriginPoint(this._originRect,this._containerRect,n))):this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,n.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}withPopoverLocation(n){return this._popoverLocation=n,this}getPopoverInsertionPoint(){return this._popoverLocation==="global"?null:this._popoverLocation!=="inline"?this._popoverLocation:this._origin instanceof $?this._origin.nativeElement:Wg(this._origin)?this._origin:null}_getOriginPoint(n,e,r){let o;if(r.originX=="center")o=n.left+n.width/2;else{let s=this._isRtl()?n.right:n.left,a=this._isRtl()?n.left:n.right;o=r.originX=="start"?s:a}e.left<0&&(o-=e.left);let i;return r.originY=="center"?i=n.top+n.height/2:i=r.originY=="top"?n.top:n.bottom,e.top<0&&(i-=e.top),{x:o,y:i}}_getOverlayPoint(n,e,r){let o;r.overlayX=="center"?o=-e.width/2:r.overlayX==="start"?o=this._isRtl()?-e.width:0:o=this._isRtl()?0:-e.width;let i;return r.overlayY=="center"?i=-e.height/2:i=r.overlayY=="top"?0:-e.height,{x:n.x+o,y:n.y+i}}_getOverlayFit(n,e,r,o){let i=TI(e),{x:s,y:a}=n,c=this._getOffset(o,"x"),l=this._getOffset(o,"y");c&&(s+=c),l&&(a+=l);let u=0-s,d=s+i.width-r.width,h=0-a,p=a+i.height-r.height,m=this._subtractOverflows(i.width,u,d),_=this._subtractOverflows(i.height,h,p),D=m*_;return{visibleArea:D,isCompletelyWithinViewport:i.width*i.height===D,fitsInViewportVertically:_===i.height,fitsInViewportHorizontally:m==i.width}}_canFitWithFlexibleDimensions(n,e,r){if(this._hasFlexibleDimensions){let o=r.bottom-e.y,i=r.right-e.x,s=MI(this._overlayRef.getConfig().minHeight),a=MI(this._overlayRef.getConfig().minWidth),c=n.fitsInViewportVertically||s!=null&&s<=o,l=n.fitsInViewportHorizontally||a!=null&&a<=i;return c&&l}return!1}_pushOverlayOnScreen(n,e,r){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};let o=TI(e),i=this._viewportRect,s=Math.max(n.x+o.width-i.width,0),a=Math.max(n.y+o.height-i.height,0),c=Math.max(i.top-r.top-n.y,0),l=Math.max(i.left-r.left-n.x,0),u=0,d=0;return o.width<=i.width?u=l||-s:u=n.xm&&!this._isInitialRender&&!this._growAfterOpen&&(s=n.y-m/2)}let c=e.overlayX==="start"&&!o||e.overlayX==="end"&&o,l=e.overlayX==="end"&&!o||e.overlayX==="start"&&o,u,d,h;if(l)h=r.width-n.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),u=n.x-this._getViewportMarginStart();else if(c)d=n.x,u=r.right-n.x-this._getViewportMarginEnd();else{let p=Math.min(r.right-n.x+r.left,n.x),m=this._lastBoundingBoxSize.width;u=p*2,d=n.x-p,u>m&&!this._isInitialRender&&!this._growAfterOpen&&(d=n.x-m/2)}return{top:s,left:d,bottom:a,right:h,width:u,height:i}}_setBoundingBoxStyles(n,e){let r=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(r.height=Math.min(r.height,this._lastBoundingBoxSize.height),r.width=Math.min(r.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right="auto",o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{let i=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;o.width=Ce(r.width),o.height=Ce(r.height),o.top=Ce(r.top)||"auto",o.bottom=Ce(r.bottom)||"auto",o.left=Ce(r.left)||"auto",o.right=Ce(r.right)||"auto",e.overlayX==="center"?o.alignItems="center":o.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?o.justifyContent="center":o.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",i&&(o.maxHeight=Ce(i)),s&&(o.maxWidth=Ce(s))}this._lastBoundingBoxSize=r,yo(this._boundingBox.style,o)}_resetBoundingBoxStyles(){yo(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){yo(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){let r={},o=this._hasExactPosition(),i=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(o){let u=this._viewportRuler.getViewportScrollPosition();yo(r,this._getExactOverlayY(e,n,u)),yo(r,this._getExactOverlayX(e,n,u))}else r.position="static";let a="",c=this._getOffset(e,"x"),l=this._getOffset(e,"y");c&&(a+=`translateX(${c}px) `),l&&(a+=`translateY(${l}px)`),r.transform=a.trim(),s.maxHeight&&(o?r.maxHeight=Ce(s.maxHeight):i&&(r.maxHeight="")),s.maxWidth&&(o?r.maxWidth=Ce(s.maxWidth):i&&(r.maxWidth="")),yo(this._pane.style,r)}_getExactOverlayY(n,e,r){let o={top:"",bottom:""},i=this._getOverlayPoint(e,this._overlayRect,n);if(this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,r)),n.overlayY==="bottom"){let s=this._document.documentElement.clientHeight;o.bottom=`${s-(i.y+this._overlayRect.height)}px`}else o.top=Ce(i.y);return o}_getExactOverlayX(n,e,r){let o={left:"",right:""},i=this._getOverlayPoint(e,this._overlayRect,n);this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,r));let s;if(this._isRtl()?s=n.overlayX==="end"?"left":"right":s=n.overlayX==="end"?"right":"left",s==="right"){let a=this._document.documentElement.clientWidth;o.right=`${a-(i.x+this._overlayRect.width)}px`}else o.left=Ce(i.x);return o}_getScrollVisibility(){let n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),r=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:CI(n,r),isOriginOutsideView:Ug(n,r),isOverlayClipped:CI(e,r),isOverlayOutsideView:Ug(e,r)}}_subtractOverflows(n,...e){return e.reduce((r,o)=>r-Math.max(o,0),n)}_getNarrowedViewportRect(){let n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,r=this._viewportRuler.getViewportScrollPosition();return{top:r.top+this._getViewportMarginTop(),left:r.left+this._getViewportMarginStart(),right:r.left+n-this._getViewportMarginEnd(),bottom:r.top+e-this._getViewportMarginBottom(),width:n-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:e-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return e==="x"?n.offsetX==null?this._offsetX:n.offsetX:n.offsetY==null?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&mo(n).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getViewportMarginStart(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.start??0}_getViewportMarginEnd(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.end??0}_getViewportMarginTop(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.top??0}_getViewportMarginBottom(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.bottom??0}_getOriginRect(){let n=this._origin;if(n instanceof $)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();let e=n.width||0,r=n.height||0;return{top:n.y,bottom:n.y+r,left:n.x,right:n.x+e,height:r,width:e}}_getContainerRect(){let n=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",e=this._overlayContainer.getContainerElement();n&&(e.style.display="block");let r=e.getBoundingClientRect();return n&&(e.style.display=""),r}};function yo(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function MI(t){if(typeof t!="number"&&t!=null){let[n,e]=t.split(lP);return!e||e==="px"?parseFloat(n):null}return t||null}function TI(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function uP(t,n){return t===n?!0:t.isOriginClipped===n.isOriginClipped&&t.isOriginOutsideView===n.isOriginOutsideView&&t.isOverlayClipped===n.isOverlayClipped&&t.isOverlayOutsideView===n.isOverlayOutsideView}var xI="cdk-global-overlay-wrapper";function LI(t){return new ld}var ld=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(n){let e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(xI),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._xOffset=n,this._xPosition="left",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._xOffset=n,this._xPosition="right",this}start(n=""){return this._xOffset=n,this._xPosition="start",this}end(n=""){return this._xOffset=n,this._xPosition="end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,r=this._overlayRef.getConfig(),{width:o,height:i,maxWidth:s,maxHeight:a}=r,c=(o==="100%"||o==="100vw")&&(!s||s==="100%"||s==="100vw"),l=(i==="100%"||i==="100vh")&&(!a||a==="100%"||a==="100vh"),u=this._xPosition,d=this._xOffset,h=this._overlayRef.getConfig().direction==="rtl",p="",m="",_="";c?_="flex-start":u==="center"?(_="center",h?m=d:p=d):h?u==="left"||u==="end"?(_="flex-end",p=d):(u==="right"||u==="start")&&(_="flex-start",m=d):u==="left"||u==="start"?(_="flex-start",p=d):(u==="right"||u==="end")&&(_="flex-end",m=d),n.position=this._cssPosition,n.marginLeft=c?"0":p,n.marginTop=l?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=c?"0":m,e.justifyContent=_,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,r=e.style;e.classList.remove(xI),r.justifyContent=r.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}},jI=(()=>{class t{_injector=f(W);constructor(){}global(){return LI()}flexibleConnectedTo(e){return qg(this._injector,e)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Yg=new y("OVERLAY_DEFAULT_CONFIG");function Zg(t,n){t.get(Nt).load(PI);let e=t.get(Gg),r=t.get(O),o=t.get(va),i=t.get(Ge),s=t.get(_i),a=t.get(Le,null,{optional:!0})||t.get(He).createRenderer(null,null),c=new Ca(n),l=t.get(Yg,null,{optional:!0})?.usePopover??!0;c.direction=c.direction||s.value,"showPopover"in r.body?c.usePopover=n?.usePopover??l:c.usePopover=!1;let u=r.createElement("div"),d=r.createElement("div");u.id=o.getId("cdk-overlay-"),u.classList.add("cdk-overlay-pane"),d.appendChild(u),c.usePopover&&(d.setAttribute("popover","manual"),d.classList.add("cdk-overlay-popover"));let h=c.usePopover?c.positionStrategy?.getPopoverInsertionPoint?.():null;return Wg(h)?h.after(d):h?.type==="parent"?h.element.appendChild(d):e.getContainerElement().appendChild(d),new ad(new nd(u,i,t),d,u,c,t.get(j),t.get(kI),r,t.get(Dn),t.get(FI),n?.disableAnimations??t.get(Fs,null,{optional:!0})==="NoopAnimations",t.get(re),a)}var VI=(()=>{class t{scrollStrategies=f(NI);_positionBuilder=f(jI);_injector=f(W);constructor(){}create(e){return Zg(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),dP=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],fP=new y("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=f(W);return()=>zg(t)}}),$g=(()=>{class t{elementRef=f($);constructor(){}static \u0275fac=function(r){return new(r||t)};static \u0275dir=T({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),BI=new y("cdk-connected-overlay-default-config"),hP=(()=>{class t{_dir=f(_i,{optional:!0});_injector=f(W);_overlayRef;_templatePortal;_backdropSubscription=G.EMPTY;_attachSubscription=G.EMPTY;_detachSubscription=G.EMPTY;_positionSubscription=G.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=f(fP);_ngZone=f(j);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;disposeOnNavigation=!1;usePopover;matchWidth=!1;set _config(e){typeof e!="string"&&this._assignConfig(e)}backdropClick=new H;positionChange=new H;attach=new H;detach=new H;overlayKeydown=new H;overlayOutsideClick=new H;constructor(){let e=f(gt),r=f(Qe),o=f(BI,{optional:!0}),i=f(Yg,{optional:!0});this.usePopover=i?.usePopover===!1?null:"global",this._templatePortal=new Mi(e,r),this.scrollStrategy=this._scrollStrategyFactory(),o&&this._assignConfig(o)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef?.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this._getWidth(),minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this.attachOverlay():this.detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=dP);let e=this._overlayRef=Zg(this._injector,this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(r=>{this.overlayKeydown.next(r),r.keyCode===27&&!this.disableClose&&!Yu(r)&&(r.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(r=>{let o=this._getOriginElement(),i=ot(r);(!o||o!==i&&!o.contains(i))&&this.overlayOutsideClick.next(r)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),r=new Ca({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation,usePopover:!!this.usePopover});return(this.height||this.height===0)&&(r.height=this.height),(this.minWidth||this.minWidth===0)&&(r.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(r.minHeight=this.minHeight),this.backdropClass&&(r.backdropClass=this.backdropClass),this.panelClass&&(r.panelClass=this.panelClass),r}_updatePositionStrategy(e){let r=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(r).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector).withPopoverLocation(this.usePopover===null?"global":this.usePopover)}_createPositionStrategy(){let e=qg(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof $g?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof $g?this.origin.elementRef.nativeElement:this.origin instanceof $?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_getWidth(){return this.width?this.width:this.matchWidth?this._getOriginElement()?.getBoundingClientRect?.().width:void 0}attachOverlay(){this._overlayRef||this._createOverlay();let e=this._overlayRef;e.getConfig().hasBackdrop=this.hasBackdrop,e.updateSize({width:this._getWidth()}),e.hasAttached()||e.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=e.backdropClick().subscribe(r=>this.backdropClick.emit(r)):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(sf(()=>this.positionChange.observers.length>0)).subscribe(r=>{this._ngZone.run(()=>this.positionChange.emit(r)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}_assignConfig(e){this.origin=e.origin??this.origin,this.positions=e.positions??this.positions,this.positionStrategy=e.positionStrategy??this.positionStrategy,this.offsetX=e.offsetX??this.offsetX,this.offsetY=e.offsetY??this.offsetY,this.width=e.width??this.width,this.height=e.height??this.height,this.minWidth=e.minWidth??this.minWidth,this.minHeight=e.minHeight??this.minHeight,this.backdropClass=e.backdropClass??this.backdropClass,this.panelClass=e.panelClass??this.panelClass,this.viewportMargin=e.viewportMargin??this.viewportMargin,this.scrollStrategy=e.scrollStrategy??this.scrollStrategy,this.disableClose=e.disableClose??this.disableClose,this.transformOriginSelector=e.transformOriginSelector??this.transformOriginSelector,this.hasBackdrop=e.hasBackdrop??this.hasBackdrop,this.lockPosition=e.lockPosition??this.lockPosition,this.flexibleDimensions=e.flexibleDimensions??this.flexibleDimensions,this.growAfterOpen=e.growAfterOpen??this.growAfterOpen,this.push=e.push??this.push,this.disposeOnNavigation=e.disposeOnNavigation??this.disposeOnNavigation,this.usePopover=e.usePopover??this.usePopover,this.matchWidth=e.matchWidth??this.matchWidth}static \u0275fac=function(r){return new(r||t)};static \u0275dir=T({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",ue],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",ue],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",ue],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",ue],push:[2,"cdkConnectedOverlayPush","push",ue],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",ue],usePopover:[0,"cdkConnectedOverlayUsePopover","usePopover"],matchWidth:[2,"cdkConnectedOverlayMatchWidth","matchWidth",ue],_config:[0,"cdkConnectedOverlay","_config"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[$e]})}return t})(),pP=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=Q({type:t});static \u0275inj=q({providers:[VI],imports:[rn,EI,jg,jg]})}return t})();var B="primary",La=Symbol("RouteTitle"),ev=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function _o(t){return new ev(t)}function Kg(t,n,e){for(let r=0;rt.length||e.pathMatch==="full"&&(n.hasChildren()||r.lengtht.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;let a={};return!Kg(i,t.slice(0,i.length),a)||!Kg(s,t.slice(t.length-s.length),a)?null:{consumed:t,posParams:a}}function md(t){return new Promise((n,e)=>{t.pipe(Nn()).subscribe({next:r=>n(r),error:r=>e(r)})})}function mP(t,n){if(t.length!==n.length)return!1;for(let e=0;er[i]===o)}else return t===n}function gP(t){return t.length>0?t[t.length-1]:null}function Eo(t){return Vt(t)?t:zn(t)?ae(Promise.resolve(t)):S(t)}function ZI(t){return Vt(t)?md(t):Promise.resolve(t)}var vP={exact:QI,subset:XI},KI={exact:yP,subset:bP,ignored:()=>!0},mv={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xa={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function gv(t,n,e){let r=t instanceof it?t:n.parseUrl(t);return Xt(()=>nv(n.lastSuccessfulNavigation()?.finalUrl??new it,r,g(g({},xa),e)))}function nv(t,n,e){return vP[e.paths](t.root,n.root,e.matrixParams)&&KI[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function yP(t,n){return Sn(t,n)}function QI(t,n,e){if(!bo(t.segments,n.segments)||!fd(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!QI(t.children[r],n.children[r],e))return!1;return!0}function bP(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>YI(t[e],n[e]))}function XI(t,n,e){return JI(t,n,n.segments,e)}function JI(t,n,e,r){if(t.segments.length>e.length){let o=t.segments.slice(0,e.length);return!(!bo(o,e)||n.hasChildren()||!fd(o,e,r))}else if(t.segments.length===e.length){if(!bo(t.segments,e)||!fd(t.segments,e,r))return!1;for(let o in n.children)if(!t.children[o]||!XI(t.children[o],n.children[o],r))return!1;return!0}else{let o=e.slice(0,t.segments.length),i=e.slice(t.segments.length);return!bo(t.segments,o)||!fd(t.segments,o,r)||!t.children[B]?!1:JI(t.children[B],n,i,r)}}function fd(t,n,e){return n.every((r,o)=>KI[e](t[o].parameters,r.parameters))}var it=class{root;queryParams;fragment;_queryParamMap;constructor(n=new te([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=_o(this.queryParams),this._queryParamMap}toString(){return EP.serialize(this)}},te=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return hd(this)}},Ir=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=_o(this.parameters),this._parameterMap}toString(){return tS(this)}};function _P(t,n){return bo(t,n)&&t.every((e,r)=>Sn(e.parameters,n[r].parameters))}function bo(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function DP(t,n){let e=[];return Object.entries(t.children).forEach(([r,o])=>{r===B&&(e=e.concat(n(o,r)))}),Object.entries(t.children).forEach(([r,o])=>{r!==B&&(e=e.concat(n(o,r)))}),e}var Tr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:()=>new Xn,providedIn:"root"})}return t})(),Xn=class{parse(n){let e=new ov(n);return new it(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${Ia(n.root,!0)}`,r=IP(n.queryParams),o=typeof n.fragment=="string"?`#${wP(n.fragment)}`:"";return`${e}${r}${o}`}},EP=new Xn;function hd(t){return t.segments.map(n=>tS(n)).join("/")}function Ia(t,n){if(!t.hasChildren())return hd(t);if(n){let e=t.children[B]?Ia(t.children[B],!1):"",r=[];return Object.entries(t.children).forEach(([o,i])=>{o!==B&&r.push(`${o}:${Ia(i,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=DP(t,(r,o)=>o===B?[Ia(t.children[B],!1)]:[`${o}:${Ia(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[B]!=null?`${hd(t)}/${e[0]}`:`${hd(t)}/(${e.join("//")})`}}function eS(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function ud(t){return eS(t).replace(/%3B/gi,";")}function wP(t){return encodeURI(t)}function rv(t){return eS(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function pd(t){return decodeURIComponent(t)}function UI(t){return pd(t.replace(/\+/g,"%20"))}function tS(t){return`${rv(t.path)}${CP(t.parameters)}`}function CP(t){return Object.entries(t).map(([n,e])=>`;${rv(n)}=${rv(e)}`).join("")}function IP(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(o=>`${ud(e)}=${ud(o)}`).join("&"):`${ud(e)}=${ud(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var SP=/^[^\/()?;#]+/;function Qg(t){let n=t.match(SP);return n?n[0]:""}var MP=/^[^\/()?;=#]+/;function TP(t){let n=t.match(MP);return n?n[0]:""}var xP=/^[^=?&#]+/;function AP(t){let n=t.match(xP);return n?n[0]:""}var RP=/^[^&#]+/;function NP(t){let n=t.match(RP);return n?n[0]:""}var ov=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new te([],{}):new te([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new b(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0,n));let o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1,n)),(e.length>0||Object.keys(r).length>0)&&(o[B]=new te(e,r)),o}parseSegment(){let n=Qg(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(n),new Ir(pd(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=TP(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let o=Qg(this.remaining);o&&(r=o,this.capture(r))}n[pd(e)]=pd(r)}parseQueryParam(n){let e=AP(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=NP(this.remaining);s&&(r=s,this.capture(r))}let o=UI(e),i=UI(r);if(n.hasOwnProperty(o)){let s=n[o];Array.isArray(s)||(s=[s],n[o]=s),s.push(i)}else n[o]=i}parseParens(n,e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let o=Qg(this.remaining),i=this.remaining[o.length];if(i!=="/"&&i!==")"&&i!==";")throw new b(4010,!1);let s;o.indexOf(":")>-1?(s=o.slice(0,o.indexOf(":")),this.capture(s),this.capture(":")):n&&(s=B);let a=this.parseChildren(e+1);r[s??B]=Object.keys(a).length===1&&a[B]?a[B]:new te([],a),this.consumeOptional("//")}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new b(4011,!1)}};function nS(t){return t.segments.length>0?new te([],{[B]:t}):t}function rS(t){let n={};for(let[r,o]of Object.entries(t.children)){let i=rS(o);if(r===B&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))n[s]=a;else(i.segments.length>0||i.hasChildren())&&(n[r]=i)}let e=new te(t.segments,n);return OP(e)}function OP(t){if(t.numberOfChildren===1&&t.children[B]){let n=t.children[B];return new te(t.segments.concat(n.segments),n.children)}return t}function Sr(t){return t instanceof it}function oS(t,n,e=null,r=null,o=new Xn){let i=iS(t);return sS(i,n,e,r,o)}function iS(t){let n;function e(i){let s={};for(let c of i.children){let l=e(c);s[c.outlet]=l}let a=new te(i.url,s);return i===t&&(n=a),a}let r=e(t.root),o=nS(r);return n??o}function sS(t,n,e,r,o){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return Xg(i,i,i,e,r,o);let s=kP(n);if(s.toRoot())return Xg(i,i,new te([],{}),e,r,o);let a=FP(s,i,t),c=a.processChildren?Ma(a.segmentGroup,a.index,s.commands):cS(a.segmentGroup,a.index,s.commands);return Xg(i,a.segmentGroup,c,e,r,o)}function gd(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Aa(t){return typeof t=="object"&&t!=null&&t.outlets}function HI(t,n,e){t||="\u0275";let r=new it;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function Xg(t,n,e,r,o,i){let s={};for(let[l,u]of Object.entries(r??{}))s[l]=Array.isArray(u)?u.map(d=>HI(l,d,i)):HI(l,u,i);let a;t===n?a=e:a=aS(t,n,e);let c=nS(rS(a));return new it(c,s,o)}function aS(t,n,e){let r={};return Object.entries(t.children).forEach(([o,i])=>{i===n?r[o]=e:r[o]=aS(i,n,e)}),new te(t.segments,r)}var vd=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&gd(r[0]))throw new b(4003,!1);let o=r.find(Aa);if(o&&o!==gP(r))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function kP(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new vd(!0,0,t);let n=0,e=!1,r=t.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?e=!0:a===".."?n++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new vd(e,n,r)}var xi=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function FP(t,n,e){if(t.isAbsolute)return new xi(n,!0,0);if(!e)return new xi(n,!1,NaN);if(e.parent===null)return new xi(e,!0,0);let r=gd(t.commands[0])?0:1,o=e.segments.length-1+r;return PP(e,o,t.numberOfDoubleDots)}function PP(t,n,e){let r=t,o=n,i=e;for(;i>o;){if(i-=o,r=r.parent,!r)throw new b(4005,!1);o=r.segments.length}return new xi(r,!1,o-i)}function LP(t){return Aa(t[0])?t[0].outlets:{[B]:t}}function cS(t,n,e){if(t??=new te([],{}),t.segments.length===0&&t.hasChildren())return Ma(t,n,e);let r=jP(t,n,e),o=e.slice(r.commandIndex);if(r.match&&r.pathIndexi!==B)&&t.children[B]&&t.numberOfChildren===1&&t.children[B].segments.length===0){let i=Ma(t.children[B],n,e);return new te(t.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=cS(t.children[i],n,s))}),Object.entries(t.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new te(t.segments,o)}}function jP(t,n,e){let r=0,o=n,i={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return i;let s=t.segments[o],a=e[r];if(Aa(a))break;let c=`${a}`,l=r0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!zI(c,l,s))return i;r+=2}else{if(!zI(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function iv(t,n,e){let r=t.segments.slice(0,n),o=0;for(;o{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=iv(new te([],{}),0,r))}),n}function $I(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function zI(t,n,e){return t==e.path&&Sn(n,e.parameters)}var Ai="imperative",je=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(je||{}),Dt=class{id;url;constructor(n,e){this.id=n,this.url=e}},Mr=class extends Dt{type=je.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",o=null){super(n,e),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Et=class extends Dt{urlAfterRedirects;type=je.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},et=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(et||{}),Ni=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Ni||{}),Ft=class extends Dt{reason;code;type=je.NavigationCancel;constructor(n,e,r,o){super(n,e),this.reason=r,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function lS(t){return t instanceof Ft&&(t.code===et.Redirect||t.code===et.SupersededByNewNavigation)}var Mn=class extends Dt{reason;code;type=je.NavigationSkipped;constructor(n,e,r,o){super(n,e),this.reason=r,this.code=o}},Do=class extends Dt{error;target;type=je.NavigationError;constructor(n,e,r,o){super(n,e),this.error=r,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ra=class extends Dt{urlAfterRedirects;state;type=je.RoutesRecognized;constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},yd=class extends Dt{urlAfterRedirects;state;type=je.GuardsCheckStart;constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},bd=class extends Dt{urlAfterRedirects;state;shouldActivate;type=je.GuardsCheckEnd;constructor(n,e,r,o,i){super(n,e),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},_d=class extends Dt{urlAfterRedirects;state;type=je.ResolveStart;constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Dd=class extends Dt{urlAfterRedirects;state;type=je.ResolveEnd;constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ed=class{route;type=je.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},wd=class{route;type=je.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Cd=class{snapshot;type=je.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Id=class{snapshot;type=je.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Sd=class{snapshot;type=je.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Md=class{snapshot;type=je.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Oi=class{routerEvent;position;anchor;scrollBehavior;type=je.Scroll;constructor(n,e,r,o){this.routerEvent=n,this.position=e,this.anchor=r,this.scrollBehavior=o}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},ki=class{},Na=class{},Fi=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function BP(t){return!(t instanceof ki)&&!(t instanceof Fi)&&!(t instanceof Na)}var Td=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new wo(this.rootInjector)}},wo=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let o=this.getOrCreateContext(e);o.outlet=r,this.contexts.set(e,o)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Td(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(w(re))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),xd=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=sv(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=sv(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=av(n,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return av(n,this._root).map(e=>e.value)}};function sv(t,n){if(t===n.value)return n;for(let e of n.children){let r=sv(t,e);if(r)return r}return null}function av(t,n){if(t===n.value)return[n];for(let e of n.children){let r=av(t,e);if(r.length)return r.unshift(n),r}return[]}var _t=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function Ti(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var Oa=class extends xd{snapshot;constructor(n,e){super(n),this.snapshot=e,yv(this,n)}toString(){return this.snapshot.toString()}};function uS(t,n){let e=UP(t,n),r=new Ae([new Ir("",{})]),o=new Ae({}),i=new Ae({}),s=new Ae({}),a=new Ae(""),c=new Jn(r,o,s,a,i,B,t,e.root);return c.snapshot=e.root,new Oa(new _t(c,[]),e)}function UP(t,n){let e={},r={},o={},s=new Pi([],e,o,"",r,B,t,null,{},n);return new ka("",new _t(s,[]))}var Jn=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,o,i,s,a,c){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(V(l=>l[La]))??S(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(V(n=>_o(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(V(n=>_o(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function vv(t,n,e="emptyOnly"){let r,{routeConfig:o}=t;return n!==null&&(e==="always"||o?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:g(g({},n.params),t.params),data:g(g({},n.data),t.data),resolve:g(g(g(g({},t.data),n.data),o?.data),t._resolvedData)}:r={params:g({},t.params),data:g({},t.data),resolve:g(g({},t.data),t._resolvedData??{})},o&&fS(o)&&(r.resolve[La]=o.title),r}var Pi=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[La]}constructor(n,e,r,o,i,s,a,c,l,u){this.url=n,this.params=e,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l,this._environmentInjector=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??=_o(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=_o(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},ka=class extends xd{url;constructor(n,e){super(e),this.url=n,yv(this,e)}toString(){return dS(this._root)}};function yv(t,n){n.value._routerState=t,n.children.forEach(e=>yv(t,e))}function dS(t){let n=t.children.length>0?` { ${t.children.map(dS).join(", ")} } `:"";return`${t.value}${n}`}function Jg(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Sn(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),Sn(n.params,e.params)||t.paramsSubject.next(e.params),mP(n.url,e.url)||t.urlSubject.next(e.url),Sn(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function cv(t,n){let e=Sn(t.params,n.params)&&_P(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||cv(t.parent,n.parent))}function fS(t){return typeof t.title=="string"||t.title===null}var hS=new y(""),bv=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=B;activateEvents=new H;deactivateEvents=new H;attachEvents=new H;detachEvents=new H;routerOutletData=zE();parentContexts=f(wo);location=f(Qe);changeDetector=f(Jt);inputBinder=f(ja,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:o}=e.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(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new b(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new b(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new b(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new b(4013,!1);this._activatedRoute=e;let o=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new lv(e,a,o.injector,this.routerOutletData);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=T({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[$e]})}return t})(),lv=class{route;childContexts;parent;outletData;constructor(n,e,r,o){this.route=n,this.childContexts=e,this.parent=r,this.outletData=o}get(n,e){return n===Jn?this.route:n===wo?this.childContexts:n===hS?this.outletData:this.parent.get(n,e)}},ja=new y(""),_v=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,o=Ro([r.queryParams,r.params,r.data]).pipe(Ve(([i,s,a],c)=>(a=g(g(g({},i),s),a),c===0?S(a):Promise.resolve(a)))).subscribe(i=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let s=ZE(r.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,i[a])});this.outletDataSubscriptions.set(e,o)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),Dv=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Te({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,o){r&1&&zl(0,"router-outlet")},dependencies:[bv],encapsulation:2})}return t})();function Ev(t){let n=t.children&&t.children.map(Ev),e=n?F(g({},t),{children:n}):g({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==B&&(e.component=Dv),e}function HP(t,n,e){let r=Fa(t,n._root,e?e._root:void 0);return new Oa(r,n)}function Fa(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let o=$P(t,n,e);return new _t(r,o)}else{if(t.shouldAttach(n.value)){let i=t.retrieve(n.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Fa(t,a)),s}}let r=zP(n.value),o=n.children.map(i=>Fa(t,i));return new _t(r,o)}}function $P(t,n,e){return n.children.map(r=>{for(let o of e.children)if(t.shouldReuseRoute(r.value,o.value.snapshot))return Fa(t,r,o);return Fa(t,r)})}function zP(t){return new Jn(new Ae(t.url),new Ae(t.params),new Ae(t.queryParams),new Ae(t.fragment),new Ae(t.data),t.outlet,t.component,t)}var Li=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},pS="ngNavigationCancelingError";function Ad(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=Sr(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=mS(!1,et.Redirect);return o.url=e,o.navigationBehaviorOptions=r,o}function mS(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[pS]=!0,e.cancellationCode=n,e}function GP(t){return gS(t)&&Sr(t.url)}function gS(t){return!!t&&t[pS]}var uv=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,o,i){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),Jg(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let o=Ti(e);n.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(n,e,r){let o=n.value,i=e?e.value:null;if(o===i)if(o.component){let s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else i&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),o=r&&n.value.component?r.children:e,i=Ti(n);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),o=r&&n.value.component?r.children:e,i=Ti(n);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let o=Ti(e);n.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Md(i.value.snapshot))}),n.children.length&&this.forwardEvent(new Id(n.value.snapshot))}activateRoutes(n,e,r){let o=n.value,i=e?e.value:null;if(Jg(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,r);else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Jg(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},Rd=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Ri=class{component;route;constructor(n,e){this.component=n,this.route=e}};function WP(t,n,e){let r=t._root,o=n?n._root:null;return Sa(r,o,e,[r.value])}function qP(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Vi(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!Af(t)?t:n.get(t):r}function Sa(t,n,e,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=Ti(n);return t.children.forEach(s=>{YP(s,i[s.value.outlet],e,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Ta(a,e.getContext(s),o)),o}function YP(t,n,e,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=ZP(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new Rd(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?Sa(t,n,a?a.children:null,r,o):Sa(t,n,e,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Ri(a.outlet.component,s))}else s&&Ta(n,a,o),o.canActivateChecks.push(new Rd(r)),i.component?Sa(t,null,a?a.children:null,r,o):Sa(t,null,e,r,o);return o}function ZP(t,n,e){if(typeof e=="function")return Fe(n._environmentInjector,()=>e(t,n));switch(e){case"pathParamsChange":return!bo(t.url,n.url);case"pathParamsOrQueryParamsChange":return!bo(t.url,n.url)||!Sn(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!cv(t,n)||!Sn(t.queryParams,n.queryParams);default:return!cv(t,n)}}function Ta(t,n,e){let r=Ti(t),o=t.value;Object.entries(r).forEach(([i,s])=>{o.component?n?Ta(s,n.children.getContext(i),e):Ta(s,null,e):Ta(s,n,e)}),o.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Ri(n.outlet.component,o)):e.canDeactivateChecks.push(new Ri(null,o)):e.canDeactivateChecks.push(new Ri(null,o))}function Va(t){return typeof t=="function"}function KP(t){return typeof t=="boolean"}function QP(t){return t&&Va(t.canLoad)}function XP(t){return t&&Va(t.canActivate)}function JP(t){return t&&Va(t.canActivateChild)}function eL(t){return t&&Va(t.canDeactivate)}function tL(t){return t&&Va(t.canMatch)}function vS(t){return t instanceof An||t?.name==="EmptyError"}var dd=Symbol("INITIAL_VALUE");function ji(){return Ve(t=>Ro(t.map(n=>n.pipe(Ne(1),No(dd)))).pipe(V(n=>{for(let e of n)if(e!==!0){if(e===dd)return dd;if(e===!1||nL(e))return e}return!0}),he(n=>n!==dd),Ne(1)))}function nL(t){return Sr(t)||t instanceof Li}function yS(t){return t.aborted?S(void 0).pipe(Ne(1)):new P(n=>{let e=()=>{n.next(),n.complete()};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function bS(t){return jt(yS(t))}function rL(t){return Ee(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:i}}=n;return i.length===0&&o.length===0?S(F(g({},n),{guardsResult:!0})):oL(i,e,r).pipe(Ee(s=>s&&KP(s)?iL(e,o,t):S(s)),V(s=>F(g({},n),{guardsResult:s})))})}function oL(t,n,e){return ae(t).pipe(Ee(r=>uL(r.component,r.route,e,n)),Nn(r=>r!==!0,!0))}function iL(t,n,e){return ae(n).pipe(or(r=>ln(aL(r.route.parent,e),sL(r.route,e),lL(t,r.path),cL(t,r.route))),Nn(r=>r!==!0,!0))}function sL(t,n){return t!==null&&n&&n(new Sd(t)),S(!0)}function aL(t,n){return t!==null&&n&&n(new Cd(t)),S(!0)}function cL(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return S(!0);let r=e.map(o=>qi(()=>{let i=n._environmentInjector,s=Vi(o,i),a=XP(s)?s.canActivate(n,t):Fe(i,()=>s(n,t));return Eo(a).pipe(Nn())}));return S(r).pipe(ji())}function lL(t,n){let e=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(i=>qP(i)).filter(i=>i!==null).map(i=>qi(()=>{let s=i.guards.map(a=>{let c=i.node._environmentInjector,l=Vi(a,c),u=JP(l)?l.canActivateChild(e,t):Fe(c,()=>l(e,t));return Eo(u).pipe(Nn())});return S(s).pipe(ji())}));return S(o).pipe(ji())}function uL(t,n,e,r){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return S(!0);let i=o.map(s=>{let a=n._environmentInjector,c=Vi(s,a),l=eL(c)?c.canDeactivate(t,n,e,r):Fe(a,()=>c(t,n,e,r));return Eo(l).pipe(Nn())});return S(i).pipe(ji())}function dL(t,n,e,r,o){let i=n.canLoad;if(i===void 0||i.length===0)return S(!0);let s=i.map(a=>{let c=Vi(a,t),l=QP(c)?c.canLoad(n,e):Fe(t,()=>c(n,e)),u=Eo(l);return o?u.pipe(bS(o)):u});return S(s).pipe(ji(),_S(r))}function _S(t){return qd(Be(n=>{if(typeof n!="boolean")throw Ad(t,n)}),V(n=>n===!0))}function fL(t,n,e,r,o,i){let s=n.canMatch;if(!s||s.length===0)return S(!0);let a=s.map(c=>{let l=Vi(c,t),u=tL(l)?l.canMatch(n,e,o):Fe(t,()=>l(n,e,o));return Eo(u).pipe(bS(i))});return S(a).pipe(ji(),_S(r))}var Qn=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype)}},Pa=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype)}};function hL(t){throw new b(4e3,!1)}function pL(t){throw mS(!1,et.GuardRejected)}var dv=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}async lineralizeSegments(n,e){let r=[],o=e.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return r;if(o.numberOfChildren>1||!o.children[B])throw hL(`${n.redirectTo}`);o=o.children[B]}}async applyRedirectCommands(n,e,r,o,i){let s=await mL(e,o,i);if(s instanceof it)throw new Pa(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),n,r);if(s[0]==="/")throw new Pa(a);return a}applyRedirectCreateUrlTree(n,e,r,o){let i=this.createSegmentGroup(n,e.root,r,o);return new it(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=e[a]}else r[o]=i}),r}createSegmentGroup(n,e,r,o){let i=this.createSegments(n,e.segments,r,o),s={};return Object.entries(e.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,r,o)}),new te(i,s)}createSegments(n,e,r,o){return e.map(i=>i.path[0]===":"?this.findPosParam(n,i,o):this.findOrReturn(i,r))}findPosParam(n,e,r){let o=r[e.path.substring(1)];if(!o)throw new b(4001,!1);return o}findOrReturn(n,e){let r=0;for(let o of e){if(o.path===n.path)return e.splice(r),o;r++}return n}};function mL(t,n,e){if(typeof t=="string")return Promise.resolve(t);let r=t;return md(Eo(Fe(e,()=>r(n))))}function gL(t,n){return t.providers&&!t._injector&&(t._injector=oi(t.providers,n,`Route: ${t.path}`)),t._injector??n}function sn(t){return t.outlet||B}function vL(t,n){let e=t.filter(r=>sn(r)===n);return e.push(...t.filter(r=>sn(r)!==n)),e}var fv={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function DS(t){return{routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function yL(t,n,e,r,o,i,s){let a=ES(t,n,e);if(!a.matched)return S(a);let c=DS(i(a));return r=gL(n,r),fL(r,n,e,o,c,s).pipe(V(l=>l===!0?a:g({},fv)))}function ES(t,n,e){if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?g({},fv):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let o=(n.matcher||qI)(e,t,n);if(!o)return g({},fv);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?g(g({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function GI(t,n,e,r,o){return e.length>0&&DL(t,e,r,o)?{segmentGroup:new te(n,_L(r,new te(e,t.children))),slicedSegments:[]}:e.length===0&&EL(t,e,r)?{segmentGroup:new te(t.segments,bL(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new te(t.segments,t.children),slicedSegments:e}}function bL(t,n,e,r){let o={};for(let i of e)if(Od(t,n,i)&&!r[sn(i)]){let s=new te([],{});o[sn(i)]=s}return g(g({},r),o)}function _L(t,n){let e={};e[B]=n;for(let r of t)if(r.path===""&&sn(r)!==B){let o=new te([],{});e[sn(r)]=o}return e}function DL(t,n,e,r){return e.some(o=>!Od(t,n,o)||!(sn(o)!==B)?!1:!(r!==void 0&&sn(o)===r))}function EL(t,n,e){return e.some(r=>Od(t,n,r))}function Od(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function wL(t,n,e){return n.length===0&&!t.children[e]}var hv=class{};async function CL(t,n,e,r,o,i,s="emptyOnly",a){return new pv(t,n,e,r,o,s,i,a).recognize()}var IL=31,pv=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,r,o,i,s,a,c){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=c,this.applyRedirects=new dv(this.urlSerializer,this.urlTree)}noMatchError(n){return new b(4002,`'${n.segmentGroup}'`)}async recognize(){let n=GI(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=await this.match(n),o=new _t(r,e),i=new ka("",o),s=oS(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}async match(n){let e=new Pi([],Object.freeze({}),Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),B,this.rootComponentType,null,{},this.injector);try{return{children:await this.processSegmentGroup(this.injector,this.config,n,B,e),rootSnapshot:e}}catch(r){if(r instanceof Pa)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Qn?this.noMatchError(r):r}}async processSegmentGroup(n,e,r,o,i){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,i);let s=await this.processSegment(n,e,r,r.segments,o,!0,i);return s instanceof _t?[s]:[]}async processChildren(n,e,r,o){let i=[];for(let c of Object.keys(r.children))c==="primary"?i.unshift(c):i.push(c);let s=[];for(let c of i){let l=r.children[c],u=vL(e,c),d=await this.processSegmentGroup(n,u,l,c,o);s.push(...d)}let a=wS(s);return SL(a),a}async processSegment(n,e,r,o,i,s,a){for(let c of e)try{return await this.processSegmentAgainstRoute(c._injector??n,e,c,r,o,i,s,a)}catch(l){if(l instanceof Qn||vS(l))continue;throw l}if(wL(r,o,i))return new hv;throw new Qn(r)}async processSegmentAgainstRoute(n,e,r,o,i,s,a,c){if(sn(r)!==s&&(s===B||!Od(o,i,r)))throw new Qn(o);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,o,r,i,s,c);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(n,o,e,r,i,s,c);throw new Qn(o)}async expandSegmentAgainstRouteUsingRedirect(n,e,r,o,i,s,a){let{matched:c,parameters:l,consumedSegments:u,positionalParamSegments:d,remainingSegments:h}=ES(e,o,i);if(!c)throw new Qn(e);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>IL&&(this.allowRedirects=!1));let p=this.createSnapshot(n,o,i,l,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let m=await this.applyRedirects.applyRedirectCommands(u,o.redirectTo,d,DS(p),n),_=await this.applyRedirects.lineralizeSegments(o,m);return this.processSegment(n,r,e,_.concat(h),s,!1,a)}createSnapshot(n,e,r,o,i){let s=new Pi(r,o,Object.freeze(g({},this.urlTree.queryParams)),this.urlTree.fragment,TL(e),sn(e),e.component??e._loadedComponent??null,e,xL(e),n),a=vv(s,i,this.paramsInheritanceStrategy);return s.params=Object.freeze(a.params),s.data=Object.freeze(a.data),s}async matchSegmentAgainstRoute(n,e,r,o,i,s){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=De=>this.createSnapshot(n,r,De.consumedSegments,De.parameters,s),c=await md(yL(e,r,o,n,this.urlSerializer,a,this.abortSignal));if(r.path==="**"&&(e.children={}),!c?.matched)throw new Qn(e);n=r._injector??n;let{routes:l}=await this.getChildConfig(n,r,o),u=r._loadedInjector??n,{parameters:d,consumedSegments:h,remainingSegments:p}=c,m=this.createSnapshot(n,r,h,d,s),{segmentGroup:_,slicedSegments:D}=GI(e,h,p,l,i);if(D.length===0&&_.hasChildren()){let De=await this.processChildren(u,l,_,m);return new _t(m,De)}if(l.length===0&&D.length===0)return new _t(m,[]);let C=sn(r)===i,z=await this.processSegment(u,l,_,D,C?B:i,!0,m);return new _t(m,z instanceof _t?[z]:[])}async getChildConfig(n,e,r){if(e.children)return{routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let i=e._loadedNgModuleFactory;return i&&!e._loadedInjector&&(e._loadedInjector=i.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await md(dL(n,e,r,this.urlSerializer,this.abortSignal))){let i=await this.configLoader.loadChildren(n,e);return e._loadedRoutes=i.routes,e._loadedInjector=i.injector,e._loadedNgModuleFactory=i.factory,i}throw pL(e)}return{routes:[],injector:n}}};function SL(t){t.sort((n,e)=>n.value.outlet===B?-1:e.value.outlet===B?1:n.value.outlet.localeCompare(e.value.outlet))}function ML(t){let n=t.value.routeConfig;return n&&n.path===""}function wS(t){let n=[],e=new Set;for(let r of t){if(!ML(r)){n.push(r);continue}let o=n.find(i=>r.value.routeConfig===i.value.routeConfig);o!==void 0?(o.children.push(...r.children),e.add(o)):n.push(r)}for(let r of e){let o=wS(r.children);n.push(new _t(r.value,o))}return n.filter(r=>!e.has(r))}function TL(t){return t.data||{}}function xL(t){return t.resolve||{}}function AL(t,n,e,r,o,i,s){return Ee(async a=>{let{state:c,tree:l}=await CL(t,n,e,r,a.extractedUrl,o,i,s);return F(g({},a),{targetSnapshot:c,urlAfterRedirects:l})})}function RL(t){return Ee(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return S(n);let o=new Set(r.map(a=>a.route)),i=new Set;for(let a of o)if(!i.has(a))for(let c of CS(a))i.add(c);let s=0;return ae(i).pipe(or(a=>o.has(a)?NL(a,e,t):(a.data=vv(a,a.parent,t).resolve,S(void 0))),Be(()=>s++),vc(1),Ee(a=>s===i.size?S(n):Re))})}function CS(t){let n=t.children.map(e=>CS(e)).flat();return[t,...n]}function NL(t,n,e){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!fS(r)&&(o[La]=r.title),qi(()=>(t.data=vv(t,t.parent,e).resolve,OL(o,t,n).pipe(V(i=>(t._resolvedData=i,t.data=g(g({},t.data),i),null)))))}function OL(t,n,e){let r=tv(t);if(r.length===0)return S({});let o={};return ae(r).pipe(Ee(i=>kL(t[i],n,e).pipe(Nn(),Be(s=>{if(s instanceof Li)throw Ad(new Xn,s);o[i]=s}))),vc(1),V(()=>o),It(i=>vS(i)?Re:xn(i)))}function kL(t,n,e){let r=n._environmentInjector,o=Vi(t,r),i=o.resolve?o.resolve(n,e):Fe(r,()=>o(n,e));return Eo(i)}function WI(t){return Ve(n=>{let e=t(n);return e?ae(e).pipe(V(()=>n)):S(n)})}var wv=(()=>{class t{buildTitle(e){let r,o=e.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===B);return r}getResolvedTitleForRoute(e){return e.data[La]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:()=>f(IS),providedIn:"root"})}return t})(),IS=(()=>{class t extends wv{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||t)(w(qw))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),xr=new y("",{factory:()=>({})}),Bi=new y(""),kd=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=f(cm);async loadComponent(e,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let o=(async()=>{try{let i=await ZI(Fe(e,()=>r.loadComponent())),s=await TS(MS(i));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s,s}finally{this.componentLoaders.delete(r)}})();return this.componentLoaders.set(r,o),o}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=(async()=>{try{let i=await SS(r,this.compiler,e,this.onLoadEndListener);return r._loadedRoutes=i.routes,r._loadedInjector=i.injector,r._loadedNgModuleFactory=i.factory,i}finally{this.childrenLoaders.delete(r)}})();return this.childrenLoaders.set(r,o),o}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();async function SS(t,n,e,r){let o=await ZI(Fe(e,()=>t.loadChildren())),i=await TS(MS(o)),s;i instanceof Ll||Array.isArray(i)?s=i:s=await n.compileModuleAsync(i),r&&r(t);let a,c,l=!1,u;return Array.isArray(s)?(c=s,l=!0):(a=s.create(e).injector,u=s,c=a.get(Bi,[],{optional:!0,self:!0}).flat()),{routes:c.map(Ev),injector:a,factory:u}}function FL(t){return t&&typeof t=="object"&&"default"in t}function MS(t){return FL(t)?t.default:t}async function TS(t){return t}var Fd=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:()=>f(PL),providedIn:"root"})}return t})(),PL=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Cv=new y(""),Iv=new y("");function xS(t,n,e){let r=t.get(Iv),o=t.get(O);if(!o.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(l=>setTimeout(l));let i,s=new Promise(l=>{i=l}),a=o.startViewTransition(()=>(i(),LL(t)));a.updateCallbackDone.catch(l=>{}),a.ready.catch(l=>{}),a.finished.catch(l=>{});let{onViewTransitionCreated:c}=r;return c&&Fe(t,()=>c({transition:a,from:n,to:e})),s}function LL(t){return new Promise(n=>{At({read:()=>setTimeout(n)},{injector:t})})}var jL=()=>{},Sv=new y(""),Pd=(()=>{class t{currentNavigation=K(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=K(null);events=new x;transitionAbortWithErrorSubject=new x;configLoader=f(kd);environmentInjector=f(re);destroyRef=f(Ue);urlSerializer=f(Tr);rootContexts=f(wo);location=f(Dn);inputBindingEnabled=f(ja,{optional:!0})!==null;titleStrategy=f(wv);options=f(xr,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=f(Fd);createViewTransition=f(Cv,{optional:!0});navigationErrorHandler=f(Sv,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>S(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=o=>this.events.next(new Ed(o)),r=o=>this.events.next(new wd(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;Y(()=>{this.transitions?.next(F(g({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(e){return this.transitions=new Ae(null),this.transitions.pipe(he(r=>r!==null),Ve(r=>{let o=!1,i=new AbortController,s=()=>!o&&this.currentTransition?.id===r.id;return S(r).pipe(Ve(a=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",et.SupersededByNewNavigation),Re;this.currentTransition=r;let c=this.lastSuccessfulNavigation();this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:c?F(g({},c),{previousNavigation:null}):null,abort:()=>i.abort(),routesRecognizeHandler:a.routesRecognizeHandler,beforeActivateHandler:a.beforeActivateHandler});let l=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!l&&u!=="reload")return this.events.next(new Mn(a.id,this.urlSerializer.serialize(a.rawUrl),"",Ni.IgnoredSameUrlNavigation)),a.resolve(!1),Re;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return S(a).pipe(Ve(d=>(this.events.next(new Mr(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),d.id!==this.navigationId?Re:Promise.resolve(d))),AL(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,i.signal),Be(d=>{r.targetSnapshot=d.targetSnapshot,r.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation.update(h=>(h.finalUrl=d.urlAfterRedirects,h)),this.events.next(new Na)}),Ve(d=>ae(r.routesRecognizeHandler.deferredHandle??S(void 0)).pipe(V(()=>d))),Be(()=>{let d=new Ra(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(d)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:d,extractedUrl:h,source:p,restoredState:m,extras:_}=a,D=new Mr(d,this.urlSerializer.serialize(h),p,m);this.events.next(D);let C=uS(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=F(g({},a),{targetSnapshot:C,urlAfterRedirects:h,extras:F(g({},_),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(z=>(z.finalUrl=h,z)),S(r)}else return this.events.next(new Mn(a.id,this.urlSerializer.serialize(a.extractedUrl),"",Ni.IgnoredByUrlHandlingStrategy)),a.resolve(!1),Re}),V(a=>{let c=new yd(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(c),this.currentTransition=r=F(g({},a),{guards:WP(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),r}),rL(a=>this.events.next(a)),Ve(a=>{if(r.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw Ad(this.urlSerializer,a.guardsResult);let c=new bd(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(c),!s())return Re;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",et.GuardRejected),Re;if(a.guards.canActivateChecks.length===0)return S(a);let l=new _d(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(l),!s())return Re;let u=!1;return S(a).pipe(RL(this.paramsInheritanceStrategy),Be({next:()=>{u=!0;let d=new Dd(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(d)},complete:()=>{u||this.cancelNavigationTransition(a,"",et.NoDataFromResolver)}}))}),WI(a=>{let c=u=>{let d=[];if(u.routeConfig?._loadedComponent)u.component=u.routeConfig?._loadedComponent;else if(u.routeConfig?.loadComponent){let h=u._environmentInjector;d.push(this.configLoader.loadComponent(h,u.routeConfig).then(p=>{u.component=p}))}for(let h of u.children)d.push(...c(h));return d},l=c(a.targetSnapshot.root);return l.length===0?S(a):ae(Promise.all(l).then(()=>a))}),WI(()=>this.afterPreactivation()),Ve(()=>{let{currentSnapshot:a,targetSnapshot:c}=r,l=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return l?ae(l).pipe(V(()=>r)):S(r)}),Ne(1),Ve(a=>{let c=HP(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=r=a=F(g({},a),{targetRouterState:c}),this.currentNavigation.update(u=>(u.targetRouterState=c,u)),this.events.next(new ki);let l=r.beforeActivateHandler.deferredHandle;return l?ae(l.then(()=>a)):S(a)}),Be(a=>{new uv(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,c=>this.events.next(c),this.inputBindingEnabled).activate(this.rootContexts),s()&&(o=!0,this.currentNavigation.update(c=>(c.abort=jL,c)),this.lastSuccessfulNavigation.set(Y(this.currentNavigation)),this.events.next(new Et(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0))}),jt(yS(i.signal).pipe(he(()=>!o&&!r.targetRouterState),Be(()=>{this.cancelNavigationTransition(r,i.signal.reason+"",et.Aborted)}))),Be({complete:()=>{o=!0}}),jt(this.transitionAbortWithErrorSubject.pipe(Be(a=>{throw a}))),Rn(()=>{i.abort(),o||this.cancelNavigationTransition(r,"",et.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),It(a=>{if(o=!0,this.destroyed)return r.resolve(!1),Re;if(gS(a))this.events.next(new Ft(r.id,this.urlSerializer.serialize(r.extractedUrl),a.message,a.cancellationCode)),GP(a)?this.events.next(new Fi(a.url,a.navigationBehaviorOptions)):r.resolve(!1);else{let c=new Do(r.id,this.urlSerializer.serialize(r.extractedUrl),a,r.targetSnapshot??void 0);try{let l=Fe(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(l instanceof Li){let{message:u,cancellationCode:d}=Ad(this.urlSerializer,l);this.events.next(new Ft(r.id,this.urlSerializer.serialize(r.extractedUrl),u,d)),this.events.next(new Fi(l.redirectTo,l.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(l){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(l)}}return Re}))}))}cancelNavigationTransition(e,r,o){let i=new Ft(e.id,this.urlSerializer.serialize(e.extractedUrl),r,o);this.events.next(i),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=Y(this.currentNavigation),o=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==o?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function VL(t){return t!==Ai}var AS=new y("");var RS=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:()=>f(BL),providedIn:"root"})}return t})(),Nd=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return!0}},BL=(()=>{class t extends Nd{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Pe(t)))(o||t)}})();static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ld=(()=>{class t{urlSerializer=f(Tr);options=f(xr,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=f(Dn);urlHandlingStrategy=f(Fd);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new it;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:o}){let i=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,s=o??i;return s instanceof it?this.urlSerializer.serialize(s):s}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:o}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,o),this.routerState=e):this.rawUrlTree=o}routerState=uS(null,f(re));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:()=>f(UL),providedIn:"root"})}return t})(),UL=(()=>{class t extends Ld{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(e,r){e instanceof Mr?this.updateStateMemento():e instanceof Mn?this.commitTransition(r):e instanceof Ra?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof ki?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof Ft&&!lS(e)?this.restoreHistory(r):e instanceof Do?this.restoreHistory(r,!0):e instanceof Et&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,r){let{extras:o,id:i}=r,{replaceUrl:s,state:a}=o;if(this.location.isCurrentPathEqualTo(e)||s){let c=this.browserPageId,l=g(g({},a),this.generateNgRouterState(i,c,r));this.location.replaceState(e,"",l)}else{let c=g(g({},a),this.generateNgRouterState(i,this.browserPageId+1,r));this.location.go(e,"",c)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.getCurrentUrlTree()===e.finalUrl&&i===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r,o){return this.canceledNavigationResolution==="computed"?g({navigationId:e,\u0275routerPageId:r},this.routerUrlState(o)):g({navigationId:e},this.routerUrlState(o))}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Pe(t)))(o||t)}})();static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function jd(t,n){t.events.pipe(he(e=>e instanceof Et||e instanceof Ft||e instanceof Do||e instanceof Mn),V(e=>e instanceof Et||e instanceof Mn?0:(e instanceof Ft?e.code===et.Redirect||e.code===et.SupersededByNewNavigation:!1)?2:1),he(e=>e!==2),Ne(1)).subscribe(()=>{n()})}var wt=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=f(jl);stateManager=f(Ld);options=f(xr,{optional:!0})||{};pendingTasks=f(Bn);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=f(Pd);urlSerializer=f(Tr);location=f(Dn);urlHandlingStrategy=f(Fd);injector=f(re);_events=new x;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=f(RS);injectorCleanup=f(AS,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=f(Bi,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!f(ja,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new G;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=Y(this.navigationTransitions.currentNavigation);if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof Ft&&r.code!==et.Redirect&&r.code!==et.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Et)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof Fi){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=g({scroll:o.extras.scroll,browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||VL(o.source)},s);this.scheduleNavigation(a,Ai,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}BP(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ai,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,o,i)=>{this.navigateToSyncWithBrowser(e,o,r,i)})}navigateToSyncWithBrowser(e,r,o,i){let s=o?.navigationId?o:null,a=o?.\u0275routerUrl??e;if(o?.\u0275routerUrl&&(i=F(g({},i),{browserUrl:e})),o){let l=g({},o);delete l.navigationId,delete l.\u0275routerPageId,delete l.\u0275routerUrl,Object.keys(l).length!==0&&(i.state=l)}let c=this.parseUrl(a);this.scheduleNavigation(c,r,s,i).catch(l=>{this.disposed||this.injector.get(mt)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Y(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Ev),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,l=c?this.currentUrlTree.fragment:s,u=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":u=g(g({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}u!==null&&(u=this.removeEmptyProps(u));let d;try{let h=o?o.snapshot:this.routerState.snapshot.root;d=iS(h)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),d=this.currentUrlTree.root}return sS(d,e,u,l??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:!1}){let o=Sr(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Ai,null,r)}navigate(e,r={skipLocationChange:!1}){return HL(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(St(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,r){let o;if(r===!0?o=g({},mv):r===!1?o=g({},xa):o=g(g({},xa),r),Sr(e))return nv(this.currentUrlTree,e,o);let i=this.parseUrl(e);return nv(this.currentUrlTree,i,o)}removeEmptyProps(e){return Object.entries(e).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(e,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((d,h)=>{a=d,c=h});let u=this.pendingTasks.add();return jd(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:i,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function HL(t){for(let n=0;n{class t{router=f(wt);stateManager=f(Ld);fragment=K("");queryParams=K({});path=K("");serializer=f(Tr);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof Et&&this.updateState()})}updateState(){let{fragment:e,root:r,queryParams:o}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(o),this.path.set(this.serializer.serialize(new it(r)))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Vd=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=f(new ui("href"),{optional:!0});reactiveHref=um(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return Y(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}set target(e){this._target.set(e)}get target(){return Y(this._target)}_target=K(void 0);set queryParams(e){this._queryParams.set(e)}get queryParams(){return Y(this._queryParams)}_queryParams=K(void 0,{equal:()=>!1});set fragment(e){this._fragment.set(e)}get fragment(){return Y(this._fragment)}_fragment=K(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e)}get queryParamsHandling(){return Y(this._queryParamsHandling)}_queryParamsHandling=K(void 0);set state(e){this._state.set(e)}get state(){return Y(this._state)}_state=K(void 0,{equal:()=>!1});set info(e){this._info.set(e)}get info(){return Y(this._info)}_info=K(void 0,{equal:()=>!1});set relativeTo(e){this._relativeTo.set(e)}get relativeTo(){return Y(this._relativeTo)}_relativeTo=K(void 0);set preserveFragment(e){this._preserveFragment.set(e)}get preserveFragment(){return Y(this._preserveFragment)}_preserveFragment=K(!1);set skipLocationChange(e){this._skipLocationChange.set(e)}get skipLocationChange(){return Y(this._skipLocationChange)}_skipLocationChange=K(!1);set replaceUrl(e){this._replaceUrl.set(e)}get replaceUrl(){return Y(this._replaceUrl)}_replaceUrl=K(!1);isAnchorElement;onChanges=new x;applicationErrorHandler=f(mt);options=f(xr,{optional:!0});reactiveRouterState=f($L);constructor(e,r,o,i,s,a){this.router=e,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.onChanges.next(this)}routerLinkInput=K(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(Sr(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,o,i,s){let a=this._urlTree();if(a===null||this.isAnchorElement&&(e!==0||r||o||i||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c)?.catch(l=>{this.applicationErrorHandler(l)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,r){let o=this.renderer,i=this.el.nativeElement;r!==null?o.setAttribute(i,e,r):o.removeAttribute(i,e)}_urlTree=Xt(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=o=>o==="preserve"||o==="merge";(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let r=this.routerLinkInput();return r===null||!this.router.createUrlTree?null:Sr(r)?r:this.router.createUrlTree(r,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,r)=>this.computeHref(e)===this.computeHref(r)});get urlTree(){return Y(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(r){return new(r||t)(E(wt),E(Jn),ks("tabindex"),E(Le),E($),E(tn))};static \u0275dir=T({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,o){r&1&&Qt("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&&yt("href",o.reactiveHref(),wp)("target",o._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",ue],skipLocationChange:[2,"skipLocationChange","skipLocationChange",ue],replaceUrl:[2,"replaceUrl","replaceUrl",ue],routerLink:"routerLink"},features:[$e]})}return t})(),zL=(()=>{class t{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new H;link=f(Vd,{optional:!0});constructor(e,r,o,i){this.router=e,this.element=r,this.renderer=o,this.cdr=i,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof Et&&this.update()})}ngAfterContentInit(){S(this.links.changes,S(null)).pipe(cn()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=ae(e).pipe(cn()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let r=GL(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??!1?g({},mv):g({},xa);return o=>{let i=o.urlTree;return i?Y(gv(i,e,r)):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(E(wt),E($),E(Le),E(Jt))};static \u0275dir=T({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,o,i){if(r&1&&Gl(i,Vd,5),r&2){let s;Wl(s=ql())&&(o.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[$e]})}return t})();function GL(t){let n=t;return!!(n.paths||n.matrixParams||n.queryParams||n.fragment)}var Ba=class{};var NS=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,o,i){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=i}setUpPreloading(){this.subscription=this.router.events.pipe(he(e=>e instanceof Et),or(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(e,r){let o=[];for(let i of r){i.providers&&!i._injector&&(i._injector=oi(i.providers,e,""));let s=i._injector??e;i._loadedNgModuleFactory&&!i._loadedInjector&&(i._loadedInjector=i._loadedNgModuleFactory.create(s).injector);let a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&i.canLoad===void 0||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return ae(o).pipe(cn())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return S(null);let o;r.loadChildren&&r.canLoad===void 0?o=ae(this.loader.loadChildren(e,r)):o=S(null);let i=o.pipe(Ee(s=>s===null?S(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,r._loadedNgModuleFactory=s.factory,this.processRoutes(s.injector??e,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(e,r);return ae([i,s]).pipe(cn())}else return i})}static \u0275fac=function(r){return new(r||t)(w(wt),w(re),w(Ba),w(kd))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),OS=new y(""),WL=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Ai;restoredId=0;store={};isHydrating=f(gp,{optional:!0})??!1;urlSerializer=f(Tr);zone=f(j);viewportScroller=f(Vm);transitions=f(Pd);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&f(Ge).whenStable().then(()=>{this.isHydrating=!1})}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Mr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Et?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Mn&&e.code===Ni.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof Oi)||e.scrollBehavior==="manual")return;let r={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,r):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,r){if(this.isHydrating)return;let o=Y(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(async()=>{await new Promise(i=>{setTimeout(i),typeof requestAnimationFrame<"u"&&requestAnimationFrame(i)}),this.zone.run(()=>{this.transitions.events.next(new Oi(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r,o))})})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(r){Bp()};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();function qL(){return f(wt).routerState.root}function Ua(t,n){return{\u0275kind:t,\u0275providers:n}}function YL(){let t=f(W);return n=>{let e=t.get(Ge);if(n!==e.components[0])return;let r=t.get(wt),o=t.get(kS);t.get(Tv)===1&&r.initialNavigation(),t.get(LS,null,{optional:!0})?.setUpPreloading(),t.get(OS,null,{optional:!0})?.init(),r.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var kS=new y("",{factory:()=>new x}),Tv=new y("",{factory:()=>1});function FS(){let t=[{provide:wl,useValue:!0},{provide:Tv,useValue:0},Hl(()=>{let n=f(W);return n.get(Im,Promise.resolve()).then(()=>new Promise(r=>{let o=n.get(wt),i=n.get(kS);jd(o,()=>{r(!0)}),n.get(Pd).afterPreactivation=()=>(r(!0),i.closed?S(void 0):i),o.initialNavigation()}))})];return Ua(2,t)}function PS(){let t=[Hl(()=>{f(wt).setUpLocationChangeListener()}),{provide:Tv,useValue:2}];return Ua(3,t)}var LS=new y("");function jS(t){return Ua(0,[{provide:LS,useExisting:NS},{provide:Ba,useExisting:t}])}function VS(){return Ua(8,[_v,{provide:ja,useExisting:_v}])}function BS(t){Kt("NgRouterViewTransitions");let n=[{provide:Cv,useValue:xS},{provide:Iv,useValue:g({skipNextTransition:!!t?.skipInitialTransition},t)}];return Ua(9,n)}var US=[Dn,{provide:Tr,useClass:Xn},wt,wo,{provide:Jn,useFactory:qL},kd,[]],ZL=(()=>{class t{constructor(){}static forRoot(e,r){return{ngModule:t,providers:[US,[],{provide:Bi,multi:!0,useValue:e},[],r?.errorHandler?{provide:Sv,useValue:r.errorHandler}:[],{provide:xr,useValue:r||{}},r?.useHash?QL():XL(),KL(),r?.preloadingStrategy?jS(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?JL(r):[],r?.bindToComponentInputs?VS().\u0275providers:[],r?.enableViewTransitions?BS().\u0275providers:[],e1()]}}static forChild(e){return{ngModule:t,providers:[{provide:Bi,multi:!0,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=Q({type:t});static \u0275inj=q({})}return t})();function KL(){return{provide:OS,useFactory:()=>{let t=f(Vm),n=f(xr);return n.scrollOffset&&t.setOffset(n.scrollOffset),new WL(n)}}}function QL(){return{provide:tn,useClass:km}}function XL(){return{provide:tn,useClass:nu}}function JL(t){return[t.initialNavigation==="disabled"?PS().\u0275providers:[],t.initialNavigation==="enabledBlocking"?FS().\u0275providers:[]]}var Mv=new y("");function e1(){return[{provide:Mv,useFactory:YL},{provide:$l,multi:!0,useExisting:Mv}]}var Bd=class t extends Error{originalError;constructor(n){super(n)}static fromError(n,e){let r=new t(n);return r.originalError=e,r}},n1=(()=>{class t{handleError(e){let r=e;return e.name==="HttpErrorResponse"&&e.status===0?r=Bd.fromError("Controller is unreachable",e):e.error?.message&&(r=Bd.fromError(e.error.message,e)),xn(()=>r)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),eee=(()=>{class t{http;errorHandler;router;requestsNotificationEmitter=new H;isRefreshing=!1;failedQueue=[];constructor(e,r,o){this.http=e,this.errorHandler=r,this.router=o}get(e,r,o){o=this.getJsonOptions(o);let i=this.getOptionsForController(e,r,o);return this.requestsNotificationEmitter.emit(`GET ${i.url}`),this.handleResponse(e,this.http.get(i.url,i.options),"GET",r,null,o)}getText(e,r,o){o=this.getTextOptions(o);let i=this.getOptionsForController(e,r,o);return this.requestsNotificationEmitter.emit(`GET ${i.url}`),this.handleResponse(e,this.http.get(i.url,i.options),"GET",r,null,o)}getBlob(e,r,o){o=this.getBlobOptions(o);let i=this.getOptionsForController(e,r,o);return this.requestsNotificationEmitter.emit(`GET ${i.url}`),this.handleResponse(e,this.http.get(i.url,i.options),"GET",r,null,o)}post(e,r,o,i){i=this.getJsonOptions(i);let s=this.getOptionsForController(e,r,i);return this.requestsNotificationEmitter.emit(`POST ${s.url}`),this.handleResponse(e,this.http.post(s.url,o,s.options),"POST",r,o,i)}postBlob(e,r,o){let i={responseType:"blob",headers:{}},s=this.getOptionsForController(e,r,i);return this.requestsNotificationEmitter.emit(`POST ${s.url}`),this.handleResponse(e,this.http.post(s.url,o,s.options),"POST",r,o,i)}put(e,r,o,i){i=this.getJsonOptions(i);let s=this.getOptionsForController(e,r,i);return this.requestsNotificationEmitter.emit(`PUT ${s.url}`),this.handleResponse(e,this.http.put(s.url,o,s.options),"PUT",r,o,i)}delete(e,r,o){o=this.getJsonOptions(o);let i=this.getOptionsForController(e,r,o);return this.requestsNotificationEmitter.emit(`DELETE ${i.url}`),this.handleResponse(e,this.http.delete(i.url,i.options),"DELETE",r,null,o)}patch(e,r,o,i){i=this.getJsonOptions(i);let s=this.getOptionsForController(e,r,i);return this.handleResponse(e,this.http.patch(s.url,o,s.options),"PATCH",r,o,i)}head(e,r,o){o=this.getJsonOptions(o);let i=this.getOptionsForController(e,r,o);return this.handleResponse(e,this.http.head(i.url,i.options),"HEAD",r,null,o)}options(e,r,o){o=this.getJsonOptions(o);let i=this.getOptionsForController(e,r,o);return this.handleResponse(e,this.http.options(i.url,i.options),"OPTIONS",r,null,o)}getJsonOptions(e){return e||{responseType:"json"}}getTextOptions(e){return e||{responseType:"text"}}getBlobOptions(e){return e||{responseType:"blob"}}getOptionsForController(e,r,o){return e&&e.host&&e.port?(e.protocol||(e.protocol=location.protocol),r=`${e.protocol}//${e.host}:${e.port}/${ed.current_version}${r}`):r=`/${ed.current_version}${r}`,o.headers||(o.headers={}),e&&e.authToken&&!e.tokenExpired&&(o.headers.Authorization=`Bearer ${e.authToken}`),{url:r,options:o}}handleResponse(e,r,o,i,s,a){return r.pipe(It(c=>{if(c.status!==401)return this.errorHandler.handleError(c);if(i.endsWith("/access/users/login")||i.endsWith("/access/users/authenticate")||i.endsWith("/access/users/refresh"))return this.errorHandler.handleError(c);let l=localStorage.getItem(`refresh_token_${e.id}`);return l?this.retryAfterRefresh(e,o,i,s,a,l):(this.redirectToLogin(e),xn(()=>c))}))}retryAfterRefresh(e,r,o,i,s,a){return this.isRefreshing?new P(c=>{this.failedQueue.push({resolve:()=>{this.executeRequest(e,r,o,i,s).subscribe({next:l=>{c.next(l),c.complete()},error:l=>c.error(l)})},reject:l=>c.error(l)})}):(this.isRefreshing=!0,this.doRefreshToken(e,a).pipe(Ve(c=>(e.authToken=c.access_token,localStorage.setItem(`controller-${e.id}`,JSON.stringify(e)),c.refresh_token&&localStorage.setItem(`refresh_token_${e.id}`,c.refresh_token),this.isRefreshing=!1,this.processQueue(null),this.executeRequest(e,r,o,i,s))),It(c=>(this.isRefreshing=!1,this.processQueue(c),c.status===401&&this.redirectToLogin(e),xn(()=>c)))))}doRefreshToken(e,r){let o=`${e.protocol}//${e.host}:${e.port}/${ed.current_version}/access/users/refresh`;return this.http.post(o,{refresh_token:r},{headers:new wn({"Content-Type":"application/json"})})}executeRequest(e,r,o,i,s){let a=this.getOptionsForController(e,o,s);return this.requestsNotificationEmitter.emit(`${r} ${a.url}`),this.http.request(r,a.url,{body:i,headers:a.options.headers,params:a.options.params,responseType:a.options.responseType||"json"})}processQueue(e){e?this.failedQueue.forEach(r=>r.reject(e)):this.failedQueue.forEach(r=>r.resolve()),this.failedQueue=[]}clearTokens(e){localStorage.removeItem(`refresh_token_${e.id}`),e.authToken=null,localStorage.setItem(`controller-${e.id}`,JSON.stringify(e))}redirectToLogin(e){this.clearTokens(e),e.tokenExpired=!0,localStorage.setItem(`controller-${e.id}`,JSON.stringify(e)),this.isRefreshing=!1,this.processQueue(new Error("Session expired, redirecting to login")),this.router.navigate(["/controller",e.id,"login"])}static \u0275fac=function(r){return new(r||t)(w(pi),w(n1),w(wt))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();var xv=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected=null;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new x;constructor(n=!1,e,r=!0,o){this._multiple=n,this._emitChanges=r,this.compareWith=o,e&&e.length&&(n?e.forEach(i=>this._markSelected(i)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(r=>this._markSelected(r));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(r=>this._unmarkSelected(r));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);let e=this.selected,r=new Set(n.map(i=>this._getConcreteValue(i)));n.forEach(i=>this._markSelected(i)),e.filter(i=>!r.has(this._getConcreteValue(i,r))).forEach(i=>this._unmarkSelected(i));let o=this._hasQueuedChanges();return this._emitChangeEvent(),o}toggle(n){return this.isSelected(n)?this.deselect(n):this.select(n)}clear(n=!0){this._unmarkAll();let e=this._hasQueuedChanges();return n&&this._emitChangeEvent(),e}isSelected(n){return this._selection.has(this._getConcreteValue(n))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(n){n=this._getConcreteValue(n),this.isSelected(n)||(this._multiple||this._unmarkAll(),this.isSelected(n)||this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){n=this._getConcreteValue(n),this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){n.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(n,e){if(this.compareWith){e=e??this._selection;for(let r of e)if(this.compareWith(n,r))return r;return n}else return n}};var r1=(()=>{class t{_listeners=[];notify(e,r){for(let o of this._listeners)o(e,r)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(r=>e!==r)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var HS=class{applyChanges(n,e,r,o,i){n.forEachOperation((s,a,c)=>{let l,u;if(s.previousIndex==null){let d=r(s,a,c);l=e.createEmbeddedView(d.templateRef,d.context,d.index),u=In.INSERTED}else c==null?(e.remove(a),u=In.REMOVED):(l=e.get(a),e.move(l,c),u=In.MOVED);i&&i({context:l?.context,operation:u,record:s})})}detach(){}};var pee=(()=>{class t{_animationsDisabled=Cr();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=Te({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(r,o){r&2&&Xe("mat-pseudo-checkbox-indeterminate",o.state==="indeterminate")("mat-pseudo-checkbox-checked",o.state==="checked")("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal",o.appearance==="minimal")("mat-pseudo-checkbox-full",o.appearance==="full")("_mat-animation-noopable",o._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(r,o){},styles:[`.mat-pseudo-checkbox { +`],encapsulation:2,changeDetection:0})}return t})(),qg=(()=>{class t{_platform=f(_e);_containerElement;_document=f(k);_styleLoader=f(Nt);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||Ag()){let o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let i=0;i{let n=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(n,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),n.style.pointerEvents="none",n.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}};function Yg(t){return t&&t.nodeType===1}var ld=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new R;_attachments=new R;_detachments=new R;_positionStrategy;_scrollStrategy;_locationChanges=G.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_disposed=!1;_previousHostParent;_keydownEvents=new R;_outsidePointerEvents=new R;_afterNextRenderRef;constructor(n,e,r,o,i,s,a,c,l,u=!1,d,h){this._portalOutlet=n,this._host=e,this._pane=r,this._config=o,this._ngZone=i,this._keyboardDispatcher=s,this._document=a,this._location=c,this._outsideClickDispatcher=l,this._animationsDisabled=u,this._injector=d,this._renderer=h,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}get eventPredicate(){return this._config?.eventPredicate||null}attach(n){if(this._disposed)return null;this._attachHost();let e=this._portalOutlet.attach(n);return this._positionStrategy?.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=At(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let n=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){if(this._disposed)return;let n=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,n&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent(),this._disposed=!0}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config=g(g({},this._config),n),this._updateElementSize()}setDirection(n){this._config=F(g({},this._config),{direction:n}),this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){let n=this._config.direction;return n?typeof n=="string"?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let n=this._pane.style;n.width=Ie(this._config.width),n.height=Ie(this._config.height),n.minWidth=Ie(this._config.minWidth),n.minHeight=Ie(this._config.minHeight),n.maxWidth=Ie(this._config.maxWidth),n.maxHeight=Ie(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachHost(){if(!this._host.parentElement){let n=this._config.usePopover?this._positionStrategy?.getPopoverInsertionPoint?.():null;Yg(n)?n.after(this._host):n?.type==="parent"?n.element.appendChild(this._host):this._previousHostParent?.appendChild(this._host)}if(this._config.usePopover)try{this._host.showPopover()}catch{}}_attachBackdrop(){let n="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new zg(this._document,this._renderer,this._ngZone,e=>{this._backdropClick.next(e)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._config.usePopover?this._host.prepend(this._backdropRef.element):this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(n))}):this._backdropRef.element.classList.add(n)}_updateStackingOrder(){!this._config.usePopover&&this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(n,e,r){let o=mo(e||[]).filter(i=>!!i);o.length&&(r?n.classList.add(...o):n.classList.remove(...o))}_detachContentWhenEmpty(){let n=!1;try{this._detachContentAfterRenderRef=At(()=>{n=!0,this._detachContent()},{injector:this._injector})}catch(e){if(n)throw e;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){let n=this._scrollStrategy;n?.disable(),n?.detach?.()}},RI="cdk-overlay-connected-position-bounding-box",vP=/([A-Za-z%]+)$/;function Zg(t,n){return new ud(n,t.get(Si),t.get(k),t.get(_e),t.get(qg))}var ud=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender=!1;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed=!1;_boundingBox=null;_lastPosition=null;_lastScrollVisibility=null;_positionChanges=new R;_resizeSubscription=G.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount=null;_popoverLocation="global";positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(n,e,r,o,i){this._viewportRuler=e,this._document=r,this._platform=o,this._overlayContainer=i,this.setOrigin(n)}attach(n){this._overlayRef&&this._overlayRef,this._validatePositions(),n.hostElement.classList.add(RI),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._getContainerRect();let n=this._originRect,e=this._overlayRect,r=this._viewportRect,o=this._containerRect,i=[],s;for(let a of this._preferredPositions){let c=this._getOriginPoint(n,o,a),l=this._getOverlayPoint(c,e,a),u=this._getOverlayFit(l,e,r,a);if(u.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(a,c);return}if(this._canFitWithFlexibleDimensions(u,l,r)){i.push({position:a,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,a)});continue}(!s||s.overlayFit.visibleAreac&&(c=u,a=l)}this._isPushed=!1,this._applyPosition(a.position,a.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(s.position,s.originPoint);return}this._applyPosition(s.position,s.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&yo(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(RI),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let n=this._lastPosition;n?(this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._getContainerRect(),this._applyPosition(n,this._getOriginPoint(this._originRect,this._containerRect,n))):this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,n.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}withPopoverLocation(n){return this._popoverLocation=n,this}getPopoverInsertionPoint(){return this._popoverLocation==="global"?null:this._popoverLocation!=="inline"?this._popoverLocation:this._origin instanceof z?this._origin.nativeElement:Yg(this._origin)?this._origin:null}_getOriginPoint(n,e,r){let o;if(r.originX=="center")o=n.left+n.width/2;else{let s=this._isRtl()?n.right:n.left,a=this._isRtl()?n.left:n.right;o=r.originX=="start"?s:a}e.left<0&&(o-=e.left);let i;return r.originY=="center"?i=n.top+n.height/2:i=r.originY=="top"?n.top:n.bottom,e.top<0&&(i-=e.top),{x:o,y:i}}_getOverlayPoint(n,e,r){let o;r.overlayX=="center"?o=-e.width/2:r.overlayX==="start"?o=this._isRtl()?-e.width:0:o=this._isRtl()?0:-e.width;let i;return r.overlayY=="center"?i=-e.height/2:i=r.overlayY=="top"?0:-e.height,{x:n.x+o,y:n.y+i}}_getOverlayFit(n,e,r,o){let i=OI(e),{x:s,y:a}=n,c=this._getOffset(o,"x"),l=this._getOffset(o,"y");c&&(s+=c),l&&(a+=l);let u=0-s,d=s+i.width-r.width,h=0-a,p=a+i.height-r.height,m=this._subtractOverflows(i.width,u,d),_=this._subtractOverflows(i.height,h,p),D=m*_;return{visibleArea:D,isCompletelyWithinViewport:i.width*i.height===D,fitsInViewportVertically:_===i.height,fitsInViewportHorizontally:m==i.width}}_canFitWithFlexibleDimensions(n,e,r){if(this._hasFlexibleDimensions){let o=r.bottom-e.y,i=r.right-e.x,s=NI(this._overlayRef.getConfig().minHeight),a=NI(this._overlayRef.getConfig().minWidth),c=n.fitsInViewportVertically||s!=null&&s<=o,l=n.fitsInViewportHorizontally||a!=null&&a<=i;return c&&l}return!1}_pushOverlayOnScreen(n,e,r){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};let o=OI(e),i=this._viewportRect,s=Math.max(n.x+o.width-i.width,0),a=Math.max(n.y+o.height-i.height,0),c=Math.max(i.top-r.top-n.y,0),l=Math.max(i.left-r.left-n.x,0),u=0,d=0;return o.width<=i.width?u=l||-s:u=n.xm&&!this._isInitialRender&&!this._growAfterOpen&&(s=n.y-m/2)}let c=e.overlayX==="start"&&!o||e.overlayX==="end"&&o,l=e.overlayX==="end"&&!o||e.overlayX==="start"&&o,u,d,h;if(l)h=r.width-n.x+this._getViewportMarginStart()+this._getViewportMarginEnd(),u=n.x-this._getViewportMarginStart();else if(c)d=n.x,u=r.right-n.x-this._getViewportMarginEnd();else{let p=Math.min(r.right-n.x+r.left,n.x),m=this._lastBoundingBoxSize.width;u=p*2,d=n.x-p,u>m&&!this._isInitialRender&&!this._growAfterOpen&&(d=n.x-m/2)}return{top:s,left:d,bottom:a,right:h,width:u,height:i}}_setBoundingBoxStyles(n,e){let r=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(r.height=Math.min(r.height,this._lastBoundingBoxSize.height),r.width=Math.min(r.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right="auto",o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{let i=this._overlayRef.getConfig().maxHeight,s=this._overlayRef.getConfig().maxWidth;o.width=Ie(r.width),o.height=Ie(r.height),o.top=Ie(r.top)||"auto",o.bottom=Ie(r.bottom)||"auto",o.left=Ie(r.left)||"auto",o.right=Ie(r.right)||"auto",e.overlayX==="center"?o.alignItems="center":o.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?o.justifyContent="center":o.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",i&&(o.maxHeight=Ie(i)),s&&(o.maxWidth=Ie(s))}this._lastBoundingBoxSize=r,yo(this._boundingBox.style,o)}_resetBoundingBoxStyles(){yo(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){yo(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){let r={},o=this._hasExactPosition(),i=this._hasFlexibleDimensions,s=this._overlayRef.getConfig();if(o){let u=this._viewportRuler.getViewportScrollPosition();yo(r,this._getExactOverlayY(e,n,u)),yo(r,this._getExactOverlayX(e,n,u))}else r.position="static";let a="",c=this._getOffset(e,"x"),l=this._getOffset(e,"y");c&&(a+=`translateX(${c}px) `),l&&(a+=`translateY(${l}px)`),r.transform=a.trim(),s.maxHeight&&(o?r.maxHeight=Ie(s.maxHeight):i&&(r.maxHeight="")),s.maxWidth&&(o?r.maxWidth=Ie(s.maxWidth):i&&(r.maxWidth="")),yo(this._pane.style,r)}_getExactOverlayY(n,e,r){let o={top:"",bottom:""},i=this._getOverlayPoint(e,this._overlayRect,n);if(this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,r)),n.overlayY==="bottom"){let s=this._document.documentElement.clientHeight;o.bottom=`${s-(i.y+this._overlayRect.height)}px`}else o.top=Ie(i.y);return o}_getExactOverlayX(n,e,r){let o={left:"",right:""},i=this._getOverlayPoint(e,this._overlayRect,n);this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,r));let s;if(this._isRtl()?s=n.overlayX==="end"?"left":"right":s=n.overlayX==="end"?"right":"left",s==="right"){let a=this._document.documentElement.clientWidth;o.right=`${a-(i.x+this._overlayRect.width)}px`}else o.left=Ie(i.x);return o}_getScrollVisibility(){let n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),r=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:xI(n,r),isOriginOutsideView:$g(n,r),isOverlayClipped:xI(e,r),isOverlayOutsideView:$g(e,r)}}_subtractOverflows(n,...e){return e.reduce((r,o)=>r-Math.max(o,0),n)}_getNarrowedViewportRect(){let n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,r=this._viewportRuler.getViewportScrollPosition();return{top:r.top+this._getViewportMarginTop(),left:r.left+this._getViewportMarginStart(),right:r.left+n-this._getViewportMarginEnd(),bottom:r.top+e-this._getViewportMarginBottom(),width:n-this._getViewportMarginStart()-this._getViewportMarginEnd(),height:e-this._getViewportMarginTop()-this._getViewportMarginBottom()}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return e==="x"?n.offsetX==null?this._offsetX:n.offsetX:n.offsetY==null?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&mo(n).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getViewportMarginStart(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.start??0}_getViewportMarginEnd(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.end??0}_getViewportMarginTop(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.top??0}_getViewportMarginBottom(){return typeof this._viewportMargin=="number"?this._viewportMargin:this._viewportMargin?.bottom??0}_getOriginRect(){let n=this._origin;if(n instanceof z)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();let e=n.width||0,r=n.height||0;return{top:n.y,bottom:n.y+r,left:n.x,right:n.x+e,height:r,width:e}}_getContainerRect(){let n=this._overlayRef.getConfig().usePopover&&this._popoverLocation!=="global",e=this._overlayContainer.getContainerElement();n&&(e.style.display="block");let r=e.getBoundingClientRect();return n&&(e.style.display=""),r}};function yo(t,n){for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}function NI(t){if(typeof t!="number"&&t!=null){let[n,e]=t.split(vP);return!e||e==="px"?parseFloat(n):null}return t||null}function OI(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function yP(t,n){return t===n?!0:t.isOriginClipped===n.isOriginClipped&&t.isOriginOutsideView===n.isOriginOutsideView&&t.isOverlayClipped===n.isOverlayClipped&&t.isOverlayOutsideView===n.isOverlayOutsideView}var kI="cdk-global-overlay-wrapper";function HI(t){return new dd}var dd=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(n){let e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(kI),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._xOffset=n,this._xPosition="left",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._xOffset=n,this._xPosition="right",this}start(n=""){return this._xOffset=n,this._xPosition="start",this}end(n=""){return this._xOffset=n,this._xPosition="end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,r=this._overlayRef.getConfig(),{width:o,height:i,maxWidth:s,maxHeight:a}=r,c=(o==="100%"||o==="100vw")&&(!s||s==="100%"||s==="100vw"),l=(i==="100%"||i==="100vh")&&(!a||a==="100%"||a==="100vh"),u=this._xPosition,d=this._xOffset,h=this._overlayRef.getConfig().direction==="rtl",p="",m="",_="";c?_="flex-start":u==="center"?(_="center",h?m=d:p=d):h?u==="left"||u==="end"?(_="flex-end",p=d):(u==="right"||u==="start")&&(_="flex-start",m=d):u==="left"||u==="start"?(_="flex-start",p=d):(u==="right"||u==="end")&&(_="flex-end",m=d),n.position=this._cssPosition,n.marginLeft=c?"0":p,n.marginTop=l?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=c?"0":m,e.justifyContent=_,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,r=e.style;e.classList.remove(kI),r.justifyContent=r.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}},$I=(()=>{class t{_injector=f(W);constructor(){}global(){return HI()}flexibleConnectedTo(e){return Zg(this._injector,e)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Kg=new y("OVERLAY_DEFAULT_CONFIG");function Qg(t,n){t.get(Nt).load(UI);let e=t.get(qg),r=t.get(k),o=t.get(va),i=t.get(Ge),s=t.get(_i),a=t.get(Le,null,{optional:!0})||t.get($e).createRenderer(null,null),c=new Ca(n),l=t.get(Kg,null,{optional:!0})?.usePopover??!0;c.direction=c.direction||s.value,"showPopover"in r.body?c.usePopover=n?.usePopover??l:c.usePopover=!1;let u=r.createElement("div"),d=r.createElement("div");u.id=o.getId("cdk-overlay-"),u.classList.add("cdk-overlay-pane"),d.appendChild(u),c.usePopover&&(d.setAttribute("popover","manual"),d.classList.add("cdk-overlay-popover"));let h=c.usePopover?c.positionStrategy?.getPopoverInsertionPoint?.():null;return Yg(h)?h.after(d):h?.type==="parent"?h.element.appendChild(d):e.getContainerElement().appendChild(d),new ld(new od(u,i,t),d,u,c,t.get(V),t.get(VI),r,t.get(Dn),t.get(BI),n?.disableAnimations??t.get(Fs,null,{optional:!0})==="NoopAnimations",t.get(oe),a)}var zI=(()=>{class t{scrollStrategies=f(LI);_positionBuilder=f($I);_injector=f(W);constructor(){}create(e){return Qg(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),bP=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],_P=new y("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=f(W);return()=>Wg(t)}}),Gg=(()=>{class t{elementRef=f(z);constructor(){}static \u0275fac=function(r){return new(r||t)};static \u0275dir=M({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),GI=new y("cdk-connected-overlay-default-config"),DP=(()=>{class t{_dir=f(_i,{optional:!0});_injector=f(W);_overlayRef;_templatePortal;_backdropSubscription=G.EMPTY;_attachSubscription=G.EMPTY;_detachSubscription=G.EMPTY;_positionSubscription=G.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=f(_P);_ngZone=f(V);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;disposeOnNavigation=!1;usePopover;matchWidth=!1;set _config(e){typeof e!="string"&&this._assignConfig(e)}backdropClick=new H;positionChange=new H;attach=new H;detach=new H;overlayKeydown=new H;overlayOutsideClick=new H;constructor(){let e=f(yt),r=f(Qe),o=f(GI,{optional:!0}),i=f(Kg,{optional:!0});this.usePopover=i?.usePopover===!1?null:"global",this._templatePortal=new Mi(e,r),this.scrollStrategy=this._scrollStrategyFactory(),o&&this._assignConfig(o)}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef?.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this._getWidth(),minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this.attachOverlay():this.detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=bP);let e=this._overlayRef=Qg(this._injector,this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(r=>{this.overlayKeydown.next(r),r.keyCode===27&&!this.disableClose&&!Ku(r)&&(r.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(r=>{let o=this._getOriginElement(),i=ot(r);(!o||o!==i&&!o.contains(i))&&this.overlayOutsideClick.next(r)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),r=new Ca({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation,usePopover:!!this.usePopover});return(this.height||this.height===0)&&(r.height=this.height),(this.minWidth||this.minWidth===0)&&(r.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(r.minHeight=this.minHeight),this.backdropClass&&(r.backdropClass=this.backdropClass),this.panelClass&&(r.panelClass=this.panelClass),r}_updatePositionStrategy(e){let r=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(r).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector).withPopoverLocation(this.usePopover===null?"global":this.usePopover)}_createPositionStrategy(){let e=Zg(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof Gg?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof Gg?this.origin.elementRef.nativeElement:this.origin instanceof z?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}_getWidth(){return this.width?this.width:this.matchWidth?this._getOriginElement()?.getBoundingClientRect?.().width:void 0}attachOverlay(){this._overlayRef||this._createOverlay();let e=this._overlayRef;e.getConfig().hasBackdrop=this.hasBackdrop,e.updateSize({width:this._getWidth()}),e.hasAttached()||e.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=e.backdropClick().subscribe(r=>this.backdropClick.emit(r)):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(yc(()=>this.positionChange.observers.length>0)).subscribe(r=>{this._ngZone.run(()=>this.positionChange.emit(r)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}_assignConfig(e){this.origin=e.origin??this.origin,this.positions=e.positions??this.positions,this.positionStrategy=e.positionStrategy??this.positionStrategy,this.offsetX=e.offsetX??this.offsetX,this.offsetY=e.offsetY??this.offsetY,this.width=e.width??this.width,this.height=e.height??this.height,this.minWidth=e.minWidth??this.minWidth,this.minHeight=e.minHeight??this.minHeight,this.backdropClass=e.backdropClass??this.backdropClass,this.panelClass=e.panelClass??this.panelClass,this.viewportMargin=e.viewportMargin??this.viewportMargin,this.scrollStrategy=e.scrollStrategy??this.scrollStrategy,this.disableClose=e.disableClose??this.disableClose,this.transformOriginSelector=e.transformOriginSelector??this.transformOriginSelector,this.hasBackdrop=e.hasBackdrop??this.hasBackdrop,this.lockPosition=e.lockPosition??this.lockPosition,this.flexibleDimensions=e.flexibleDimensions??this.flexibleDimensions,this.growAfterOpen=e.growAfterOpen??this.growAfterOpen,this.push=e.push??this.push,this.disposeOnNavigation=e.disposeOnNavigation??this.disposeOnNavigation,this.usePopover=e.usePopover??this.usePopover,this.matchWidth=e.matchWidth??this.matchWidth}static \u0275fac=function(r){return new(r||t)};static \u0275dir=M({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",ue],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",ue],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",ue],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",ue],push:[2,"cdkConnectedOverlayPush","push",ue],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",ue],usePopover:[0,"cdkConnectedOverlayUsePopover","usePopover"],matchWidth:[2,"cdkConnectedOverlayMatchWidth","matchWidth",ue],_config:[0,"cdkConnectedOverlay","_config"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[ze]})}return t})(),EP=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275mod=X({type:t});static \u0275inj=Y({providers:[zI],imports:[rn,MI,Bg,Bg]})}return t})();var B="primary",La=Symbol("RouteTitle"),rv=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function _o(t){return new rv(t)}function Xg(t,n,e){for(let r=0;rt.length||e.pathMatch==="full"&&(n.hasChildren()||r.lengtht.length||e.pathMatch==="full"&&n.hasChildren()&&e.path!=="**")return null;let a={};return!Xg(i,t.slice(0,i.length),a)||!Xg(s,t.slice(t.length-s.length),a)?null:{consumed:t,posParams:a}}function vd(t){return new Promise((n,e)=>{t.pipe(Nn()).subscribe({next:r=>n(r),error:r=>e(r)})})}function wP(t,n){if(t.length!==n.length)return!1;for(let e=0;er[i]===o)}else return t===n}function CP(t){return t.length>0?t[t.length-1]:null}function Eo(t){return Vt(t)?t:zn(t)?ae(Promise.resolve(t)):S(t)}function eS(t){return Vt(t)?vd(t):Promise.resolve(t)}var IP={exact:nS,subset:rS},tS={exact:SP,subset:MP,ignored:()=>!0},yv={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},xa={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function bv(t,n,e){let r=t instanceof st?t:n.parseUrl(t);return Wn(()=>iv(n.lastSuccessfulNavigation()?.finalUrl??new st,r,g(g({},xa),e)))}function iv(t,n,e){return IP[e.paths](t.root,n.root,e.matrixParams)&&tS[e.queryParams](t.queryParams,n.queryParams)&&!(e.fragment==="exact"&&t.fragment!==n.fragment)}function SP(t,n){return Sn(t,n)}function nS(t,n,e){if(!bo(t.segments,n.segments)||!pd(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(let r in n.children)if(!t.children[r]||!nS(t.children[r],n.children[r],e))return!1;return!0}function MP(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>JI(t[e],n[e]))}function rS(t,n,e){return oS(t,n,n.segments,e)}function oS(t,n,e,r){if(t.segments.length>e.length){let o=t.segments.slice(0,e.length);return!(!bo(o,e)||n.hasChildren()||!pd(o,e,r))}else if(t.segments.length===e.length){if(!bo(t.segments,e)||!pd(t.segments,e,r))return!1;for(let o in n.children)if(!t.children[o]||!rS(t.children[o],n.children[o],r))return!1;return!0}else{let o=e.slice(0,t.segments.length),i=e.slice(t.segments.length);return!bo(t.segments,o)||!pd(t.segments,o,r)||!t.children[B]?!1:oS(t.children[B],n,i,r)}}function pd(t,n,e){return n.every((r,o)=>tS[e](t[o].parameters,r.parameters))}var st=class{root;queryParams;fragment;_queryParamMap;constructor(n=new ne([],{}),e={},r=null){this.root=n,this.queryParams=e,this.fragment=r}get queryParamMap(){return this._queryParamMap??=_o(this.queryParams),this._queryParamMap}toString(){return AP.serialize(this)}},ne=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return md(this)}},Ir=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=_o(this.parameters),this._parameterMap}toString(){return sS(this)}};function TP(t,n){return bo(t,n)&&t.every((e,r)=>Sn(e.parameters,n[r].parameters))}function bo(t,n){return t.length!==n.length?!1:t.every((e,r)=>e.path===n[r].path)}function xP(t,n){let e=[];return Object.entries(t.children).forEach(([r,o])=>{r===B&&(e=e.concat(n(o,r)))}),Object.entries(t.children).forEach(([r,o])=>{r!==B&&(e=e.concat(n(o,r)))}),e}var Tr=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:()=>new Xn,providedIn:"root"})}return t})(),Xn=class{parse(n){let e=new av(n);return new st(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${Ia(n.root,!0)}`,r=OP(n.queryParams),o=typeof n.fragment=="string"?`#${RP(n.fragment)}`:"";return`${e}${r}${o}`}},AP=new Xn;function md(t){return t.segments.map(n=>sS(n)).join("/")}function Ia(t,n){if(!t.hasChildren())return md(t);if(n){let e=t.children[B]?Ia(t.children[B],!1):"",r=[];return Object.entries(t.children).forEach(([o,i])=>{o!==B&&r.push(`${o}:${Ia(i,!1)}`)}),r.length>0?`${e}(${r.join("//")})`:e}else{let e=xP(t,(r,o)=>o===B?[Ia(t.children[B],!1)]:[`${o}:${Ia(r,!1)}`]);return Object.keys(t.children).length===1&&t.children[B]!=null?`${md(t)}/${e[0]}`:`${md(t)}/(${e.join("//")})`}}function iS(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function fd(t){return iS(t).replace(/%3B/gi,";")}function RP(t){return encodeURI(t)}function sv(t){return iS(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function gd(t){return decodeURIComponent(t)}function WI(t){return gd(t.replace(/\+/g,"%20"))}function sS(t){return`${sv(t.path)}${NP(t.parameters)}`}function NP(t){return Object.entries(t).map(([n,e])=>`;${sv(n)}=${sv(e)}`).join("")}function OP(t){let n=Object.entries(t).map(([e,r])=>Array.isArray(r)?r.map(o=>`${fd(e)}=${fd(o)}`).join("&"):`${fd(e)}=${fd(r)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var Jg=1073741824;function yd(t,n,e){Number(n)>=32&&!Object.hasOwn(t,Jg)&&(t[Jg]=e,delete t[Jg]),t[n]=e}var kP=/^[^\/()?;#]+/;function ev(t){let n=t.match(kP);return n?n[0]:""}var FP=/^[^\/()?;=#]+/;function PP(t){let n=t.match(FP);return n?n[0]:""}var LP=/^[^=?&#]+/;function jP(t){let n=t.match(LP);return n?n[0]:""}var VP=/^[^&#]+/;function BP(t){let n=t.match(VP);return n?n[0]:""}var av=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){for(;this.consumeOptional("/"););return this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new ne([],{}):new ne([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(n=0){if(n>50)throw new b(4010,!1);if(this.remaining==="")return{};this.consumeOptional("/");let e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let r={};this.peekStartsWith("/(")&&(this.capture("/"),r=this.parseParens(!0,n));let o={};return this.peekStartsWith("(")&&(o=this.parseParens(!1,n)),(e.length>0||Object.keys(r).length>0)&&(o[B]=new ne(e,r)),o}parseSegment(){let n=ev(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new b(4009,!1);return this.capture(n),new Ir(gd(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=PP(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let o=ev(this.remaining);o&&(r=o,this.capture(r))}yd(n,gd(e),gd(r))}parseQueryParam(n){let e=jP(this.remaining);if(!e)return;this.capture(e);let r="";if(this.consumeOptional("=")){let s=BP(this.remaining);s&&(r=s,this.capture(r))}let o=WI(e),i=WI(r);if(n.hasOwnProperty(o)){let s=n[o];Array.isArray(s)||(s=[s],n[o]=s),s.push(i)}else n[o]=i}parseParens(n,e){let r={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let o=ev(this.remaining),i=this.remaining[o.length];if(i!=="/"&&i!==")"&&i!==";")throw new b(4010,!1);let s;o.indexOf(":")>-1?(s=o.slice(0,o.indexOf(":")),this.capture(s),this.capture(":")):n&&(s=B);let a=this.parseChildren(e+1),c=Object.keys(a).length===1&&a[B]?a[B]:new ne([],a);yd(r,s??B,c),this.consumeOptional("//")}return r}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new b(4011,!1)}};function aS(t){return t.segments.length>0?new ne([],{[B]:t}):t}function cS(t){let n={};for(let[r,o]of Object.entries(t.children)){let i=cS(o);if(r===B&&i.segments.length===0&&i.hasChildren())for(let[s,a]of Object.entries(i.children))yd(n,s,a);else(i.segments.length>0||i.hasChildren())&&yd(n,r,i)}let e=new ne(t.segments,n);return UP(e)}function UP(t){if(t.numberOfChildren===1&&t.children[B]){let n=t.children[B];return new ne(t.segments.concat(n.segments),n.children)}return t}function Sr(t){return t instanceof st}function lS(t,n,e=null,r=null,o=new Xn){let i=uS(t);return dS(i,n,e,r,o)}function uS(t){let n;function e(i){let s={};for(let c of i.children){let l=e(c);s[c.outlet]=l}let a=new ne(i.url,s);return i===t&&(n=a),a}let r=e(t.root),o=aS(r);return n??o}function dS(t,n,e,r,o){let i=t;for(;i.parent;)i=i.parent;if(n.length===0)return tv(i,i,i,e,r,o);let s=HP(n);if(s.toRoot())return tv(i,i,new ne([],{}),e,r,o);let a=$P(s,i,t),c=a.processChildren?Ma(a.segmentGroup,a.index,s.commands):hS(a.segmentGroup,a.index,s.commands);return tv(i,a.segmentGroup,c,e,r,o)}function bd(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function Aa(t){return typeof t=="object"&&t!=null&&t.outlets}function qI(t,n,e){t||="\u0275";let r=new st;return r.queryParams={[t]:n},e.parse(e.serialize(r)).queryParams[t]}function tv(t,n,e,r,o,i){let s={};for(let[l,u]of Object.entries(r??{}))s[l]=Array.isArray(u)?u.map(d=>qI(l,d,i)):qI(l,u,i);let a;t===n?a=e:a=fS(t,n,e);let c=aS(cS(a));return new st(c,s,o)}function fS(t,n,e){let r={};return Object.entries(t.children).forEach(([o,i])=>{i===n?r[o]=e:r[o]=fS(i,n,e)}),new ne(t.segments,r)}var _d=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,r){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=r,n&&r.length>0&&bd(r[0]))throw new b(4003,!1);let o=r.find(Aa);if(o&&o!==CP(r))throw new b(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function HP(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new _d(!0,0,t);let n=0,e=!1,r=t.reduce((o,i,s)=>{if(typeof i=="object"&&i!=null){if(i.outlets){let a={};return Object.entries(i.outlets).forEach(([c,l])=>{a[c]=typeof l=="string"?l.split("/"):l}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return typeof i!="string"?[...o,i]:s===0?(i.split("/").forEach((a,c)=>{c==0&&a==="."||(c==0&&a===""?e=!0:a===".."?n++:a!=""&&o.push(a))}),o):[...o,i]},[]);return new _d(e,n,r)}var xi=class{segmentGroup;processChildren;index;constructor(n,e,r){this.segmentGroup=n,this.processChildren=e,this.index=r}};function $P(t,n,e){if(t.isAbsolute)return new xi(n,!0,0);if(!e)return new xi(n,!1,NaN);if(e.parent===null)return new xi(e,!0,0);let r=bd(t.commands[0])?0:1,o=e.segments.length-1+r;return zP(e,o,t.numberOfDoubleDots)}function zP(t,n,e){let r=t,o=n,i=e;for(;i>o;){if(i-=o,r=r.parent,!r)throw new b(4005,!1);o=r.segments.length}return new xi(r,!1,o-i)}function GP(t){return Aa(t[0])?t[0].outlets:{[B]:t}}function hS(t,n,e){if(t??=new ne([],{}),t.segments.length===0&&t.hasChildren())return Ma(t,n,e);let r=WP(t,n,e),o=e.slice(r.commandIndex);if(r.match&&r.pathIndexi!==B)&&t.children[B]&&t.numberOfChildren===1&&t.children[B].segments.length===0){let i=Ma(t.children[B],n,e);return new ne(t.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{typeof s=="string"&&(s=[s]),s!==null&&(o[i]=hS(t.children[i],n,s))}),Object.entries(t.children).forEach(([i,s])=>{r[i]===void 0&&(o[i]=s)}),new ne(t.segments,o)}}function WP(t,n,e){let r=0,o=n,i={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return i;let s=t.segments[o],a=e[r];if(Aa(a))break;let c=`${a}`,l=r0&&c===void 0)break;if(c&&l&&typeof l=="object"&&l.outlets===void 0){if(!ZI(c,l,s))return i;r+=2}else{if(!ZI(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function cv(t,n,e){let r=t.segments.slice(0,n),o=0;for(;o{typeof r=="string"&&(r=[r]),r!==null&&(n[e]=cv(new ne([],{}),0,r))}),n}function YI(t){let n={};return Object.entries(t).forEach(([e,r])=>n[e]=`${r}`),n}function ZI(t,n,e){return t==e.path&&Sn(n,e.parameters)}var Ai="imperative",Ve=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(Ve||{}),Dt=class{id;url;constructor(n,e){this.id=n,this.url=e}},Mr=class extends Dt{type=Ve.NavigationStart;navigationTrigger;restoredState;constructor(n,e,r="imperative",o=null){super(n,e),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Et=class extends Dt{urlAfterRedirects;type=Ve.NavigationEnd;constructor(n,e,r){super(n,e),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},et=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(et||{}),Ni=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(Ni||{}),Ft=class extends Dt{reason;code;type=Ve.NavigationCancel;constructor(n,e,r,o){super(n,e),this.reason=r,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function pS(t){return t instanceof Ft&&(t.code===et.Redirect||t.code===et.SupersededByNewNavigation)}var Mn=class extends Dt{reason;code;type=Ve.NavigationSkipped;constructor(n,e,r,o){super(n,e),this.reason=r,this.code=o}},Do=class extends Dt{error;target;type=Ve.NavigationError;constructor(n,e,r,o){super(n,e),this.error=r,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Ra=class extends Dt{urlAfterRedirects;state;type=Ve.RoutesRecognized;constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Dd=class extends Dt{urlAfterRedirects;state;type=Ve.GuardsCheckStart;constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ed=class extends Dt{urlAfterRedirects;state;shouldActivate;type=Ve.GuardsCheckEnd;constructor(n,e,r,o,i){super(n,e),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},wd=class extends Dt{urlAfterRedirects;state;type=Ve.ResolveStart;constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Cd=class extends Dt{urlAfterRedirects;state;type=Ve.ResolveEnd;constructor(n,e,r,o){super(n,e),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Id=class{route;type=Ve.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Sd=class{route;type=Ve.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Md=class{snapshot;type=Ve.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Td=class{snapshot;type=Ve.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},xd=class{snapshot;type=Ve.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Ad=class{snapshot;type=Ve.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Oi=class{routerEvent;position;anchor;scrollBehavior;type=Ve.Scroll;constructor(n,e,r,o){this.routerEvent=n,this.position=e,this.anchor=r,this.scrollBehavior=o}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},ki=class{},Na=class{},Fi=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function YP(t){return!(t instanceof ki)&&!(t instanceof Fi)&&!(t instanceof Na)}var Rd=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new wo(this.rootInjector)}},wo=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,r){let o=this.getOrCreateContext(e);o.outlet=r,this.contexts.set(e,o)}onChildOutletDestroyed(e){let r=this.getContext(e);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let r=this.getContext(e);return r||(r=new Rd(this.rootInjector),this.contexts.set(e,r)),r}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(r){return new(r||t)(w(oe))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Nd=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=lv(n,this._root);return e?e.children.map(r=>r.value):[]}firstChild(n){let e=lv(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=uv(n,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return uv(n,this._root).map(e=>e.value)}};function lv(t,n){if(t===n.value)return n;for(let e of n.children){let r=lv(t,e);if(r)return r}return null}function uv(t,n){if(t===n.value)return[n];for(let e of n.children){let r=uv(t,e);if(r.length)return r.unshift(n),r}return[]}var it=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function Ti(t){let n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}var Oa=class extends Nd{snapshot;constructor(n,e){super(n),this.snapshot=e,Dv(this,n)}toString(){return this.snapshot.toString()}};function mS(t,n){let e=ZP(t,n),r=new Re([new Ir("",{})]),o=new Re({}),i=new Re({}),s=new Re({}),a=new Re(""),c=new Jn(r,o,s,a,i,B,t,e.root);return c.snapshot=e.root,new Oa(new it(c,[]),e)}function ZP(t,n){let e={},r={},o={},s=new Pi([],e,o,"",r,B,t,null,{},n);return new ka("",new it(s,[]))}var Jn=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,r,o,i,s,a,c){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(L(l=>l[La]))??S(void 0),this.url=n,this.params=e,this.queryParams=r,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(L(n=>_o(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(L(n=>_o(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function _v(t,n,e="emptyOnly"){let r,{routeConfig:o}=t;return n!==null&&(e==="always"||o?.path===""||!n.component&&!n.routeConfig?.loadComponent)?r={params:Object.keys(t.params).length===0?n.params:Object.freeze(g(g({},n.params),t.params)),data:Object.freeze(g(g({},n.data),t.data)),resolve:g(g(g(g({},t.data),n.data),o?.data),t._resolvedData)}:r={params:Object.freeze(g({},t.params)),data:Object.freeze(g({},t.data)),resolve:g(g({},t.data),t._resolvedData??{})},o&&vS(o)&&(r.resolve[La]=o.title),r}var Pi=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[La]}constructor(n,e,r,o,i,s,a,c,l,u){this.url=n,this.params=e,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l,this._environmentInjector=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??=_o(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=_o(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(r=>r.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},ka=class extends Nd{url;constructor(n,e){super(e),this.url=n,Dv(this,e)}toString(){return gS(this._root)}};function Dv(t,n){n.value._routerState=t,n.children.forEach(e=>Dv(t,e))}function gS(t){let n=t.children.length>0?` { ${t.children.map(gS).join(", ")} } `:"";return`${t.value}${n}`}function nv(t){if(t.snapshot){let n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Sn(n.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),Sn(n.params,e.params)||t.paramsSubject.next(e.params),wP(n.url,e.url)||t.urlSubject.next(e.url),Sn(n.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function dv(t,n){let e=Sn(t.params,n.params)&&TP(t.url,n.url),r=!t.parent!=!n.parent;return e&&!r&&(!t.parent||dv(t.parent,n.parent))}function vS(t){return typeof t.title=="string"||t.title===null}var yS=new y(""),Ev=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=B;activateEvents=new H;deactivateEvents=new H;attachEvents=new H;detachEvents=new H;routerOutletData=YE();parentContexts=f(wo);location=f(Qe);changeDetector=f(Xt);inputBinder=f(ja,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:r,previousValue:o}=e.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(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new b(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new b(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new b(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,r){this.activated=e,this._activatedRoute=r,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,r){if(this.isActivated)throw new b(4013,!1);this._activatedRoute=e;let o=this.location,s=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new fv(e,a,o.injector,this.routerOutletData);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(r){return new(r||t)};static \u0275dir=M({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[ze]})}return t})(),fv=class{route;childContexts;parent;outletData;constructor(n,e,r,o){this.route=n,this.childContexts=e,this.parent=r,this.outletData=o}get(n,e){return n===Jn?this.route:n===wo?this.childContexts:n===yS?this.outletData:this.parent.get(n,e)}},ja=new y(""),wv=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:r}=e,o=Ro([r.queryParams,r.params,r.data]).pipe(Be(([i,s,a],c)=>(a=g(g(g({},i),s),a),c===0?S(a):Promise.resolve(a)))).subscribe(i=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==r||r.component===null){this.unsubscribeFromRouteData(e);return}let s=JE(r.component);if(!s){this.unsubscribeFromRouteData(e);return}for(let{templateName:a}of s.inputs)e.activatedComponentRef.setInput(a,i[a])});this.outletDataSubscriptions.set(e,o)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),Cv=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275cmp=xe({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(r,o){r&1&&Gl(0,"router-outlet")},dependencies:[Ev],encapsulation:2})}return t})();function Iv(t){let n=t.children&&t.children.map(Iv),e=n?F(g({},t),{children:n}):g({},t);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==B&&(e.component=Cv),e}function KP(t,n,e){let r=Fa(t,n._root,e?e._root:void 0);return new Oa(r,n)}function Fa(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){let r=e.value;r._futureSnapshot=n.value;let o=QP(t,n,e);return new it(r,o)}else{if(t.shouldAttach(n.value)){let i=t.retrieve(n.value);if(i!==null){let s=i.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Fa(t,a)),s}}let r=XP(n.value),o=n.children.map(i=>Fa(t,i));return new it(r,o)}}function QP(t,n,e){return n.children.map(r=>{for(let o of e.children)if(t.shouldReuseRoute(r.value,o.value.snapshot))return Fa(t,r,o);return Fa(t,r)})}function XP(t){return new Jn(new Re(t.url),new Re(t.params),new Re(t.queryParams),new Re(t.fragment),new Re(t.data),t.outlet,t.component,t)}var Li=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},bS="ngNavigationCancelingError";function Od(t,n){let{redirectTo:e,navigationBehaviorOptions:r}=Sr(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=_S(!1,et.Redirect);return o.url=e,o.navigationBehaviorOptions=r,o}function _S(t,n){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[bS]=!0,e.cancellationCode=n,e}function JP(t){return DS(t)&&Sr(t.url)}function DS(t){return!!t&&t[bS]}var hv=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,r,o,i){this.routeReuseStrategy=n,this.futureState=e,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(n){let e=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,r,n),nv(this.futureState.root),this.activateChildRoutes(e,r,n)}deactivateChildRoutes(n,e,r){let o=Ti(e);n.children.forEach(i=>{let s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(n,e,r){let o=n.value,i=e?e.value:null;if(o===i)if(o.component){let s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(n,e,s.children)}else this.deactivateChildRoutes(n,e,r);else i&&this.deactivateRouteAndItsChildren(e,r)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let r=e.getContext(n.value.outlet),o=r&&n.value.component?r.children:e,i=Ti(n);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){let s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){let r=e.getContext(n.value.outlet),o=r&&n.value.component?r.children:e,i=Ti(n);for(let s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,e,r){let o=Ti(e);n.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Ad(i.value.snapshot))}),n.children.length&&this.forwardEvent(new Td(n.value.snapshot))}activateRoutes(n,e,r){let o=n.value,i=e?e.value:null;if(nv(o),o===i)if(o.component){let s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(n,e,s.children)}else this.activateChildRoutes(n,e,r);else if(o.component){let s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),nv(a.route.value),this.activateChildRoutes(n,null,s.children)}else s.attachRef=null,s.route=o,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(n,null,s.children)}else this.activateChildRoutes(n,null,r)}},kd=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Ri=class{component;route;constructor(n,e){this.component=n,this.route=e}};function eL(t,n,e){let r=t._root,o=n?n._root:null;return Sa(r,o,e,[r.value])}function tL(t){let n=t.routeConfig?t.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:t,guards:n}}function Vi(t,n){let e=Symbol(),r=n.get(t,e);return r===e?typeof t=="function"&&!Of(t)?t:n.get(t):r}function Sa(t,n,e,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=Ti(n);return t.children.forEach(s=>{nL(s,i[s.value.outlet],e,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Ta(a,e.getContext(s),o)),o}function nL(t,n,e,r,o={canDeactivateChecks:[],canActivateChecks:[]}){let i=t.value,s=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){let c=rL(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new kd(r)):(i.data=s.data,i._resolvedData=s._resolvedData),i.component?Sa(t,n,a?a.children:null,r,o):Sa(t,n,e,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Ri(a.outlet.component,s))}else s&&Ta(n,a,o),o.canActivateChecks.push(new kd(r)),i.component?Sa(t,null,a?a.children:null,r,o):Sa(t,null,e,r,o);return o}function rL(t,n,e){if(typeof e=="function")return Pe(n._environmentInjector,()=>e(t,n));switch(e){case"pathParamsChange":return!bo(t.url,n.url);case"pathParamsOrQueryParamsChange":return!bo(t.url,n.url)||!Sn(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!dv(t,n)||!Sn(t.queryParams,n.queryParams);default:return!dv(t,n)}}function Ta(t,n,e){let r=Ti(t),o=t.value;Object.entries(r).forEach(([i,s])=>{o.component?n?Ta(s,n.children.getContext(i),e):Ta(s,null,e):Ta(s,n,e)}),o.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Ri(n.outlet.component,o)):e.canDeactivateChecks.push(new Ri(null,o)):e.canDeactivateChecks.push(new Ri(null,o))}function Va(t){return typeof t=="function"}function oL(t){return typeof t=="boolean"}function iL(t){return t&&Va(t.canLoad)}function sL(t){return t&&Va(t.canActivate)}function aL(t){return t&&Va(t.canActivateChild)}function cL(t){return t&&Va(t.canDeactivate)}function lL(t){return t&&Va(t.canMatch)}function ES(t){return t instanceof An||t?.name==="EmptyError"}var hd=Symbol("INITIAL_VALUE");function ji(){return Be(t=>Ro(t.map(n=>n.pipe(Oe(1),No(hd)))).pipe(L(n=>{for(let e of n)if(e!==!0){if(e===hd)return hd;if(e===!1||uL(e))return e}return!0}),he(n=>n!==hd),Oe(1)))}function uL(t){return Sr(t)||t instanceof Li}function wS(t){return t.aborted?S(void 0).pipe(Oe(1)):new P(n=>{let e=()=>{n.next(),n.complete()};return t.addEventListener("abort",e),()=>t.removeEventListener("abort",e)})}function CS(t){return jt(wS(t))}function dL(t){return Ee(n=>{let{targetSnapshot:e,currentSnapshot:r,guards:{canActivateChecks:o,canDeactivateChecks:i}}=n;return i.length===0&&o.length===0?S(F(g({},n),{guardsResult:!0})):fL(i,e,r).pipe(Ee(s=>s&&oL(s)?hL(e,o,t):S(s)),L(s=>F(g({},n),{guardsResult:s})))})}function fL(t,n,e){return ae(t).pipe(Ee(r=>yL(r.component,r.route,e,n)),Nn(r=>r!==!0,!0))}function hL(t,n,e){return ae(n).pipe(or(r=>ln(mL(r.route.parent,e),pL(r.route,e),vL(t,r.path),gL(t,r.route))),Nn(r=>r!==!0,!0))}function pL(t,n){return t!==null&&n&&n(new xd(t)),S(!0)}function mL(t,n){return t!==null&&n&&n(new Md(t)),S(!0)}function gL(t,n){let e=n.routeConfig?n.routeConfig.canActivate:null;if(!e||e.length===0)return S(!0);let r=e.map(o=>qi(()=>{let i=n._environmentInjector,s=Vi(o,i),a=sL(s)?s.canActivate(n,t):Pe(i,()=>s(n,t));return Eo(a).pipe(Nn())}));return S(r).pipe(ji())}function vL(t,n){let e=n[n.length-1],o=n.slice(0,n.length-1).reverse().map(i=>tL(i)).filter(i=>i!==null).map(i=>qi(()=>{let s=i.guards.map(a=>{let c=i.node._environmentInjector,l=Vi(a,c),u=aL(l)?l.canActivateChild(e,t):Pe(c,()=>l(e,t));return Eo(u).pipe(Nn())});return S(s).pipe(ji())}));return S(o).pipe(ji())}function yL(t,n,e,r){let o=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!o||o.length===0)return S(!0);let i=o.map(s=>{let a=n._environmentInjector,c=Vi(s,a),l=cL(c)?c.canDeactivate(t,n,e,r):Pe(a,()=>c(t,n,e,r));return Eo(l).pipe(Nn())});return S(i).pipe(ji())}function bL(t,n,e,r,o){let i=n.canLoad;if(i===void 0||i.length===0)return S(!0);let s=i.map(a=>{let c=Vi(a,t),l=iL(c)?c.canLoad(n,e):Pe(t,()=>c(n,e)),u=Eo(l);return o?u.pipe(CS(o)):u});return S(s).pipe(ji(),IS(r))}function IS(t){return Kd(Ue(n=>{if(typeof n!="boolean")throw Od(t,n)}),L(n=>n===!0))}function _L(t,n,e,r,o,i){let s=n.canMatch;if(!s||s.length===0)return S(!0);let a=s.map(c=>{let l=Vi(c,t),u=lL(l)?l.canMatch(n,e,o):Pe(t,()=>l(n,e,o));return Eo(u).pipe(CS(i))});return S(a).pipe(ji(),IS(r))}var In=class t extends Error{segmentGroup;constructor(n){super(),this.segmentGroup=n||null,Object.setPrototypeOf(this,t.prototype)}},Pa=class t extends Error{urlTree;constructor(n){super(),this.urlTree=n,Object.setPrototypeOf(this,t.prototype)}};function DL(t){throw new b(4e3,!1)}function EL(t){throw _S(!1,et.GuardRejected)}var pv=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}async lineralizeSegments(n,e){let r=[],o=e.root;for(;;){if(r=r.concat(o.segments),o.numberOfChildren===0)return r;if(o.numberOfChildren>1||!o.children[B])throw DL(`${n.redirectTo}`);o=o.children[B]}}async applyRedirectCommands(n,e,r,o,i){let s=await wL(e,o,i);if(s instanceof st)throw new Pa(s);let a=this.applyRedirectCreateUrlTree(s,this.urlSerializer.parse(s),n,r);if(s[0]==="/")throw new Pa(a);return a}applyRedirectCreateUrlTree(n,e,r,o){let i=this.createSegmentGroup(n,e.root,r,o);return new st(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let r={};return Object.entries(n).forEach(([o,i])=>{if(typeof i=="string"&&i[0]===":"){let a=i.substring(1);r[o]=e[a]}else r[o]=i}),r}createSegmentGroup(n,e,r,o){let i=this.createSegments(n,e.segments,r,o),s={};return Object.entries(e.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,r,o)}),new ne(i,s)}createSegments(n,e,r,o){return e.map(i=>i.path[0]===":"?this.findPosParam(n,i,o):this.findOrReturn(i,r))}findPosParam(n,e,r){let o=r[e.path.substring(1)];if(!o)throw new b(4001,!1);return o}findOrReturn(n,e){let r=0;for(let o of e){if(o.path===n.path)return e.splice(r),o;r++}return n}};function wL(t,n,e){if(typeof t=="string")return Promise.resolve(t);let r=t;return vd(Eo(Pe(e,()=>r(n))))}function CL(t,n){return t.providers&&!t._injector&&(t._injector=oi(t.providers,n,`Route: ${t.path}`)),t._injector??n}function sn(t){return t.outlet||B}function IL(t,n){let e=t.filter(r=>sn(r)===n);return e.push(...t.filter(r=>sn(r)!==n)),e}var mv={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function SS(t){return{routeConfig:t.routeConfig,url:t.url,params:t.params,queryParams:t.queryParams,fragment:t.fragment,data:t.data,outlet:t.outlet,title:t.title,paramMap:t.paramMap,queryParamMap:t.queryParamMap}}function SL(t,n,e,r,o,i,s){let a=MS(t,n,e);if(!a.matched)return S(a);let c=SS(i(a));return r=CL(n,r),_L(r,n,e,o,c,s).pipe(L(l=>l===!0?a:g({},mv)))}function MS(t,n,e){if(n.path==="")return n.pathMatch==="full"&&(t.hasChildren()||e.length>0)?g({},mv):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let o=(n.matcher||XI)(e,t,n);if(!o)return g({},mv);let i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});let s=o.consumed.length>0?g(g({},i),o.consumed[o.consumed.length-1].parameters):i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function KI(t,n,e,r,o){return e.length>0&&xL(t,e,r,o)?{segmentGroup:new ne(n,TL(r,new ne(e,t.children))),slicedSegments:[]}:e.length===0&&AL(t,e,r)?{segmentGroup:new ne(t.segments,ML(t,e,r,t.children)),slicedSegments:e}:{segmentGroup:new ne(t.segments,t.children),slicedSegments:e}}function ML(t,n,e,r){let o={};for(let i of e)if(Pd(t,n,i)&&!r[sn(i)]){let s=new ne([],{});o[sn(i)]=s}return g(g({},r),o)}function TL(t,n){let e={};e[B]=n;for(let r of t)if(r.path===""&&sn(r)!==B){let o=new ne([],{});e[sn(r)]=o}return e}function xL(t,n,e,r){return e.some(o=>!Pd(t,n,o)||!(sn(o)!==B)?!1:!(r!==void 0&&sn(o)===r))}function AL(t,n,e){return e.some(r=>Pd(t,n,r))}function Pd(t,n,e){return(t.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function RL(t,n,e){return n.length===0&&!t.hasChildren()}var gv=class{};async function NL(t,n,e,r,o,i,s="emptyOnly",a){return new vv(t,n,e,r,o,s,i,a).recognize()}var OL=31,vv=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;queryParams;constructor(n,e,r,o,i,s,a,c){this.injector=n,this.configLoader=e,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.abortSignal=c,this.applyRedirects=new pv(this.urlSerializer,this.urlTree),this.queryParams=Object.freeze(g({},this.urlTree.queryParams))}noMatchError(n){return new b(4002,`'${n.segmentGroup}'`)}async recognize(){let n=KI(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:r}=await this.match(n),o=new it(r,e),i=new ka("",o),s=lS(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),{state:i,tree:s}}async match(n){let e=new Pi([],Object.freeze({}),this.queryParams,this.urlTree.fragment,Object.freeze({}),B,this.rootComponentType,null,{},this.injector);try{return{children:await this.processSegmentGroup(this.injector,this.config,n,B,e),rootSnapshot:e}}catch(r){if(r instanceof Pa)return this.urlTree=r.urlTree,this.queryParams=Object.freeze(g({},this.urlTree.queryParams)),this.match(r.urlTree.root);throw r instanceof In?this.noMatchError(r):r}}async processSegmentGroup(n,e,r,o,i){if(r.segments.length===0&&r.hasChildren())return this.processChildren(n,e,r,i);let s=await this.processSegment(n,e,r,r.segments,o,!0,i);return s instanceof it?[s]:[]}async processChildren(n,e,r,o){let i=[];for(let c of Object.keys(r.children))c==="primary"?i.unshift(c):i.push(c);let s=[];for(let c of i){let l=r.children[c],u=IL(e,c),d=await this.processSegment(n,u,l,l.segments,c,!0,o);d instanceof it&&s.push(d)}let a=TS(s);return kL(a),a}async processSegment(n,e,r,o,i,s,a){for(let c of e)try{return await this.processSegmentAgainstRoute(c._injector??n,e,c,r,o,i,s,a)}catch(l){if(l instanceof In||ES(l))continue;throw l}if(RL(r,o))return new gv;throw new In(r)}async processSegmentAgainstRoute(n,e,r,o,i,s,a,c){if(sn(r)!==s&&(s===B||!Pd(o,i,r)||!r.children?.length&&!r.loadChildren||i.length===0&&!o.hasChildren()))throw new In(o);if(r.redirectTo===void 0)return this.matchSegmentAgainstRoute(n,o,r,i,s,c);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(n,o,e,r,i,s,c);throw new In(o)}async expandSegmentAgainstRouteUsingRedirect(n,e,r,o,i,s,a){let{matched:c,parameters:l,consumedSegments:u,positionalParamSegments:d,remainingSegments:h}=MS(e,o,i);if(!c)throw new In(e);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>OL&&(this.allowRedirects=!1));let p=this.createSnapshot(n,o,i,l,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let m=await this.applyRedirects.applyRedirectCommands(u,o.redirectTo,d,SS(p),n),_=await this.applyRedirects.lineralizeSegments(o,m);return this.processSegment(n,r,e,_.concat(h),s,!1,a)}createSnapshot(n,e,r,o,i){let s=new Pi(r,o,this.queryParams,this.urlTree.fragment,LL(e),sn(e),e.component??e._loadedComponent??null,e,jL(e),n),a=_v(s,i,this.paramsInheritanceStrategy);return s.params=a.params,s.data=a.data,s}async matchSegmentAgainstRoute(n,e,r,o,i,s){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=De=>this.createSnapshot(n,r,De.consumedSegments,De.parameters,s),c=await vd(SL(e,r,o,n,this.urlSerializer,a,this.abortSignal));if(r.path==="**"&&(e.children={}),!c?.matched)throw new In(e);n=r._injector??n;let{routes:l}=await this.getChildConfig(n,r,o),u=r._loadedInjector??n,{parameters:d,consumedSegments:h,remainingSegments:p}=c,m=this.createSnapshot(n,r,h,d,s),{segmentGroup:_,slicedSegments:D}=KI(e,h,p,l,i),C=sn(r)===i;if(C&&D.length===0&&_.hasChildren()){let De=await this.processChildren(u,l,_,m);return new it(m,De)}if(C&&l.length===0&&D.length===0)return new it(m,[]);let $=await this.processSegment(u,l,_,D,C?B:i,!0,m);if(!C&&!($ instanceof it))throw new In(e);return new it(m,$ instanceof it?[$]:[])}async getChildConfig(n,e,r){if(e.children)return{routes:e.children,injector:n};if(e.loadChildren){if(e._loadedRoutes!==void 0){let i=e._loadedNgModuleFactory;return i&&!e._loadedInjector&&(e._loadedInjector=i.create(n).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await vd(bL(n,e,r,this.urlSerializer,this.abortSignal))){let i=await this.configLoader.loadChildren(n,e);return e._loadedRoutes=i.routes,e._loadedInjector=i.injector,e._loadedNgModuleFactory=i.factory,i}throw EL(e)}return{routes:[],injector:n}}};function kL(t){t.sort((n,e)=>n.value.outlet===B?-1:e.value.outlet===B?1:n.value.outlet.localeCompare(e.value.outlet))}function FL(t){let n=t.value.routeConfig;return n&&n.path===""}function TS(t){let n=[],e=new Set;for(let o of t){if(!FL(o)){n.push(o);continue}let i=n.find(s=>o.value.routeConfig===s.value.routeConfig);i!==void 0?(i.children.push(...o.children),e.add(i)):n.push(o)}for(let o of e){let i=TS(o.children);n.push(new it(o.value,i))}let r=n.filter(o=>!e.has(o));return PL(r),r}function PL(t){let n=Object.create(null);t.forEach(e=>{let r=n[e.value.outlet];if(r){let o=r.url.map(s=>s.toString()).join("/"),i=e.value.url.map(s=>s.toString()).join("/");throw new b(4006,!1)}n[e.value.outlet]=e.value})}function LL(t){return t.data||{}}function jL(t){return t.resolve||{}}function VL(t,n,e,r,o,i,s){return Ee(async a=>{let{state:c,tree:l}=await NL(t,n,e,r,a.extractedUrl,o,i,s);return F(g({},a),{targetSnapshot:c,urlAfterRedirects:l})})}function BL(t){return Ee(n=>{let{targetSnapshot:e,guards:{canActivateChecks:r}}=n;if(!r.length)return S(n);let o=new Set(r.map(a=>a.route)),i=new Set;for(let a of o)if(!i.has(a))for(let c of xS(a))i.add(c);let s=0;return ae(i).pipe(or(a=>o.has(a)?UL(a,e,t):(a.data=_v(a,a.parent,t).resolve,S(void 0))),Ue(()=>s++),vc(1),Ee(a=>s===i.size?S(n):Ne))})}function xS(t){let n=t.children.map(e=>xS(e)).flat();return[t,...n]}function UL(t,n,e){let r=t.routeConfig,o=t._resolve;return r?.title!==void 0&&!vS(r)&&(o[La]=r.title),qi(()=>(t.data=_v(t,t.parent,e).resolve,HL(o,t,n).pipe(L(i=>(t._resolvedData=i,t.data=g(g({},t.data),i),null)))))}function HL(t,n,e){let r=ov(t);if(r.length===0)return S({});let o={};return ae(r).pipe(Ee(i=>$L(t[i],n,e).pipe(Nn(),Ue(s=>{if(s instanceof Li)throw Od(new Xn,s);o[i]=s}))),vc(1),L(()=>o),It(i=>ES(i)?Ne:xn(i)))}function $L(t,n,e){let r=n._environmentInjector,o=Vi(t,r),i=o.resolve?o.resolve(n,e):Pe(r,()=>o(n,e));return Eo(i)}function QI(t){return Be(n=>{let e=t(n);return e?ae(e).pipe(L(()=>n)):S(n)})}var Sv=(()=>{class t{buildTitle(e){let r,o=e.root;for(;o!==void 0;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===B);return r}getResolvedTitleForRoute(e){return e.data[La]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:()=>f(AS),providedIn:"root"})}return t})(),AS=(()=>{class t extends Sv{title;constructor(e){super(),this.title=e}updateTitle(e){let r=this.buildTitle(e);r!==void 0&&this.title.setTitle(r)}static \u0275fac=function(r){return new(r||t)(w(Qw))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),xr=new y("",{factory:()=>({})}),Bi=new y(""),Ld=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=f(dm);async loadComponent(e,r){if(this.componentLoaders.get(r))return this.componentLoaders.get(r);if(r._loadedComponent)return Promise.resolve(r._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(r);let o=(async()=>{try{let i=await eS(Pe(e,()=>r.loadComponent())),s=await OS(NS(i));return this.onLoadEndListener&&this.onLoadEndListener(r),r._loadedComponent=s,s}finally{this.componentLoaders.delete(r)}})();return this.componentLoaders.set(r,o),o}loadChildren(e,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return Promise.resolve({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);let o=(async()=>{try{let i=await RS(r,this.compiler,e,this.onLoadEndListener);return r._loadedRoutes=i.routes,r._loadedInjector=i.injector,r._loadedNgModuleFactory=i.factory,i}finally{this.childrenLoaders.delete(r)}})();return this.childrenLoaders.set(r,o),o}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();async function RS(t,n,e,r){let o=await eS(Pe(e,()=>t.loadChildren())),i=await OS(NS(o)),s;i instanceof jl||Array.isArray(i)?s=i:s=await n.compileModuleAsync(i),r&&r(t);let a,c,l=!1,u;return Array.isArray(s)?(c=s,l=!0):(a=s.create(e).injector,u=s,c=a.get(Bi,[],{optional:!0,self:!0}).flat()),{routes:c.map(Iv),injector:a,factory:u}}function zL(t){return t&&typeof t=="object"&&"default"in t}function NS(t){return zL(t)?t.default:t}async function OS(t){return t}var jd=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:()=>f(GL),providedIn:"root"})}return t})(),GL=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,r){return e}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Mv=new y(""),Tv=new y("");function kS(t,n,e){let r=t.get(Tv),o=t.get(k);if(!o.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(l=>setTimeout(l));let i,s=new Promise(l=>{i=l}),a=o.startViewTransition(()=>(i(),WL(t)));a.updateCallbackDone.catch(l=>{}),a.ready.catch(l=>{}),a.finished.catch(l=>{});let{onViewTransitionCreated:c}=r;return c&&Pe(t,()=>c({transition:a,from:n,to:e})),s}function WL(t){return new Promise(n=>{At({read:()=>setTimeout(n)},{injector:t})})}var qL=()=>{},xv=new y(""),Vd=(()=>{class t{currentNavigation=Q(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=Q(null);events=new R;transitionAbortWithErrorSubject=new R;configLoader=f(Ld);environmentInjector=f(oe);destroyRef=f(He);urlSerializer=f(Tr);rootContexts=f(wo);location=f(Dn);inputBindingEnabled=f(ja,{optional:!0})!==null;titleStrategy=f(Sv);options=f(xr,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=f(jd);createViewTransition=f(Mv,{optional:!0});navigationErrorHandler=f(xv,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>S(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=o=>this.events.next(new Id(o)),r=o=>this.events.next(new Sd(o));this.configLoader.onLoadEndListener=r,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let r=++this.navigationId;Z(()=>{this.transitions?.next(F(g({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:r,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(e){return this.transitions=new Re(null),this.transitions.pipe(he(r=>r!==null),Be(r=>{let o=!1,i=new AbortController,s=()=>!o&&this.currentTransition?.id===r.id;return S(r).pipe(Be(a=>{if(this.navigationId>r.id)return this.cancelNavigationTransition(r,"",et.SupersededByNewNavigation),Ne;this.currentTransition=r;let c=this.lastSuccessfulNavigation();this.currentNavigation.set({id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:c?F(g({},c),{previousNavigation:null}):null,abort:()=>i.abort(),routesRecognizeHandler:a.routesRecognizeHandler,beforeActivateHandler:a.beforeActivateHandler});let l=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!l&&u!=="reload")return this.events.next(new Mn(a.id,this.urlSerializer.serialize(a.rawUrl),"",Ni.IgnoredSameUrlNavigation)),a.resolve(!1),Ne;if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return S(a).pipe(Be(d=>(this.events.next(new Mr(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),d.id!==this.navigationId?Ne:Promise.resolve(d))),VL(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,i.signal),Ue(d=>{r.targetSnapshot=d.targetSnapshot,r.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation.update(h=>(h.finalUrl=d.urlAfterRedirects,h)),this.events.next(new Na)}),Be(d=>ae(r.routesRecognizeHandler.deferredHandle??S(void 0)).pipe(L(()=>d))),Ue(()=>{let d=new Ra(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(d)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:d,extractedUrl:h,source:p,restoredState:m,extras:_}=a,D=new Mr(d,this.urlSerializer.serialize(h),p,m);this.events.next(D);let C=mS(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=r=F(g({},a),{targetSnapshot:C,urlAfterRedirects:h,extras:F(g({},_),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update($=>($.finalUrl=h,$)),S(r)}else return this.events.next(new Mn(a.id,this.urlSerializer.serialize(a.extractedUrl),"",Ni.IgnoredByUrlHandlingStrategy)),a.resolve(!1),Ne}),L(a=>{let c=new Dd(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);return this.events.next(c),this.currentTransition=r=F(g({},a),{guards:eL(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),r}),dL(a=>this.events.next(a)),Be(a=>{if(r.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw Od(this.urlSerializer,a.guardsResult);let c=new Ed(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);if(this.events.next(c),!s())return Ne;if(!a.guardsResult)return this.cancelNavigationTransition(a,"",et.GuardRejected),Ne;if(a.guards.canActivateChecks.length===0)return S(a);let l=new wd(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);if(this.events.next(l),!s())return Ne;let u=!1;return S(a).pipe(BL(this.paramsInheritanceStrategy),Ue({next:()=>{u=!0;let d=new Cd(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(d)},complete:()=>{u||this.cancelNavigationTransition(a,"",et.NoDataFromResolver)}}))}),QI(a=>{let c=u=>{let d=[];if(u.routeConfig?._loadedComponent)u.component=u.routeConfig?._loadedComponent;else if(u.routeConfig?.loadComponent){let h=u._environmentInjector;d.push(this.configLoader.loadComponent(h,u.routeConfig).then(p=>{u.component=p}))}for(let h of u.children)d.push(...c(h));return d},l=c(a.targetSnapshot.root);return l.length===0?S(a):ae(Promise.all(l).then(()=>a))}),QI(()=>this.afterPreactivation()),Be(()=>{let{currentSnapshot:a,targetSnapshot:c}=r,l=this.createViewTransition?.(this.environmentInjector,a.root,c.root);return l?ae(l).pipe(L(()=>r)):S(r)}),Oe(1),Be(a=>{let c=KP(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);this.currentTransition=r=a=F(g({},a),{targetRouterState:c}),this.currentNavigation.update(u=>(u.targetRouterState=c,u)),this.events.next(new ki);let l=r.beforeActivateHandler.deferredHandle;return l?ae(l.then(()=>a)):S(a)}),Ue(a=>{new hv(e.routeReuseStrategy,r.targetRouterState,r.currentRouterState,c=>this.events.next(c),this.inputBindingEnabled).activate(this.rootContexts),s()&&(o=!0,this.currentNavigation.update(c=>(c.abort=qL,c)),this.lastSuccessfulNavigation.set(Z(this.currentNavigation)),this.events.next(new Et(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0))}),jt(wS(i.signal).pipe(he(()=>!o&&!r.targetRouterState),Ue(()=>{this.cancelNavigationTransition(r,i.signal.reason+"",et.Aborted)}))),Ue({complete:()=>{o=!0}}),jt(this.transitionAbortWithErrorSubject.pipe(Ue(a=>{throw a}))),Rn(()=>{i.abort(),o||this.cancelNavigationTransition(r,"",et.SupersededByNewNavigation),this.currentTransition?.id===r.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),It(a=>{if(o=!0,this.destroyed)return r.resolve(!1),Ne;if(DS(a))this.events.next(new Ft(r.id,this.urlSerializer.serialize(r.extractedUrl),a.message,a.cancellationCode)),JP(a)?this.events.next(new Fi(a.url,a.navigationBehaviorOptions)):r.resolve(!1);else{let c=new Do(r.id,this.urlSerializer.serialize(r.extractedUrl),a,r.targetSnapshot??void 0);try{let l=Pe(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(l instanceof Li){let{message:u,cancellationCode:d}=Od(this.urlSerializer,l);this.events.next(new Ft(r.id,this.urlSerializer.serialize(r.extractedUrl),u,d)),this.events.next(new Fi(l.redirectTo,l.navigationBehaviorOptions))}else throw this.events.next(c),a}catch(l){this.options.resolveNavigationPromiseOnError?r.resolve(!1):r.reject(l)}}return Ne}))}))}cancelNavigationTransition(e,r,o){let i=new Ft(e.id,this.urlSerializer.serialize(e.extractedUrl),r,o);this.events.next(i),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),r=Z(this.currentNavigation),o=r?.targetBrowserUrl??r?.extractedUrl;return e.toString()!==o?.toString()&&!r?.extras.skipLocationChange}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function YL(t){return t!==Ai}var FS=new y("");var PS=(()=>{class t{static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:()=>f(ZL),providedIn:"root"})}return t})(),Fd=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}shouldDestroyInjector(n){return!0}},ZL=(()=>{class t extends Fd{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Bd=(()=>{class t{urlSerializer=f(Tr);options=f(xr,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=f(Dn);urlHandlingStrategy=f(jd);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new st;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:r,targetBrowserUrl:o}){let i=e!==void 0?this.urlHandlingStrategy.merge(e,r):r,s=o??i;return s instanceof st?this.urlSerializer.serialize(s):s}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{\u0275routerUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:r,initialUrl:o}){r&&e?(this.currentUrlTree=r,this.rawUrlTree=this.urlHandlingStrategy.merge(r,o),this.routerState=e):this.rawUrlTree=o}routerState=mS(null,f(oe));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:()=>f(KL),providedIn:"root"})}return t})(),KL=(()=>{class t extends Bd{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(r=>{r.type==="popstate"&&setTimeout(()=>{e(r.url,r.state,"popstate",{replaceUrl:!0})})})}handleRouterEvent(e,r){e instanceof Mr?this.updateStateMemento():e instanceof Mn?this.commitTransition(r):e instanceof Ra?this.urlUpdateStrategy==="eager"&&(r.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof ki?(this.commitTransition(r),this.urlUpdateStrategy==="deferred"&&!r.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(r),r)):e instanceof Ft&&!pS(e)?this.restoreHistory(r):e instanceof Do?this.restoreHistory(r,!0):e instanceof Et&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,r){let{extras:o,id:i}=r,{replaceUrl:s,state:a}=o;if(this.location.isCurrentPathEqualTo(e)||s){let c=this.browserPageId,l=g(g({},a),this.generateNgRouterState(i,c,r));this.location.replaceState(e,"",l)}else{let c=g(g({},a),this.generateNgRouterState(i,this.browserPageId+1,r));this.location.go(e,"",c)}}restoreHistory(e,r=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,i=this.currentPageId-o;i!==0?this.location.historyGo(i):this.getCurrentUrlTree()===e.finalUrl&&i===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(r&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,r,o){return this.canceledNavigationResolution==="computed"?g({navigationId:e,\u0275routerPageId:r},this.routerUrlState(o)):g({navigationId:e},this.routerUrlState(o))}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Te(t)))(o||t)}})();static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Ud(t,n){t.events.pipe(he(e=>e instanceof Et||e instanceof Ft||e instanceof Do||e instanceof Mn),L(e=>e instanceof Et||e instanceof Mn?0:(e instanceof Ft?e.code===et.Redirect||e.code===et.SupersededByNewNavigation:!1)?2:1),he(e=>e!==2),Oe(1)).subscribe(()=>{n()})}var wt=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=f(Vl);stateManager=f(Bd);options=f(xr,{optional:!0})||{};pendingTasks=f(Bn);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=f(Vd);urlSerializer=f(Tr);location=f(Dn);urlHandlingStrategy=f(jd);injector=f(oe);_events=new R;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=f(PS);injectorCleanup=f(FS,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=f(Bi,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!f(ja,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new G;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(r=>{try{let o=this.navigationTransitions.currentTransition,i=Z(this.navigationTransitions.currentNavigation);if(o!==null&&i!==null){if(this.stateManager.handleRouterEvent(r,i),r instanceof Ft&&r.code!==et.Redirect&&r.code!==et.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof Et)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(r instanceof Fi){let s=r.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),c=g({scroll:o.extras.scroll,browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||YL(o.source)},s);this.scheduleNavigation(a,Ai,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}YP(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Ai,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,r,o,i)=>{this.navigateToSyncWithBrowser(e,o,r,i)})}navigateToSyncWithBrowser(e,r,o,i){let s=o?.navigationId?o:null,a=o?.\u0275routerUrl??e;if(o?.\u0275routerUrl&&(i=F(g({},i),{browserUrl:e})),o){let l=g({},o);delete l.navigationId,delete l.\u0275routerPageId,delete l.\u0275routerUrl,Object.keys(l).length!==0&&(i.state=l)}let c=this.parseUrl(a);this.scheduleNavigation(c,r,s,i).catch(l=>{this.disposed||this.injector.get(vt)(l)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Z(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(Iv),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,r={}){let{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,l=c?this.currentUrlTree.fragment:s,u=null;switch(a??this.options.defaultQueryParamsHandling){case"merge":u=g(g({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}u!==null&&(u=this.removeEmptyProps(u));let d;try{let h=o?o.snapshot:this.routerState.snapshot.root;d=uS(h)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),d=this.currentUrlTree.root}return dS(d,e,u,l??null,this.urlSerializer)}navigateByUrl(e,r={skipLocationChange:!1}){let o=Sr(e)?e:this.parseUrl(e),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Ai,null,r)}navigate(e,r={skipLocationChange:!1}){return QL(e),this.navigateByUrl(this.createUrlTree(e,r),r)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(St(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,r){let o;if(r===!0?o=g({},yv):r===!1?o=g({},xa):o=g(g({},xa),r),Sr(e))return iv(this.currentUrlTree,e,o);let i=this.parseUrl(e);return iv(this.currentUrlTree,i,o)}removeEmptyProps(e){return Object.entries(e).reduce((r,[o,i])=>(i!=null&&(r[o]=i),r),{})}scheduleNavigation(e,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((d,h)=>{a=d,c=h});let u=this.pendingTasks.add();return Ud(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:i,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(Promise.reject.bind(Promise))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function QL(t){for(let n=0;n{class t{router=f(wt);stateManager=f(Bd);fragment=Q("");queryParams=Q({});path=Q("");serializer=f(Tr);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof Et&&this.updateState()})}updateState(){let{fragment:e,root:r,queryParams:o}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(o),this.path.set(this.serializer.serialize(new st(r)))}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Hd=(()=>{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=f(new ui("href"),{optional:!0});reactiveHref=hm(()=>{if(!this.isAnchorElement)return this.hrefAttributeValue;this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=r=>r==="preserve"||r==="merge";return(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams(),this.computeHref(this.createUrlTree())});get href(){return Z(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}set target(e){this._target.set(e)}get target(){return Z(this._target)}_target=Q(void 0);set queryParams(e){this._queryParams.set(e)}get queryParams(){return Z(this._queryParams)}_queryParams=Q(void 0,{equal:()=>!1});set fragment(e){this._fragment.set(e)}get fragment(){return Z(this._fragment)}_fragment=Q(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e)}get queryParamsHandling(){return Z(this._queryParamsHandling)}_queryParamsHandling=Q(void 0);set state(e){this._state.set(e)}get state(){return Z(this._state)}_state=Q(void 0,{equal:()=>!1});set info(e){this._info.set(e)}get info(){return Z(this._info)}_info=Q(void 0,{equal:()=>!1});set relativeTo(e){this._relativeTo.set(e)}get relativeTo(){return Z(this._relativeTo)}_relativeTo=Q(void 0);set preserveFragment(e){this._preserveFragment.set(e)}get preserveFragment(){return Z(this._preserveFragment)}_preserveFragment=Q(!1);set skipLocationChange(e){this._skipLocationChange.set(e)}get skipLocationChange(){return Z(this._skipLocationChange)}_skipLocationChange=Q(!1);set replaceUrl(e){this._replaceUrl.set(e)}get replaceUrl(){return Z(this._replaceUrl)}_replaceUrl=Q(!1);isAnchorElement;onChanges=new R;applicationErrorHandler=f(vt);options=f(xr,{optional:!0});reactiveRouterState=f(XL);constructor(e,r,o,i,s,a){this.router=e,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a;let c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href"))}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.onChanges.next(this)}routerLinkInput=Q(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(Sr(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,r,o,i,s){let a=this.urlTree;if(a===null||this.isAnchorElement&&(e!==0||r||o||i||s||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(a,c)?.catch(l=>{this.applicationErrorHandler(l)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,r){let o=this.renderer,i=this.el.nativeElement;r!==null?o.setAttribute(i,e,r):o.removeAttribute(i,e)}createUrlTree(){let e=this.routerLinkInput();return e===null||!this.router.createUrlTree?null:Sr(e)?e:this.router.createUrlTree(e,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})}get urlTree(){return Z(()=>this.createUrlTree())}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null}static \u0275fac=function(r){return new(r||t)(E(wt),E(Jn),ks("tabindex"),E(Le),E(z),E(en))};static \u0275dir=M({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(r,o){r&1&&Qt("click",function(s){return o.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),r&2&<("href",o.reactiveHref(),Sp)("target",o._target())},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",ue],skipLocationChange:[2,"skipLocationChange","skipLocationChange",ue],replaceUrl:[2,"replaceUrl","replaceUrl",ue],routerLink:"routerLink"},features:[ze]})}return t})(),JL=(()=>{class t{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new H;link=f(Hd,{optional:!0});constructor(e,r,o,i){this.router=e,this.element=r,this.renderer=o,this.cdr=i,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof Et&&this.update()})}ngAfterContentInit(){S(this.links.changes,S(null)).pipe(cn()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=ae(e).pipe(cn()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(e){let r=Array.isArray(e)?e:e.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(r=>{e?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let r=e1(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact??!1?g({},yv):g({},xa);return o=>{let i=o.urlTree;return i?Z(bv(i,e,r)):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(r){return new(r||t)(E(wt),E(z),E(Le),E(Xt))};static \u0275dir=M({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(r,o,i){if(r&1&&Wl(i,Hd,5),r&2){let s;ql(s=Yl())&&(o.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[ze]})}return t})();function e1(t){let n=t;return!!(n.paths||n.matrixParams||n.queryParams||n.fragment)}var Ba=class{};var LS=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,r,o,i){this.router=e,this.injector=r,this.preloadingStrategy=o,this.loader=i}setUpPreloading(){this.subscription=this.router.events.pipe(he(e=>e instanceof Et),or(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription?.unsubscribe()}processRoutes(e,r){let o=[];for(let i of r){i.providers&&!i._injector&&(i._injector=oi(i.providers,e,""));let s=i._injector??e;i._loadedNgModuleFactory&&!i._loadedInjector&&(i._loadedInjector=i._loadedNgModuleFactory.create(s).injector);let a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&i.canLoad===void 0||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return ae(o).pipe(cn())}preloadConfig(e,r){return this.preloadingStrategy.preload(r,()=>{if(e.destroyed)return S(null);let o;r.loadChildren&&r.canLoad===void 0?o=ae(this.loader.loadChildren(e,r)):o=S(null);let i=o.pipe(Ee(s=>s===null?S(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,r._loadedNgModuleFactory=s.factory,this.processRoutes(s.injector??e,s.routes))));if(r.loadComponent&&!r._loadedComponent){let s=this.loader.loadComponent(e,r);return ae([i,s]).pipe(cn())}else return i})}static \u0275fac=function(r){return new(r||t)(w(wt),w(oe),w(Ba),w(Ld))};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),jS=new y(""),t1=(()=>{class t{options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=Ai;restoredId=0;store={};isHydrating=f(bp,{optional:!0})??!1;urlSerializer=f(Tr);zone=f(V);viewportScroller=f(Hm);transitions=f(Vd);constructor(e){this.options=e,this.options.scrollPositionRestoration||="disabled",this.options.anchorScrolling||="disabled",this.isHydrating&&f(Ge).whenStable().then(()=>{this.isHydrating=!1})}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Mr?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Et?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Mn&&e.code===Ni.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof Oi)||e.scrollBehavior==="manual")return;let r={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],r):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,r):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,r){if(this.isHydrating)return;let o=Z(this.transitions.currentNavigation)?.extras.scroll;this.zone.runOutsideAngular(async()=>{await new Promise(i=>{setTimeout(i),typeof requestAnimationFrame<"u"&&requestAnimationFrame(i)}),this.zone.run(()=>{this.transitions.events.next(new Oi(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,r,o))})})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(r){$p()};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();function n1(){return f(wt).routerState.root}function Ua(t,n){return{\u0275kind:t,\u0275providers:n}}function r1(){let t=f(W);return n=>{let e=t.get(Ge);if(n!==e.components[0])return;let r=t.get(wt),o=t.get(VS);t.get(Rv)===1&&r.initialNavigation(),t.get(HS,null,{optional:!0})?.setUpPreloading(),t.get(jS,null,{optional:!0})?.init(),r.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var VS=new y("",{factory:()=>new R}),Rv=new y("",{factory:()=>1});function BS(){let t=[{provide:Cl,useValue:!0},{provide:Rv,useValue:0},$l(()=>{let n=f(W);return n.get(Tm,Promise.resolve()).then(()=>new Promise(r=>{let o=n.get(wt),i=n.get(VS);Ud(o,()=>{r(!0)}),n.get(Vd).afterPreactivation=()=>(r(!0),i.closed?S(void 0):i),o.initialNavigation()}))})];return Ua(2,t)}function US(){let t=[$l(()=>{f(wt).setUpLocationChangeListener()}),{provide:Rv,useValue:2}];return Ua(3,t)}var HS=new y("");function $S(t){return Ua(0,[{provide:HS,useExisting:LS},{provide:Ba,useExisting:t}])}function zS(){return Ua(8,[wv,{provide:ja,useExisting:wv}])}function GS(t){Kt("NgRouterViewTransitions");let n=[{provide:Mv,useValue:kS},{provide:Tv,useValue:g({skipNextTransition:!!t?.skipInitialTransition},t)}];return Ua(9,n)}var WS=[Dn,{provide:Tr,useClass:Xn},wt,wo,{provide:Jn,useFactory:n1},Ld,[]],o1=(()=>{class t{constructor(){}static forRoot(e,r){return{ngModule:t,providers:[WS,[],{provide:Bi,multi:!0,useValue:e},[],r?.errorHandler?{provide:xv,useValue:r.errorHandler}:[],{provide:xr,useValue:r||{}},r?.useHash?s1():a1(),i1(),r?.preloadingStrategy?$S(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?c1(r):[],r?.bindToComponentInputs?zS().\u0275providers:[],r?.enableViewTransitions?GS().\u0275providers:[],l1()]}}static forChild(e){return{ngModule:t,providers:[{provide:Bi,multi:!0,useValue:e}]}}static \u0275fac=function(r){return new(r||t)};static \u0275mod=X({type:t});static \u0275inj=Y({})}return t})();function i1(){return{provide:jS,useFactory:()=>{let t=f(Hm),n=f(xr);return n.scrollOffset&&t.setOffset(n.scrollOffset),new t1(n)}}}function s1(){return{provide:en,useClass:Lm}}function a1(){return{provide:en,useClass:ru}}function c1(t){return[t.initialNavigation==="disabled"?US().\u0275providers:[],t.initialNavigation==="enabledBlocking"?BS().\u0275providers:[]]}var Av=new y("");function l1(){return[{provide:Av,useFactory:r1},{provide:zl,multi:!0,useExisting:Av}]}var $d=class t extends Error{originalError;constructor(n){super(n)}static fromError(n,e){let r=new t(n);return r.originalError=e,r}},d1=(()=>{class t{handleError(e){let r=e;return e.name==="HttpErrorResponse"&&e.status===0?r=$d.fromError("Controller is unreachable",e):e.error?.message&&(r=$d.fromError(e.error.message,e)),xn(()=>r)}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})(),_ee=(()=>{class t{http;errorHandler;router;requestsNotificationEmitter=new H;isRefreshing=!1;failedQueue=[];constructor(e,r,o){this.http=e,this.errorHandler=r,this.router=o}get(e,r,o){o=this.getJsonOptions(o);let i=this.getOptionsForController(e,r,o);return this.requestsNotificationEmitter.emit(`GET ${i.url}`),this.handleResponse(e,this.http.get(i.url,i.options),"GET",r,null,o)}getText(e,r,o){o=this.getTextOptions(o);let i=this.getOptionsForController(e,r,o);return this.requestsNotificationEmitter.emit(`GET ${i.url}`),this.handleResponse(e,this.http.get(i.url,i.options),"GET",r,null,o)}getBlob(e,r,o){o=this.getBlobOptions(o);let i=this.getOptionsForController(e,r,o);return this.requestsNotificationEmitter.emit(`GET ${i.url}`),this.handleResponse(e,this.http.get(i.url,i.options),"GET",r,null,o)}post(e,r,o,i){i=this.getJsonOptions(i);let s=this.getOptionsForController(e,r,i);return this.requestsNotificationEmitter.emit(`POST ${s.url}`),this.handleResponse(e,this.http.post(s.url,o,s.options),"POST",r,o,i)}postBlob(e,r,o){let i={responseType:"blob",headers:{}},s=this.getOptionsForController(e,r,i);return this.requestsNotificationEmitter.emit(`POST ${s.url}`),this.handleResponse(e,this.http.post(s.url,o,s.options),"POST",r,o,i)}put(e,r,o,i){i=this.getJsonOptions(i);let s=this.getOptionsForController(e,r,i);return this.requestsNotificationEmitter.emit(`PUT ${s.url}`),this.handleResponse(e,this.http.put(s.url,o,s.options),"PUT",r,o,i)}delete(e,r,o){o=this.getJsonOptions(o);let i=this.getOptionsForController(e,r,o);return this.requestsNotificationEmitter.emit(`DELETE ${i.url}`),this.handleResponse(e,this.http.delete(i.url,i.options),"DELETE",r,null,o)}patch(e,r,o,i){i=this.getJsonOptions(i);let s=this.getOptionsForController(e,r,i);return this.handleResponse(e,this.http.patch(s.url,o,s.options),"PATCH",r,o,i)}head(e,r,o){o=this.getJsonOptions(o);let i=this.getOptionsForController(e,r,o);return this.handleResponse(e,this.http.head(i.url,i.options),"HEAD",r,null,o)}options(e,r,o){o=this.getJsonOptions(o);let i=this.getOptionsForController(e,r,o);return this.handleResponse(e,this.http.options(i.url,i.options),"OPTIONS",r,null,o)}getJsonOptions(e){return e||{responseType:"json"}}getTextOptions(e){return e||{responseType:"text"}}getBlobOptions(e){return e||{responseType:"blob"}}getOptionsForController(e,r,o){return e&&e.host&&e.port?(e.protocol||(e.protocol=location.protocol),r=`${e.protocol}//${e.host}:${e.port}/${nd.current_version}${r}`):r=`/${nd.current_version}${r}`,o.headers||(o.headers={}),e&&e.authToken&&!e.tokenExpired&&(o.headers.Authorization=`Bearer ${e.authToken}`),{url:r,options:o}}handleResponse(e,r,o,i,s,a){return r.pipe(It(c=>{if(c.status!==401)return this.errorHandler.handleError(c);if(i.endsWith("/access/users/login")||i.endsWith("/access/users/authenticate")||i.endsWith("/access/users/refresh"))return this.errorHandler.handleError(c);let l=localStorage.getItem(`refresh_token_${e.id}`);return l?this.retryAfterRefresh(e,o,i,s,a,l):(this.redirectToLogin(e),xn(()=>c))}))}retryAfterRefresh(e,r,o,i,s,a){return this.isRefreshing?new P(c=>{this.failedQueue.push({resolve:()=>{this.executeRequest(e,r,o,i,s).subscribe({next:l=>{c.next(l),c.complete()},error:l=>c.error(l)})},reject:l=>c.error(l)})}):(this.isRefreshing=!0,this.doRefreshToken(e,a).pipe(Be(c=>(e.authToken=c.access_token,localStorage.setItem(`controller-${e.id}`,JSON.stringify(e)),c.refresh_token&&localStorage.setItem(`refresh_token_${e.id}`,c.refresh_token),this.isRefreshing=!1,this.processQueue(null),this.executeRequest(e,r,o,i,s))),It(c=>(this.isRefreshing=!1,this.processQueue(c),c.status===401&&this.redirectToLogin(e),xn(()=>c)))))}doRefreshToken(e,r){let o=`${e.protocol}//${e.host}:${e.port}/${nd.current_version}/access/users/refresh`;return this.http.post(o,{refresh_token:r},{headers:new wn({"Content-Type":"application/json"})})}executeRequest(e,r,o,i,s){let a=this.getOptionsForController(e,o,s);return this.requestsNotificationEmitter.emit(`${r} ${a.url}`),this.http.request(r,a.url,{body:i,headers:a.options.headers,params:a.options.params,responseType:a.options.responseType||"json"})}processQueue(e){e?this.failedQueue.forEach(r=>r.reject(e)):this.failedQueue.forEach(r=>r.resolve()),this.failedQueue=[]}clearTokens(e){localStorage.removeItem(`refresh_token_${e.id}`),e.authToken=null,localStorage.setItem(`controller-${e.id}`,JSON.stringify(e))}redirectToLogin(e){this.clearTokens(e),e.tokenExpired=!0,localStorage.setItem(`controller-${e.id}`,JSON.stringify(e)),this.isRefreshing=!1,this.processQueue(new Error("Session expired, redirecting to login")),this.router.navigate(["/controller",e.id,"login"])}static \u0275fac=function(r){return new(r||t)(w(pi),w(d1),w(wt))};static \u0275prov=v({token:t,factory:t.\u0275fac})}return t})();var Nv=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected=null;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new R;constructor(n=!1,e,r=!0,o){this._multiple=n,this._emitChanges=r,this.compareWith=o,e&&e.length&&(n?e.forEach(i=>this._markSelected(i)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(r=>this._markSelected(r));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(r=>this._unmarkSelected(r));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);let e=this.selected,r=new Set(n.map(i=>this._getConcreteValue(i)));n.forEach(i=>this._markSelected(i)),e.filter(i=>!r.has(this._getConcreteValue(i,r))).forEach(i=>this._unmarkSelected(i));let o=this._hasQueuedChanges();return this._emitChangeEvent(),o}toggle(n){return this.isSelected(n)?this.deselect(n):this.select(n)}clear(n=!0){this._unmarkAll();let e=this._hasQueuedChanges();return n&&this._emitChangeEvent(),e}isSelected(n){return this._selection.has(this._getConcreteValue(n))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(n){n=this._getConcreteValue(n),this.isSelected(n)||(this._multiple||this._unmarkAll(),this.isSelected(n)||this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){n=this._getConcreteValue(n),this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){n.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(n,e){if(this.compareWith){e=e??this._selection;for(let r of e)if(this.compareWith(n,r))return r;return n}else return n}};var f1=(()=>{class t{_listeners=[];notify(e,r){for(let o of this._listeners)o(e,r)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(r=>e!==r)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(r){return new(r||t)};static \u0275prov=v({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var qS=class{applyChanges(n,e,r,o,i){n.forEachOperation((s,a,c)=>{let l,u;if(s.previousIndex==null){let d=r(s,a,c);l=e.createEmbeddedView(d.templateRef,d.context,d.index),u=Cn.INSERTED}else c==null?(e.remove(a),u=Cn.REMOVED):(l=e.get(a),e.move(l,c),u=Cn.MOVED);i&&i({context:l?.context,operation:u,record:s})})}detach(){}};var kee=(()=>{class t{_animationsDisabled=Cr();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(r){return new(r||t)};static \u0275cmp=xe({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(r,o){r&2&&Xe("mat-pseudo-checkbox-indeterminate",o.state==="indeterminate")("mat-pseudo-checkbox-checked",o.state==="checked")("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal",o.appearance==="minimal")("mat-pseudo-checkbox-full",o.appearance==="full")("_mat-animation-noopable",o._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(r,o){},styles:[`.mat-pseudo-checkbox { border-radius: 2px; cursor: pointer; display: inline-block; @@ -1025,4 +1025,4 @@ ${e.map((r,o)=>`${o+1}) ${r.toString()}`).join(` top: 6px; width: 12px; } -`],encapsulation:2,changeDetection:0})}return t})();export{g as a,F as b,ZS as c,o1 as d,i1 as e,s1 as f,G as g,P as h,x as i,Ae as j,$i as k,qv as l,Ct as m,Yv as n,Re as o,Wi as p,ae as q,S as r,xn as s,Vt as t,fM as u,pM as v,V as w,Ro as x,Ee as y,ln as z,qi as A,Yi as B,tf as C,Pr as D,AM as E,RM as F,he as G,mc as H,It as I,NM as J,or as K,Lr as L,Ne as M,nf as N,OM as O,gc as P,Rn as Q,dy as R,Zi as S,fy as T,Ki as U,No as V,Ve as W,jt as X,Be as Y,b as Z,Ie as _,v as $,q as aa,y as ba,w as ca,f as da,Ly as ea,re as fa,J as ga,Qy as ha,Xy as ia,ub as ja,db as ka,W as la,O as ma,Ue as na,H as oa,j as pa,Ze as qa,K as ra,Es as sa,$e as ta,Pe as ua,$ as va,Un as wa,so as xa,Fs as ya,P0 as za,$_ as Aa,z_ as Ba,V0 as Ca,B0 as Da,Q_ as Ea,At as Fa,gt as Ga,He as Ha,Le as Ia,E as Ja,Bp as Ka,Qe as La,Te as Ma,Q as Na,T as Oa,ii as Pa,UA as Qa,ie as Ra,ZD as Sa,KD as Ta,si as Ua,Ge as Va,tE as Wa,yt as Xa,eR as Ya,nR as Za,em as _a,rR as $a,oR as ab,iR as bb,sR as cb,aR as db,nE as eb,bl as fb,tm as gb,zl as hb,ai as ib,ci as jb,Gn as kb,nm as lb,rm as mb,oE as nb,hR as ob,iE as pb,Qt as qb,aE as rb,yR as sb,Dr as tb,_n as ub,Gl as vb,om as wb,Wl as xb,ql as yb,lE as zb,uE as Ab,DR as Bb,ER as Cb,im as Db,Xe as Eb,zs as Fb,$R as Gb,bE as Hb,sm as Ib,_E as Jb,DE as Kb,EE as Lb,wE as Mb,CE as Nb,ZR as Ob,IE as Pb,KR as Qb,QR as Rb,ze as Sb,tN as Tb,nN as Ub,rN as Vb,oN as Wb,iN as Xb,aN as Yb,lN as Zb,uN as _b,dN as $b,fN as ac,hN as bc,Y as cc,Xt as dc,ui as ec,M5 as fc,T5 as gc,zE as hc,x5 as ic,A5 as jc,R5 as kc,N5 as lc,Jt as mc,Xl as nc,ue as oc,wm as pc,k5 as qc,Dn as rc,hO as sc,yw as tc,pO as uc,mO as vc,gO as wc,bO as xc,DO as yc,CO as zc,IO as Ac,Pm as Bc,Dw as Cc,Wm as Dc,HO as Ec,ZO as Fc,wn as Gc,Yn as Hc,di as Ic,lo as Jc,fi as Kc,Hw as Lc,pi as Mc,gk as Nc,qw as Oc,cY as Pc,ia as Qc,Nt as Rc,gg as Sc,EF as Tc,ot as Uc,ha as Vc,pa as Wc,$u as Xc,HC as Yc,Ot as Zc,_e as _c,_i as $c,_a as ad,iP as bd,Fg as cd,In as dd,Pg as ed,rn as fd,Da as gd,aP as hd,Si as id,XQ as jd,Lg as kd,jg as ld,va as md,mo as nd,Vg as od,Mi as pd,td as qd,nd as rd,iX as sd,sX as td,EI as ud,Yu as vd,AI as wd,zg as xd,Ca as yd,Gg as zd,ad as Ad,qg as Bd,LI as Cd,Yg as Dd,Zg as Ed,$g as Fd,hP as Gd,pP as Hd,HS as Id,fo as Jd,iC as Kd,Cn as Ld,Zw as Md,rt as Nd,Zn as Od,IY as Pd,SY as Qd,uo as Rd,MY as Sd,Bk as Td,vi as Ud,xY as Vd,zk as Wd,AY as Xd,Wk as Yd,Yk as Zd,CC as _d,IC as $d,Xk as ae,eF as be,RY as ce,NY as de,sF as ee,cF as fe,uF as ge,dF as he,OY as ie,kY as je,FY as ke,Gu as le,wF as me,Uu as ne,Wu as oe,bg as pe,l7 as qe,XC as re,nI as se,LF as te,VF as ue,BF as ve,Dg as we,Eg as xe,wg as ye,nK as ze,HF as Ae,$F as Be,gK as Ce,jK as De,SK as Ee,RK as Fe,GF as Ge,Cr as He,Mr as Ie,Et as Je,Ft as Ke,Do as Le,Jn as Me,bv as Ne,wt as Oe,Vd as Pe,zL as Qe,ZL as Re,LC as Se,gZ as Te,vZ as Ue,ba as Ve,Rg as We,JK as Xe,vI as Ye,yI as Ze,eP as _e,_I as $e,SQ as af,MQ as bf,ed as cf,n1 as df,eee as ef,xv as ff,r1 as gf,pee as hf}; +`],encapsulation:2,changeDetection:0})}return t})();export{g as a,F as b,eM as c,h1 as d,p1 as e,m1 as f,G as g,P as h,R as i,Re as j,$i as k,Kv as l,Ct as m,Qv as n,Ne as o,Wi as p,ae as q,S as r,xn as s,Vt as t,vM as u,bM as v,L as w,Ro as x,Ee as y,ln as z,qi as A,Yi as B,of as C,Pr as D,FM as E,PM as F,he as G,mc as H,It as I,sf as J,jM as K,or as L,Lr as M,Oe as N,af as O,VM as P,gc as Q,py as R,Rn as S,my as T,Zi as U,gy as V,Ki as W,No as X,Be as Y,jt as Z,yc as _,Ue as $,b as aa,Ce as ba,v as ca,Y as da,y as ea,w as fa,f as ga,Uy as ha,oe as ia,J as ja,tb as ka,nb as la,pb as ma,mb as na,W as oa,k as pa,He as qa,H as ra,V as sa,Ze as ta,Q as ua,Es as va,ze as wa,Te as xa,z as ya,Un as za,so as Aa,Fs as Ba,H0 as Ca,q_ as Da,Y_ as Ea,G0 as Fa,W0 as Ga,tD as Ha,At as Ia,yt as Ja,$e as Ka,Le as La,E as Ma,$p as Na,Qe as Oa,xe as Pa,X as Qa,M as Ra,ii as Sa,qA as Ta,te as Ua,JD as Va,eE as Wa,si as Xa,Ge as Ya,iE as Za,lt as _a,sR as $a,cR as ab,rm as bb,lR as cb,uR as db,dR as eb,fR as fb,hR as gb,sE as hb,_l as ib,om as jb,Gl as kb,ai as lb,ci as mb,Gn as nb,im as ob,sm as pb,cE as qb,bR as rb,lE as sb,Qt as tb,dE as ub,CR as vb,Dr as wb,_n as xb,Wl as yb,am as zb,ql as Ab,Yl as Bb,hE as Cb,pE as Db,MR as Eb,TR as Fb,cm as Gb,Xe as Hb,zs as Ib,ZR as Jb,wE as Kb,lm as Lb,CE as Mb,IE as Nb,SE as Ob,ME as Pb,TE as Qb,tN as Rb,xE as Sb,nN as Tb,rN as Ub,je as Vb,aN as Wb,cN as Xb,lN as Yb,uN as Zb,dN as _b,hN as $b,mN as ac,gN as bc,vN as cc,yN as dc,bN as ec,Z as fc,Wn as gc,ui as hc,q5 as ic,Y5 as jc,YE as kc,Z5 as lc,K5 as mc,Q5 as nc,X5 as oc,Xt as pc,Jl as qc,ue as rc,Sm as sc,e6 as tc,Dn as uc,bO as vc,Ew as wc,_O as xc,DO as yc,EO as zc,IO as Ac,MO as Bc,AO as Cc,RO as Dc,Vm as Ec,Iw as Fc,Zm as Gc,YO as Hc,tk as Ic,wn as Jc,Zn as Kc,di as Lc,lo as Mc,fi as Nc,Ww as Oc,pi as Pc,Ek as Qc,Qw as Rc,TY as Sc,ia as Tc,Nt as Uc,yg as Vc,AF as Wc,ot as Xc,ha as Yc,pa as Zc,Gu as _c,qC as $c,Ot as ad,_e as bd,_i as cd,_a as dd,hP as ed,Lg as fd,Cn as gd,jg as hd,rn as id,Da as jd,mP as kd,Si as ld,yX as md,Vg as nd,Bg as od,va as pd,mo as qd,Ug as rd,Mi as sd,rd as td,od as ud,IX as vd,SX as wd,MI as xd,Ku as yd,FI as zd,Wg as Ad,Ca as Bd,qg as Cd,ld as Dd,Zg as Ed,HI as Fd,Kg as Gd,Qg as Hd,Gg as Id,DP as Jd,EP as Kd,qS as Ld,fo as Md,lC as Nd,nn as Od,Jw as Pd,rt as Qd,Kn as Rd,GY as Sd,WY as Td,uo as Ud,qY as Vd,Gk as Wd,vi as Xd,ZY as Yd,Zk as Zd,KY as _d,Qk as $d,Jk as ae,xC as be,AC as ce,rF as de,iF as ee,QY as fe,XY as ge,fF as he,pF as ie,gF as je,yF as ke,bF as le,JY as me,eZ as ne,tZ as oe,qu as pe,RF as qe,$u as re,Yu as se,Dg as te,x7 as ue,rI as ve,aI as we,GF as xe,qF as ye,YF as ze,wg as Ae,Cg as Be,Ig as Ce,EK as De,KF as Ee,QF as Fe,PK as Ge,oQ as He,WK as Ie,QK as Je,JF as Ke,Cr as Le,Mr as Me,Et as Ne,Ft as Oe,Do as Pe,Jn as Qe,Ev as Re,wt as Se,Hd as Te,JL as Ue,o1 as Ve,HC as We,PZ as Xe,LZ as Ye,ba as Ze,Og as _e,bQ as $e,EI as af,wI as bf,cP as cf,II as df,WQ as ef,qQ as ff,nd as gf,d1 as hf,_ee as if,Nv as jf,f1 as kf,kee as lf}; diff --git a/gns3server/static/web-ui/chunk-3DUTSYEG.js b/gns3server/static/web-ui/chunk-YK4BK3GN.js similarity index 75% rename from gns3server/static/web-ui/chunk-3DUTSYEG.js rename to gns3server/static/web-ui/chunk-YK4BK3GN.js index 654f10045..0004beddd 100644 --- a/gns3server/static/web-ui/chunk-3DUTSYEG.js +++ b/gns3server/static/web-ui/chunk-YK4BK3GN.js @@ -1,4 +1,4 @@ -import{$ as P,$a as O,$c as xe,$e as dt,A as xn,Ab as Bn,Ae as ui,Bb as Vt,Bd as gt,Be as Qt,C as kn,Cb as we,Cc as Gn,Cd as Zn,Ce as fi,D as Cn,Db as Gt,Dd as Jn,De as Be,Ea as d,Eb as p,Ed as et,F as G,Fa as ce,Fb as de,Fd as $t,Fe as pi,G as Z,Ga as Ie,Gb as $,Gd as Ut,Ha as Fn,Hb as se,Hd as Ne,He as q,Ia as ae,Ib as Qe,Jd as ei,Ka as On,L as wn,La as He,Ld as ti,M as $e,Ma as M,Md as ni,Na as B,Oa as I,Od as ii,Oe as bi,R as ut,Ra as _e,Rc as De,S as rt,Sa as ge,Sb as U,T as Tn,Ta as pt,Td as ai,Te as _i,U as Mn,Ua as An,Uc as Wn,Ue as gi,V as te,Va as Ln,Vc as Yn,W as Ae,Wa as Pn,Wc as $n,We as Kt,X as x,Xa as T,Xc as Wt,Xe as he,Y as In,Za as F,Ze as Re,_ as Sn,_c as Ee,_e as vi,a as S,aa as N,ac as zn,af as yi,b as le,ba as C,bb as Bt,be as oi,bf as xt,ca as J,cb as zt,cf as tt,da as r,db as Ht,dc as ye,eb as E,ec as Ke,ef as xi,fb as c,fd as j,ff as ki,g as re,gb as u,gd as Yt,h as Oe,ha as ne,hb as A,hd as Un,hf as Ci,i as f,ia as ie,ib as ke,ic as st,id as lt,j as Ye,ja as Ue,jb as Pe,ka as Dn,kb as jt,kc as Hn,kd as Xe,la as X,le as Ve,ma as be,mc as Y,md as K,me as ri,ne as si,o as vn,oa as g,ob as Se,oc as _,od as ct,oe as li,pa as z,pb as Ce,pc as Te,pd as je,pe as ci,qb as k,qc as jn,qd as qn,qe as qt,r as ze,ra as Q,rb as bt,rd as Qn,re as di,sa as En,sb as y,sd as Kn,ta as qe,tb as H,td as Ze,ua as Le,ub as w,ud as Xn,ue as vt,va as D,vb as ve,vd as me,ve as mi,w as pe,wa as ft,wb as W,wc as Vn,we as hi,xa as Rn,xb as m,xd as Je,xe as yt,y as yn,yb as h,yd as _t,zb as Nn}from"./chunk-G7NALUVX.js";var Da=["tooltip"],Ea=20;var Ra=new C("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let i=r(X);return()=>Je(i,{scrollThrottle:Ea})}}),Fa=new C("mat-tooltip-default-options",{providedIn:"root",factory:()=>({showDelay:0,hideDelay:0,touchendHideDelay:1500})});var wi="tooltip-panel",Oa={passive:!0},Aa=8,La=8,Pa=24,Na=200,Ba=(()=>{class i{_elementRef=r(D);_ngZone=r(z);_platform=r(Ee);_ariaDescriber=r(fi);_focusMonitor=r(Ve);_dir=r(xe);_injector=r(X);_viewContainerRef=r(He);_mediaMatcher=r(li);_document=r(be);_renderer=r(ae);_animationsDisabled=q();_defaultOptions=r(Fa,{optional:!0});_overlayRef=null;_tooltipInstance=null;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=Ti;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending=!1;_dirSubscribed=!1;get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=Be(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let t=Be(e);this._disabled!==t&&(this._disabled=t,t?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Wt(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Wt(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let t=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(t)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_eventCleanups=[];_touchstartTimeout=null;_destroyed=new f;_isDestroyed=!1;constructor(){let e=this._defaultOptions;e&&(this._showDelay=e.showDelay,this._hideDelay=e.hideDelay,e.position&&(this.position=e.position),e.positionAtOrigin&&(this.positionAtOrigin=e.positionAtOrigin),e.touchGestures&&(this.touchGestures=e.touchGestures),e.tooltipClass&&(this.tooltipClass=e.tooltipClass)),this._viewportMargin=Aa}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(x(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._eventCleanups.forEach(t=>t()),this._eventCleanups.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,t){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let n=this._createOverlay(t);this._detach(),this._portal=this._portal||new ct(this._tooltipComponent,this._viewContainerRef);let a=this._tooltipInstance=n.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe(x(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.show(e)}hide(e=this.hideDelay){let t=this._tooltipInstance;t&&(t.isVisible()?t.hide(e):(t._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&o._origin instanceof D)return this._overlayRef;this._detach()}let t=this._injector.get(Yt).getAncestorScrollContainers(this._elementRef),n=`${this._cssClassPrefix}-${wi}`,a=gt(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t).withPopoverLocation("global");return a.positionChanges.pipe(x(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=et(this._injector,{direction:this._dir,positionStrategy:a,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,n]:n,scrollStrategy:this._injector.get(Ra)(),disableAnimations:this._animationsDisabled,eventPredicate:this._overlayEventPredicate}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(x(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(x(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(x(this._destroyed)).subscribe(o=>{o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(x(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let t=e.getConfig().positionStrategy,n=this._getOrigin(),a=this._getOverlayPosition();t.withPositions([this._addOffset(S(S({},n.main),a.main)),this._addOffset(S(S({},n.fallback),a.fallback))])}_addOffset(e){let t=La,n=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-t:e.originY==="bottom"?e.offsetY=t:e.originX==="start"?e.offsetX=n?-t:t:e.originX==="end"&&(e.offsetX=n?t:-t),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",t=this.position,n;t=="above"||t=="below"?n={originX:"center",originY:t=="above"?"top":"bottom"}:t=="before"||t=="left"&&e||t=="right"&&!e?n={originX:"start",originY:"center"}:(t=="after"||t=="right"&&e||t=="left"&&!e)&&(n={originX:"end",originY:"center"});let{x:a,y:o}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:a,originY:o}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",t=this.position,n;t=="above"?n={overlayX:"center",overlayY:"bottom"}:t=="below"?n={overlayX:"center",overlayY:"top"}:t=="before"||t=="left"&&e||t=="right"&&!e?n={overlayX:"end",overlayY:"center"}:(t=="after"||t=="right"&&e||t=="left"&&!e)&&(n={overlayX:"start",overlayY:"center"});let{x:a,y:o}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:a,overlayY:o}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),ce(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e instanceof Set?Array.from(e):e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return this.position==="above"||this.position==="below"?t==="top"?t="bottom":t==="bottom"&&(t="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){let{overlayY:t,originX:n,originY:a}=e,o;if(t==="center"?this._dir&&this._dir.value==="rtl"?o=n==="end"?"left":"right":o=n==="start"?"left":"right":o=t==="bottom"&&a==="top"?"above":"below",o!==this._currentPosition){let l=this._overlayRef;if(l){let v=`${this._cssClassPrefix}-${wi}-`;l.removePanelClass(v+this._currentPosition),l.addPanelClass(v+o)}this._currentPosition=o}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._eventCleanups.length||(this._isTouchPlatform()?this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._addListener("touchstart",e=>{let t=e.targetTouches?.[0],n=t?{x:t.clientX,y:t.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let a=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,n)},this._defaultOptions?.touchLongPressShowDelay??a)})):this._addListener("mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let t;e.x!==void 0&&e.y!==void 0&&(t=e),this.show(void 0,t)}))}_setupPointerExitEventsIfNeeded(){if(!this._pointerExitEventsInitialized){if(this._pointerExitEventsInitialized=!0,!this._isTouchPlatform())this._addListener("mouseleave",e=>{let t=e.relatedTarget;(!t||!this._overlayRef?.overlayElement.contains(t))&&this.hide()}),this._addListener("wheel",e=>{if(this._isTooltipVisible()){let t=this._document.elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t!==n&&!n.contains(t)&&this.hide()}});else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let e=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};this._addListener("touchend",e),this._addListener("touchcancel",e)}}}_addListener(e,t){this._eventCleanups.push(this._renderer.listen(this._elementRef.nativeElement,e,t,Oa))}_isTouchPlatform(){let e=this._defaultOptions?.detectHoverCapability;return typeof e=="function"?!e():this._platform.IOS||this._platform.ANDROID?!0:this._platform.isBrowser?!!e&&this._mediaMatcher.matchMedia("(any-hover: none)").matches:!1}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let t=this._elementRef.nativeElement,n=t.style;(e==="on"||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA")&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),(e==="on"||!t.draggable)&&(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||ce({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}_overlayEventPredicate=e=>e.type==="keydown"?this._isTooltipVisible()&&e.keyCode===27&&!me(e):!0;static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(t,n){t&2&&p("mat-mdc-tooltip-disabled",n.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return i})(),Ti=(()=>{class i{_changeDetectorRef=r(Y);_elementRef=r(D);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=q();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new f;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>Pa&&e.width>=Na}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let t=this._tooltip.nativeElement,n=this._showAnimation,a=this._hideAnimation;if(t.classList.remove(e?a:n),t.classList.add(e?n:a),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let o=getComputedStyle(t);(o.getPropertyValue("animation-duration")==="0s"||o.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-tooltip-component"]],viewQuery:function(t,n){if(t&1&&W(Da,7),t&2){let a;m(a=h())&&(n._tooltip=a.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(t,n){t&1&&k("mouseleave",function(o){return n._handleMouseLeave(o)})},decls:4,vars:5,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(t,n){t&1&&(ke(0,"div",1,0),bt("animationend",function(o){return n._handleAnimationEnd(o)}),ke(2,"div",2),$(3),Pe()()),t&2&&(de(n.tooltipClass),p("mdc-tooltip--multiline",n._isMultiline),d(3),se(n.message))},styles:[`.mat-mdc-tooltip { +import{$ as In,$e as he,A as xn,Aa as Rn,Ab as m,Ad as Je,Ae as hi,Bb as h,Bd as _t,Be as yt,C as kn,Cb as Nn,D as Cn,Db as Bn,Eb as Vt,Ed as gt,Ee as ui,F as G,Fb as we,Fc as Gn,Fd as Zn,Fe as Qt,G as Z,Gb as Gt,Gd as Jn,Ge as fi,Ha as d,Hb as p,Hd as et,He as Be,Ia as ce,Ib as de,Id as $t,Ja as Ie,Jb as $,Jd as qt,Je as pi,Ka as Fn,Kb as se,Kd as Ne,La as ae,Lb as Qe,Le as U,M as wn,Md as ei,N as $e,Na as On,Oa as He,Od as ti,Pa as M,Pd as ni,Qa as B,Ra as I,Rd as ii,Se as bi,T as ut,U as rt,Ua as _e,Uc as De,V as Tn,Va as ge,Vb as q,W as Mn,Wa as pt,Wd as ai,X as te,Xa as An,Xc as Wn,Xe as _i,Y as Ae,Ya as Ln,Yc as Yn,Ye as gi,Z as x,Za as Pn,Zc as $n,_a as T,_c as Wt,_e as Kt,a as S,ab as F,b as le,ba as Sn,bd as Ee,bf as Re,ca as P,cb as O,cd as xe,cf as vi,da as N,dc as zn,df as dt,ea as C,eb as Bt,ee as oi,ef as yi,fa as J,fb as zt,ff as xt,g as re,ga as r,gb as Ht,gc as ye,gf as tt,h as Oe,hb as E,hc as Ke,i as f,ib as c,id as j,if as xi,j as Ye,jb as u,jd as Yt,jf as ki,ka as ne,kb as A,kd as qn,la as ie,lb as ke,lc as st,ld as lt,lf as Ci,ma as qe,mb as Pe,na as Dn,nb as jt,nc as Hn,nd as Xe,o as vn,oa as X,pa as be,pc as Y,pd as K,pe as Ve,qe as ri,r as ze,ra as g,rb as Se,rc as _,rd as ct,re as si,sa as z,sb as Ce,sc as Te,sd as je,se as li,tb as k,tc as jn,td as Un,te as ci,ua as Q,ub as bt,ud as Qn,ue as Ut,va as En,vb as y,vd as Kn,ve as di,w as pe,wa as Ue,wb as H,wd as Ze,xa as Le,xb as w,xd as Xn,y as yn,ya as D,yb as ve,yd as me,ye as vt,za as ft,zb as W,zc as Vn,ze as mi}from"./chunk-JPY5KHMK.js";var Ea=["tooltip"],Ra=20;var Fa=new C("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let i=r(X);return()=>Je(i,{scrollThrottle:Ra})}}),Oa=new C("mat-tooltip-default-options",{providedIn:"root",factory:()=>({showDelay:0,hideDelay:0,touchendHideDelay:1500})});var wi="tooltip-panel",Aa={passive:!0},La=8,Pa=8,Na=24,Ba=200,za=(()=>{class i{_elementRef=r(D);_ngZone=r(z);_platform=r(Ee);_ariaDescriber=r(fi);_focusMonitor=r(Ve);_dir=r(xe);_injector=r(X);_viewContainerRef=r(He);_mediaMatcher=r(li);_document=r(be);_renderer=r(ae);_animationsDisabled=U();_defaultOptions=r(Oa,{optional:!0});_overlayRef=null;_tooltipInstance=null;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=Ti;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending=!1;_dirSubscribed=!1;get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=Be(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let t=Be(e);this._disabled!==t&&(this._disabled=t,t?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Wt(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Wt(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let t=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(t)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_eventCleanups=[];_touchstartTimeout=null;_destroyed=new f;_isDestroyed=!1;constructor(){let e=this._defaultOptions;e&&(this._showDelay=e.showDelay,this._hideDelay=e.hideDelay,e.position&&(this.position=e.position),e.positionAtOrigin&&(this.positionAtOrigin=e.positionAtOrigin),e.touchGestures&&(this.touchGestures=e.touchGestures),e.tooltipClass&&(this.tooltipClass=e.tooltipClass)),this._viewportMargin=La}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(x(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._eventCleanups.forEach(t=>t()),this._eventCleanups.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,t){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let n=this._createOverlay(t);this._detach(),this._portal=this._portal||new ct(this._tooltipComponent,this._viewContainerRef);let a=this._tooltipInstance=n.attach(this._portal).instance;a._triggerElement=this._elementRef.nativeElement,a._mouseLeaveHideDelay=this._hideDelay,a.afterHidden().pipe(x(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),a.show(e)}hide(e=this.hideDelay){let t=this._tooltipInstance;t&&(t.isVisible()?t.hide(e):(t._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&o._origin instanceof D)return this._overlayRef;this._detach()}let t=this._injector.get(Yt).getAncestorScrollContainers(this._elementRef),n=`${this._cssClassPrefix}-${wi}`,a=gt(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t).withPopoverLocation("global");return a.positionChanges.pipe(x(this._destroyed)).subscribe(o=>{this._updateCurrentPositionClass(o.connectionPair),this._tooltipInstance&&o.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=et(this._injector,{direction:this._dir,positionStrategy:a,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,n]:n,scrollStrategy:this._injector.get(Fa)(),disableAnimations:this._animationsDisabled,eventPredicate:this._overlayEventPredicate}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(x(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(x(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(x(this._destroyed)).subscribe(o=>{o.preventDefault(),o.stopPropagation(),this._ngZone.run(()=>this.hide(0))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(x(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let t=e.getConfig().positionStrategy,n=this._getOrigin(),a=this._getOverlayPosition();t.withPositions([this._addOffset(S(S({},n.main),a.main)),this._addOffset(S(S({},n.fallback),a.fallback))])}_addOffset(e){let t=Pa,n=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-t:e.originY==="bottom"?e.offsetY=t:e.originX==="start"?e.offsetX=n?-t:t:e.originX==="end"&&(e.offsetX=n?t:-t),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",t=this.position,n;t=="above"||t=="below"?n={originX:"center",originY:t=="above"?"top":"bottom"}:t=="before"||t=="left"&&e||t=="right"&&!e?n={originX:"start",originY:"center"}:(t=="after"||t=="right"&&e||t=="left"&&!e)&&(n={originX:"end",originY:"center"});let{x:a,y:o}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:a,originY:o}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",t=this.position,n;t=="above"?n={overlayX:"center",overlayY:"bottom"}:t=="below"?n={overlayX:"center",overlayY:"top"}:t=="before"||t=="left"&&e||t=="right"&&!e?n={overlayX:"end",overlayY:"center"}:(t=="after"||t=="right"&&e||t=="left"&&!e)&&(n={overlayX:"start",overlayY:"center"});let{x:a,y:o}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:a,overlayY:o}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),ce(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e instanceof Set?Array.from(e):e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return this.position==="above"||this.position==="below"?t==="top"?t="bottom":t==="bottom"&&(t="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){let{overlayY:t,originX:n,originY:a}=e,o;if(t==="center"?this._dir&&this._dir.value==="rtl"?o=n==="end"?"left":"right":o=n==="start"?"left":"right":o=t==="bottom"&&a==="top"?"above":"below",o!==this._currentPosition){let l=this._overlayRef;if(l){let v=`${this._cssClassPrefix}-${wi}-`;l.removePanelClass(v+this._currentPosition),l.addPanelClass(v+o)}this._currentPosition=o}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._eventCleanups.length||(this._isTouchPlatform()?this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._addListener("touchstart",e=>{let t=e.targetTouches?.[0],n=t?{x:t.clientX,y:t.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let a=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,n)},this._defaultOptions?.touchLongPressShowDelay??a)})):this._addListener("mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let t;e.x!==void 0&&e.y!==void 0&&(t=e),this.show(void 0,t)}))}_setupPointerExitEventsIfNeeded(){if(!this._pointerExitEventsInitialized){if(this._pointerExitEventsInitialized=!0,!this._isTouchPlatform())this._addListener("mouseleave",e=>{let t=e.relatedTarget;(!t||!this._overlayRef?.overlayElement.contains(t))&&this.hide()}),this._addListener("wheel",e=>{if(this._isTooltipVisible()){let t=this._document.elementFromPoint(e.clientX,e.clientY),n=this._elementRef.nativeElement;t!==n&&!n.contains(t)&&this.hide()}});else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let e=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};this._addListener("touchend",e),this._addListener("touchcancel",e)}}}_addListener(e,t){this._eventCleanups.push(this._renderer.listen(this._elementRef.nativeElement,e,t,Aa))}_isTouchPlatform(){let e=this._defaultOptions?.detectHoverCapability;return typeof e=="function"?!e():this._platform.IOS||this._platform.ANDROID?!0:this._platform.isBrowser?!!e&&this._mediaMatcher.matchMedia("(any-hover: none)").matches:!1}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let t=this._elementRef.nativeElement,n=t.style;(e==="on"||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA")&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),(e==="on"||!t.draggable)&&(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||ce({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}_overlayEventPredicate=e=>e.type==="keydown"?this._isTooltipVisible()&&e.keyCode===27&&!me(e):!0;static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(t,n){t&2&&p("mat-mdc-tooltip-disabled",n.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return i})(),Ti=(()=>{class i{_changeDetectorRef=r(Y);_elementRef=r(D);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=U();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new f;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>Na&&e.width>=Ba}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let t=this._tooltip.nativeElement,n=this._showAnimation,a=this._hideAnimation;if(t.classList.remove(e?a:n),t.classList.add(e?n:a),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let o=getComputedStyle(t);(o.getPropertyValue("animation-duration")==="0s"||o.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-tooltip-component"]],viewQuery:function(t,n){if(t&1&&W(Ea,7),t&2){let a;m(a=h())&&(n._tooltip=a.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(t,n){t&1&&k("mouseleave",function(o){return n._handleMouseLeave(o)})},decls:4,vars:5,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(t,n){t&1&&(ke(0,"div",1,0),bt("animationend",function(o){return n._handleAnimationEnd(o)}),ke(2,"div",2),$(3),Pe()()),t&2&&(de(n.tooltipClass),p("mdc-tooltip--multiline",n._isMultiline),d(3),se(n.message))},styles:[`.mat-mdc-tooltip { position: relative; transform: scale(0); display: inline-flex; @@ -103,7 +103,7 @@ import{$ as P,$a as O,$c as xe,$e as dt,A as xn,Ab as Bn,Ae as ui,Bb as Vt,Bd as .mat-mdc-tooltip-hide { animation: mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards; } -`],encapsulation:2,changeDetection:0})}return i})();var _s=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[mi,Ne,j,Xe]})}return i})();var za=["mat-menu-item",""],Ha=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],ja=["mat-icon, [matMenuItemIcon]","*"];function Va(i,s){i&1&&(Ue(),c(0,"svg",2),A(1,"polygon",3),u())}var Ga=["*"];function Wa(i,s){if(i&1){let e=Se();ke(0,"div",0),bt("click",function(){ne(e);let n=y();return ie(n.closed.emit("click"))})("animationstart",function(n){ne(e);let a=y();return ie(a._onAnimationStart(n.animationName))})("animationend",function(n){ne(e);let a=y();return ie(a._onAnimationDone(n.animationName))})("animationcancel",function(n){ne(e);let a=y();return ie(a._onAnimationDone(n.animationName))}),ke(1,"div",1),w(2),Pe()()}if(i&2){let e=y();de(e._classList),p("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),Ce("id",e.panelId),T("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var Jt=new C("MAT_MENU_PANEL"),Zt=(()=>{class i{_elementRef=r(D);_document=r(be);_focusMonitor=r(Ve);_parentMenu=r(Jt,{optional:!0});_changeDetectorRef=r(Y);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new f;_focused=new f;_highlighted=!1;_triggersSubmenu=!1;constructor(){r(De).load(Re),this._parentMenu?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let n=0;n{class i{_template=r(Ie);_appRef=r(Ln);_injector=r(X);_viewContainerRef=r(He);_document=r(be);_changeDetectorRef=r(Y);_portal;_outlet;_attached=new f;constructor(){}attach(e={}){this._portal||(this._portal=new je(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Qn(this._document.createElement("div"),this._appRef,this._injector));let t=this._template.elementRef.nativeElement;t.parentNode.insertBefore(this._outlet.outletElement,t),this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,e),this._attached.next()}detach(){this._portal?.isAttached&&this._portal.detach()}ngOnDestroy(){this.detach(),this._outlet?.dispose()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["ng-template","matMenuContent",""]],features:[U([{provide:Mi,useExisting:i}])]})}return i})(),Ya=new C("mat-menu-default-options",{providedIn:"root",factory:()=>({overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"})}),Xt="_mat-menu-enter",kt="_mat-menu-exit",Ct=(()=>{class i{_elementRef=r(D);_changeDetectorRef=r(Y);_injector=r(X);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=q();_allItems;_directDescendantItems=new ft;_classList={};_panelAnimationState="void";_animationDone=new f;_isAnimating=Q(!1);parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger=!1;hasBackdrop;set panelClass(e){let t=this._previousPanelClass,n=S({},this._classList);t&&t.length&&t.split(" ").forEach(a=>{n[a]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(a=>{n[a]=!0}),this._elementRef.nativeElement.className=""),this._classList=n}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new g;close=this.closed;panelId=r(K).getId("mat-menu-panel-");constructor(){let e=r(Ya);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new yt(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(te(this._directDescendantItems),Ae(e=>G(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let t=this._keyManager;if(this._panelAnimationState==="enter"&&t.activeItem?._hasFocus()){let n=e.toArray(),a=Math.max(0,Math.min(n.length-1,t.activeItemIndex||0));n[a]&&!n[a].disabled?t.setActiveItem(a):t.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(te(this._directDescendantItems),Ae(t=>G(...t.map(n=>n._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let t=e.keyCode,n=this._keyManager;switch(t){case 27:me(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(t===38||t===40)&&n.setFocusOrigin("keyboard"),n.onKeydown(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=ce(()=>{let t=this._resolvePanel();if(!t||!t.contains(document.activeElement)){let n=this._keyManager;n.setFocusOrigin(e).setFirstItemActive(),!n.activeItem&&t&&t.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,t=this.yPosition){this._classList=le(S({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":t==="above","mat-menu-below":t==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(e){let t=e===kt;(t||e===Xt)&&(t&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(t?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(e){(e===Xt||e===kt)&&this._isAnimating.set(!0)}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let t=this._resolvePanel();t&&(t.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(kt),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?Xt:kt)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(te(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}_resolvePanel(){let e=null;return this._directDescendantItems.length&&(e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),e}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-menu"]],contentQueries:function(t,n,a){if(t&1&&ve(a,Mi,5)(a,Zt,5)(a,Zt,4),t&2){let o;m(o=h())&&(n.lazyContent=o.first),m(o=h())&&(n._allItems=o),m(o=h())&&(n.items=o)}},viewQuery:function(t,n){if(t&1&&W(Ie,5),t&2){let a;m(a=h())&&(n.templateRef=a.first)}},hostVars:3,hostBindings:function(t,n){t&2&&T("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",_],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:_(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[U([{provide:Jt,useExisting:i}])],ngContentSelectors:Ga,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(t,n){t&1&&(H(),pt(0,Wa,3,12,"ng-template"))},styles:[`mat-menu { +`],encapsulation:2,changeDetection:0})}return i})();var gs=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[mi,Ne,j,Xe]})}return i})();var Ha=["mat-menu-item",""],ja=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Va=["mat-icon, [matMenuItemIcon]","*"];function Ga(i,s){i&1&&(qe(),c(0,"svg",2),A(1,"polygon",3),u())}var Wa=["*"];function Ya(i,s){if(i&1){let e=Se();ke(0,"div",0),bt("click",function(){ne(e);let n=y();return ie(n.closed.emit("click"))})("animationstart",function(n){ne(e);let a=y();return ie(a._onAnimationStart(n.animationName))})("animationend",function(n){ne(e);let a=y();return ie(a._onAnimationDone(n.animationName))})("animationcancel",function(n){ne(e);let a=y();return ie(a._onAnimationDone(n.animationName))}),ke(1,"div",1),w(2),Pe()()}if(i&2){let e=y();de(e._classList),p("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),Ce("id",e.panelId),T("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var Jt=new C("MAT_MENU_PANEL"),Zt=(()=>{class i{_elementRef=r(D);_document=r(be);_focusMonitor=r(Ve);_parentMenu=r(Jt,{optional:!0});_changeDetectorRef=r(Y);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new f;_focused=new f;_highlighted=!1;_triggersSubmenu=!1;constructor(){r(De).load(Re),this._parentMenu?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let n=0;n{class i{_template=r(Ie);_appRef=r(Ln);_injector=r(X);_viewContainerRef=r(He);_document=r(be);_changeDetectorRef=r(Y);_portal;_outlet;_attached=new f;constructor(){}attach(e={}){this._portal||(this._portal=new je(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Qn(this._document.createElement("div"),this._appRef,this._injector));let t=this._template.elementRef.nativeElement;t.parentNode.insertBefore(this._outlet.outletElement,t),this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,e),this._attached.next()}detach(){this._portal?.isAttached&&this._portal.detach()}ngOnDestroy(){this.detach(),this._outlet?.dispose()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["ng-template","matMenuContent",""]],features:[q([{provide:Mi,useExisting:i}])]})}return i})(),$a=new C("mat-menu-default-options",{providedIn:"root",factory:()=>({overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"})}),Xt="_mat-menu-enter",kt="_mat-menu-exit",Ct=(()=>{class i{_elementRef=r(D);_changeDetectorRef=r(Y);_injector=r(X);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=U();_allItems;_directDescendantItems=new ft;_classList={};_panelAnimationState="void";_animationDone=new f;_isAnimating=Q(!1);parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger=!1;hasBackdrop;set panelClass(e){let t=this._previousPanelClass,n=S({},this._classList);t&&t.length&&t.split(" ").forEach(a=>{n[a]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(a=>{n[a]=!0}),this._elementRef.nativeElement.className=""),this._classList=n}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new g;close=this.closed;panelId=r(K).getId("mat-menu-panel-");constructor(){let e=r($a);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new yt(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(te(this._directDescendantItems),Ae(e=>G(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let t=this._keyManager;if(this._panelAnimationState==="enter"&&t.activeItem?._hasFocus()){let n=e.toArray(),a=Math.max(0,Math.min(n.length-1,t.activeItemIndex||0));n[a]&&!n[a].disabled?t.setActiveItem(a):t.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(te(this._directDescendantItems),Ae(t=>G(...t.map(n=>n._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let t=e.keyCode,n=this._keyManager;switch(t){case 27:me(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(t===38||t===40)&&n.setFocusOrigin("keyboard"),n.onKeydown(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=ce(()=>{let t=this._resolvePanel();if(!t||!t.contains(document.activeElement)){let n=this._keyManager;n.setFocusOrigin(e).setFirstItemActive(),!n.activeItem&&t&&t.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,t=this.yPosition){this._classList=le(S({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":t==="above","mat-menu-below":t==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(e){let t=e===kt;(t||e===Xt)&&(t&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(t?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(e){(e===Xt||e===kt)&&this._isAnimating.set(!0)}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let t=this._resolvePanel();t&&(t.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(kt),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?Xt:kt)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(te(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}_resolvePanel(){let e=null;return this._directDescendantItems.length&&(e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),e}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-menu"]],contentQueries:function(t,n,a){if(t&1&&ve(a,Mi,5)(a,Zt,5)(a,Zt,4),t&2){let o;m(o=h())&&(n.lazyContent=o.first),m(o=h())&&(n._allItems=o),m(o=h())&&(n.items=o)}},viewQuery:function(t,n){if(t&1&&W(Ie,5),t&2){let a;m(a=h())&&(n.templateRef=a.first)}},hostVars:3,hostBindings:function(t,n){t&2&&T("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",_],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:_(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[q([{provide:Jt,useExisting:i}])],ngContentSelectors:Wa,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(t,n){t&1&&(H(),pt(0,Ya,3,12,"ng-template"))},styles:[`mat-menu { display: none; } @@ -295,7 +295,7 @@ import{$ as P,$a as O,$c as xe,$e as dt,A as xn,Ab as Bn,Ae as ui,Bb as Vt,Bd as position: absolute; pointer-events: none; } -`],encapsulation:2,changeDetection:0})}return i})(),$a=new C("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let i=r(X);return()=>Je(i)}});var nt=new WeakMap,Ua=(()=>{class i{_canHaveBackdrop;_element=r(D);_viewContainerRef=r(He);_menuItemInstance=r(Zt,{optional:!0,self:!0});_dir=r(xe,{optional:!0});_focusMonitor=r(Ve);_ngZone=r(z);_injector=r(X);_scrollStrategy=r($a);_changeDetectorRef=r(Y);_animationsDisabled=q();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=re.EMPTY;_menuCloseSubscription=re.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(e){e!==this._menuInternal&&(this._menuInternal=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),(t==="click"||t==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal=null;constructor(e){this._canHaveBackdrop=e;let t=r(Jt,{optional:!0});this._parentMaterialMenu=t instanceof Ct?t:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&nt.delete(this._menu),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)}_closeMenu(){this._menu?.close.emit()}_openMenu(e){if(this._triggerIsAriaDisabled())return;let t=this._menu;if(this._menuOpen||!t)return;this._pendingRemoval?.unsubscribe();let n=nt.get(t);nt.set(t,this),n&&n!==this&&n._closeMenu();let a=this._createOverlay(t),o=a.getConfig(),l=o.positionStrategy;this._setPosition(t,l),this._canHaveBackdrop?o.hasBackdrop=t.hasBackdrop==null?!this._triggersSubmenu():t.hasBackdrop:o.hasBackdrop=t.hasBackdrop??!1,a.hasAttached()||(a.attach(this._getPortal(t)),t.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),t.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,t.direction=this.dir,e&&t.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),t instanceof Ct&&(t._setIsOpen(!0),t._directDescendantItems.changes.pipe(x(t.close)).subscribe(()=>{l.withLockedPosition(!1).reapplyLastPosition(),l.withLockedPosition(!0)}))}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}_destroyMenu(e){let t=this._overlayRef,n=this._menu;!t||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),n instanceof Ct&&this._ownsMenu(n)?(this._pendingRemoval=n._animationDone.pipe($e(1)).subscribe(()=>{t.detach(),nt.has(n)||n.lazyContent?.detach()}),n._setIsOpen(!1)):(t.detach(),n?.lazyContent?.detach()),n&&this._ownsMenu(n)&&nt.delete(n),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(!1))}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=et(this._injector,t),this._overlayRef.keydownEvents().subscribe(n=>{this._menu instanceof Ct&&this._menu._handleKeydown(n)})}return this._overlayRef}_getOverlayConfig(e){return new _t({positionStrategy:gt(this._injector,this._getOverlayOrigin()).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(n=>{this._ngZone.run(()=>{let a=n.connectionPair.overlayX==="start"?"after":"before",o=n.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(a,o)})})}_setPosition(e,t){let[n,a]=e.xPosition==="before"?["end","start"]:["start","end"],[o,l]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[v,b]=[o,l],[V,ue]=[n,a],fe=0;if(this._triggersSubmenu()){if(ue=n=e.xPosition==="before"?"start":"end",a=V=n==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let R=this._parentMaterialMenu.items.first;this._parentInnerPadding=R?R._getHostElement().offsetTop:0}fe=o==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(v=o==="top"?"bottom":"top",b=l==="top"?"bottom":"top");t.withPositions([{originX:n,originY:v,overlayX:V,overlayY:o,offsetY:fe},{originX:a,originY:v,overlayX:ue,overlayY:o,offsetY:fe},{originX:n,originY:b,overlayX:V,overlayY:l,offsetY:-fe},{originX:a,originY:b,overlayX:ue,overlayY:l,offsetY:-fe}])}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),t=this._overlayRef.detachments(),n=this._parentMaterialMenu?this._parentMaterialMenu.closed:ze(),a=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Z(o=>this._menuOpen&&o!==this._menuItemInstance)):ze();return G(e,n,a,t)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new je(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return nt.get(e)===this}_triggerIsAriaDisabled(){return _(this._element.nativeElement.getAttribute("aria-disabled"))}static \u0275fac=function(t){On()};static \u0275dir=I({type:i})}return i})(),Ys=(()=>{class i extends Ua{_cleanupTouchstart;_hoverSubscription=re.EMPTY;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){this._menu=e}menuData;restoreFocus=!0;menuOpened=new g;onMenuOpen=this.menuOpened;menuClosed=new g;onMenuClose=this.menuClosed;constructor(){super(!0);let e=r(ae);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",t=>{$n(t)||(this._openedBy="touch")},{passive:!0})}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(!0)}closeMenu(){this._closeMenu()}updatePosition(){this._overlayRef?.updatePosition()}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTouchstart(),this._hoverSubscription.unsubscribe()}_getOverlayOrigin(){return this._element}_getOutsideClickStream(e){return e.backdropClick()}_handleMousedown(e){Yn(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let t=e.keyCode;(t===13||t===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(t===39&&this.dir==="ltr"||t===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(e=>{e===this._menuItemInstance&&!e.disabled&&this._parentMaterialMenu?._panelAnimationState!=="void"&&(this._openedBy="mouse",this._openMenu(!1))}))}static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(t,n){t&1&&k("click",function(o){return n._handleClick(o)})("mousedown",function(o){return n._handleMousedown(o)})("keydown",function(o){return n._handleKeydown(o)}),t&2&&T("aria-haspopup",n.menu?"menu":null)("aria-expanded",n.menuOpen)("aria-controls",n.menuOpen?n.menu==null?null:n.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],features:[_e]})}return i})();var $s=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[dt,Ne,j,Xe]})}return i})();var qa=["*",[["mat-option"],["ng-container"]]],Qa=["*","mat-option, ng-container"],Ka=["text"],Xa=[[["mat-icon"]],"*"],Za=["mat-icon","*"];function Ja(i,s){if(i&1&&A(0,"mat-pseudo-checkbox",1),i&2){let e=y();E("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function eo(i,s){if(i&1&&A(0,"mat-pseudo-checkbox",3),i&2){let e=y();E("disabled",e.disabled)}}function to(i,s){if(i&1&&(c(0,"span",4),$(1),u()),i&2){let e=y();d(),Qe("(",e.group.label,")")}}var St=new C("MAT_OPTION_PARENT_COMPONENT"),Dt=new C("MatOptgroup"),no=(()=>{class i{label;disabled=!1;_labelId=r(K).getId("mat-optgroup-label-");_inert;constructor(){let e=r(St,{optional:!0});this._inert=e?.inertGroups??!1}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(t,n){t&2&&T("role",n._inert?null:"group")("aria-disabled",n._inert?null:n.disabled.toString())("aria-labelledby",n._inert?null:n._labelId)},inputs:{label:"label",disabled:[2,"disabled","disabled",_]},exportAs:["matOptgroup"],features:[U([{provide:Dt,useExisting:i}])],ngContentSelectors:Qa,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(t,n){t&1&&(H(qa),ke(0,"span",0)(1,"span",1),$(2),w(3),Pe()(),w(4,1)),t&2&&(p("mdc-list-item--disabled",n.disabled),Ce("id",n._labelId),d(2),Qe("",n.label," "))},styles:[`.mat-mdc-optgroup { +`],encapsulation:2,changeDetection:0})}return i})(),qa=new C("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let i=r(X);return()=>Je(i)}});var nt=new WeakMap,Ua=(()=>{class i{_canHaveBackdrop;_element=r(D);_viewContainerRef=r(He);_menuItemInstance=r(Zt,{optional:!0,self:!0});_dir=r(xe,{optional:!0});_focusMonitor=r(Ve);_ngZone=r(z);_injector=r(X);_scrollStrategy=r(qa);_changeDetectorRef=r(Y);_animationsDisabled=U();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=re.EMPTY;_menuCloseSubscription=re.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(e){e!==this._menuInternal&&(this._menuInternal=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),(t==="click"||t==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal=null;constructor(e){this._canHaveBackdrop=e;let t=r(Jt,{optional:!0});this._parentMaterialMenu=t instanceof Ct?t:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&nt.delete(this._menu),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)}_closeMenu(){this._menu?.close.emit()}_openMenu(e){if(this._triggerIsAriaDisabled())return;let t=this._menu;if(this._menuOpen||!t)return;this._pendingRemoval?.unsubscribe();let n=nt.get(t);nt.set(t,this),n&&n!==this&&n._closeMenu();let a=this._createOverlay(t),o=a.getConfig(),l=o.positionStrategy;this._setPosition(t,l),this._canHaveBackdrop?o.hasBackdrop=t.hasBackdrop==null?!this._triggersSubmenu():t.hasBackdrop:o.hasBackdrop=t.hasBackdrop??!1,a.hasAttached()||(a.attach(this._getPortal(t)),t.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),t.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,t.direction=this.dir,e&&t.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),t instanceof Ct&&(t._setIsOpen(!0),t._directDescendantItems.changes.pipe(x(t.close)).subscribe(()=>{l.withLockedPosition(!1).reapplyLastPosition(),l.withLockedPosition(!0)}))}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}_destroyMenu(e){let t=this._overlayRef,n=this._menu;!t||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),n instanceof Ct&&this._ownsMenu(n)?(this._pendingRemoval=n._animationDone.pipe($e(1)).subscribe(()=>{t.detach(),nt.has(n)||n.lazyContent?.detach()}),n._setIsOpen(!1)):(t.detach(),n?.lazyContent?.detach()),n&&this._ownsMenu(n)&&nt.delete(n),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(!1))}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=et(this._injector,t),this._overlayRef.keydownEvents().subscribe(n=>{this._menu instanceof Ct&&this._menu._handleKeydown(n)})}return this._overlayRef}_getOverlayConfig(e){return new _t({positionStrategy:gt(this._injector,this._getOverlayOrigin()).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(n=>{this._ngZone.run(()=>{let a=n.connectionPair.overlayX==="start"?"after":"before",o=n.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(a,o)})})}_setPosition(e,t){let[n,a]=e.xPosition==="before"?["end","start"]:["start","end"],[o,l]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[v,b]=[o,l],[V,ue]=[n,a],fe=0;if(this._triggersSubmenu()){if(ue=n=e.xPosition==="before"?"start":"end",a=V=n==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let R=this._parentMaterialMenu.items.first;this._parentInnerPadding=R?R._getHostElement().offsetTop:0}fe=o==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(v=o==="top"?"bottom":"top",b=l==="top"?"bottom":"top");t.withPositions([{originX:n,originY:v,overlayX:V,overlayY:o,offsetY:fe},{originX:a,originY:v,overlayX:ue,overlayY:o,offsetY:fe},{originX:n,originY:b,overlayX:V,overlayY:l,offsetY:-fe},{originX:a,originY:b,overlayX:ue,overlayY:l,offsetY:-fe}])}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),t=this._overlayRef.detachments(),n=this._parentMaterialMenu?this._parentMaterialMenu.closed:ze(),a=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Z(o=>this._menuOpen&&o!==this._menuItemInstance)):ze();return G(e,n,a,t)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new je(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return nt.get(e)===this}_triggerIsAriaDisabled(){return _(this._element.nativeElement.getAttribute("aria-disabled"))}static \u0275fac=function(t){On()};static \u0275dir=I({type:i})}return i})(),$s=(()=>{class i extends Ua{_cleanupTouchstart;_hoverSubscription=re.EMPTY;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){this._menu=e}menuData;restoreFocus=!0;menuOpened=new g;onMenuOpen=this.menuOpened;menuClosed=new g;onMenuClose=this.menuClosed;constructor(){super(!0);let e=r(ae);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",t=>{$n(t)||(this._openedBy="touch")},{passive:!0})}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(!0)}closeMenu(){this._closeMenu()}updatePosition(){this._overlayRef?.updatePosition()}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTouchstart(),this._hoverSubscription.unsubscribe()}_getOverlayOrigin(){return this._element}_getOutsideClickStream(e){return e.backdropClick()}_handleMousedown(e){Yn(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let t=e.keyCode;(t===13||t===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(t===39&&this.dir==="ltr"||t===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(e=>{e===this._menuItemInstance&&!e.disabled&&this._parentMaterialMenu?._panelAnimationState!=="void"&&(this._openedBy="mouse",this._openMenu(!1))}))}static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(t,n){t&1&&k("click",function(o){return n._handleClick(o)})("mousedown",function(o){return n._handleMousedown(o)})("keydown",function(o){return n._handleKeydown(o)}),t&2&&T("aria-haspopup",n.menu?"menu":null)("aria-expanded",n.menuOpen)("aria-controls",n.menuOpen?n.menu==null?null:n.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],features:[_e]})}return i})();var qs=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[dt,Ne,j,Xe]})}return i})();var Qa=["*",[["mat-option"],["ng-container"]]],Ka=["*","mat-option, ng-container"],Xa=["text"],Za=[[["mat-icon"]],"*"],Ja=["mat-icon","*"];function eo(i,s){if(i&1&&A(0,"mat-pseudo-checkbox",1),i&2){let e=y();E("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function to(i,s){if(i&1&&A(0,"mat-pseudo-checkbox",3),i&2){let e=y();E("disabled",e.disabled)}}function no(i,s){if(i&1&&(c(0,"span",4),$(1),u()),i&2){let e=y();d(),Qe("(",e.group.label,")")}}var St=new C("MAT_OPTION_PARENT_COMPONENT"),Dt=new C("MatOptgroup"),io=(()=>{class i{label;disabled=!1;_labelId=r(K).getId("mat-optgroup-label-");_inert;constructor(){let e=r(St,{optional:!0});this._inert=e?.inertGroups??!1}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-optgroup"]],hostAttrs:[1,"mat-mdc-optgroup"],hostVars:3,hostBindings:function(t,n){t&2&&T("role",n._inert?null:"group")("aria-disabled",n._inert?null:n.disabled.toString())("aria-labelledby",n._inert?null:n._labelId)},inputs:{label:"label",disabled:[2,"disabled","disabled",_]},exportAs:["matOptgroup"],features:[q([{provide:Dt,useExisting:i}])],ngContentSelectors:Ka,decls:5,vars:4,consts:[["role","presentation",1,"mat-mdc-optgroup-label",3,"id"],[1,"mdc-list-item__primary-text"]],template:function(t,n){t&1&&(H(Qa),ke(0,"span",0)(1,"span",1),$(2),w(3),Pe()(),w(4,1)),t&2&&(p("mdc-list-item--disabled",n.disabled),Ce("id",n._labelId),d(2),Qe("",n.label," "))},styles:[`.mat-mdc-optgroup { color: var(--mat-optgroup-label-text-color, var(--mat-sys-on-surface-variant)); font-family: var(--mat-optgroup-label-text-font, var(--mat-sys-title-small-font)); line-height: var(--mat-optgroup-label-text-line-height, var(--mat-sys-title-small-line-height)); @@ -328,7 +328,7 @@ import{$ as P,$a as O,$c as xe,$e as dt,A as xn,Ab as Bn,Ae as ui,Bb as Vt,Bd as white-space: normal; color: inherit; } -`],encapsulation:2,changeDetection:0})}return i})(),en=class{source;isUserInput;constructor(s,e=!1){this.source=s,this.isUserInput=e}},Et=(()=>{class i{_element=r(D);_changeDetectorRef=r(Y);_parent=r(St,{optional:!0});group=r(Dt,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=r(K).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=Q(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new g;_text;_stateChanges=new f;constructor(){let e=r(De);e.load(Re),e.load(si),this._signalDisableRipple=!!this._parent&&An(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,t){let n=this._getHostElement();typeof n.focus=="function"&&n.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!me(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new en(this,e))}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-option"]],viewQuery:function(t,n){if(t&1&&W(Ka,7),t&2){let a;m(a=h())&&(n._text=a.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(t,n){t&1&&k("click",function(){return n._selectViaInteraction()})("keydown",function(o){return n._handleKeydown(o)}),t&2&&(Ce("id",n.id),T("aria-selected",n.selected)("aria-disabled",n.disabled.toString()),p("mdc-list-item--selected",n.selected)("mat-mdc-option-multiple",n.multiple)("mat-mdc-option-active",n.active)("mdc-list-item--disabled",n.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",_]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:Za,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,n){t&1&&(H(Xa),F(0,Ja,1,2,"mat-pseudo-checkbox",1),w(1),c(2,"span",2,0),w(4,1),u(),F(5,eo,1,1,"mat-pseudo-checkbox",3),F(6,to,2,1,"span",4),A(7,"div",5)),t&2&&(O(n.multiple?0:-1),d(5),O(!n.multiple&&n.selected&&!n.hideSingleSelectionIndicator?5:-1),d(),O(n.group&&n.group._inert?6:-1),d(),E("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disabled||n.disableRipple))},dependencies:[Ci,he],styles:[`.mat-mdc-option { +`],encapsulation:2,changeDetection:0})}return i})(),en=class{source;isUserInput;constructor(s,e=!1){this.source=s,this.isUserInput=e}},Et=(()=>{class i{_element=r(D);_changeDetectorRef=r(Y);_parent=r(St,{optional:!0});group=r(Dt,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=r(K).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=Q(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new g;_text;_stateChanges=new f;constructor(){let e=r(De);e.load(Re),e.load(si),this._signalDisableRipple=!!this._parent&&An(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,t){let n=this._getHostElement();typeof n.focus=="function"&&n.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!me(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new en(this,e))}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-option"]],viewQuery:function(t,n){if(t&1&&W(Xa,7),t&2){let a;m(a=h())&&(n._text=a.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(t,n){t&1&&k("click",function(){return n._selectViaInteraction()})("keydown",function(o){return n._handleKeydown(o)}),t&2&&(Ce("id",n.id),T("aria-selected",n.selected)("aria-disabled",n.disabled.toString()),p("mdc-list-item--selected",n.selected)("mat-mdc-option-multiple",n.multiple)("mat-mdc-option-active",n.active)("mdc-list-item--disabled",n.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",_]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:Ja,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,n){t&1&&(H(Za),F(0,eo,1,2,"mat-pseudo-checkbox",1),w(1),c(2,"span",2,0),w(4,1),u(),F(5,to,1,1,"mat-pseudo-checkbox",3),F(6,no,2,1,"span",4),A(7,"div",5)),t&2&&(O(n.multiple?0:-1),d(5),O(!n.multiple&&n.selected&&!n.hideSingleSelectionIndicator?5:-1),d(),O(n.group&&n.group._inert?6:-1),d(),E("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disabled||n.disableRipple))},dependencies:[Ci,he],styles:[`.mat-mdc-option { -webkit-user-select: none; user-select: none; -moz-osx-font-smoothing: grayscale; @@ -449,7 +449,7 @@ import{$ as P,$a as O,$c as xe,$e as dt,A as xn,Ab as Bn,Ae as ui,Bb as Vt,Bd as .mat-mdc-option-active .mat-focus-indicator::before { content: ""; } -`],encapsulation:2,changeDetection:0})}return i})();function Ii(i,s,e){if(e.length){let t=s.toArray(),n=e.toArray(),a=0;for(let o=0;oe+t?Math.max(0,i-t+s):e}var Di=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[j]})}return i})();var Rt=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[dt,Di,Et,j]})}return i})();var tn=class{_box;_destroyed=new f;_resizeSubject=new f;_resizeObserver;_elementObservables=new Map;constructor(s){this._box=s,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(s){return this._elementObservables.has(s)||this._elementObservables.set(s,new Oe(e=>{let t=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(s,{box:this._box}),()=>{this._resizeObserver?.unobserve(s),t.unsubscribe(),this._elementObservables.delete(s)}}).pipe(Z(e=>e.some(t=>t.target===s)),Tn({bufferSize:1,refCount:!0}),x(this._destroyed))),this._elementObservables.get(s)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},Ft=(()=>{class i{_cleanupErrorListener;_observers=new Map;_ngZone=r(z);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,t){let n=t?.box||"content-box";return this._observers.has(n)||this._observers.set(n,new tn(n)),this._observers.get(n).observe(e)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=P({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var io=["notch"],ao=["matFormFieldNotchedOutline",""],oo=["*"],Ei=["iconPrefixContainer"],Ri=["textPrefixContainer"],Fi=["iconSuffixContainer"],Oi=["textSuffixContainer"],ro=["textField"],so=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],lo=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function co(i,s){i&1&&A(0,"span",21)}function mo(i,s){if(i&1&&(c(0,"label",20),w(1,1),F(2,co,1,0,"span",21),u()),i&2){let e=y(2);E("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),T("for",e._control.disableAutomaticLabeling?null:e._control.id),d(2),O(!e.hideRequiredMarker&&e._control.required?2:-1)}}function ho(i,s){if(i&1&&F(0,mo,3,5,"label",20),i&2){let e=y();O(e._hasFloatingLabel()?0:-1)}}function uo(i,s){i&1&&A(0,"div",7)}function fo(i,s){}function po(i,s){if(i&1&&ge(0,fo,0,0,"ng-template",13),i&2){y(2);let e=we(1);E("ngTemplateOutlet",e)}}function bo(i,s){if(i&1&&(c(0,"div",9),F(1,po,1,1,null,13),u()),i&2){let e=y();E("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),d(),O(e._forceDisplayInfixLabel()?-1:1)}}function _o(i,s){i&1&&(c(0,"div",10,2),w(2,2),u())}function go(i,s){i&1&&(c(0,"div",11,3),w(2,3),u())}function vo(i,s){}function yo(i,s){if(i&1&&ge(0,vo,0,0,"ng-template",13),i&2){y();let e=we(1);E("ngTemplateOutlet",e)}}function xo(i,s){i&1&&(c(0,"div",14,4),w(2,4),u())}function ko(i,s){i&1&&(c(0,"div",15,5),w(2,5),u())}function Co(i,s){i&1&&A(0,"div",16)}function wo(i,s){i&1&&(c(0,"div",18),w(1,6),u())}function To(i,s){if(i&1&&(c(0,"mat-hint",22),$(1),u()),i&2){let e=y(2);E("id",e._hintLabelId),d(),se(e.hintLabel)}}function Mo(i,s){if(i&1&&(c(0,"div",19),F(1,To,2,2,"mat-hint",22),w(2,7),A(3,"div",23),w(4,8),u()),i&2){let e=y();d(),O(e.hintLabel?1:-1)}}var nn=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["mat-label"]]})}return i})(),Hi=new C("MatError"),Io=(()=>{class i{id=r(K).getId("mat-mdc-error-");constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(t,n){t&2&&Ce("id",n.id)},inputs:{id:"id"},features:[U([{provide:Hi,useExisting:i}])]})}return i})(),an=(()=>{class i{align="start";id=r(K).getId("mat-mdc-hint-");static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(t,n){t&2&&(Ce("id",n.id),T("align",null),p("mat-mdc-form-field-hint-end",n.align==="end"))},inputs:{align:"align",id:"id"}})}return i})(),ji=new C("MatPrefix"),So=(()=>{class i{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[U([{provide:ji,useExisting:i}])]})}return i})(),Vi=new C("MatSuffix"),Do=(()=>{class i{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[U([{provide:Vi,useExisting:i}])]})}return i})(),Gi=new C("FloatingLabelParent"),Ai=(()=>{class i{_elementRef=r(D);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=r(Ft);_ngZone=r(z);_parent=r(Gi);_resizeSubscription=new re;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return Eo(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(t,n){t&2&&p("mdc-floating-label--float-above",n.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return i})();function Eo(i){let s=i;if(s.offsetParent!==null)return s.scrollWidth;let e=s.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let t=e.scrollWidth;return e.remove(),t}var Li="mdc-line-ripple--active",Ot="mdc-line-ripple--deactivating",Pi=(()=>{class i{_elementRef=r(D);_cleanupTransitionEnd;constructor(){let e=r(z),t=r(ae);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=t.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(Ot),e.add(Li)}deactivate(){this._elementRef.nativeElement.classList.add(Ot)}_handleTransitionEnd=e=>{let t=this._elementRef.nativeElement.classList,n=t.contains(Ot);e.propertyName==="opacity"&&n&&t.remove(Li,Ot)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return i})(),Ni=(()=>{class i{_elementRef=r(D);_ngZone=r(z);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,t=e.querySelector(".mdc-floating-label");t?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(t.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>t.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){let t=this._notch.nativeElement;!this.open||!e?t.style.width="":t.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}_setMaxWidth(e){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${e}px)`)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(t,n){if(t&1&&W(io,5),t&2){let a;m(a=h())&&(n._notch=a.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(t,n){t&2&&p("mdc-notched-outline--notched",n.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:ao,ngContentSelectors:oo,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(t,n){t&1&&(H(),jt(0,"div",1),ke(1,"div",2,0),w(3),Pe(),jt(4,"div",3))},encapsulation:2,changeDetection:0})}return i})(),on=(()=>{class i{value=null;stateChanges;id;placeholder;ngControl=null;focused=!1;empty=!1;shouldLabelFloat=!1;required=!1;disabled=!1;errorState=!1;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i})}return i})();var rn=new C("MatFormField"),Ro=new C("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Bi="fill",Fo="auto",zi="fixed",Oo="translateY(-50%)",Wi=(()=>{class i{_elementRef=r(D);_changeDetectorRef=r(Y);_platform=r(Ee);_idGenerator=r(K);_ngZone=r(z);_defaults=r(Ro,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=st("iconPrefixContainer");_textPrefixContainerSignal=st("textPrefixContainer");_iconSuffixContainerSignal=st("iconSuffixContainer");_textSuffixContainerSignal=st("textSuffixContainer");_prefixSuffixContainers=ye(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=Hn(nn);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Be(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||Fo}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let t=e||this._defaults?.appearance||Bi;this._appearanceSignal.set(t)}_appearanceSignal=Q(Bi);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||zi}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||zi}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new f;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=q();constructor(){let e=this._defaults,t=r(xe);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),En(()=>this._currentDirection=t.valueSignal()),this._syncOutlineLabelOffset()}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=ye(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let t=this._control,n="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(n+e.controlType),t.controlType&&this._elementRef.nativeElement.classList.add(n+t.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=t.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=t.stateChanges.pipe(te([void 0,void 0]),pe(()=>[t.errorState,t.userAriaDescribedBy]),ut(),Z(([[a,o],[l,v]])=>a!==l||o!==v)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),t.ngControl&&t.ngControl.valueChanges&&(this._valueChanges=t.ngControl.valueChanges.pipe(x(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),G(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){let e=this._control.focused;e&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!e&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",e),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",e)}_syncOutlineLabelOffset(){jn({earlyRead:()=>{if(this._appearanceSignal()!=="outline")return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset())});for(let e of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(e,{box:"border-box"})}return this._getOutlinedLabelOffset()},write:e=>this._writeOutlinedLabelStyles(e())})}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=ye(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let t=this._control?this._control.ngControl:null;return t&&t[e]}_getSubscriptMessageType(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let a=this._hintChildren?this._hintChildren.find(l=>l.align==="start"):null,o=this._hintChildren?this._hintChildren.find(l=>l.align==="end"):null;a?e.push(a.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.id)}else this._errorChildren&&e.push(...this._errorChildren.map(a=>a.id));let t=this._control.describedByIds,n;if(t){let a=this._describedByIds||e;n=e.concat(t.filter(o=>o&&!a.includes(o)))}else n=e;this._control.setDescribedByIds(n),this._describedByIds=e}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;let e=this._iconPrefixContainer?.nativeElement,t=this._textPrefixContainer?.nativeElement,n=this._iconSuffixContainer?.nativeElement,a=this._textSuffixContainer?.nativeElement,o=e?.getBoundingClientRect().width??0,l=t?.getBoundingClientRect().width??0,v=n?.getBoundingClientRect().width??0,b=a?.getBoundingClientRect().width??0,V=this._currentDirection==="rtl"?"-1":"1",ue=`${o+l}px`,R=`calc(${V} * (${ue} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,oe=`var(--mat-mdc-form-field-label-transform, ${Oo} translateX(${R}))`,ht=o+l+v+b;return[oe,ht]}_writeOutlinedLabelStyles(e){if(e!==null){let[t,n]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=t),n!==null&&this._notchedOutline?._setMaxWidth(n)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-form-field"]],contentQueries:function(t,n,a){if(t&1&&(Nn(a,n._labelChild,nn,5),ve(a,on,5)(a,ji,5)(a,Vi,5)(a,Hi,5)(a,an,5)),t&2){Vt();let o;m(o=h())&&(n._formFieldControl=o.first),m(o=h())&&(n._prefixChildren=o),m(o=h())&&(n._suffixChildren=o),m(o=h())&&(n._errorChildren=o),m(o=h())&&(n._hintChildren=o)}},viewQuery:function(t,n){if(t&1&&(Bn(n._iconPrefixContainerSignal,Ei,5)(n._textPrefixContainerSignal,Ri,5)(n._iconSuffixContainerSignal,Fi,5)(n._textSuffixContainerSignal,Oi,5),W(ro,5)(Ei,5)(Ri,5)(Fi,5)(Oi,5)(Ai,5)(Ni,5)(Pi,5)),t&2){Vt(4);let a;m(a=h())&&(n._textField=a.first),m(a=h())&&(n._iconPrefixContainer=a.first),m(a=h())&&(n._textPrefixContainer=a.first),m(a=h())&&(n._iconSuffixContainer=a.first),m(a=h())&&(n._textSuffixContainer=a.first),m(a=h())&&(n._floatingLabel=a.first),m(a=h())&&(n._notchedOutline=a.first),m(a=h())&&(n._lineRipple=a.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(t,n){t&2&&p("mat-mdc-form-field-label-always-float",n._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",n._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",n._hasIconSuffix)("mat-form-field-invalid",n._control.errorState)("mat-form-field-disabled",n._control.disabled)("mat-form-field-autofilled",n._control.autofilled)("mat-form-field-appearance-fill",n.appearance=="fill")("mat-form-field-appearance-outline",n.appearance=="outline")("mat-form-field-hide-placeholder",n._hasFloatingLabel()&&!n._shouldLabelFloat())("mat-primary",n.color!=="accent"&&n.color!=="warn")("mat-accent",n.color==="accent")("mat-warn",n.color==="warn")("ng-untouched",n._shouldForward("untouched"))("ng-touched",n._shouldForward("touched"))("ng-pristine",n._shouldForward("pristine"))("ng-dirty",n._shouldForward("dirty"))("ng-valid",n._shouldForward("valid"))("ng-invalid",n._shouldForward("invalid"))("ng-pending",n._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[U([{provide:rn,useExisting:i},{provide:Gi,useExisting:i}])],ngContentSelectors:lo,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],["aria-atomic","true","aria-live","polite",1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(t,n){if(t&1&&(H(so),ge(0,ho,1,1,"ng-template",null,0,zn),c(2,"div",6,1),k("click",function(o){return n._control.onContainerClick(o)}),F(4,uo,1,0,"div",7),c(5,"div",8),F(6,bo,2,2,"div",9),F(7,_o,3,0,"div",10),F(8,go,3,0,"div",11),c(9,"div",12),F(10,yo,1,1,null,13),w(11),u(),F(12,xo,3,0,"div",14),F(13,ko,3,0,"div",15),u(),F(14,Co,1,0,"div",16),u(),c(15,"div",17),F(16,wo,2,0,"div",18)(17,Mo,5,1,"div",19),u()),t&2){let a;d(2),p("mdc-text-field--filled",!n._hasOutline())("mdc-text-field--outlined",n._hasOutline())("mdc-text-field--no-label",!n._hasFloatingLabel())("mdc-text-field--disabled",n._control.disabled)("mdc-text-field--invalid",n._control.errorState),d(2),O(!n._hasOutline()&&!n._control.disabled?4:-1),d(2),O(n._hasOutline()?6:-1),d(),O(n._hasIconPrefix?7:-1),d(),O(n._hasTextPrefix?8:-1),d(2),O(!n._hasOutline()||n._forceDisplayInfixLabel()?10:-1),d(2),O(n._hasTextSuffix?12:-1),d(),O(n._hasIconSuffix?13:-1),d(),O(n._hasOutline()?-1:14),d(),p("mat-mdc-form-field-subscript-dynamic-size",n.subscriptSizing==="dynamic");let o=n._getSubscriptMessageType();d(),O((a=o)==="error"?16:a==="hint"?17:-1)}},dependencies:[Ai,Ni,Vn,Pi,an],styles:[`.mdc-text-field { +`],encapsulation:2,changeDetection:0})}return i})();function Ii(i,s,e){if(e.length){let t=s.toArray(),n=e.toArray(),a=0;for(let o=0;oe+t?Math.max(0,i-t+s):e}var Di=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[j]})}return i})();var Rt=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[dt,Di,Et,j]})}return i})();var tn=class{_box;_destroyed=new f;_resizeSubject=new f;_resizeObserver;_elementObservables=new Map;constructor(s){this._box=s,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(s){return this._elementObservables.has(s)||this._elementObservables.set(s,new Oe(e=>{let t=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(s,{box:this._box}),()=>{this._resizeObserver?.unobserve(s),t.unsubscribe(),this._elementObservables.delete(s)}}).pipe(Z(e=>e.some(t=>t.target===s)),Tn({bufferSize:1,refCount:!0}),x(this._destroyed))),this._elementObservables.get(s)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},Ft=(()=>{class i{_cleanupErrorListener;_observers=new Map;_ngZone=r(z);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,t){let n=t?.box||"content-box";return this._observers.has(n)||this._observers.set(n,new tn(n)),this._observers.get(n).observe(e)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=P({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var ao=["notch"],oo=["matFormFieldNotchedOutline",""],ro=["*"],Ei=["iconPrefixContainer"],Ri=["textPrefixContainer"],Fi=["iconSuffixContainer"],Oi=["textSuffixContainer"],so=["textField"],lo=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],co=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function mo(i,s){i&1&&A(0,"span",21)}function ho(i,s){if(i&1&&(c(0,"label",20),w(1,1),F(2,mo,1,0,"span",21),u()),i&2){let e=y(2);E("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),T("for",e._control.disableAutomaticLabeling?null:e._control.id),d(2),O(!e.hideRequiredMarker&&e._control.required?2:-1)}}function uo(i,s){if(i&1&&F(0,ho,3,5,"label",20),i&2){let e=y();O(e._hasFloatingLabel()?0:-1)}}function fo(i,s){i&1&&A(0,"div",7)}function po(i,s){}function bo(i,s){if(i&1&&ge(0,po,0,0,"ng-template",13),i&2){y(2);let e=we(1);E("ngTemplateOutlet",e)}}function _o(i,s){if(i&1&&(c(0,"div",9),F(1,bo,1,1,null,13),u()),i&2){let e=y();E("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),d(),O(e._forceDisplayInfixLabel()?-1:1)}}function go(i,s){i&1&&(c(0,"div",10,2),w(2,2),u())}function vo(i,s){i&1&&(c(0,"div",11,3),w(2,3),u())}function yo(i,s){}function xo(i,s){if(i&1&&ge(0,yo,0,0,"ng-template",13),i&2){y();let e=we(1);E("ngTemplateOutlet",e)}}function ko(i,s){i&1&&(c(0,"div",14,4),w(2,4),u())}function Co(i,s){i&1&&(c(0,"div",15,5),w(2,5),u())}function wo(i,s){i&1&&A(0,"div",16)}function To(i,s){i&1&&(c(0,"div",18),w(1,6),u())}function Mo(i,s){if(i&1&&(c(0,"mat-hint",22),$(1),u()),i&2){let e=y(2);E("id",e._hintLabelId),d(),se(e.hintLabel)}}function Io(i,s){if(i&1&&(c(0,"div",19),F(1,Mo,2,2,"mat-hint",22),w(2,7),A(3,"div",23),w(4,8),u()),i&2){let e=y();d(),O(e.hintLabel?1:-1)}}var nn=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["mat-label"]]})}return i})(),Hi=new C("MatError"),So=(()=>{class i{id=r(K).getId("mat-mdc-error-");constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(t,n){t&2&&Ce("id",n.id)},inputs:{id:"id"},features:[q([{provide:Hi,useExisting:i}])]})}return i})(),an=(()=>{class i{align="start";id=r(K).getId("mat-mdc-hint-");static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(t,n){t&2&&(Ce("id",n.id),T("align",null),p("mat-mdc-form-field-hint-end",n.align==="end"))},inputs:{align:"align",id:"id"}})}return i})(),ji=new C("MatPrefix"),Do=(()=>{class i{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[q([{provide:ji,useExisting:i}])]})}return i})(),Vi=new C("MatSuffix"),Eo=(()=>{class i{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[q([{provide:Vi,useExisting:i}])]})}return i})(),Gi=new C("FloatingLabelParent"),Ai=(()=>{class i{_elementRef=r(D);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=r(Ft);_ngZone=r(z);_parent=r(Gi);_resizeSubscription=new re;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return Ro(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(t,n){t&2&&p("mdc-floating-label--float-above",n.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return i})();function Ro(i){let s=i;if(s.offsetParent!==null)return s.scrollWidth;let e=s.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let t=e.scrollWidth;return e.remove(),t}var Li="mdc-line-ripple--active",Ot="mdc-line-ripple--deactivating",Pi=(()=>{class i{_elementRef=r(D);_cleanupTransitionEnd;constructor(){let e=r(z),t=r(ae);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=t.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(Ot),e.add(Li)}deactivate(){this._elementRef.nativeElement.classList.add(Ot)}_handleTransitionEnd=e=>{let t=this._elementRef.nativeElement.classList,n=t.contains(Ot);e.propertyName==="opacity"&&n&&t.remove(Li,Ot)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return i})(),Ni=(()=>{class i{_elementRef=r(D);_ngZone=r(z);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,t=e.querySelector(".mdc-floating-label");t?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(t.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>t.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){let t=this._notch.nativeElement;!this.open||!e?t.style.width="":t.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}_setMaxWidth(e){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${e}px)`)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(t,n){if(t&1&&W(ao,5),t&2){let a;m(a=h())&&(n._notch=a.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(t,n){t&2&&p("mdc-notched-outline--notched",n.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:oo,ngContentSelectors:ro,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(t,n){t&1&&(H(),jt(0,"div",1),ke(1,"div",2,0),w(3),Pe(),jt(4,"div",3))},encapsulation:2,changeDetection:0})}return i})(),on=(()=>{class i{value=null;stateChanges;id;placeholder;ngControl=null;focused=!1;empty=!1;shouldLabelFloat=!1;required=!1;disabled=!1;errorState=!1;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i})}return i})();var rn=new C("MatFormField"),Fo=new C("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Bi="fill",Oo="auto",zi="fixed",Ao="translateY(-50%)",Wi=(()=>{class i{_elementRef=r(D);_changeDetectorRef=r(Y);_platform=r(Ee);_idGenerator=r(K);_ngZone=r(z);_defaults=r(Fo,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=st("iconPrefixContainer");_textPrefixContainerSignal=st("textPrefixContainer");_iconSuffixContainerSignal=st("iconSuffixContainer");_textSuffixContainerSignal=st("textSuffixContainer");_prefixSuffixContainers=ye(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=Hn(nn);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=Be(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||Oo}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let t=e||this._defaults?.appearance||Bi;this._appearanceSignal.set(t)}_appearanceSignal=Q(Bi);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||zi}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||zi}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new f;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=U();constructor(){let e=this._defaults,t=r(xe);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),En(()=>this._currentDirection=t.valueSignal()),this._syncOutlineLabelOffset()}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=ye(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let t=this._control,n="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(n+e.controlType),t.controlType&&this._elementRef.nativeElement.classList.add(n+t.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=t.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=t.stateChanges.pipe(te([void 0,void 0]),pe(()=>[t.errorState,t.userAriaDescribedBy]),ut(),Z(([[a,o],[l,v]])=>a!==l||o!==v)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),t.ngControl&&t.ngControl.valueChanges&&(this._valueChanges=t.ngControl.valueChanges.pipe(x(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),G(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){let e=this._control.focused;e&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!e&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",e),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",e)}_syncOutlineLabelOffset(){jn({earlyRead:()=>{if(this._appearanceSignal()!=="outline")return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset())});for(let e of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(e,{box:"border-box"})}return this._getOutlinedLabelOffset()},write:e=>this._writeOutlinedLabelStyles(e())})}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=ye(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let t=this._control?this._control.ngControl:null;return t&&t[e]}_getSubscriptMessageType(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let a=this._hintChildren?this._hintChildren.find(l=>l.align==="start"):null,o=this._hintChildren?this._hintChildren.find(l=>l.align==="end"):null;a?e.push(a.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.id)}else this._errorChildren&&e.push(...this._errorChildren.map(a=>a.id));let t=this._control.describedByIds,n;if(t){let a=this._describedByIds||e;n=e.concat(t.filter(o=>o&&!a.includes(o)))}else n=e;this._control.setDescribedByIds(n),this._describedByIds=e}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;let e=this._iconPrefixContainer?.nativeElement,t=this._textPrefixContainer?.nativeElement,n=this._iconSuffixContainer?.nativeElement,a=this._textSuffixContainer?.nativeElement,o=e?.getBoundingClientRect().width??0,l=t?.getBoundingClientRect().width??0,v=n?.getBoundingClientRect().width??0,b=a?.getBoundingClientRect().width??0,V=this._currentDirection==="rtl"?"-1":"1",ue=`${o+l}px`,R=`calc(${V} * (${ue} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,oe=`var(--mat-mdc-form-field-label-transform, ${Ao} translateX(${R}))`,ht=o+l+v+b;return[oe,ht]}_writeOutlinedLabelStyles(e){if(e!==null){let[t,n]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=t),n!==null&&this._notchedOutline?._setMaxWidth(n)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-form-field"]],contentQueries:function(t,n,a){if(t&1&&(Nn(a,n._labelChild,nn,5),ve(a,on,5)(a,ji,5)(a,Vi,5)(a,Hi,5)(a,an,5)),t&2){Vt();let o;m(o=h())&&(n._formFieldControl=o.first),m(o=h())&&(n._prefixChildren=o),m(o=h())&&(n._suffixChildren=o),m(o=h())&&(n._errorChildren=o),m(o=h())&&(n._hintChildren=o)}},viewQuery:function(t,n){if(t&1&&(Bn(n._iconPrefixContainerSignal,Ei,5)(n._textPrefixContainerSignal,Ri,5)(n._iconSuffixContainerSignal,Fi,5)(n._textSuffixContainerSignal,Oi,5),W(so,5)(Ei,5)(Ri,5)(Fi,5)(Oi,5)(Ai,5)(Ni,5)(Pi,5)),t&2){Vt(4);let a;m(a=h())&&(n._textField=a.first),m(a=h())&&(n._iconPrefixContainer=a.first),m(a=h())&&(n._textPrefixContainer=a.first),m(a=h())&&(n._iconSuffixContainer=a.first),m(a=h())&&(n._textSuffixContainer=a.first),m(a=h())&&(n._floatingLabel=a.first),m(a=h())&&(n._notchedOutline=a.first),m(a=h())&&(n._lineRipple=a.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(t,n){t&2&&p("mat-mdc-form-field-label-always-float",n._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",n._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",n._hasIconSuffix)("mat-form-field-invalid",n._control.errorState)("mat-form-field-disabled",n._control.disabled)("mat-form-field-autofilled",n._control.autofilled)("mat-form-field-appearance-fill",n.appearance=="fill")("mat-form-field-appearance-outline",n.appearance=="outline")("mat-form-field-hide-placeholder",n._hasFloatingLabel()&&!n._shouldLabelFloat())("mat-primary",n.color!=="accent"&&n.color!=="warn")("mat-accent",n.color==="accent")("mat-warn",n.color==="warn")("ng-untouched",n._shouldForward("untouched"))("ng-touched",n._shouldForward("touched"))("ng-pristine",n._shouldForward("pristine"))("ng-dirty",n._shouldForward("dirty"))("ng-valid",n._shouldForward("valid"))("ng-invalid",n._shouldForward("invalid"))("ng-pending",n._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[q([{provide:rn,useExisting:i},{provide:Gi,useExisting:i}])],ngContentSelectors:co,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],["aria-atomic","true","aria-live","polite",1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(t,n){if(t&1&&(H(lo),ge(0,uo,1,1,"ng-template",null,0,zn),c(2,"div",6,1),k("click",function(o){return n._control.onContainerClick(o)}),F(4,fo,1,0,"div",7),c(5,"div",8),F(6,_o,2,2,"div",9),F(7,go,3,0,"div",10),F(8,vo,3,0,"div",11),c(9,"div",12),F(10,xo,1,1,null,13),w(11),u(),F(12,ko,3,0,"div",14),F(13,Co,3,0,"div",15),u(),F(14,wo,1,0,"div",16),u(),c(15,"div",17),F(16,To,2,0,"div",18)(17,Io,5,1,"div",19),u()),t&2){let a;d(2),p("mdc-text-field--filled",!n._hasOutline())("mdc-text-field--outlined",n._hasOutline())("mdc-text-field--no-label",!n._hasFloatingLabel())("mdc-text-field--disabled",n._control.disabled)("mdc-text-field--invalid",n._control.errorState),d(2),O(!n._hasOutline()&&!n._control.disabled?4:-1),d(2),O(n._hasOutline()?6:-1),d(),O(n._hasIconPrefix?7:-1),d(),O(n._hasTextPrefix?8:-1),d(2),O(!n._hasOutline()||n._forceDisplayInfixLabel()?10:-1),d(2),O(n._hasTextSuffix?12:-1),d(),O(n._hasIconSuffix?13:-1),d(),O(n._hasOutline()?-1:14),d(),p("mat-mdc-form-field-subscript-dynamic-size",n.subscriptSizing==="dynamic");let o=n._getSubscriptMessageType();d(),O((a=o)==="error"?16:a==="hint"?17:-1)}},dependencies:[Ai,Ni,Vn,Pi,an],styles:[`.mdc-text-field { display: inline-flex; align-items: baseline; padding: 0 16px; @@ -1398,7 +1398,7 @@ select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) optio .mdc-notched-outline--upgraded .mdc-floating-label--float-above { max-width: calc(133.3333333333% + 1px); } -`],encapsulation:2,changeDetection:0})}return i})();var Yi=(()=>{class i{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}static \u0275fac=function(t){return new(t||i)};static \u0275prov=P({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var At=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(s,e,t,n,a){this._defaultMatcher=s,this.ngControl=e,this._parentFormGroup=t,this._parentForm=n,this._stateChanges=a}updateErrorState(){let s=this.errorState,e=this._parentFormGroup||this._parentForm,t=this.matcher||this._defaultMatcher,n=this.ngControl?this.ngControl.control:null,a=t?.isErrorState(n,e)??!1;a!==s&&(this.errorState=a,this._stateChanges.next())}};var $i=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[di,Wi,j]})}return i})();var Lo=["trigger"],Po=["panel"],No=[[["mat-select-trigger"]],"*"],Bo=["mat-select-trigger","*"];function zo(i,s){if(i&1&&(c(0,"span",4),$(1),u()),i&2){let e=y();d(),se(e.placeholder)}}function Ho(i,s){i&1&&w(0)}function jo(i,s){if(i&1&&(c(0,"span",11),$(1),u()),i&2){let e=y(2);d(),se(e.triggerValue)}}function Vo(i,s){if(i&1&&(c(0,"span",5),F(1,Ho,1,0)(2,jo,2,1,"span",11),u()),i&2){let e=y();d(),O(e.customTrigger?1:2)}}function Go(i,s){if(i&1){let e=Se();c(0,"div",12,1),k("keydown",function(n){ne(e);let a=y();return ie(a._handleKeydown(n))}),w(2,1),u()}if(i&2){let e=y();de(e.panelClass),p("mat-select-panel-animations-enabled",!e._animationsDisabled)("mat-primary",(e._parentFormField==null?null:e._parentFormField.color)==="primary")("mat-accent",(e._parentFormField==null?null:e._parentFormField.color)==="accent")("mat-warn",(e._parentFormField==null?null:e._parentFormField.color)==="warn")("mat-undefined",!(e._parentFormField!=null&&e._parentFormField.color)),T("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var Wo=new C("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let i=r(X);return()=>Je(i)}}),Yo=new C("MAT_SELECT_CONFIG"),Ui=new C("MatSelectTrigger"),sn=class{source;value;constructor(s,e){this.source=s,this.value=e}},Cc=(()=>{class i{_viewportRuler=r(lt);_changeDetectorRef=r(Y);_elementRef=r(D);_dir=r(xe,{optional:!0});_idGenerator=r(K);_renderer=r(ae);_parentFormField=r(rn,{optional:!0});ngControl=r(ii,{self:!0,optional:!0});_liveAnnouncer=r(vt);_defaultOptions=r(Yo,{optional:!0});_animationsDisabled=q();_popoverLocation;_initialized=new f;_cleanupDetach;options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let n=this.panel.nativeElement,a=Ii(e,this.options,this.optionGroups),o=t._getHostElement();e===0&&a===1?n.scrollTop=0:n.scrollTop=Si(o.offsetTop,o.offsetHeight,n.scrollTop,n.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new sn(this,e)}_scrollStrategyFactory=r(Wo);_panelOpen=!1;_compareWith=(e,t)=>e===t;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new f;_errorStateTracker;stateChanges=new f;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=Q(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(ni.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=xn(()=>{let e=this.options;return e?e.changes.pipe(te(e),Ae(()=>G(...e.map(t=>t.onSelectionChange)))):this._initialized.pipe(Ae(()=>this.optionSelectionChanges))});openedChange=new g;_openedStream=this.openedChange.pipe(Z(e=>e),pe(()=>{}));_closedStream=this.openedChange.pipe(Z(e=>!e),pe(()=>{}));selectionChange=new g;valueChange=new g;constructor(){let e=r(Yi),t=r(ai,{optional:!0}),n=r(oi,{optional:!0}),a=r(new Ke("tabindex"),{optional:!0}),o=r(Jn,{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new At(e,this.ngControl,n,t,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=a==null?0:parseInt(a)||0,this._popoverLocation=o?.usePopover===!1?null:"inline",this.id=this.id}ngOnInit(){this._selectionModel=new ki(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(x(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(x(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(te(null),x(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let n=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?n.setAttribute("aria-labelledby",e):n.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval),e.panelClass&&this.panelClass instanceof Set&&(this.panelClass=Array.from(this.panelClass))}ngOnDestroy(){this._cleanupDetach?.(),this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe($e(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let t=`${this.id}-panel`;this._trackedModal&&Qt(this._trackedModal,"aria-owns",t),ui(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;Qt(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{t(),clearTimeout(n),this._cleanupDetach=void 0};let e=this.panel.nativeElement,t=this._renderer.listen(e,"animationend",a=>{a.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),n=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);e.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let t=e.keyCode,n=t===40||t===38||t===37||t===39,a=t===13||t===32,o=this._keyManager;if(!o.isTyping()&&a&&!me(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){let l=this.selected;o.onKeydown(e);let v=this.selected;v&&l!==v&&this._liveAnnouncer.announce(v.viewValue,1e4)}}_handleOpenKeydown(e){let t=this._keyManager,n=e.keyCode,a=n===40||n===38,o=t.isTyping();if(a&&e.altKey)e.preventDefault(),this.close();else if(!o&&(n===13||n===32)&&t.activeItem&&!me(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!o&&this._multiple&&n===65&&e.ctrlKey){e.preventDefault();let l=this.options.some(v=>!v.disabled&&!v.selected);this.options.forEach(v=>{v.disabled||(l?v.select():v.deselect())})}else{let l=t.activeItemIndex;t.onKeydown(e),this._multiple&&a&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==l&&t.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!me(e)&&(e.preventDefault(),this.close())}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let t=this.options.find(n=>{if(this._selectionModel.isSelected(n))return!1;try{return(n.value!=null||this.canSelectNullableOptions)&&this._compareWith(n.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof $t?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new hi(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=G(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(x(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),G(...this.options.map(t=>t._stateChanges)).pipe(x(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){let n=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,n)=>this.sortComparator?this.sortComparator(t,n,e):e.indexOf(t)-e.indexOf(n)),this.stateChanges.next()}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(n=>n.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let t=this._elementRef.nativeElement;e.length?t.setAttribute("aria-describedby",e.join(" ")):t.removeAttribute("aria-describedby")}onContainerClick(e){let t=Wn(e);t&&(t.tagName==="MAT-OPTION"||t.classList.contains("cdk-overlay-backdrop")||t.closest(".mat-mdc-select-panel"))||(this.focus(),this.open())}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-select"]],contentQueries:function(t,n,a){if(t&1&&ve(a,Ui,5)(a,Et,5)(a,Dt,5),t&2){let o;m(o=h())&&(n.customTrigger=o.first),m(o=h())&&(n.options=o),m(o=h())&&(n.optionGroups=o)}},viewQuery:function(t,n){if(t&1&&W(Lo,5)(Po,5)(Ut,5),t&2){let a;m(a=h())&&(n.trigger=a.first),m(a=h())&&(n.panel=a.first),m(a=h())&&(n._overlayDir=a.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(t,n){t&1&&k("keydown",function(o){return n._handleKeydown(o)})("focus",function(){return n._onFocus()})("blur",function(){return n._onBlur()}),t&2&&(T("id",n.id)("tabindex",n.disabled?-1:n.tabIndex)("aria-controls",n.panelOpen?n.id+"-panel":null)("aria-expanded",n.panelOpen)("aria-label",n.ariaLabel||null)("aria-required",n.required.toString())("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-activedescendant",n._getAriaActiveDescendant()),p("mat-mdc-select-disabled",n.disabled)("mat-mdc-select-invalid",n.errorState)("mat-mdc-select-required",n.required)("mat-mdc-select-empty",n.empty)("mat-mdc-select-multiple",n.multiple)("mat-select-open",n.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",_],disableRipple:[2,"disableRipple","disableRipple",_],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Te(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",_],placeholder:"placeholder",required:[2,"required","required",_],multiple:[2,"multiple","multiple",_],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",_],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",Te],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",_]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[U([{provide:on,useExisting:i},{provide:St,useExisting:i}]),qe],ngContentSelectors:Bo,decls:11,vars:10,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions","cdkConnectedOverlayUsePopover"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",1,"mat-mdc-select-panel","mdc-menu-surface","mdc-menu-surface--open",3,"keydown"]],template:function(t,n){if(t&1&&(H(No),c(0,"div",2,0),k("click",function(){return n.open()}),c(3,"div",3),F(4,zo,2,1,"span",4)(5,Vo,3,1,"span",5),u(),c(6,"div",6)(7,"div",7),Ue(),c(8,"svg",8),A(9,"path",9),u()()()(),ge(10,Go,3,16,"ng-template",10),k("detach",function(){return n.close()})("backdropClick",function(){return n.close()})("overlayKeydown",function(o){return n._handleOverlayKeydown(o)})),t&2){let a=we(1);d(3),T("id",n._valueId),d(),O(n.empty?4:5),d(6),E("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",n._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",n._scrollStrategy)("cdkConnectedOverlayOrigin",n._preferredOverlayOrigin||a)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayWidth",n._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)("cdkConnectedOverlayUsePopover",n._popoverLocation)}},dependencies:[$t,Ut],styles:[`@keyframes _mat-select-enter { +`],encapsulation:2,changeDetection:0})}return i})();var Yi=(()=>{class i{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}static \u0275fac=function(t){return new(t||i)};static \u0275prov=P({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var At=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(s,e,t,n,a){this._defaultMatcher=s,this.ngControl=e,this._parentFormGroup=t,this._parentForm=n,this._stateChanges=a}updateErrorState(){let s=this.errorState,e=this._parentFormGroup||this._parentForm,t=this.matcher||this._defaultMatcher,n=this.ngControl?this.ngControl.control:null,a=t?.isErrorState(n,e)??!1;a!==s&&(this.errorState=a,this._stateChanges.next())}};var $i=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[di,Wi,j]})}return i})();var Po=["trigger"],No=["panel"],Bo=[[["mat-select-trigger"]],"*"],zo=["mat-select-trigger","*"];function Ho(i,s){if(i&1&&(c(0,"span",4),$(1),u()),i&2){let e=y();d(),se(e.placeholder)}}function jo(i,s){i&1&&w(0)}function Vo(i,s){if(i&1&&(c(0,"span",11),$(1),u()),i&2){let e=y(2);d(),se(e.triggerValue)}}function Go(i,s){if(i&1&&(c(0,"span",5),F(1,jo,1,0)(2,Vo,2,1,"span",11),u()),i&2){let e=y();d(),O(e.customTrigger?1:2)}}function Wo(i,s){if(i&1){let e=Se();c(0,"div",12,1),k("keydown",function(n){ne(e);let a=y();return ie(a._handleKeydown(n))}),w(2,1),u()}if(i&2){let e=y();de(e.panelClass),p("mat-select-panel-animations-enabled",!e._animationsDisabled)("mat-primary",(e._parentFormField==null?null:e._parentFormField.color)==="primary")("mat-accent",(e._parentFormField==null?null:e._parentFormField.color)==="accent")("mat-warn",(e._parentFormField==null?null:e._parentFormField.color)==="warn")("mat-undefined",!(e._parentFormField!=null&&e._parentFormField.color)),T("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var Yo=new C("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let i=r(X);return()=>Je(i)}}),$o=new C("MAT_SELECT_CONFIG"),qi=new C("MatSelectTrigger"),sn=class{source;value;constructor(s,e){this.source=s,this.value=e}},wc=(()=>{class i{_viewportRuler=r(lt);_changeDetectorRef=r(Y);_elementRef=r(D);_dir=r(xe,{optional:!0});_idGenerator=r(K);_renderer=r(ae);_parentFormField=r(rn,{optional:!0});ngControl=r(ii,{self:!0,optional:!0});_liveAnnouncer=r(vt);_defaultOptions=r($o,{optional:!0});_animationsDisabled=U();_popoverLocation;_initialized=new f;_cleanupDetach;options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let n=this.panel.nativeElement,a=Ii(e,this.options,this.optionGroups),o=t._getHostElement();e===0&&a===1?n.scrollTop=0:n.scrollTop=Si(o.offsetTop,o.offsetHeight,n.scrollTop,n.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new sn(this,e)}_scrollStrategyFactory=r(Yo);_panelOpen=!1;_compareWith=(e,t)=>e===t;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new f;_errorStateTracker;stateChanges=new f;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=Q(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(ni.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=xn(()=>{let e=this.options;return e?e.changes.pipe(te(e),Ae(()=>G(...e.map(t=>t.onSelectionChange)))):this._initialized.pipe(Ae(()=>this.optionSelectionChanges))});openedChange=new g;_openedStream=this.openedChange.pipe(Z(e=>e),pe(()=>{}));_closedStream=this.openedChange.pipe(Z(e=>!e),pe(()=>{}));selectionChange=new g;valueChange=new g;constructor(){let e=r(Yi),t=r(ai,{optional:!0}),n=r(oi,{optional:!0}),a=r(new Ke("tabindex"),{optional:!0}),o=r(Jn,{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new At(e,this.ngControl,n,t,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=a==null?0:parseInt(a)||0,this._popoverLocation=o?.usePopover===!1?null:"inline",this.id=this.id}ngOnInit(){this._selectionModel=new ki(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(x(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(x(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(te(null),x(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let n=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?n.setAttribute("aria-labelledby",e):n.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval),e.panelClass&&this.panelClass instanceof Set&&(this.panelClass=Array.from(this.panelClass))}ngOnDestroy(){this._cleanupDetach?.(),this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe($e(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let t=`${this.id}-panel`;this._trackedModal&&Qt(this._trackedModal,"aria-owns",t),ui(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;Qt(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{t(),clearTimeout(n),this._cleanupDetach=void 0};let e=this.panel.nativeElement,t=this._renderer.listen(e,"animationend",a=>{a.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),n=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);e.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let t=e.keyCode,n=t===40||t===38||t===37||t===39,a=t===13||t===32,o=this._keyManager;if(!o.isTyping()&&a&&!me(e)||(this.multiple||e.altKey)&&n)e.preventDefault(),this.open();else if(!this.multiple){let l=this.selected;o.onKeydown(e);let v=this.selected;v&&l!==v&&this._liveAnnouncer.announce(v.viewValue,1e4)}}_handleOpenKeydown(e){let t=this._keyManager,n=e.keyCode,a=n===40||n===38,o=t.isTyping();if(a&&e.altKey)e.preventDefault(),this.close();else if(!o&&(n===13||n===32)&&t.activeItem&&!me(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!o&&this._multiple&&n===65&&e.ctrlKey){e.preventDefault();let l=this.options.some(v=>!v.disabled&&!v.selected);this.options.forEach(v=>{v.disabled||(l?v.select():v.deselect())})}else{let l=t.activeItemIndex;t.onKeydown(e),this._multiple&&a&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==l&&t.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!me(e)&&(e.preventDefault(),this.close())}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let t=this.options.find(n=>{if(this._selectionModel.isSelected(n))return!1;try{return(n.value!=null||this.canSelectNullableOptions)&&this._compareWith(n.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof $t?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new hi(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=G(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(x(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),G(...this.options.map(t=>t._stateChanges)).pipe(x(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){let n=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(n!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),n!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,n)=>this.sortComparator?this.sortComparator(t,n,e):e.indexOf(t)-e.indexOf(n)),this.stateChanges.next()}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(n=>n.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let t=this._elementRef.nativeElement;e.length?t.setAttribute("aria-describedby",e.join(" ")):t.removeAttribute("aria-describedby")}onContainerClick(e){let t=Wn(e);t&&(t.tagName==="MAT-OPTION"||t.classList.contains("cdk-overlay-backdrop")||t.closest(".mat-mdc-select-panel"))||(this.focus(),this.open())}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-select"]],contentQueries:function(t,n,a){if(t&1&&ve(a,qi,5)(a,Et,5)(a,Dt,5),t&2){let o;m(o=h())&&(n.customTrigger=o.first),m(o=h())&&(n.options=o),m(o=h())&&(n.optionGroups=o)}},viewQuery:function(t,n){if(t&1&&W(Po,5)(No,5)(qt,5),t&2){let a;m(a=h())&&(n.trigger=a.first),m(a=h())&&(n.panel=a.first),m(a=h())&&(n._overlayDir=a.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(t,n){t&1&&k("keydown",function(o){return n._handleKeydown(o)})("focus",function(){return n._onFocus()})("blur",function(){return n._onBlur()}),t&2&&(T("id",n.id)("tabindex",n.disabled?-1:n.tabIndex)("aria-controls",n.panelOpen?n.id+"-panel":null)("aria-expanded",n.panelOpen)("aria-label",n.ariaLabel||null)("aria-required",n.required.toString())("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-activedescendant",n._getAriaActiveDescendant()),p("mat-mdc-select-disabled",n.disabled)("mat-mdc-select-invalid",n.errorState)("mat-mdc-select-required",n.required)("mat-mdc-select-empty",n.empty)("mat-mdc-select-multiple",n.multiple)("mat-select-open",n.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",_],disableRipple:[2,"disableRipple","disableRipple",_],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Te(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",_],placeholder:"placeholder",required:[2,"required","required",_],multiple:[2,"multiple","multiple",_],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",_],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",Te],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",_]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[q([{provide:on,useExisting:i},{provide:St,useExisting:i}]),Ue],ngContentSelectors:zo,decls:11,vars:10,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions","cdkConnectedOverlayUsePopover"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",1,"mat-mdc-select-panel","mdc-menu-surface","mdc-menu-surface--open",3,"keydown"]],template:function(t,n){if(t&1&&(H(Bo),c(0,"div",2,0),k("click",function(){return n.open()}),c(3,"div",3),F(4,Ho,2,1,"span",4)(5,Go,3,1,"span",5),u(),c(6,"div",6)(7,"div",7),qe(),c(8,"svg",8),A(9,"path",9),u()()()(),ge(10,Wo,3,16,"ng-template",10),k("detach",function(){return n.close()})("backdropClick",function(){return n.close()})("overlayKeydown",function(o){return n._handleOverlayKeydown(o)})),t&2){let a=we(1);d(3),T("id",n._valueId),d(),O(n.empty?4:5),d(6),E("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",n._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",n._scrollStrategy)("cdkConnectedOverlayOrigin",n._preferredOverlayOrigin||a)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayWidth",n._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)("cdkConnectedOverlayUsePopover",n._popoverLocation)}},dependencies:[$t,qt],styles:[`@keyframes _mat-select-enter { from { opacity: 0; transform: scaleY(0.8); @@ -1587,15 +1587,15 @@ div.mat-mdc-select-panel { .mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper { transform: var(--mat-select-arrow-transform, translateY(-8px)); } -`],encapsulation:2,changeDetection:0})}return i})(),wc=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["mat-select-trigger"]],features:[U([{provide:Ui,useExisting:i}])]})}return i})(),Tc=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[Ne,Rt,j,Xe,$i,Rt]})}return i})();var qi=(()=>{class i{httpController;constructor(e){this.httpController=e}getComputes(e){return this.httpController.get(e,"/computes")}getCompute(e,t){return this.httpController.get(e,`/computes/${t}`)}getNetworkInterfaces(e,t){return this.httpController.get(e,`/computes/${t}/network/interfaces`)}createCompute(e,t){return this.httpController.post(e,"/computes",t)}updateCompute(e,t,n){return this.httpController.put(e,`/computes/${t}`,n)}deleteCompute(e,t){return this.httpController.delete(e,`/computes/${t}`)}connectCompute(e,t){return this.httpController.post(e,`/computes/${t}/connect`,null)}getStatistics(e){return this.httpController.get(e,"/statistics")}static \u0275fac=function(t){return new(t||i)(J(xi))};static \u0275prov=P({token:i,factory:i.\u0275fac})}return i})();var Fc=(()=>{class i{computeService;WS_LIVENESS_TIMEOUT_MS=15e3;WS_LIVENESS_CHECK_MS=5e3;ws=null;currentController=null;intentionalClose=!1;reconnectTimer=null;reconnectAttempt=0;livenessTimer=null;lastWsMessageAt=0;computeNotificationEmitter=new g;computeCache=new Map;projectNotificationEmitter=new g;serverSettingsNotificationEmitter=new g;wsReconnected=new g;computeCacheUpdated=new g;constructor(e){this.computeService=e}notificationsPath(e){let t="ws";return e.protocol==="https:"&&(t="wss"),`${t}://${e.host}:${e.port}/${tt.current_version}/notifications/ws?token=${e.authToken}`}projectNotificationsPath(e,t){let n="ws";return e.protocol==="https:"&&(n="wss"),`${n}://${e.host}:${e.port}/${tt.current_version}/projects/${t}/notifications/ws?token=${e.authToken}`}markerNotificationsPath(e,t){let n="ws";return e.protocol==="https:"&&(n="wss"),`${n}://${e.host}:${e.port}/${tt.current_version}/projects/${t}/notifications/markers/ws?token=${e.authToken}`}connectToComputeNotifications(e){this.ws&&this.currentController===e||(this.disconnect(),this.currentController=e,this.openComputeNotificationsWs())}openComputeNotificationsWs(){this.currentController&&(this.intentionalClose=!1,this.ws=new WebSocket(this.notificationsPath(this.currentController)),this.ws.onopen=()=>{let e=this.reconnectAttempt>0;this.reconnectAttempt=0,this.startLivenessCheck(),e&&(this.resyncComputesAfterReconnect(),this.wsReconnected.emit())},this.ws.onmessage=e=>{this.lastWsMessageAt=Date.now();let t=JSON.parse(e.data);this.handleMessage(t)},this.ws.onerror=()=>{console.error("Compute notifications WebSocket error")},this.ws.onclose=()=>{this.ws=null,this.stopLivenessCheck(),!this.intentionalClose&&this.scheduleReconnect()})}scheduleReconnect(){if(this.intentionalClose||!this.currentController)return;let e=this.reconnectAttempt++,t=Math.min(3e4,1e3*2**e),n=Math.round(t+Math.random()*.25*t);this.reconnectTimer=setTimeout(()=>this.openComputeNotificationsWs(),n)}resyncComputesAfterReconnect(){this.currentController&&this.computeService.getComputes(this.currentController).subscribe({next:e=>this.setInitialComputes(e),error:e=>console.warn("Compute resync after WS reconnect failed",e)})}startLivenessCheck(){this.stopLivenessCheck(),this.lastWsMessageAt=Date.now(),this.livenessTimer=setInterval(()=>{Date.now()-this.lastWsMessageAt>this.WS_LIVENESS_TIMEOUT_MS&&(console.warn("Compute notifications WS liveness timeout \u2014 no message received, forcing reconnect"),this.stopLivenessCheck(),this.ws?.close())},this.WS_LIVENESS_CHECK_MS)}stopLivenessCheck(){this.livenessTimer&&(clearInterval(this.livenessTimer),this.livenessTimer=null)}disconnect(){this.intentionalClose=!0,this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.stopLivenessCheck(),this.reconnectAttempt=0,this.ws&&(this.ws.close(),this.ws=null),this.currentController=null,this.computeCache.clear()}getCachedComputes(){return Array.from(this.computeCache.values())}hasCachedData(){return this.computeCache.size>0}setInitialComputes(e){this.computeCache.clear(),e.forEach(t=>{this.computeCache.set(t.compute_id,t)}),this.computeCacheUpdated.emit(this.getCachedComputes())}handleMessage(e){switch(e.action){case"compute.created":this.computeCache.set(e.event.compute_id,e.event),this.computeNotificationEmitter.emit(e),this.computeCacheUpdated.emit(this.getCachedComputes());break;case"compute.updated":this.computeCache.set(e.event.compute_id,e.event),this.computeNotificationEmitter.emit(e),this.computeCacheUpdated.emit(this.getCachedComputes());break;case"compute.deleted":this.computeCache.delete(e.event.compute_id),this.computeNotificationEmitter.emit(e),this.computeCacheUpdated.emit(this.getCachedComputes());break;case"project.created":case"project.opened":case"project.closed":case"project.updated":case"project.deleted":this.projectNotificationEmitter.emit(e);break;case"settings.updated":this.serverSettingsNotificationEmitter.emit(e);break}}static \u0275fac=function(t){return new(t||i)(J(qi))};static \u0275prov=P({token:i,factory:i.\u0275fac})}return i})();function Uo(i,s){if(i&1){let e=Se();c(0,"div",1)(1,"button",2),k("click",function(){ne(e);let n=y();return ie(n.action())}),$(2),u()()}if(i&2){let e=y();d(2),Qe(" ",e.data.action," ")}}var qo=["label"];function Qo(i,s){}var Ko=Math.pow(2,31)-1,Ge=class{_overlayRef;instance;containerInstance;_afterDismissed=new f;_afterOpened=new f;_onAction=new f;_durationTimeoutId;_dismissedByAction=!1;constructor(s,e){this._overlayRef=e,this.containerInstance=s,s._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(s){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(s,Ko))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},Lt=new C("MatSnackBarData"),it=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},Xo=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return i})(),Zo=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return i})(),Jo=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return i})(),Qi=(()=>{class i{snackBarRef=r(Ge);data=r(Lt);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(t,n){t&1&&(c(0,"div",0),$(1),u(),F(2,Uo,3,1,"div",1)),t&2&&(d(),Qe(" ",n.data.message,` -`),d(),O(n.hasAction?2:-1))},dependencies:[yi,Xo,Zo,Jo],styles:[`.mat-mdc-simple-snack-bar { +`],encapsulation:2,changeDetection:0})}return i})(),Tc=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["mat-select-trigger"]],features:[q([{provide:qi,useExisting:i}])]})}return i})(),Mc=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[Ne,Rt,j,Xe,$i,Rt]})}return i})();var Ui=(()=>{class i{httpController;constructor(e){this.httpController=e}getComputes(e){return this.httpController.get(e,"/computes")}getCompute(e,t){return this.httpController.get(e,`/computes/${t}`)}getNetworkInterfaces(e,t){return this.httpController.get(e,`/computes/${t}/network/interfaces`)}createCompute(e,t){return this.httpController.post(e,"/computes",t)}updateCompute(e,t,n){return this.httpController.put(e,`/computes/${t}`,n)}deleteCompute(e,t){return this.httpController.delete(e,`/computes/${t}`)}connectCompute(e,t){return this.httpController.post(e,`/computes/${t}/connect`,null)}disconnectCompute(e,t,n=!1){let a=n?"?force=true":"";return this.httpController.post(e,`/computes/${t}/disconnect${a}`,null)}getStatistics(e){return this.httpController.get(e,"/statistics")}static \u0275fac=function(t){return new(t||i)(J(xi))};static \u0275prov=P({token:i,factory:i.\u0275fac})}return i})();var Oc=(()=>{class i{computeService;WS_LIVENESS_TIMEOUT_MS=15e3;WS_LIVENESS_CHECK_MS=5e3;ws=null;currentController=null;intentionalClose=!1;reconnectTimer=null;reconnectAttempt=0;livenessTimer=null;lastWsMessageAt=0;computeNotificationEmitter=new g;computeCache=new Map;projectNotificationEmitter=new g;serverSettingsNotificationEmitter=new g;wsReconnected=new g;computeCacheUpdated=new g;constructor(e){this.computeService=e}notificationsPath(e){let t="ws";return e.protocol==="https:"&&(t="wss"),`${t}://${e.host}:${e.port}/${tt.current_version}/notifications/ws?token=${e.authToken}`}projectNotificationsPath(e,t){let n="ws";return e.protocol==="https:"&&(n="wss"),`${n}://${e.host}:${e.port}/${tt.current_version}/projects/${t}/notifications/ws?token=${e.authToken}`}markerNotificationsPath(e,t){let n="ws";return e.protocol==="https:"&&(n="wss"),`${n}://${e.host}:${e.port}/${tt.current_version}/projects/${t}/notifications/markers/ws?token=${e.authToken}`}connectToComputeNotifications(e){this.ws&&this.currentController===e||(this.disconnect(),this.currentController=e,this.openComputeNotificationsWs())}openComputeNotificationsWs(){this.currentController&&(this.intentionalClose=!1,this.ws=new WebSocket(this.notificationsPath(this.currentController)),this.ws.onopen=()=>{let e=this.reconnectAttempt>0;this.reconnectAttempt=0,this.startLivenessCheck(),e&&(this.resyncComputesAfterReconnect(),this.wsReconnected.emit())},this.ws.onmessage=e=>{this.lastWsMessageAt=Date.now();let t=JSON.parse(e.data);this.handleMessage(t)},this.ws.onerror=()=>{console.error("Compute notifications WebSocket error")},this.ws.onclose=()=>{this.ws=null,this.stopLivenessCheck(),!this.intentionalClose&&this.scheduleReconnect()})}scheduleReconnect(){if(this.intentionalClose||!this.currentController)return;let e=this.reconnectAttempt++,t=Math.min(3e4,1e3*2**e),n=Math.round(t+Math.random()*.25*t);this.reconnectTimer=setTimeout(()=>this.openComputeNotificationsWs(),n)}resyncComputesAfterReconnect(){this.currentController&&this.computeService.getComputes(this.currentController).subscribe({next:e=>this.setInitialComputes(e),error:e=>console.warn("Compute resync after WS reconnect failed",e)})}startLivenessCheck(){this.stopLivenessCheck(),this.lastWsMessageAt=Date.now(),this.livenessTimer=setInterval(()=>{Date.now()-this.lastWsMessageAt>this.WS_LIVENESS_TIMEOUT_MS&&(console.warn("Compute notifications WS liveness timeout \u2014 no message received, forcing reconnect"),this.stopLivenessCheck(),this.ws?.close())},this.WS_LIVENESS_CHECK_MS)}stopLivenessCheck(){this.livenessTimer&&(clearInterval(this.livenessTimer),this.livenessTimer=null)}disconnect(){this.intentionalClose=!0,this.reconnectTimer&&(clearTimeout(this.reconnectTimer),this.reconnectTimer=null),this.stopLivenessCheck(),this.reconnectAttempt=0,this.ws&&(this.ws.close(),this.ws=null),this.currentController=null,this.computeCache.clear()}getCachedComputes(){return Array.from(this.computeCache.values())}hasCachedData(){return this.computeCache.size>0}setInitialComputes(e){this.computeCache.clear(),e.forEach(t=>{this.computeCache.set(t.compute_id,t)}),this.computeCacheUpdated.emit(this.getCachedComputes())}handleMessage(e){switch(e.action){case"compute.created":this.computeCache.set(e.event.compute_id,e.event),this.computeNotificationEmitter.emit(e),this.computeCacheUpdated.emit(this.getCachedComputes());break;case"compute.updated":this.computeCache.set(e.event.compute_id,e.event),this.computeNotificationEmitter.emit(e),this.computeCacheUpdated.emit(this.getCachedComputes());break;case"compute.deleted":this.computeCache.delete(e.event.compute_id),this.computeNotificationEmitter.emit(e),this.computeCacheUpdated.emit(this.getCachedComputes());break;case"project.created":case"project.opened":case"project.closed":case"project.updated":case"project.deleted":this.projectNotificationEmitter.emit(e);break;case"settings.updated":this.serverSettingsNotificationEmitter.emit(e);break}}static \u0275fac=function(t){return new(t||i)(J(Ui))};static \u0275prov=P({token:i,factory:i.\u0275fac})}return i})();function Uo(i,s){if(i&1){let e=Se();c(0,"div",1)(1,"button",2),k("click",function(){ne(e);let n=y();return ie(n.action())}),$(2),u()()}if(i&2){let e=y();d(2),Qe(" ",e.data.action," ")}}var Qo=["label"];function Ko(i,s){}var Xo=Math.pow(2,31)-1,Ge=class{_overlayRef;instance;containerInstance;_afterDismissed=new f;_afterOpened=new f;_onAction=new f;_durationTimeoutId;_dismissedByAction=!1;constructor(s,e){this._overlayRef=e,this.containerInstance=s,s._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(s){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(s,Xo))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},Lt=new C("MatSnackBarData"),it=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},Zo=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return i})(),Jo=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return i})(),er=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return i})(),Qi=(()=>{class i{snackBarRef=r(Ge);data=r(Lt);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(t,n){t&1&&(c(0,"div",0),$(1),u(),F(2,Uo,3,1,"div",1)),t&2&&(d(),Qe(" ",n.data.message,` +`),d(),O(n.hasAction?2:-1))},dependencies:[yi,Zo,Jo,er],styles:[`.mat-mdc-simple-snack-bar { display: flex; } .mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label { max-height: 50vh; overflow: auto; } -`],encapsulation:2,changeDetection:0})}return i})(),ln="_mat-snack-bar-enter",cn="_mat-snack-bar-exit",er=(()=>{class i extends qn{_ngZone=r(z);_elementRef=r(D);_changeDetectorRef=r(Y);_platform=r(Ee);_animationsDisabled=q();snackBarConfig=r(it);_document=r(be);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=r(X);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new f;_onExit=new f;_onEnter=new f;_animationState="void";_live;_label;_role;_liveElementId=r(K).getId("mat-snack-bar-container-live-");constructor(){super();let e=this.snackBarConfig;e.politeness==="assertive"&&!e.announcementMessage?this._live="assertive":e.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();let t=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),t}attachTemplatePortal(e){this._assertNotAttached();let t=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),t}attachDomPortal=e=>{this._assertNotAttached();let t=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),t};onAnimationEnd(e){e===cn?this._completeExit():e===ln&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?ce(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(ln)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(ln)},200)))}exit(){return this._destroyed?ze(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?ce(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(cn)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(cn),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let e=this._elementRef.nativeElement,t=this.snackBarConfig.panelClass;t&&(Array.isArray(t)?t.forEach(o=>e.classList.add(o)):e.classList.add(t)),this._exposeToModals();let n=this._label.nativeElement,a="mdc-snackbar__label";n.classList.toggle(a,!n.querySelector(`.${a}`))}_exposeToModals(){let e=this._liveElementId,t=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let n=0;n{let t=e.getAttribute("aria-owns");if(t){let n=t.replace(this._liveElementId,"").trim();n.length>0?e.setAttribute("aria-owns",n):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let e=this._elementRef.nativeElement,t=e.querySelector("[aria-hidden]"),n=e.querySelector("[aria-live]");if(t&&n){let a=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(a=document.activeElement),t.removeAttribute("aria-hidden"),n.appendChild(t),a?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-snack-bar-container"]],viewQuery:function(t,n){if(t&1&&W(Ze,7)(qo,7),t&2){let a;m(a=h())&&(n._portalOutlet=a.first),m(a=h())&&(n._label=a.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(t,n){t&1&&k("animationend",function(o){return n.onAnimationEnd(o.animationName)})("animationcancel",function(o){return n.onAnimationEnd(o.animationName)}),t&2&&p("mat-snack-bar-container-enter",n._animationState==="visible")("mat-snack-bar-container-exit",n._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!n._animationsDisabled)},features:[_e],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,n){t&1&&(c(0,"div",1)(1,"div",2,0)(3,"div",3),ge(4,Qo,0,0,"ng-template",4),u(),A(5,"div"),u()()),t&2&&(d(5),T("aria-live",n._live)("role",n._role)("id",n._liveElementId))},dependencies:[Ze],styles:[`@keyframes _mat-snack-bar-enter { +`],encapsulation:2,changeDetection:0})}return i})(),ln="_mat-snack-bar-enter",cn="_mat-snack-bar-exit",tr=(()=>{class i extends Un{_ngZone=r(z);_elementRef=r(D);_changeDetectorRef=r(Y);_platform=r(Ee);_animationsDisabled=U();snackBarConfig=r(it);_document=r(be);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=r(X);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new f;_onExit=new f;_onEnter=new f;_animationState="void";_live;_label;_role;_liveElementId=r(K).getId("mat-snack-bar-container-live-");constructor(){super();let e=this.snackBarConfig;e.politeness==="assertive"&&!e.announcementMessage?this._live="assertive":e.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();let t=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),t}attachTemplatePortal(e){this._assertNotAttached();let t=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),t}attachDomPortal=e=>{this._assertNotAttached();let t=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),t};onAnimationEnd(e){e===cn?this._completeExit():e===ln&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?ce(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(ln)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(ln)},200)))}exit(){return this._destroyed?ze(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?ce(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(cn)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(cn),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let e=this._elementRef.nativeElement,t=this.snackBarConfig.panelClass;t&&(Array.isArray(t)?t.forEach(o=>e.classList.add(o)):e.classList.add(t)),this._exposeToModals();let n=this._label.nativeElement,a="mdc-snackbar__label";n.classList.toggle(a,!n.querySelector(`.${a}`))}_exposeToModals(){let e=this._liveElementId,t=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let n=0;n{let t=e.getAttribute("aria-owns");if(t){let n=t.replace(this._liveElementId,"").trim();n.length>0?e.setAttribute("aria-owns",n):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let e=this._elementRef.nativeElement,t=e.querySelector("[aria-hidden]"),n=e.querySelector("[aria-live]");if(t&&n){let a=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(a=document.activeElement),t.removeAttribute("aria-hidden"),n.appendChild(t),a?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-snack-bar-container"]],viewQuery:function(t,n){if(t&1&&W(Ze,7)(Qo,7),t&2){let a;m(a=h())&&(n._portalOutlet=a.first),m(a=h())&&(n._label=a.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(t,n){t&1&&k("animationend",function(o){return n.onAnimationEnd(o.animationName)})("animationcancel",function(o){return n.onAnimationEnd(o.animationName)}),t&2&&p("mat-snack-bar-container-enter",n._animationState==="visible")("mat-snack-bar-container-exit",n._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!n._animationsDisabled)},features:[_e],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,n){t&1&&(c(0,"div",1)(1,"div",2,0)(3,"div",3),ge(4,Ko,0,0,"ng-template",4),u(),A(5,"div"),u()()),t&2&&(d(5),T("aria-live",n._live)("role",n._role)("id",n._liveElementId))},dependencies:[Ze],styles:[`@keyframes _mat-snack-bar-enter { from { transform: scale(0.8); opacity: 0; @@ -1711,7 +1711,7 @@ div.mat-mdc-select-panel { .mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element { opacity: 0.1; } -`],encapsulation:2})}return i})(),tr=new C("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new it}),dn=(()=>{class i{_live=r(vt);_injector=r(X);_breakpointObserver=r(ci);_parentSnackBar=r(i,{optional:!0,skipSelf:!0});_defaultConfig=r(tr);_animationsDisabled=q();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=Qi;snackBarContainerComponent=er;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(){}openFromComponent(e,t){return this._attach(e,t)}openFromTemplate(e,t){return this._attach(e,t)}open(e,t="",n){let a=S(S({},this._defaultConfig),n);return a.data={message:e,action:t},a.announcementMessage===e&&(a.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,a)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,t){let n=t&&t.viewContainerRef&&t.viewContainerRef.injector,a=X.create({parent:n||this._injector,providers:[{provide:it,useValue:t}]}),o=new ct(this.snackBarContainerComponent,t.viewContainerRef,a),l=e.attach(o);return l.instance.snackBarConfig=t,l.instance}_attach(e,t){let n=S(S(S({},new it),this._defaultConfig),t),a=this._createOverlay(n),o=this._attachSnackBarContainer(a,n),l=new Ge(o,a);if(e instanceof Ie){let v=new je(e,null,{$implicit:n.data,snackBarRef:l});l.instance=o.attachTemplatePortal(v)}else{let v=this._createInjector(n,l),b=new ct(e,void 0,v),V=o.attachComponentPortal(b);l.instance=V.instance}return this._breakpointObserver.observe(pi.HandsetPortrait).pipe(x(a.detachments())).subscribe(v=>{a.overlayElement.classList.toggle(this.handsetCssClass,v.matches)}),n.announcementMessage&&o._onAnnounce.subscribe(()=>{this._live.announce(n.announcementMessage,n.politeness)}),this._animateSnackBar(l,n),this._openedSnackBarRef=l,this._openedSnackBarRef}_animateSnackBar(e,t){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),t.announcementMessage&&this._live.clear()}),t.duration&&t.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(t.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let t=new _t;t.direction=e.direction;let n=Zn(this._injector),a=e.direction==="rtl",o=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!a||e.horizontalPosition==="end"&&a,l=!o&&e.horizontalPosition!=="center";return o?n.left("0"):l?n.right("0"):n.centerHorizontally(),e.verticalPosition==="top"?n.top("0"):n.bottom("0"),t.positionStrategy=n,t.disableAnimations=this._animationsDisabled,et(this._injector,t)}_createInjector(e,t){let n=e&&e.viewContainerRef&&e.viewContainerRef.injector;return X.create({parent:n||this._injector,providers:[{provide:Ge,useValue:t},{provide:Lt,useValue:e.data}]})}static \u0275fac=function(t){return new(t||i)};static \u0275prov=P({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var Zc=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({providers:[dn],imports:[Ne,Xn,xt,Qi,j]})}return i})();var Ki={success:{icon:"check_circle",label:"Completed"},info:{icon:"info",label:"Activity"},warning:{icon:"warning",label:"Warning"},error:{icon:"error",label:"Error"}};function Xi(i){return Ki[i].icon}function Zi(i){return Ki[i].label}var Ji=(()=>{class i{snackBarRef=r(Ge);data=r(Lt);icon=Xi;label=Zi;dismiss(){this.snackBarRef.dismiss()}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["app-notification-toast"]],decls:11,vars:11,consts:[[1,"notification-toast"],["aria-hidden","true",1,"notification-toast__status"],[1,"notification-toast__content"],["mat-icon-button","","type","button","aria-label","Dismiss notification",3,"click"]],template:function(t,n){t&1&&(c(0,"div",0)(1,"mat-icon",1),$(2),u(),c(3,"div",2)(4,"strong"),$(5),u(),c(6,"span"),$(7),u()(),c(8,"button",3),k("click",function(){return n.dismiss()}),c(9,"mat-icon"),$(10,"close"),u()()()),t&2&&(p("notification-toast--success",n.data.notification.kind==="success")("notification-toast--info",n.data.notification.kind==="info")("notification-toast--warning",n.data.notification.kind==="warning")("notification-toast--error",n.data.notification.kind==="error"),d(2),se(n.icon(n.data.notification.kind)),d(3),se(n.label(n.data.notification.kind)),d(2),se(n.data.notification.message))},dependencies:[xt,vi,gi,_i],styles:["[_nghost-%COMP%]{display:block}.notification-toast[_ngcontent-%COMP%]{--notification-accent: var(--mat-sys-primary);min-width:min(380px,100vw - 32px);max-width:min(460px,100vw - 32px);padding:var(--gns3-density-space-3);display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:var(--gns3-density-space-3);box-sizing:border-box;color:var(--mat-sys-on-surface);background:var(--mat-sys-surface-container-high);border:1px solid color-mix(in srgb,var(--notification-accent) 45%,var(--mat-sys-outline-variant));border-left:4px solid var(--notification-accent);border-radius:var(--gns3-density-radius-md);box-shadow:0 12px 32px color-mix(in srgb,var(--mat-sys-shadow) 24%,transparent)}.notification-toast--success[_ngcontent-%COMP%]{--notification-accent: var(--custom-mat-sys-success)}.notification-toast--warning[_ngcontent-%COMP%]{--notification-accent: var(--mat-sys-tertiary)}.notification-toast--error[_ngcontent-%COMP%]{--notification-accent: var(--mat-sys-error)}.notification-toast[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:var(--gns3-density-control-height-sm);height:var(--gns3-density-control-height-sm)}.notification-toast__status[_ngcontent-%COMP%]{color:var(--notification-accent)}.notification-toast__content[_ngcontent-%COMP%]{min-width:0;display:flex;flex-direction:column;gap:var(--gns3-density-space-1)}.notification-toast__content[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:14px;font-weight:650}.notification-toast__content[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{overflow-wrap:anywhere;color:var(--mat-sys-on-surface-variant);font-size:13px;line-height:1.4;white-space:pre-line}@media(max-width:480px){.notification-toast[_ngcontent-%COMP%]{min-width:calc(100vw - 24px);max-width:calc(100vw - 24px)}}"],changeDetection:0})}return i})();var ea="gns3-notification-history",ta=100,ir=864e13,na=(()=>{class i{sequence=0;notificationState=Q(this.restore());panelOpenState=Q(!1);notifications=this.notificationState.asReadonly();panelOpen=this.panelOpenState.asReadonly();unreadCount=ye(()=>this.notificationState().filter(e=>!e.read).length);errorCount=ye(()=>this.notificationState().filter(e=>e.kind==="error").length);warningCount=ye(()=>this.notificationState().filter(e=>e.kind==="warning").length);activityCount=ye(()=>this.notificationState().filter(e=>e.kind==="success"||e.kind==="info").length);add(e,t){let n={id:this.createId(),kind:e,message:this.normalizeMessage(t),createdAt:Date.now(),read:!1};return this.update([n,...this.notificationState()].slice(0,ta)),n}togglePanel(){this.panelOpenState.update(e=>!e)}closePanel(){this.panelOpenState.set(!1)}markAsRead(e){this.notificationState().some(t=>t.id===e&&!t.read)&&this.update(this.notificationState().map(t=>t.id===e?le(S({},t),{read:!0}):t))}markAllAsRead(){this.unreadCount()!==0&&this.update(this.notificationState().map(e=>le(S({},e),{read:!0})))}remove(e){this.update(this.notificationState().filter(t=>t.id!==e))}clear(){this.update([])}createId(){return typeof globalThis.crypto?.randomUUID=="function"?globalThis.crypto.randomUUID():`${Date.now()}-${this.sequence++}-${Math.random().toString(36).slice(2)}`}normalizeMessage(e){if(typeof e=="string")return e;if(e instanceof Error)return e.message;try{return JSON.stringify(e)??String(e)}catch{return String(e)}}update(e){this.notificationState.set(e);try{localStorage.setItem(ea,JSON.stringify(e))}catch{}}restore(){try{let e=JSON.parse(localStorage.getItem(ea)||"[]");return Array.isArray(e)?e.filter(t=>typeof t?.id=="string"&&typeof t?.message=="string"&&typeof t?.createdAt=="number"&&Number.isFinite(t.createdAt)&&t.createdAt>=0&&t.createdAt<=ir&&typeof t?.read=="boolean"&&["success","info","warning","error"].includes(t?.kind)).slice(0,ta):[]}catch{return[]}}static \u0275fac=function(t){return new(t||i)};static \u0275prov=P({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var ia=(()=>{class i{snackbar;notificationCenter;snackBarConfigForSuccess={duration:4e3,panelClass:["gns3-toast-panel"],horizontalPosition:"center",verticalPosition:"bottom"};snackBarConfigForWarning={duration:4e3,panelClass:["gns3-toast-panel"],horizontalPosition:"center",verticalPosition:"bottom",politeness:"assertive"};snackBarConfigForError={duration:1e4,panelClass:["gns3-toast-panel"],horizontalPosition:"center",verticalPosition:"bottom",politeness:"assertive"};snackBarConfigForInfo={duration:4e3,panelClass:["gns3-toast-panel"],horizontalPosition:"center",verticalPosition:"bottom"};constructor(e,t){this.snackbar=e,this.notificationCenter=t}error(e,t={}){console.error(e),this.show("error",e,this.snackBarConfigForError,t)}warning(e,t={}){this.show("warning",e,this.snackBarConfigForWarning,t)}success(e,t={}){this.show("success",e,this.snackBarConfigForSuccess,t)}info(e,t={}){this.show("info",e,this.snackBarConfigForInfo,t)}show(e,t,n,a){let o=this.notificationCenter.add(e,t);a.showToast===!1||this.notificationCenter.panelOpen()||this.snackbar.openFromComponent(Ji,le(S({},n),{data:{notification:o}}))}static \u0275fac=function(t){return new(t||i)(J(dn),J(na))};static \u0275prov=P({token:i,factory:i.\u0275fac})}return i})();var _d=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[j]})}return i})();var rr=["mat-internal-form-field",""],sr=["*"],aa=(()=>{class i{labelPosition="after";static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(t,n){t&2&&p("mdc-form-field--align-end",n.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:rr,ngContentSelectors:sr,decls:1,vars:0,template:function(t,n){t&1&&(H(),w(0))},styles:[`.mat-internal-form-field { +`],encapsulation:2})}return i})(),nr=new C("mat-snack-bar-default-options",{providedIn:"root",factory:()=>new it}),dn=(()=>{class i{_live=r(vt);_injector=r(X);_breakpointObserver=r(ci);_parentSnackBar=r(i,{optional:!0,skipSelf:!0});_defaultConfig=r(nr);_animationsDisabled=U();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=Qi;snackBarContainerComponent=tr;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(){}openFromComponent(e,t){return this._attach(e,t)}openFromTemplate(e,t){return this._attach(e,t)}open(e,t="",n){let a=S(S({},this._defaultConfig),n);return a.data={message:e,action:t},a.announcementMessage===e&&(a.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,a)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,t){let n=t&&t.viewContainerRef&&t.viewContainerRef.injector,a=X.create({parent:n||this._injector,providers:[{provide:it,useValue:t}]}),o=new ct(this.snackBarContainerComponent,t.viewContainerRef,a),l=e.attach(o);return l.instance.snackBarConfig=t,l.instance}_attach(e,t){let n=S(S(S({},new it),this._defaultConfig),t),a=this._createOverlay(n),o=this._attachSnackBarContainer(a,n),l=new Ge(o,a);if(e instanceof Ie){let v=new je(e,null,{$implicit:n.data,snackBarRef:l});l.instance=o.attachTemplatePortal(v)}else{let v=this._createInjector(n,l),b=new ct(e,void 0,v),V=o.attachComponentPortal(b);l.instance=V.instance}return this._breakpointObserver.observe(pi.HandsetPortrait).pipe(x(a.detachments())).subscribe(v=>{a.overlayElement.classList.toggle(this.handsetCssClass,v.matches)}),n.announcementMessage&&o._onAnnounce.subscribe(()=>{this._live.announce(n.announcementMessage,n.politeness)}),this._animateSnackBar(l,n),this._openedSnackBarRef=l,this._openedSnackBarRef}_animateSnackBar(e,t){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),t.announcementMessage&&this._live.clear()}),t.duration&&t.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(t.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let t=new _t;t.direction=e.direction;let n=Zn(this._injector),a=e.direction==="rtl",o=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!a||e.horizontalPosition==="end"&&a,l=!o&&e.horizontalPosition!=="center";return o?n.left("0"):l?n.right("0"):n.centerHorizontally(),e.verticalPosition==="top"?n.top("0"):n.bottom("0"),t.positionStrategy=n,t.disableAnimations=this._animationsDisabled,et(this._injector,t)}_createInjector(e,t){let n=e&&e.viewContainerRef&&e.viewContainerRef.injector;return X.create({parent:n||this._injector,providers:[{provide:Ge,useValue:t},{provide:Lt,useValue:e.data}]})}static \u0275fac=function(t){return new(t||i)};static \u0275prov=P({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var Jc=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({providers:[dn],imports:[Ne,Xn,xt,Qi,j]})}return i})();var Ki={success:{icon:"check_circle",label:"Completed"},info:{icon:"info",label:"Activity"},warning:{icon:"warning",label:"Warning"},error:{icon:"error",label:"Error"}};function Xi(i){return Ki[i].icon}function Zi(i){return Ki[i].label}var Ji=(()=>{class i{snackBarRef=r(Ge);data=r(Lt);icon=Xi;label=Zi;dismiss(){this.snackBarRef.dismiss()}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["app-notification-toast"]],decls:11,vars:11,consts:[[1,"notification-toast"],["aria-hidden","true",1,"notification-toast__status"],[1,"notification-toast__content"],["mat-icon-button","","type","button","aria-label","Dismiss notification",3,"click"]],template:function(t,n){t&1&&(c(0,"div",0)(1,"mat-icon",1),$(2),u(),c(3,"div",2)(4,"strong"),$(5),u(),c(6,"span"),$(7),u()(),c(8,"button",3),k("click",function(){return n.dismiss()}),c(9,"mat-icon"),$(10,"close"),u()()()),t&2&&(p("notification-toast--success",n.data.notification.kind==="success")("notification-toast--info",n.data.notification.kind==="info")("notification-toast--warning",n.data.notification.kind==="warning")("notification-toast--error",n.data.notification.kind==="error"),d(2),se(n.icon(n.data.notification.kind)),d(3),se(n.label(n.data.notification.kind)),d(2),se(n.data.notification.message))},dependencies:[xt,vi,gi,_i],styles:["[_nghost-%COMP%]{display:block}.notification-toast[_ngcontent-%COMP%]{--notification-accent: var(--mat-sys-primary);min-width:min(380px,100vw - 32px);max-width:min(460px,100vw - 32px);padding:var(--gns3-density-space-3);display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:var(--gns3-density-space-3);box-sizing:border-box;color:var(--mat-sys-on-surface);background:var(--mat-sys-surface-container-high);border:1px solid color-mix(in srgb,var(--notification-accent) 45%,var(--mat-sys-outline-variant));border-left:4px solid var(--notification-accent);border-radius:var(--gns3-density-radius-md);box-shadow:0 12px 32px color-mix(in srgb,var(--mat-sys-shadow) 24%,transparent)}.notification-toast--success[_ngcontent-%COMP%]{--notification-accent: var(--custom-mat-sys-success)}.notification-toast--warning[_ngcontent-%COMP%]{--notification-accent: var(--mat-sys-tertiary)}.notification-toast--error[_ngcontent-%COMP%]{--notification-accent: var(--mat-sys-error)}.notification-toast[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:var(--gns3-density-control-height-sm);height:var(--gns3-density-control-height-sm)}.notification-toast__status[_ngcontent-%COMP%]{color:var(--notification-accent)}.notification-toast__content[_ngcontent-%COMP%]{min-width:0;display:flex;flex-direction:column;gap:var(--gns3-density-space-1)}.notification-toast__content[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:14px;font-weight:650}.notification-toast__content[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{overflow-wrap:anywhere;color:var(--mat-sys-on-surface-variant);font-size:13px;line-height:1.4;white-space:pre-line}@media(max-width:480px){.notification-toast[_ngcontent-%COMP%]{min-width:calc(100vw - 24px);max-width:calc(100vw - 24px)}}"],changeDetection:0})}return i})();var ea="gns3-notification-history",ta="notificationsVisibility",na=100,ar=864e13,ia=(()=>{class i{sequence=0;toastPreferenceFallback;notificationState=Q(this.restore());panelOpenState=Q(!1);notifications=this.notificationState.asReadonly();panelOpen=this.panelOpenState.asReadonly();unreadCount=ye(()=>this.notificationState().filter(e=>!e.read).length);errorCount=ye(()=>this.notificationState().filter(e=>e.kind==="error").length);warningCount=ye(()=>this.notificationState().filter(e=>e.kind==="warning").length);activityCount=ye(()=>this.notificationState().filter(e=>e.kind==="success"||e.kind==="info").length);get toastsEnabled(){if(this.toastPreferenceFallback!==void 0)return this.toastPreferenceFallback;try{return localStorage.getItem(ta)!=="false"}catch{return!0}}setToastsEnabled(e){try{localStorage.setItem(ta,String(e)),this.toastPreferenceFallback=void 0}catch{this.toastPreferenceFallback=e}}add(e,t){let n={id:this.createId(),kind:e,message:this.normalizeMessage(t),createdAt:Date.now(),read:!1};return this.update([n,...this.notificationState()].slice(0,na)),n}togglePanel(){this.panelOpenState.update(e=>!e)}closePanel(){this.panelOpenState.set(!1)}markAsRead(e){this.notificationState().some(t=>t.id===e&&!t.read)&&this.update(this.notificationState().map(t=>t.id===e?le(S({},t),{read:!0}):t))}markAllAsRead(){this.unreadCount()!==0&&this.update(this.notificationState().map(e=>le(S({},e),{read:!0})))}remove(e){this.update(this.notificationState().filter(t=>t.id!==e))}clear(){this.update([])}createId(){return typeof globalThis.crypto?.randomUUID=="function"?globalThis.crypto.randomUUID():`${Date.now()}-${this.sequence++}-${Math.random().toString(36).slice(2)}`}normalizeMessage(e){if(typeof e=="string")return e;if(e instanceof Error)return e.message;try{return JSON.stringify(e)??String(e)}catch{return String(e)}}update(e){this.notificationState.set(e);try{localStorage.setItem(ea,JSON.stringify(e))}catch{}}restore(){try{let e=JSON.parse(localStorage.getItem(ea)||"[]");return Array.isArray(e)?e.filter(t=>typeof t?.id=="string"&&typeof t?.message=="string"&&typeof t?.createdAt=="number"&&Number.isFinite(t.createdAt)&&t.createdAt>=0&&t.createdAt<=ar&&typeof t?.read=="boolean"&&["success","info","warning","error"].includes(t?.kind)).slice(0,na):[]}catch{return[]}}static \u0275fac=function(t){return new(t||i)};static \u0275prov=P({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var aa=(()=>{class i{snackbar;notificationCenter;snackBarConfigForSuccess={duration:4e3,panelClass:["gns3-toast-panel"],horizontalPosition:"center",verticalPosition:"bottom"};snackBarConfigForWarning={duration:4e3,panelClass:["gns3-toast-panel"],horizontalPosition:"center",verticalPosition:"bottom",politeness:"assertive"};snackBarConfigForError={duration:1e4,panelClass:["gns3-toast-panel"],horizontalPosition:"center",verticalPosition:"bottom",politeness:"assertive"};snackBarConfigForInfo={duration:4e3,panelClass:["gns3-toast-panel"],horizontalPosition:"center",verticalPosition:"bottom"};constructor(e,t){this.snackbar=e,this.notificationCenter=t}error(e,t={}){console.error(e),this.show("error",e,this.snackBarConfigForError,t)}warning(e,t={}){this.show("warning",e,this.snackBarConfigForWarning,t)}success(e,t={}){this.show("success",e,this.snackBarConfigForSuccess,t)}info(e,t={}){this.show("info",e,this.snackBarConfigForInfo,t)}show(e,t,n,a){let o=this.notificationCenter.add(e,t);!this.notificationCenter.toastsEnabled||a.showToast===!1||this.notificationCenter.panelOpen()||this.snackbar.openFromComponent(Ji,le(S({},n),{data:{notification:o}}))}static \u0275fac=function(t){return new(t||i)(J(dn),J(ia))};static \u0275prov=P({token:i,factory:i.\u0275fac})}return i})();var sr=["mat-internal-form-field",""],lr=["*"],oa=(()=>{class i{labelPosition="after";static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(t,n){t&2&&p("mdc-form-field--align-end",n.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:sr,ngContentSelectors:lr,decls:1,vars:0,template:function(t,n){t&1&&(H(),w(0))},styles:[`.mat-internal-form-field { -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; display: inline-flex; @@ -1745,7 +1745,7 @@ div.mat-mdc-select-panel { padding-left: 4px; padding-right: 0; } -`],encapsulation:2,changeDetection:0})}return i})();var lr=["input"],cr=["label"],dr=["*"],mn={color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1},mr=new C("mat-checkbox-default-options",{providedIn:"root",factory:()=>mn}),ee=(function(i){return i[i.Init=0]="Init",i[i.Checked=1]="Checked",i[i.Unchecked=2]="Unchecked",i[i.Indeterminate=3]="Indeterminate",i})(ee||{}),hn=class{source;checked},hr=(()=>{class i{_elementRef=r(D);_changeDetectorRef=r(Y);_ngZone=r(z);_animationsDisabled=q();_options=r(mr,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let t=new hn;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`}required=!1;labelPosition="after";name=null;change=new g;indeterminateChange=new g;value;disableRipple=!1;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=ee.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){r(De).load(Re);let e=r(new Ke("tabindex"),{optional:!0});this._options=this._options||mn,this.color=this._options.color||mn.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=r(K).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this.indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}_checked=!1;get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}_disabled=!1;get indeterminate(){return this._indeterminate()}set indeterminate(e){let t=e!=this._indeterminate();this._indeterminate.set(e),t&&(e?this._transitionCheckState(ee.Indeterminate):this._transitionCheckState(this.checked?ee.Checked:ee.Unchecked),this.indeterminateChange.emit(e)),this._syncIndeterminate(e)}_indeterminate=Q(!1);_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let t=this._currentCheckState,n=this._getAnimationTargetElement();if(!(t===e||!n)&&(this._currentAnimationClass&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);let a=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{n.classList.remove(a)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){let e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate.set(!1),this.indeterminateChange.emit(!1)}),this._checked=!this._checked,this._transitionCheckState(this._checked?ee.Checked:ee.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&e==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,t){if(this._animationsDisabled)return"";switch(e){case ee.Init:if(t===ee.Checked)return this._animationClasses.uncheckedToChecked;if(t==ee.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case ee.Unchecked:return t===ee.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case ee.Checked:return t===ee.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case ee.Indeterminate:return t===ee.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-checkbox"]],viewQuery:function(t,n){if(t&1&&W(lr,5)(cr,5),t&2){let a;m(a=h())&&(n._inputElement=a.first),m(a=h())&&(n._labelElement=a.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(t,n){t&2&&(Ce("id",n.id),T("tabindex",null)("aria-label",null)("aria-labelledby",null),de(n.color?"mat-"+n.color:"mat-accent"),p("_mat-animation-noopable",n._animationsDisabled)("mdc-checkbox--disabled",n.disabled)("mat-mdc-checkbox-disabled",n.disabled)("mat-mdc-checkbox-checked",n.checked)("mat-mdc-checkbox-disabled-interactive",n.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",_],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",_],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",_],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:Te(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",_],checked:[2,"checked","checked",_],disabled:[2,"disabled","disabled",_],indeterminate:[2,"indeterminate","indeterminate",_]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[U([{provide:ei,useExisting:Sn(()=>i),multi:!0},{provide:ti,useExisting:i,multi:!0}]),qe],ngContentSelectors:dr,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],["aria-hidden","true",1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],["aria-hidden","true",1,"mdc-checkbox__ripple"],["aria-hidden","true",1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","","aria-hidden","true",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(t,n){if(t&1&&(H(),c(0,"div",3),k("click",function(o){return n._preventBubblingFromLabel(o)}),c(1,"div",4,0)(3,"div",5),k("click",function(){return n._onTouchTargetClick()}),u(),c(4,"input",6,1),k("blur",function(){return n._onBlur()})("click",function(){return n._onInputClick()})("change",function(o){return n._onInteractionEvent(o)}),u(),A(6,"div",7),c(7,"div",8),Ue(),c(8,"svg",9),A(9,"path",10),u(),Dn(),A(10,"div",11),u(),A(11,"div",12),u(),c(12,"label",13,2),w(14),u()()),t&2){let a=we(2);E("labelPosition",n.labelPosition),d(4),p("mdc-checkbox--selected",n.checked),E("checked",n.checked)("indeterminate",n.indeterminate)("disabled",n.disabled&&!n.disabledInteractive)("id",n.inputId)("required",n.required)("tabIndex",n.disabled&&!n.disabledInteractive?-1:n.tabIndex),T("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby)("aria-checked",n.indeterminate?"mixed":null)("aria-controls",n.ariaControls)("aria-disabled",n.disabled&&n.disabledInteractive?!0:null)("aria-expanded",n.ariaExpanded)("aria-owns",n.ariaOwns)("name",n.name)("value",n.value),d(7),E("matRippleTrigger",a)("matRippleDisabled",n.disableRipple||n.disabled)("matRippleCentered",!0),d(),E("for",n.inputId)}},dependencies:[he,aa],styles:[`.mdc-checkbox { +`],encapsulation:2,changeDetection:0})}return i})();var cr=["input"],dr=["label"],mr=["*"],mn={color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1},hr=new C("mat-checkbox-default-options",{providedIn:"root",factory:()=>mn}),ee=(function(i){return i[i.Init=0]="Init",i[i.Checked=1]="Checked",i[i.Unchecked=2]="Unchecked",i[i.Indeterminate=3]="Indeterminate",i})(ee||{}),hn=class{source;checked},ur=(()=>{class i{_elementRef=r(D);_changeDetectorRef=r(Y);_ngZone=r(z);_animationsDisabled=U();_options=r(hr,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let t=new hn;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`}required=!1;labelPosition="after";name=null;change=new g;indeterminateChange=new g;value;disableRipple=!1;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=ee.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){r(De).load(Re);let e=r(new Ke("tabindex"),{optional:!0});this._options=this._options||mn,this.color=this._options.color||mn.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=r(K).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this.indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}_checked=!1;get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}_disabled=!1;get indeterminate(){return this._indeterminate()}set indeterminate(e){let t=e!=this._indeterminate();this._indeterminate.set(e),t&&(e?this._transitionCheckState(ee.Indeterminate):this._transitionCheckState(this.checked?ee.Checked:ee.Unchecked),this.indeterminateChange.emit(e)),this._syncIndeterminate(e)}_indeterminate=Q(!1);_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let t=this._currentCheckState,n=this._getAnimationTargetElement();if(!(t===e||!n)&&(this._currentAnimationClass&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);let a=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{n.classList.remove(a)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){let e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate.set(!1),this.indeterminateChange.emit(!1)}),this._checked=!this._checked,this._transitionCheckState(this._checked?ee.Checked:ee.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&e==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,t){if(this._animationsDisabled)return"";switch(e){case ee.Init:if(t===ee.Checked)return this._animationClasses.uncheckedToChecked;if(t==ee.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case ee.Unchecked:return t===ee.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case ee.Checked:return t===ee.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case ee.Indeterminate:return t===ee.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-checkbox"]],viewQuery:function(t,n){if(t&1&&W(cr,5)(dr,5),t&2){let a;m(a=h())&&(n._inputElement=a.first),m(a=h())&&(n._labelElement=a.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(t,n){t&2&&(Ce("id",n.id),T("tabindex",null)("aria-label",null)("aria-labelledby",null),de(n.color?"mat-"+n.color:"mat-accent"),p("_mat-animation-noopable",n._animationsDisabled)("mdc-checkbox--disabled",n.disabled)("mat-mdc-checkbox-disabled",n.disabled)("mat-mdc-checkbox-checked",n.checked)("mat-mdc-checkbox-disabled-interactive",n.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",_],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",_],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",_],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:Te(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",_],checked:[2,"checked","checked",_],disabled:[2,"disabled","disabled",_],indeterminate:[2,"indeterminate","indeterminate",_]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[q([{provide:ei,useExisting:Sn(()=>i),multi:!0},{provide:ti,useExisting:i,multi:!0}]),Ue],ngContentSelectors:mr,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],["aria-hidden","true",1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],["aria-hidden","true",1,"mdc-checkbox__ripple"],["aria-hidden","true",1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","","aria-hidden","true",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(t,n){if(t&1&&(H(),c(0,"div",3),k("click",function(o){return n._preventBubblingFromLabel(o)}),c(1,"div",4,0)(3,"div",5),k("click",function(){return n._onTouchTargetClick()}),u(),c(4,"input",6,1),k("blur",function(){return n._onBlur()})("click",function(){return n._onInputClick()})("change",function(o){return n._onInteractionEvent(o)}),u(),A(6,"div",7),c(7,"div",8),qe(),c(8,"svg",9),A(9,"path",10),u(),Dn(),A(10,"div",11),u(),A(11,"div",12),u(),c(12,"label",13,2),w(14),u()()),t&2){let a=we(2);E("labelPosition",n.labelPosition),d(4),p("mdc-checkbox--selected",n.checked),E("checked",n.checked)("indeterminate",n.indeterminate)("disabled",n.disabled&&!n.disabledInteractive)("id",n.inputId)("required",n.required)("tabIndex",n.disabled&&!n.disabledInteractive?-1:n.tabIndex),T("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby)("aria-checked",n.indeterminate?"mixed":null)("aria-controls",n.ariaControls)("aria-disabled",n.disabled&&n.disabledInteractive?!0:null)("aria-expanded",n.ariaExpanded)("aria-owns",n.ariaOwns)("name",n.name)("value",n.value),d(7),E("matRippleTrigger",a)("matRippleDisabled",n.disableRipple||n.disabled)("matRippleCentered",!0),d(),E("for",n.inputId)}},dependencies:[he,oa],styles:[`.mdc-checkbox { display: inline-block; position: relative; flex: 0 0 18px; @@ -2218,7 +2218,7 @@ div.mat-mdc-select-panel { .mdc-checkbox__native-control:focus-visible ~ .mat-focus-indicator::before { content: ""; } -`],encapsulation:2,changeDetection:0})}return i})(),Yd=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[hr,j]})}return i})();var at=["*"];function ur(i,s){i&1&&w(0)}var la=["tabListContainer"],ca=["tabList"],da=["tabListInner"],ma=["nextPaginator"],ha=["previousPaginator"],fr=["content"];function pr(i,s){}var br=["tabBodyWrapper"],_r=["tabHeader"];function gr(i,s){}function vr(i,s){if(i&1&&ge(0,gr,0,0,"ng-template",12),i&2){let e=y().$implicit;E("cdkPortalOutlet",e.templateLabel)}}function yr(i,s){if(i&1&&$(0),i&2){let e=y().$implicit;se(e.textLabel)}}function xr(i,s){if(i&1){let e=Se();c(0,"div",7,2),k("click",function(){let n=ne(e),a=n.$implicit,o=n.$index,l=y(),v=we(1);return ie(l._handleClick(a,v,o))})("cdkFocusChange",function(n){let a=ne(e).$index,o=y();return ie(o._tabFocusChanged(n,a))}),A(2,"span",8)(3,"div",9),c(4,"span",10)(5,"span",11),F(6,vr,1,1,null,12)(7,yr,1,1),u()()()}if(i&2){let e=s.$implicit,t=s.$index,n=we(1),a=y();de(e.labelClass),p("mdc-tab--active",a.selectedIndex===t),E("id",a._getTabLabelId(e,t))("disabled",e.disabled)("fitInkBarToContent",a.fitInkBarToContent),T("tabIndex",a._getTabIndex(t))("aria-posinset",t+1)("aria-setsize",a._tabs.length)("aria-controls",a._getTabContentId(t))("aria-selected",a.selectedIndex===t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),d(3),E("matRippleTrigger",n)("matRippleDisabled",e.disabled||a.disableRipple),d(3),O(e.templateLabel?6:7)}}function kr(i,s){i&1&&w(0)}function Cr(i,s){if(i&1){let e=Se();c(0,"mat-tab-body",13),k("_onCentered",function(){ne(e);let n=y();return ie(n._removeTabBodyWrapperHeight())})("_onCentering",function(n){ne(e);let a=y();return ie(a._setTabBodyWrapperHeight(n))})("_beforeCentering",function(n){ne(e);let a=y();return ie(a._bodyCentered(n))}),u()}if(i&2){let e=s.$implicit,t=s.$index,n=y();de(e.bodyClass),E("id",n._getTabContentId(t))("content",e.content)("position",e.position)("animationDuration",n.animationDuration)("preserveContent",n.preserveContent),T("tabindex",n.contentTabIndex!=null&&n.selectedIndex===t?n.contentTabIndex:null)("aria-labelledby",n._getTabLabelId(e,t))("aria-hidden",n.selectedIndex!==t)}}var wr=["mat-tab-nav-bar",""],Tr=["mat-tab-link",""],Mr=new C("MatTabContent"),Ir=(()=>{class i{template=r(Ie);constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["","matTabContent",""]],features:[U([{provide:Mr,useExisting:i}])]})}return i})(),Sr=new C("MatTabLabel"),ua=new C("MAT_TAB"),Dr=(()=>{class i extends Kn{_closestTab=r(ua,{optional:!0});static \u0275fac=(()=>{let e;return function(n){return(e||(e=Le(i)))(n||i)}})();static \u0275dir=I({type:i,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[U([{provide:Sr,useExisting:i}]),_e]})}return i})(),fa=new C("MAT_TAB_GROUP"),Er=(()=>{class i{_viewContainerRef=r(He);_closestTabGroup=r(fa,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;id=null;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new f;position=null;origin=null;isActive=!1;constructor(){r(De).load(Re)}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new je(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-tab"]],contentQueries:function(t,n,a){if(t&1&&ve(a,Dr,5)(a,Ir,7,Ie),t&2){let o;m(o=h())&&(n.templateLabel=o.first),m(o=h())&&(n._explicitContent=o.first)}},viewQuery:function(t,n){if(t&1&&W(Ie,7),t&2){let a;m(a=h())&&(n._implicitContent=a.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(t,n){t&2&&T("id",null)},inputs:{disabled:[2,"disabled","disabled",_],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[U([{provide:ua,useExisting:i}]),qe],ngContentSelectors:at,decls:1,vars:0,template:function(t,n){t&1&&(H(),pt(0,ur,1,0,"ng-template"))},encapsulation:2})}return i})(),un="mdc-tab-indicator--active",oa="mdc-tab-indicator--no-transition",Pt=class{_items;_currentItem;constructor(s){this._items=s}hide(){this._items.forEach(s=>s.deactivateInkBar()),this._currentItem=void 0}alignToElement(s){let e=this._items.find(n=>n.elementRef.nativeElement===s),t=this._currentItem;if(e!==t&&(t?.deactivateInkBar(),e)){let n=t?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(n),this._currentItem=e}}},pa=(()=>{class i{_elementRef=r(D);_inkBarElement=null;_inkBarContentElement=null;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let t=this._elementRef.nativeElement;if(!e||!t.getBoundingClientRect||!this._inkBarContentElement){t.classList.add(un);return}let n=t.getBoundingClientRect(),a=e.width/n.width,o=e.left-n.left;t.classList.add(oa),this._inkBarContentElement.style.setProperty("transform",`translateX(${o}px) scaleX(${a})`),t.getBoundingClientRect(),t.classList.remove(oa),t.classList.add(un),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(un)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,t=this._inkBarElement=e.createElement("span"),n=this._inkBarContentElement=e.createElement("span");t.className="mdc-tab-indicator",n.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",t.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let e=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;e.appendChild(this._inkBarElement)}static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",_]}})}return i})();var ba=(()=>{class i extends pa{elementRef=r(D);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Le(i)))(n||i)}})();static \u0275dir=I({type:i,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,n){t&2&&(T("aria-disabled",!!n.disabled),p("mat-mdc-tab-disabled",n.disabled))},inputs:{disabled:[2,"disabled","disabled",_]},features:[_e]})}return i})(),ra={passive:!0},Rr=650,Fr=100,_a=(()=>{class i{_elementRef=r(D);_changeDetectorRef=r(Y);_viewportRuler=r(lt);_dir=r(xe,{optional:!0});_ngZone=r(z);_platform=r(Ee);_sharedResizeObserver=r(Ft);_injector=r(X);_renderer=r(ae);_animationsDisabled=q();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new f;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged=!1;_keyManager;_currentTextContent;_stopScrolling=new f;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let t=isNaN(e)?0:e;this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}_selectedIndex=0;selectFocusedIndex=new g;indexFocused=new g;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),ra),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),ra))}ngAfterContentInit(){let e=this._dir?this._dir.change:ze("ltr"),t=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(wn(32),x(this._destroyed)),n=this._viewportRuler.change(150).pipe(x(this._destroyed)),a=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new yt(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),ce(a,{injector:this._injector}),G(e,n,t,this._items.changes,this._itemsResized()).pipe(x(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),a()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(o=>{this.indexFocused.emit(o),this._setTabFocus(o)})}_itemsResized(){return typeof ResizeObserver!="function"?vn:this._items.changes.pipe(te(this._items),Ae(e=>new Oe(t=>this._ngZone.runOutsideAngular(()=>{let n=new ResizeObserver(a=>t.next(a));return e.forEach(a=>n.observe(a.elementRef.nativeElement)),()=>{n.disconnect()}}))),Mn(1),Z(e=>e.some(t=>t.contentRect.width>0&&t.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._eventCleanups.forEach(e=>e()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!me(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let t=this._items.get(this.focusIndex);t&&!t.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e))}break;default:this._keyManager?.onKeydown(e)}}_onContentChanges(){let e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return this._items?!!this._items.toArray()[e]:!0}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();let t=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?t.scrollLeft=0:t.scrollLeft=t.scrollWidth-t.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let e=this.scrollDistance,t=this._getLayoutDirection()==="ltr"?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(t)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){let t=this._tabListContainer.nativeElement.offsetWidth,n=(e=="before"?-1:1)*t/3;return this._scrollTo(this._scrollDistance+n)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let t=this._items?this._items.toArray()[e]:null;if(!t)return;let n=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:a,offsetWidth:o}=t.elementRef.nativeElement,l,v;this._getLayoutDirection()=="ltr"?(l=a,v=l+o):(v=this._tabListInner.nativeElement.offsetWidth-a,l=v-o);let b=this.scrollDistance,V=this.scrollDistance+n;lV&&(this.scrollDistance+=Math.min(v-V,l-b))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,t=this._elementRef.nativeElement.offsetWidth,n=e-t>=5;n||(this.scrollDistance=0),n!==this._showPaginationControls&&(this._showPaginationControls=n,this._changeDetectorRef.markForCheck())}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){let e=this._tabListInner.nativeElement.scrollWidth,t=this._tabListContainer.nativeElement.offsetWidth;return e-t||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,t){t&&t.button!=null&&t.button!==0||(this._stopInterval(),Cn(Rr,Fr).pipe(x(G(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:n,distance:a}=this._scrollHeader(e);(a===0||a>=n)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,inputs:{disablePagination:[2,"disablePagination","disablePagination",_],selectedIndex:[2,"selectedIndex","selectedIndex",Te]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return i})(),Or=(()=>{class i extends _a{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new Pt(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Le(i)))(n||i)}})();static \u0275cmp=M({type:i,selectors:[["mat-tab-header"]],contentQueries:function(t,n,a){if(t&1&&ve(a,ba,4),t&2){let o;m(o=h())&&(n._items=o)}},viewQuery:function(t,n){if(t&1&&W(la,7)(ca,7)(da,7)(ma,5)(ha,5),t&2){let a;m(a=h())&&(n._tabListContainer=a.first),m(a=h())&&(n._tabList=a.first),m(a=h())&&(n._tabListInner=a.first),m(a=h())&&(n._nextPaginator=a.first),m(a=h())&&(n._previousPaginator=a.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(t,n){t&2&&p("mat-mdc-tab-header-pagination-controls-enabled",n._showPaginationControls)("mat-mdc-tab-header-rtl",n._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",_]},features:[_e],ngContentSelectors:at,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(t,n){t&1&&(H(),c(0,"div",5,0),k("click",function(){return n._handlePaginatorClick("before")})("mousedown",function(o){return n._handlePaginatorPress("before",o)})("touchend",function(){return n._stopInterval()}),A(2,"div",6),u(),c(3,"div",7,1),k("keydown",function(o){return n._handleKeydown(o)}),c(5,"div",8,2),k("cdkObserveContent",function(){return n._onContentChanges()}),c(7,"div",9,3),w(9),u()()(),c(10,"div",10,4),k("mousedown",function(o){return n._handlePaginatorPress("after",o)})("click",function(){return n._handlePaginatorClick("after")})("touchend",function(){return n._stopInterval()}),A(12,"div",6),u()),t&2&&(p("mat-mdc-tab-header-pagination-disabled",n._disableScrollBefore),E("matRippleDisabled",n._disableScrollBefore||n.disableRipple),d(3),p("_mat-animation-noopable",n._animationsDisabled),d(2),T("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby||null),d(5),p("mat-mdc-tab-header-pagination-disabled",n._disableScrollAfter),E("matRippleDisabled",n._disableScrollAfter||n.disableRipple))},dependencies:[he,qt],styles:[`.mat-mdc-tab-header { +`],encapsulation:2,changeDetection:0})}return i})(),Ad=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[ur,j]})}return i})();var Nd=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[j]})}return i})();var at=["*"];function fr(i,s){i&1&&w(0)}var ca=["tabListContainer"],da=["tabList"],ma=["tabListInner"],ha=["nextPaginator"],ua=["previousPaginator"],pr=["content"];function br(i,s){}var _r=["tabBodyWrapper"],gr=["tabHeader"];function vr(i,s){}function yr(i,s){if(i&1&&ge(0,vr,0,0,"ng-template",12),i&2){let e=y().$implicit;E("cdkPortalOutlet",e.templateLabel)}}function xr(i,s){if(i&1&&$(0),i&2){let e=y().$implicit;se(e.textLabel)}}function kr(i,s){if(i&1){let e=Se();c(0,"div",7,2),k("click",function(){let n=ne(e),a=n.$implicit,o=n.$index,l=y(),v=we(1);return ie(l._handleClick(a,v,o))})("cdkFocusChange",function(n){let a=ne(e).$index,o=y();return ie(o._tabFocusChanged(n,a))}),A(2,"span",8)(3,"div",9),c(4,"span",10)(5,"span",11),F(6,yr,1,1,null,12)(7,xr,1,1),u()()()}if(i&2){let e=s.$implicit,t=s.$index,n=we(1),a=y();de(e.labelClass),p("mdc-tab--active",a.selectedIndex===t),E("id",a._getTabLabelId(e,t))("disabled",e.disabled)("fitInkBarToContent",a.fitInkBarToContent),T("tabIndex",a._getTabIndex(t))("aria-posinset",t+1)("aria-setsize",a._tabs.length)("aria-controls",a._getTabContentId(t))("aria-selected",a.selectedIndex===t)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),d(3),E("matRippleTrigger",n)("matRippleDisabled",e.disabled||a.disableRipple),d(3),O(e.templateLabel?6:7)}}function Cr(i,s){i&1&&w(0)}function wr(i,s){if(i&1){let e=Se();c(0,"mat-tab-body",13),k("_onCentered",function(){ne(e);let n=y();return ie(n._removeTabBodyWrapperHeight())})("_onCentering",function(n){ne(e);let a=y();return ie(a._setTabBodyWrapperHeight(n))})("_beforeCentering",function(n){ne(e);let a=y();return ie(a._bodyCentered(n))}),u()}if(i&2){let e=s.$implicit,t=s.$index,n=y();de(e.bodyClass),E("id",n._getTabContentId(t))("content",e.content)("position",e.position)("animationDuration",n.animationDuration)("preserveContent",n.preserveContent),T("tabindex",n.contentTabIndex!=null&&n.selectedIndex===t?n.contentTabIndex:null)("aria-labelledby",n._getTabLabelId(e,t))("aria-hidden",n.selectedIndex!==t)}}var Tr=["mat-tab-nav-bar",""],Mr=["mat-tab-link",""],Ir=new C("MatTabContent"),Sr=(()=>{class i{template=r(Ie);constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["","matTabContent",""]],features:[q([{provide:Ir,useExisting:i}])]})}return i})(),Dr=new C("MatTabLabel"),fa=new C("MAT_TAB"),Er=(()=>{class i extends Kn{_closestTab=r(fa,{optional:!0});static \u0275fac=(()=>{let e;return function(n){return(e||(e=Le(i)))(n||i)}})();static \u0275dir=I({type:i,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[q([{provide:Dr,useExisting:i}]),_e]})}return i})(),pa=new C("MAT_TAB_GROUP"),Rr=(()=>{class i{_viewContainerRef=r(He);_closestTabGroup=r(pa,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;id=null;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new f;position=null;origin=null;isActive=!1;constructor(){r(De).load(Re)}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new je(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-tab"]],contentQueries:function(t,n,a){if(t&1&&ve(a,Er,5)(a,Sr,7,Ie),t&2){let o;m(o=h())&&(n.templateLabel=o.first),m(o=h())&&(n._explicitContent=o.first)}},viewQuery:function(t,n){if(t&1&&W(Ie,7),t&2){let a;m(a=h())&&(n._implicitContent=a.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(t,n){t&2&&T("id",null)},inputs:{disabled:[2,"disabled","disabled",_],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[q([{provide:fa,useExisting:i}]),Ue],ngContentSelectors:at,decls:1,vars:0,template:function(t,n){t&1&&(H(),pt(0,fr,1,0,"ng-template"))},encapsulation:2})}return i})(),un="mdc-tab-indicator--active",ra="mdc-tab-indicator--no-transition",Pt=class{_items;_currentItem;constructor(s){this._items=s}hide(){this._items.forEach(s=>s.deactivateInkBar()),this._currentItem=void 0}alignToElement(s){let e=this._items.find(n=>n.elementRef.nativeElement===s),t=this._currentItem;if(e!==t&&(t?.deactivateInkBar(),e)){let n=t?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(n),this._currentItem=e}}},ba=(()=>{class i{_elementRef=r(D);_inkBarElement=null;_inkBarContentElement=null;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let t=this._elementRef.nativeElement;if(!e||!t.getBoundingClientRect||!this._inkBarContentElement){t.classList.add(un);return}let n=t.getBoundingClientRect(),a=e.width/n.width,o=e.left-n.left;t.classList.add(ra),this._inkBarContentElement.style.setProperty("transform",`translateX(${o}px) scaleX(${a})`),t.getBoundingClientRect(),t.classList.remove(ra),t.classList.add(un),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(un)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,t=this._inkBarElement=e.createElement("span"),n=this._inkBarContentElement=e.createElement("span");t.className="mdc-tab-indicator",n.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",t.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let e=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;e.appendChild(this._inkBarElement)}static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",_]}})}return i})();var _a=(()=>{class i extends ba{elementRef=r(D);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Le(i)))(n||i)}})();static \u0275dir=I({type:i,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,n){t&2&&(T("aria-disabled",!!n.disabled),p("mat-mdc-tab-disabled",n.disabled))},inputs:{disabled:[2,"disabled","disabled",_]},features:[_e]})}return i})(),sa={passive:!0},Fr=650,Or=100,ga=(()=>{class i{_elementRef=r(D);_changeDetectorRef=r(Y);_viewportRuler=r(lt);_dir=r(xe,{optional:!0});_ngZone=r(z);_platform=r(Ee);_sharedResizeObserver=r(Ft);_injector=r(X);_renderer=r(ae);_animationsDisabled=U();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new f;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged=!1;_keyManager;_currentTextContent;_stopScrolling=new f;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let t=isNaN(e)?0:e;this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}_selectedIndex=0;selectFocusedIndex=new g;indexFocused=new g;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),sa),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),sa))}ngAfterContentInit(){let e=this._dir?this._dir.change:ze("ltr"),t=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(wn(32),x(this._destroyed)),n=this._viewportRuler.change(150).pipe(x(this._destroyed)),a=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new yt(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),ce(a,{injector:this._injector}),G(e,n,t,this._items.changes,this._itemsResized()).pipe(x(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),a()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(o=>{this.indexFocused.emit(o),this._setTabFocus(o)})}_itemsResized(){return typeof ResizeObserver!="function"?vn:this._items.changes.pipe(te(this._items),Ae(e=>new Oe(t=>this._ngZone.runOutsideAngular(()=>{let n=new ResizeObserver(a=>t.next(a));return e.forEach(a=>n.observe(a.elementRef.nativeElement)),()=>{n.disconnect()}}))),Mn(1),Z(e=>e.some(t=>t.contentRect.width>0&&t.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._eventCleanups.forEach(e=>e()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!me(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let t=this._items.get(this.focusIndex);t&&!t.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e))}break;default:this._keyManager?.onKeydown(e)}}_onContentChanges(){let e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return this._items?!!this._items.toArray()[e]:!0}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();let t=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?t.scrollLeft=0:t.scrollLeft=t.scrollWidth-t.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let e=this.scrollDistance,t=this._getLayoutDirection()==="ltr"?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(t)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){let t=this._tabListContainer.nativeElement.offsetWidth,n=(e=="before"?-1:1)*t/3;return this._scrollTo(this._scrollDistance+n)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let t=this._items?this._items.toArray()[e]:null;if(!t)return;let n=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:a,offsetWidth:o}=t.elementRef.nativeElement,l,v;this._getLayoutDirection()=="ltr"?(l=a,v=l+o):(v=this._tabListInner.nativeElement.offsetWidth-a,l=v-o);let b=this.scrollDistance,V=this.scrollDistance+n;lV&&(this.scrollDistance+=Math.min(v-V,l-b))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,t=this._elementRef.nativeElement.offsetWidth,n=e-t>=5;n||(this.scrollDistance=0),n!==this._showPaginationControls&&(this._showPaginationControls=n,this._changeDetectorRef.markForCheck())}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){let e=this._tabListInner.nativeElement.scrollWidth,t=this._tabListContainer.nativeElement.offsetWidth;return e-t||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,t=e?e.elementRef.nativeElement:null;t?this._inkBar.alignToElement(t):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,t){t&&t.button!=null&&t.button!==0||(this._stopInterval(),Cn(Fr,Or).pipe(x(G(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:n,distance:a}=this._scrollHeader(e);(a===0||a>=n)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let t=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(t,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:t,distance:this._scrollDistance}}static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,inputs:{disablePagination:[2,"disablePagination","disablePagination",_],selectedIndex:[2,"selectedIndex","selectedIndex",Te]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return i})(),Ar=(()=>{class i extends ga{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new Pt(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Le(i)))(n||i)}})();static \u0275cmp=M({type:i,selectors:[["mat-tab-header"]],contentQueries:function(t,n,a){if(t&1&&ve(a,_a,4),t&2){let o;m(o=h())&&(n._items=o)}},viewQuery:function(t,n){if(t&1&&W(ca,7)(da,7)(ma,7)(ha,5)(ua,5),t&2){let a;m(a=h())&&(n._tabListContainer=a.first),m(a=h())&&(n._tabList=a.first),m(a=h())&&(n._tabListInner=a.first),m(a=h())&&(n._nextPaginator=a.first),m(a=h())&&(n._previousPaginator=a.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(t,n){t&2&&p("mat-mdc-tab-header-pagination-controls-enabled",n._showPaginationControls)("mat-mdc-tab-header-rtl",n._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",_]},features:[_e],ngContentSelectors:at,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(t,n){t&1&&(H(),c(0,"div",5,0),k("click",function(){return n._handlePaginatorClick("before")})("mousedown",function(o){return n._handlePaginatorPress("before",o)})("touchend",function(){return n._stopInterval()}),A(2,"div",6),u(),c(3,"div",7,1),k("keydown",function(o){return n._handleKeydown(o)}),c(5,"div",8,2),k("cdkObserveContent",function(){return n._onContentChanges()}),c(7,"div",9,3),w(9),u()()(),c(10,"div",10,4),k("mousedown",function(o){return n._handlePaginatorPress("after",o)})("click",function(){return n._handlePaginatorClick("after")})("touchend",function(){return n._stopInterval()}),A(12,"div",6),u()),t&2&&(p("mat-mdc-tab-header-pagination-disabled",n._disableScrollBefore),E("matRippleDisabled",n._disableScrollBefore||n.disableRipple),d(3),p("_mat-animation-noopable",n._animationsDisabled),d(2),T("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby||null),d(5),p("mat-mdc-tab-header-pagination-disabled",n._disableScrollAfter),E("matRippleDisabled",n._disableScrollAfter||n.disableRipple))},dependencies:[he,Ut],styles:[`.mat-mdc-tab-header { display: flex; overflow: hidden; position: relative; @@ -2337,7 +2337,7 @@ div.mat-mdc-select-panel { color: GrayText; } } -`],encapsulation:2})}return i})(),ga=new C("MAT_TABS_CONFIG"),sa=(()=>{class i extends Ze{_host=r(fn);_ngZone=r(z);_centeringSub=re.EMPTY;_leavingSub=re.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(te(this._host._isCenterPosition())).subscribe(e=>{this._host._content&&e&&!this.hasAttached()&&this._ngZone.run(()=>{Promise.resolve().then(),this.attach(this._host._content)})}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this._ngZone.run(()=>this.detach())})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["","matTabBodyHost",""]],features:[_e]})}return i})(),fn=(()=>{class i{_elementRef=r(D);_dir=r(xe,{optional:!0});_ngZone=r(z);_injector=r(X);_renderer=r(ae);_diAnimationsDisabled=q();_eventCleanups;_initialized=!1;_fallbackTimer;_positionIndex;_dirChangeSubscription=re.EMPTY;_position;_previousPosition;_onCentering=new g;_beforeCentering=new g;_afterLeavingCenter=new g;_onCentered=new g(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(){if(this._dir){let e=r(Y);this._dirChangeSubscription=this._dir.change.subscribe(t=>{this._computePositionAnimationState(t),e.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),ce(()=>this._onCentering.emit(this._elementRef.nativeElement.clientHeight),{injector:this._injector})),this._initialized=!0}ngOnDestroy(){clearTimeout(this._fallbackTimer),this._eventCleanups?.forEach(e=>e()),this._dirChangeSubscription.unsubscribe()}_bindTransitionEvents(){this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement,t=n=>{n.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),n.type==="transitionend"&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(e,"transitionstart",n=>{n.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(e,"transitionend",t),this._renderer.listen(e,"transitioncancel",t)]})}_transitionStarted(){clearTimeout(this._fallbackTimer);let e=this._position==="center";this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_transitionDone(){this._position==="center"?this._onCentered.emit():this._previousPosition==="center"&&this._afterLeavingCenter.emit()}_setActiveClass(e){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",e)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(){return this._positionIndex===0}_computePositionAnimationState(e=this._getLayoutDirection()){this._previousPosition=this._position,this._positionIndex<0?this._position=e=="ltr"?"left":"right":this._positionIndex>0?this._position=e=="ltr"?"right":"left":this._position="center",this._animationsDisabled()?this._simulateTransitionEvents():this._initialized&&(this._position==="center"||this._previousPosition==="center")&&(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular(()=>setTimeout(()=>this._simulateTransitionEvents(),100)))}_simulateTransitionEvents(){this._transitionStarted(),ce(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-tab-body"]],viewQuery:function(t,n){if(t&1&&W(sa,5)(fr,5),t&2){let a;m(a=h())&&(n._portalHost=a.first),m(a=h())&&(n._contentElement=a.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(t,n){t&2&&T("inert",n._position==="center"?null:"")},inputs:{_content:[0,"content","_content"],animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(t,n){t&1&&(c(0,"div",1,0),ge(2,pr,0,0,"ng-template",2),u()),t&2&&p("mat-tab-body-content-left",n._position==="left")("mat-tab-body-content-right",n._position==="right")("mat-tab-body-content-can-animate",n._position==="center"||n._previousPosition==="center")},dependencies:[sa,Un],styles:[`.mat-mdc-tab-body { +`],encapsulation:2})}return i})(),va=new C("MAT_TABS_CONFIG"),la=(()=>{class i extends Ze{_host=r(fn);_ngZone=r(z);_centeringSub=re.EMPTY;_leavingSub=re.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(te(this._host._isCenterPosition())).subscribe(e=>{this._host._content&&e&&!this.hasAttached()&&this._ngZone.run(()=>{Promise.resolve().then(),this.attach(this._host._content)})}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this._ngZone.run(()=>this.detach())})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=I({type:i,selectors:[["","matTabBodyHost",""]],features:[_e]})}return i})(),fn=(()=>{class i{_elementRef=r(D);_dir=r(xe,{optional:!0});_ngZone=r(z);_injector=r(X);_renderer=r(ae);_diAnimationsDisabled=U();_eventCleanups;_initialized=!1;_fallbackTimer;_positionIndex;_dirChangeSubscription=re.EMPTY;_position;_previousPosition;_onCentering=new g;_beforeCentering=new g;_afterLeavingCenter=new g;_onCentered=new g(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(){if(this._dir){let e=r(Y);this._dirChangeSubscription=this._dir.change.subscribe(t=>{this._computePositionAnimationState(t),e.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),ce(()=>this._onCentering.emit(this._elementRef.nativeElement.clientHeight),{injector:this._injector})),this._initialized=!0}ngOnDestroy(){clearTimeout(this._fallbackTimer),this._eventCleanups?.forEach(e=>e()),this._dirChangeSubscription.unsubscribe()}_bindTransitionEvents(){this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement,t=n=>{n.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),n.type==="transitionend"&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(e,"transitionstart",n=>{n.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(e,"transitionend",t),this._renderer.listen(e,"transitioncancel",t)]})}_transitionStarted(){clearTimeout(this._fallbackTimer);let e=this._position==="center";this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_transitionDone(){this._position==="center"?this._onCentered.emit():this._previousPosition==="center"&&this._afterLeavingCenter.emit()}_setActiveClass(e){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",e)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(){return this._positionIndex===0}_computePositionAnimationState(e=this._getLayoutDirection()){this._previousPosition=this._position,this._positionIndex<0?this._position=e=="ltr"?"left":"right":this._positionIndex>0?this._position=e=="ltr"?"right":"left":this._position="center",this._animationsDisabled()?this._simulateTransitionEvents():this._initialized&&(this._position==="center"||this._previousPosition==="center")&&(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular(()=>setTimeout(()=>this._simulateTransitionEvents(),100)))}_simulateTransitionEvents(){this._transitionStarted(),ce(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-tab-body"]],viewQuery:function(t,n){if(t&1&&W(la,5)(pr,5),t&2){let a;m(a=h())&&(n._portalHost=a.first),m(a=h())&&(n._contentElement=a.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(t,n){t&2&&T("inert",n._position==="center"?null:"")},inputs:{_content:[0,"content","_content"],animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(t,n){t&1&&(c(0,"div",1,0),ge(2,br,0,0,"ng-template",2),u()),t&2&&p("mat-tab-body-content-left",n._position==="left")("mat-tab-body-content-right",n._position==="right")("mat-tab-body-content-can-animate",n._position==="center"||n._previousPosition==="center")},dependencies:[la,qn],styles:[`.mat-mdc-tab-body { top: 0; left: 0; right: 0; @@ -2389,7 +2389,7 @@ div.mat-mdc-select-panel { .mat-tab-body-content-right { transform: translate3d(100%, 0, 0); } -`],encapsulation:2})}return i})(),ym=(()=>{class i{_elementRef=r(D);_changeDetectorRef=r(Y);_ngZone=r(z);_tabsSubscription=re.EMPTY;_tabLabelSubscription=re.EMPTY;_tabBodySubscription=re.EMPTY;_diAnimationsDisabled=q();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new ft;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;color;get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=e,this._changeDetectorRef.markForCheck()}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=isNaN(e)?null:e}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration}set animationDuration(e){let t=e+"";this._animationDuration=/^\d+$/.test(t)?e+"ms":t}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}_contentTabIndex=null;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let t=this._elementRef.nativeElement.classList;t.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&t.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new g;focusChange=new g;animationDone=new g;selectedTabChange=new g(!0);_groupId;_isServer=!r(Ee).isBrowser;constructor(){let e=r(ga,{optional:!0});this._groupId=r(K).getId("mat-tab-group-"),this.animationDuration=e&&e.animationDuration?e.animationDuration:"500ms",this.disablePagination=e&&e.disablePagination!=null?e.disablePagination:!1,this.dynamicHeight=e&&e.dynamicHeight!=null?e.dynamicHeight:!1,e?.contentTabIndex!=null&&(this.contentTabIndex=e.contentTabIndex),this.preserveContent=!!e?.preserveContent,this.fitInkBarToContent=e&&e.fitInkBarToContent!=null?e.fitInkBarToContent:!1,this.stretchTabs=e&&e.stretchTabs!=null?e.stretchTabs:!0,this.alignTabs=e&&e.alignTabs!=null?e.alignTabs:null}ngAfterContentChecked(){let e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){let t=this._selectedIndex==null;if(!t){this.selectedTabChange.emit(this._createChangeEvent(e));let n=this._tabBodyWrapper.nativeElement;n.style.minHeight=n.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((n,a)=>n.isActive=a===e),t||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((t,n)=>{t.position=n-e,this._selectedIndex!=null&&t.position==0&&!t.origin&&(t.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){let t=this._tabs.toArray(),n;for(let a=0;a{t[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}ngAfterViewInit(){this._tabBodySubscription=this._tabBodies.changes.subscribe(()=>this._bodyCentered(!0))}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(te(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(t=>t._closestTabGroup===this||!t._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe(),this._tabBodySubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){let t=this._tabHeader;t&&(t.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let t=new pn;return t.index=e,this._tabs&&this._tabs.length&&(t.tab=this._tabs.toArray()[e]),t}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=G(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e,t){return e.id||`${this._groupId}-label-${t}`}_getTabContentId(e){return`${this._groupId}-content-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=e;return}let t=this._tabBodyWrapper.nativeElement;t.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(t.style.height=e+"px")}_removeTabBodyWrapperHeight(){let e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this._ngZone.run(()=>this.animationDone.emit())}_handleClick(e,t,n){t.focusIndex=n,e.disabled||(this.selectedIndex=n)}_getTabIndex(e){let t=this._lastFocusedTabIndex??this.selectedIndex;return e===t?0:-1}_tabFocusChanged(e,t){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=t)}_bodyCentered(e){e&&this._tabBodies?.forEach((t,n)=>t._setActiveClass(n===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-tab-group"]],contentQueries:function(t,n,a){if(t&1&&ve(a,Er,5),t&2){let o;m(o=h())&&(n._allTabs=o)}},viewQuery:function(t,n){if(t&1&&W(br,5)(_r,5)(fn,5),t&2){let a;m(a=h())&&(n._tabBodyWrapper=a.first),m(a=h())&&(n._tabHeader=a.first),m(a=h())&&(n._tabBodies=a)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(t,n){t&2&&(T("mat-align-tabs",n.alignTabs),de("mat-"+(n.color||"primary")),Gt("--mat-tab-animation-duration",n.animationDuration),p("mat-mdc-tab-group-dynamic-height",n.dynamicHeight)("mat-mdc-tab-group-inverted-header",n.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",n.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",_],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",_],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",_],selectedIndex:[2,"selectedIndex","selectedIndex",Te],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",Te],disablePagination:[2,"disablePagination","disablePagination",_],disableRipple:[2,"disableRipple","disableRipple",_],preserveContent:[2,"preserveContent","preserveContent",_],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[U([{provide:fa,useExisting:i}])],ngContentSelectors:at,decls:9,vars:8,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination","aria-label","aria-labelledby"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","class","content","position","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","_beforeCentering","id","content","position","animationDuration","preserveContent"]],template:function(t,n){t&1&&(H(),c(0,"mat-tab-header",3,0),k("indexFocused",function(o){return n._focusChanged(o)})("selectFocusedIndex",function(o){return n.selectedIndex=o}),zt(2,xr,8,17,"div",4,Bt),u(),F(4,kr,1,0),c(5,"div",5,1),zt(7,Cr,1,10,"mat-tab-body",6,Bt),u()),t&2&&(E("selectedIndex",n.selectedIndex||0)("disableRipple",n.disableRipple)("disablePagination",n.disablePagination),Pn("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby),d(2),Ht(n._tabs),d(2),O(n._isServer?4:-1),d(),p("_mat-animation-noopable",n._animationsDisabled()),d(2),Ht(n._tabs))},dependencies:[Or,ba,ri,he,Ze,fn],styles:[`.mdc-tab { +`],encapsulation:2})}return i})(),xm=(()=>{class i{_elementRef=r(D);_changeDetectorRef=r(Y);_ngZone=r(z);_tabsSubscription=re.EMPTY;_tabLabelSubscription=re.EMPTY;_tabBodySubscription=re.EMPTY;_diAnimationsDisabled=U();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new ft;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;color;get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=e,this._changeDetectorRef.markForCheck()}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=isNaN(e)?null:e}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration}set animationDuration(e){let t=e+"";this._animationDuration=/^\d+$/.test(t)?e+"ms":t}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}_contentTabIndex=null;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let t=this._elementRef.nativeElement.classList;t.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&t.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new g;focusChange=new g;animationDone=new g;selectedTabChange=new g(!0);_groupId;_isServer=!r(Ee).isBrowser;constructor(){let e=r(va,{optional:!0});this._groupId=r(K).getId("mat-tab-group-"),this.animationDuration=e&&e.animationDuration?e.animationDuration:"500ms",this.disablePagination=e&&e.disablePagination!=null?e.disablePagination:!1,this.dynamicHeight=e&&e.dynamicHeight!=null?e.dynamicHeight:!1,e?.contentTabIndex!=null&&(this.contentTabIndex=e.contentTabIndex),this.preserveContent=!!e?.preserveContent,this.fitInkBarToContent=e&&e.fitInkBarToContent!=null?e.fitInkBarToContent:!1,this.stretchTabs=e&&e.stretchTabs!=null?e.stretchTabs:!0,this.alignTabs=e&&e.alignTabs!=null?e.alignTabs:null}ngAfterContentChecked(){let e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){let t=this._selectedIndex==null;if(!t){this.selectedTabChange.emit(this._createChangeEvent(e));let n=this._tabBodyWrapper.nativeElement;n.style.minHeight=n.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((n,a)=>n.isActive=a===e),t||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((t,n)=>{t.position=n-e,this._selectedIndex!=null&&t.position==0&&!t.origin&&(t.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){let t=this._tabs.toArray(),n;for(let a=0;a{t[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}ngAfterViewInit(){this._tabBodySubscription=this._tabBodies.changes.subscribe(()=>this._bodyCentered(!0))}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(te(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(t=>t._closestTabGroup===this||!t._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe(),this._tabBodySubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){let t=this._tabHeader;t&&(t.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let t=new pn;return t.index=e,this._tabs&&this._tabs.length&&(t.tab=this._tabs.toArray()[e]),t}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=G(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e,t){return e.id||`${this._groupId}-label-${t}`}_getTabContentId(e){return`${this._groupId}-content-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=e;return}let t=this._tabBodyWrapper.nativeElement;t.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(t.style.height=e+"px")}_removeTabBodyWrapperHeight(){let e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this._ngZone.run(()=>this.animationDone.emit())}_handleClick(e,t,n){t.focusIndex=n,e.disabled||(this.selectedIndex=n)}_getTabIndex(e){let t=this._lastFocusedTabIndex??this.selectedIndex;return e===t?0:-1}_tabFocusChanged(e,t){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=t)}_bodyCentered(e){e&&this._tabBodies?.forEach((t,n)=>t._setActiveClass(n===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-tab-group"]],contentQueries:function(t,n,a){if(t&1&&ve(a,Rr,5),t&2){let o;m(o=h())&&(n._allTabs=o)}},viewQuery:function(t,n){if(t&1&&W(_r,5)(gr,5)(fn,5),t&2){let a;m(a=h())&&(n._tabBodyWrapper=a.first),m(a=h())&&(n._tabHeader=a.first),m(a=h())&&(n._tabBodies=a)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(t,n){t&2&&(T("mat-align-tabs",n.alignTabs),de("mat-"+(n.color||"primary")),Gt("--mat-tab-animation-duration",n.animationDuration),p("mat-mdc-tab-group-dynamic-height",n.dynamicHeight)("mat-mdc-tab-group-inverted-header",n.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",n.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",_],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",_],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",_],selectedIndex:[2,"selectedIndex","selectedIndex",Te],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",Te],disablePagination:[2,"disablePagination","disablePagination",_],disableRipple:[2,"disableRipple","disableRipple",_],preserveContent:[2,"preserveContent","preserveContent",_],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[q([{provide:pa,useExisting:i}])],ngContentSelectors:at,decls:9,vars:8,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination","aria-label","aria-labelledby"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","class","content","position","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","_beforeCentering","id","content","position","animationDuration","preserveContent"]],template:function(t,n){t&1&&(H(),c(0,"mat-tab-header",3,0),k("indexFocused",function(o){return n._focusChanged(o)})("selectFocusedIndex",function(o){return n.selectedIndex=o}),zt(2,kr,8,17,"div",4,Bt),u(),F(4,Cr,1,0),c(5,"div",5,1),zt(7,wr,1,10,"mat-tab-body",6,Bt),u()),t&2&&(E("selectedIndex",n.selectedIndex||0)("disableRipple",n.disableRipple)("disablePagination",n.disablePagination),Pn("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby),d(2),Ht(n._tabs),d(2),O(n._isServer?4:-1),d(),p("_mat-animation-noopable",n._animationsDisabled()),d(2),Ht(n._tabs))},dependencies:[Ar,_a,ri,he,Ze,fn],styles:[`.mdc-tab { min-width: 90px; padding: 0 24px; display: flex; @@ -2610,7 +2610,7 @@ div.mat-mdc-select-panel { transition: none !important; animation: none !important; } -`],encapsulation:2})}return i})(),pn=class{index;tab},Ar=(()=>{class i extends _a{_focusedItem=Q(null);get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(e){this._fitInkBarToContent.next(e),this._changeDetectorRef.markForCheck()}_fitInkBarToContent=new Ye(!1);stretchTabs=!0;get animationDuration(){return this._animationDuration}set animationDuration(e){let t=e+"";this._animationDuration=/^\d+$/.test(t)?e+"ms":t}_animationDuration;_items;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let t=this._elementRef.nativeElement.classList;t.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&t.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=Q(!1);color="primary";tabPanel;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;constructor(){let e=r(ga,{optional:!0});super(),this.disablePagination=e&&e.disablePagination!=null?e.disablePagination:!1,this.fitInkBarToContent=e&&e.fitInkBarToContent!=null?e.fitInkBarToContent:!1,this.stretchTabs=e&&e.stretchTabs!=null?e.stretchTabs:!0}_itemSelected(){}ngAfterContentInit(){this._inkBar=new Pt(this._items),this._items.changes.pipe(te(null),x(this._destroyed)).subscribe(()=>this.updateActiveLink()),super.ngAfterContentInit(),this._keyManager.change.pipe(te(null),x(this._destroyed)).subscribe(()=>this._focusedItem.set(this._keyManager?.activeItem||null))}ngAfterViewInit(){this.tabPanel,super.ngAfterViewInit()}updateActiveLink(){if(!this._items)return;let e=this._items.toArray();for(let t=0;t{class i extends ga{_focusedItem=Q(null);get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(e){this._fitInkBarToContent.next(e),this._changeDetectorRef.markForCheck()}_fitInkBarToContent=new Ye(!1);stretchTabs=!0;get animationDuration(){return this._animationDuration}set animationDuration(e){let t=e+"";this._animationDuration=/^\d+$/.test(t)?e+"ms":t}_animationDuration;_items;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let t=this._elementRef.nativeElement.classList;t.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&t.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=Q(!1);color="primary";tabPanel;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;constructor(){let e=r(va,{optional:!0});super(),this.disablePagination=e&&e.disablePagination!=null?e.disablePagination:!1,this.fitInkBarToContent=e&&e.fitInkBarToContent!=null?e.fitInkBarToContent:!1,this.stretchTabs=e&&e.stretchTabs!=null?e.stretchTabs:!0}_itemSelected(){}ngAfterContentInit(){this._inkBar=new Pt(this._items),this._items.changes.pipe(te(null),x(this._destroyed)).subscribe(()=>this.updateActiveLink()),super.ngAfterContentInit(),this._keyManager.change.pipe(te(null),x(this._destroyed)).subscribe(()=>this._focusedItem.set(this._keyManager?.activeItem||null))}ngAfterViewInit(){this.tabPanel,super.ngAfterViewInit()}updateActiveLink(){if(!this._items)return;let e=this._items.toArray();for(let t=0;t .mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron, .mat-mdc-tab-nav-bar.mat-tabs-with-background > .mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron { color: var(--mat-tab-foreground-color); } -`],encapsulation:2})}return i})(),Lr=(()=>{class i extends pa{_tabNavBar=r(Ar);elementRef=r(D);_focusMonitor=r(Ve);_destroyed=new f;_isActive=!1;_tabIndex=ye(()=>this._tabNavBar._focusedItem()===this?this.tabIndex:-1);get active(){return this._isActive}set active(e){e!==this._isActive&&(this._isActive=e,this._tabNavBar.updateActiveLink())}disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=Q(!1);tabIndex=0;rippleConfig;get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}id=r(K).getId("mat-tab-link-");constructor(){super(),r(De).load(Re);let e=r(Kt,{optional:!0}),t=r(new Ke("tabindex"),{optional:!0});this.rippleConfig=e||{},this.tabIndex=t==null?0:parseInt(t)||0,q()&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0}),this._tabNavBar._fitInkBarToContent.pipe(x(this._destroyed)).subscribe(n=>{this.fitInkBarToContent=n})}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),super.ngOnDestroy(),this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(this.disabled?e.preventDefault():this._tabNavBar.tabPanel&&(e.keyCode===32&&e.preventDefault(),this.elementRef.nativeElement.click()))}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(t,n){t&1&&k("focus",function(){return n._handleFocus()})("keydown",function(o){return n._handleKeydown(o)}),t&2&&(T("aria-controls",n._getAriaControls())("aria-current",n._getAriaCurrent())("aria-disabled",n.disabled)("aria-selected",n._getAriaSelected())("id",n.id)("tabIndex",n._tabIndex())("role",n._getRole()),p("mat-mdc-tab-disabled",n.disabled)("mdc-tab--active",n.active))},inputs:{active:[2,"active","active",_],disabled:[2,"disabled","disabled",_],disableRipple:[2,"disableRipple","disableRipple",_],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Te(e)],id:"id"},exportAs:["matTabLink"],features:[_e],attrs:Tr,ngContentSelectors:at,decls:5,vars:2,consts:[[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"]],template:function(t,n){t&1&&(H(),A(0,"span",0)(1,"div",1),c(2,"span",2)(3,"span",3),w(4),u()()),t&2&&(d(),E("matRippleTrigger",n.elementRef.nativeElement)("matRippleDisabled",n.rippleDisabled))},dependencies:[he],styles:[`.mat-mdc-tab-link { +`],encapsulation:2})}return i})(),Pr=(()=>{class i extends ba{_tabNavBar=r(Lr);elementRef=r(D);_focusMonitor=r(Ve);_destroyed=new f;_isActive=!1;_tabIndex=ye(()=>this._tabNavBar._focusedItem()===this?this.tabIndex:-1);get active(){return this._isActive}set active(e){e!==this._isActive&&(this._isActive=e,this._tabNavBar.updateActiveLink())}disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=Q(!1);tabIndex=0;rippleConfig;get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}id=r(K).getId("mat-tab-link-");constructor(){super(),r(De).load(Re);let e=r(Kt,{optional:!0}),t=r(new Ke("tabindex"),{optional:!0});this.rippleConfig=e||{},this.tabIndex=t==null?0:parseInt(t)||0,U()&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0}),this._tabNavBar._fitInkBarToContent.pipe(x(this._destroyed)).subscribe(n=>{this.fitInkBarToContent=n})}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),super.ngOnDestroy(),this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(this.disabled?e.preventDefault():this._tabNavBar.tabPanel&&(e.keyCode===32&&e.preventDefault(),this.elementRef.nativeElement.click()))}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(t,n){t&1&&k("focus",function(){return n._handleFocus()})("keydown",function(o){return n._handleKeydown(o)}),t&2&&(T("aria-controls",n._getAriaControls())("aria-current",n._getAriaCurrent())("aria-disabled",n.disabled)("aria-selected",n._getAriaSelected())("id",n.id)("tabIndex",n._tabIndex())("role",n._getRole()),p("mat-mdc-tab-disabled",n.disabled)("mdc-tab--active",n.active))},inputs:{active:[2,"active","active",_],disabled:[2,"disabled","disabled",_],disableRipple:[2,"disableRipple","disableRipple",_],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:Te(e)],id:"id"},exportAs:["matTabLink"],features:[_e],attrs:Mr,ngContentSelectors:at,decls:5,vars:2,consts:[[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"]],template:function(t,n){t&1&&(H(),A(0,"span",0)(1,"div",1),c(2,"span",2)(3,"span",3),w(4),u()()),t&2&&(d(),E("matRippleTrigger",n.elementRef.nativeElement)("matRippleDisabled",n.rippleDisabled))},dependencies:[he],styles:[`.mat-mdc-tab-link { -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; @@ -2922,7 +2922,7 @@ div.mat-mdc-select-panel { min-width: 72px; } } -`],encapsulation:2,changeDetection:0})}return i})(),xm=(()=>{class i{id=r(K).getId("mat-tab-nav-panel-");_activeTabId;static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(t,n){t&2&&T("aria-labelledby",n._activeTabId)("id",n.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:at,decls:1,vars:0,template:function(t,n){t&1&&(H(),w(0))},encapsulation:2,changeDetection:0})}return i})(),km=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[j]})}return i})();var Pr=new C("DEFAULT_THEME_TOKEN",{providedIn:"root",factory:()=>"indigo-pink"}),va=(()=>{class i{document;_darkMode$=new Ye(!1);darkMode$=this._darkMode$.asObservable();themeChanged=new g;mapThemeChanged=new g;currentTheme="indigo-pink";currentMapTheme="auto";savedTheme="indigo-pink";savedMapTheme="auto";availableThemes=[{key:"deeppurple-amber",label:"Deep Purple & Amber",type:"light",primaryColor:"#6750A4"},{key:"indigo-pink",label:"Indigo & Pink",type:"light",primaryColor:"#3F51B5"},{key:"magenta-violet",label:"Magenta & Violet",type:"light",primaryColor:"#D81B60"},{key:"rose-red",label:"Rose & Red",type:"light",primaryColor:"#E91E63"},{key:"pink-bluegrey",label:"Pink & Bluegrey",type:"dark",primaryColor:"#E91E63"},{key:"purple-green",label:"Purple & Green",type:"dark",primaryColor:"#7E57C2"},{key:"azure-blue",label:"Azure & Blue",type:"dark",primaryColor:"#0078D4"},{key:"cyan-orange",label:"Cyan & Orange",type:"dark",primaryColor:"#00B7C3"}];availableMapBackgrounds=[{key:"auto",label:"Follow global theme",background:"",textColor:"",type:"light"},{key:"light-1",label:"Cyan Sky",background:"radial-gradient(ellipse at 20% 20%, #B2EBF2 0%, #E0F7FA 70%)",textColor:"#006064",type:"light"},{key:"light-2",label:"Blue Sky",background:"radial-gradient(ellipse at 20% 20%, #BBDEFB 0%, #E3F2FD 70%)",textColor:"#1565C0",type:"light"},{key:"light-3",label:"Cloud Gray",background:"radial-gradient(ellipse at 20% 20%, #F5F5F5 0%, #FAFAFA 70%)",textColor:"#424242",type:"light"},{key:"light-4",label:"Lavender",background:"radial-gradient(ellipse at 20% 20%, #E1BEE7 0%, #F3E5F5 70%)",textColor:"#4A148C",type:"light"},{key:"dark-1",label:"Deep Cyan",background:"linear-gradient(135deg, #006064 0%, #00838F 50%, #006064 100%)",textColor:"#FFFFFF",type:"dark"},{key:"dark-2",label:"Deep Blue",background:"linear-gradient(135deg, #1565C0 0%, #1976D2 50%, #1565C0 100%)",textColor:"#FFFFFF",type:"dark"},{key:"dark-3",label:"Charcoal",background:"linear-gradient(135deg, #424242 0%, #616161 50%, #424242 100%)",textColor:"#FFFFFF",type:"dark"},{key:"dark-4",label:"Deep Purple",background:"linear-gradient(135deg, #4A148C 0%, #6A1B9A 50%, #4A148C 100%)",textColor:"#FFFFFF",type:"dark"}];constructor(e,t){this.document=e;let n=localStorage.getItem("theme");this.currentTheme=n||t,this.savedTheme=this.currentTheme;let a=localStorage.getItem("mapTheme");this.currentMapTheme=a||"auto",this.savedMapTheme=this.currentMapTheme,this.applyTheme(this.currentTheme)}getCurrentTheme(){return this.currentTheme}getThemeType(){return this.isDarkTheme(this.currentTheme)?"dark":"light"}getActualMapTheme(){if(this.savedMapTheme==="auto")return this.getThemeType();let e=this.availableMapBackgrounds.find(t=>t.key===this.savedMapTheme);return e?e.type:"light"}getActualTheme(){return this.getThemeType()}isDarkTheme(e){return e==="pink-bluegrey"||e==="purple-green"||e==="azure-blue"||e==="cyan-orange"}setTheme(e){this.currentTheme!==e&&(this.currentTheme=e,this.savedTheme=e,this.applyTheme(e),this.saveThemePreference(e),this.themeChanged.emit(e),this.currentMapTheme==="auto"&&this.mapThemeChanged.emit(e),this._darkMode$.next(this.isDarkTheme(e)))}toggleTheme(){let e=this.getThemeType(),t;e==="dark"?t=this.availableThemes.find(n=>n.type==="light")?.key||"deeppurple-amber":t=this.availableThemes.find(n=>n.type==="dark")?.key||"pink-bluegrey",this.setTheme(t)}setDarkMode(e){let t=e?"pink-bluegrey":"indigo-pink";this.setTheme(t)}setMapTheme(e){this.currentMapTheme=e,this.savedMapTheme=e,localStorage.setItem("mapTheme",e),this.mapThemeChanged.emit(this.getActualMapTheme())}restoreTheme(){let e=localStorage.getItem("theme");e&&this.availableThemes.some(t=>t.key===e)&&this.setTheme(e)}applyTheme(e){let t=this.document.documentElement;t.classList.remove("theme-deeppurple-amber","theme-indigo-pink","theme-magenta-violet","theme-rose-red","theme-pink-bluegrey","theme-purple-green","theme-azure-blue","theme-cyan-orange"),t.classList.add(`theme-${e}`)}saveThemePreference(e){localStorage.setItem("theme",e)}isDarkMode(){return this.isDarkTheme(this.currentTheme)}isLightMode(){return!this.isDarkTheme(this.currentTheme)}getCanvasLabelColor(){return this.getActualMapTheme()==="dark"?"#FFFFFF":"#000000"}getCanvasLinkColor(){return this.getActualMapTheme()==="dark"?"#FFFFFF":"#000000"}static \u0275fac=function(t){return new(t||i)(J(be),J(Pr))};static \u0275prov=P({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var ya=(()=>{class i{themeService;symbolScalingSubject=new f;isScrollDisabled=new f;isMapLocked=new f;isTopologySummaryVisible=!0;isLogConsoleVisible=!1;isLayerNumberVisible=!1;isItemLockStatusVisible=!1;logConsoleSubject=new f;mapRenderedEmitter=new g;openReadme;showInterfaceLabels=!0;integrateLinkLabelsToLinks=!0;openConsolesInWidget=!1;defaultSceneWidth;defaultSceneHeight;defaultGridSize;defaultDrawingGridSize;defaultShowGrid;defaultSnapToGrid;defaultLabelStyle;defaultNoteStyle;defaultLinkStyle;static FONT_FAMILIES=["TypeWriter","Noto Sans","Arial","Courier New","Times New Roman","Helvetica","Verdana","Georgia","Comic Sans MS"];static FONT_WEIGHTS=["normal","bold"];static LINK_STYLE_NAMES=["Invisible","Solid","Dash","Dot","Dash Dot","Dash Dot Dot"];static LINK_TYPES=[{label:"Straight",value:"straight"},{label:"Bezier",value:"bezier"},{label:"Flowchart",value:"flowchart"},{label:"StateMachine",value:"statemachine"},{label:"Freeform",value:"freeform"}];static DEFAULT_SCENE_WIDTH=2e3;static DEFAULT_SCENE_HEIGHT=1e3;static DEFAULT_GRID_SIZE=75;static DEFAULT_DRAWING_GRID_SIZE=25;static DEFAULT_SHOW_GRID=!1;static DEFAULT_SNAP_TO_GRID=!1;defaultLabelStyleFallback;defaultNoteStyleFallback;defaultLinkStyleFallback;static SCENE_WIDTH_KEY="defaultSceneWidth";static SCENE_HEIGHT_KEY="defaultSceneHeight";static GRID_SIZE_KEY="defaultGridSize";static DRAWING_GRID_SIZE_KEY="defaultDrawingGridSize";static SHOW_GRID_KEY="defaultShowGrid";static SNAP_TO_GRID_KEY="defaultSnapToGrid";static LABEL_STYLE_KEY="defaultLabelStyle";static NOTE_STYLE_KEY="defaultNoteStyle";static LINK_STYLE_KEY="defaultLinkStyle";constructor(e){this.themeService=e,this.defaultLabelStyleFallback={fontFamily:"TypeWriter",fontSize:10,fontWeight:"bold",color:this.themeService.getCanvasLabelColor()},this.defaultNoteStyleFallback={fontFamily:"Noto Sans",fontSize:11,fontWeight:"bold",color:this.themeService.getCanvasLabelColor()},this.defaultLinkStyleFallback={color:this.themeService.getCanvasLinkColor(),width:2,type:1,link_type:"straight"},this.isLayerNumberVisible=localStorage.getItem("layersVisibility")==="true",localStorage.getItem("integrateLinkLabelsToLinks")&&(this.integrateLinkLabelsToLinks=localStorage.getItem("integrateLinkLabelsToLinks")==="true"),localStorage.getItem("openConsolesInWidget")&&(this.openConsolesInWidget=localStorage.getItem("openConsolesInWidget")==="true"),localStorage.getItem("symbolScaling")||localStorage.setItem("symbolScaling","true"),localStorage.getItem("openReadme")?this.openReadme=localStorage.getItem("openReadme")==="true":localStorage.setItem("openReadme","false"),localStorage.getItem("showInterfaceLabels")?this.showInterfaceLabels=localStorage.getItem("showInterfaceLabels")==="true":localStorage.setItem("showInterfaceLabels","true"),this.defaultSceneWidth=this.readNumber(i.SCENE_WIDTH_KEY,i.DEFAULT_SCENE_WIDTH),this.defaultSceneHeight=this.readNumber(i.SCENE_HEIGHT_KEY,i.DEFAULT_SCENE_HEIGHT),this.defaultGridSize=this.readNumber(i.GRID_SIZE_KEY,i.DEFAULT_GRID_SIZE),this.defaultDrawingGridSize=this.readNumber(i.DRAWING_GRID_SIZE_KEY,i.DEFAULT_DRAWING_GRID_SIZE),this.defaultShowGrid=this.readBoolean(i.SHOW_GRID_KEY,i.DEFAULT_SHOW_GRID),this.defaultSnapToGrid=this.readBoolean(i.SNAP_TO_GRID_KEY,i.DEFAULT_SNAP_TO_GRID),this.defaultLabelStyle=this.readTextStyle(i.LABEL_STYLE_KEY,this.defaultLabelStyleFallback),this.defaultNoteStyle=this.readTextStyle(i.NOTE_STYLE_KEY,this.defaultNoteStyleFallback),this.defaultLinkStyle=this.readLinkStyle(i.LINK_STYLE_KEY,this.defaultLinkStyleFallback)}readNumber(e,t){let n=localStorage.getItem(e);if(n===null)return t;let a=parseInt(n,10);return Number.isFinite(a)&&a>=0?a:t}readBoolean(e,t){let n=localStorage.getItem(e);return n===null?t:n==="true"}readTextStyle(e,t){let n=localStorage.getItem(e);if(!n)return S({},t);try{return this.normalizeTextStyle(JSON.parse(n),t)}catch{return S({},t)}}readLinkStyle(e,t){let n=localStorage.getItem(e);if(!n)return S({},t);try{return this.normalizeLinkStyle(JSON.parse(n),t)}catch{return S({},t)}}normalizeTextStyle(e,t){let n=typeof e=="object"&&e!==null?e:{},a=Number(n.fontSize);return{fontFamily:i.FONT_FAMILIES.includes(n.fontFamily)?n.fontFamily:t.fontFamily,fontSize:Number.isFinite(a)?Math.min(200,Math.max(1,Math.round(a*2)/2)):t.fontSize,fontWeight:i.FONT_WEIGHTS.includes(n.fontWeight)?n.fontWeight:t.fontWeight,color:this.normalizeColor(n.color,t.color)}}normalizeLinkStyle(e,t){let n=typeof e=="object"&&e!==null?e:{},a=Number(n.width),o=Number(n.type),l=i.LINK_TYPES.map(v=>v.value);return{color:this.normalizeColor(n.color,t.color),width:Number.isFinite(a)?Math.min(20,Math.max(1,Math.round(a))):t.width,type:Number.isInteger(o)&&o>=0&&o=0?Math.round(e):i.DEFAULT_SCENE_WIDTH;this.defaultSceneWidth=t,localStorage.setItem(i.SCENE_WIDTH_KEY,String(t))}getDefaultSceneHeight(){return this.defaultSceneHeight}setDefaultSceneHeight(e){let t=Number.isFinite(e)&&e>=0?Math.round(e):i.DEFAULT_SCENE_HEIGHT;this.defaultSceneHeight=t,localStorage.setItem(i.SCENE_HEIGHT_KEY,String(t))}getDefaultGridSize(){return this.defaultGridSize}setDefaultGridSize(e){let t=Number.isFinite(e)&&e>=0?Math.round(e):i.DEFAULT_GRID_SIZE;this.defaultGridSize=t,localStorage.setItem(i.GRID_SIZE_KEY,String(t))}getDefaultDrawingGridSize(){return this.defaultDrawingGridSize}setDefaultDrawingGridSize(e){let t=Number.isFinite(e)&&e>=0?Math.round(e):i.DEFAULT_DRAWING_GRID_SIZE;this.defaultDrawingGridSize=t,localStorage.setItem(i.DRAWING_GRID_SIZE_KEY,String(t))}getDefaultShowGrid(){return this.defaultShowGrid}setDefaultShowGrid(e){this.defaultShowGrid=e,localStorage.setItem(i.SHOW_GRID_KEY,e?"true":"false")}getDefaultSnapToGrid(){return this.defaultSnapToGrid}setDefaultSnapToGrid(e){this.defaultSnapToGrid=e,localStorage.setItem(i.SNAP_TO_GRID_KEY,e?"true":"false")}getDefaultLabelStyle(){return le(S({},this.defaultLabelStyle),{color:this.hasDefaultLabelStyle()?this.defaultLabelStyle.color:this.themeService.getCanvasLabelColor()})}hasDefaultLabelStyle(){return localStorage.getItem(i.LABEL_STYLE_KEY)!==null}setDefaultLabelStyle(e){this.defaultLabelStyle=this.normalizeTextStyle(e,this.defaultLabelStyleFallback),localStorage.setItem(i.LABEL_STYLE_KEY,JSON.stringify(this.defaultLabelStyle))}getDefaultNoteStyle(){return le(S({},this.defaultNoteStyle),{color:this.hasDefaultNoteStyle()?this.defaultNoteStyle.color:this.themeService.getCanvasLabelColor()})}hasDefaultNoteStyle(){return localStorage.getItem(i.NOTE_STYLE_KEY)!==null}setDefaultNoteStyle(e){this.defaultNoteStyle=this.normalizeTextStyle(e,this.defaultNoteStyleFallback),localStorage.setItem(i.NOTE_STYLE_KEY,JSON.stringify(this.defaultNoteStyle))}getDefaultLinkStyle(){return le(S({},this.defaultLinkStyle),{color:this.hasDefaultLinkStyle()?this.defaultLinkStyle.color:this.themeService.getCanvasLinkColor()})}hasDefaultLinkStyle(){return localStorage.getItem(i.LINK_STYLE_KEY)!==null}setDefaultLinkStyle(e){this.defaultLinkStyle=this.normalizeLinkStyle(e,this.defaultLinkStyleFallback),localStorage.setItem(i.LINK_STYLE_KEY,JSON.stringify(this.defaultLinkStyle))}static \u0275fac=function(t){return new(t||i)(J(va))};static \u0275prov=P({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var ot=class{data=[];keyIndex=new Map;dataChange=new Ye([]);itemUpdated=new f;getItems(){return this.data}add(s){if(this.findIndex(s)>=0){this.update(s);return}this.data=[...this.data,s],this.keyIndex.set(this.getItemKey(s),this.data.length-1),this.dataChange.next(this.data)}set(s){let e=[];for(let t of s||[]){let n=this.getItemKey(t),a=this.keyIndex.get(n);e.push(a!==void 0?Object.assign(this.data[a],t):t)}this.data=e,this.reindex(),this.dataChange.next(this.data)}get(s){let e=this.keyIndex.get(s);if(e!==void 0)return this.data[e]}update(s){let e=this.findIndex(s);if(e>=0){let t=Object.assign(this.data[e],s);this.data=[...this.data],this.data[e]=t,this.dataChange.next(this.data),this.itemUpdated.next(t)}}remove(s){let e=this.findIndex(s);e>=0&&(this.data=this.data.filter((t,n)=>n!==e),this.reindex(),this.dataChange.next(this.data))}applyBatch(s,e){if(s.length>0){let t=this.data.length;this.data=[...this.data,...s];for(let n=0;n0){let t=new Set(e.map(n=>this.getItemKey(n)));this.data=this.data.filter(n=>!t.has(this.getItemKey(n))),this.reindex()}else s.length===0&&(this.data=[...this.data]);this.dataChange.next(this.data)}get changes(){return this.dataChange}get itemChanged(){return this.itemUpdated}clear(){this.data=[],this.keyIndex.clear(),this.dataChange.next(this.data)}reindex(){this.keyIndex.clear();for(let s=0;s{class i extends ot{getItemKey(e){return e.link_id}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Le(i)))(n||i)}})();static \u0275prov=P({token:i,factory:i.\u0275fac})}return i})();var zm=(()=>{class i extends ot{getItemKey(e){return e.node_id}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Le(i)))(n||i)}})();static \u0275prov=P({token:i,factory:i.\u0275fac})}return i})();var $m=(()=>{class i{router;toasterService;mapSettingsService;nodeConsoleTrigger=new g;closeNodeConsoleTrigger=new f;consoleResized=new f;openConsoles=0;defaultConsoleWidth=720;defaultConsoleHeight=408;defaultNumberOfColumns=80;defaultNumberOfRows=24;lastNumberOfColumns;lastNumberOfRows;constructor(e,t,n){this.router=e,this.toasterService=t,this.mapSettingsService=n}getNumberOfColumns(){return this.lastNumberOfColumns}getNumberOfRows(){return this.lastNumberOfRows}setNumberOfColumns(e){this.lastNumberOfColumns=e}setNumberOfRows(e){this.lastNumberOfRows=e}openConsoleForNode(e){this.nodeConsoleTrigger.emit(e)}closeConsoleForNode(e){this.closeNodeConsoleTrigger.next(e)}resizeTerminal(e){this.consoleResized.next(e)}getLineWidth(){return this.defaultConsoleWidth/this.defaultNumberOfColumns}getLineHeight(){return this.defaultConsoleHeight/this.defaultNumberOfRows}getUrl(e,t){let n="ws";return e.protocol==="https:"&&(n="wss"),`${n}://${e.host}:${e.port}/${tt.current_version}/projects/${t.project_id}/nodes/${t.node_id}/console/ws?token=${e.authToken}`}sendTerminalSize(e,t,n){e&&e.readyState===WebSocket.OPEN&&e.send(new Blob([JSON.stringify({cols:t,rows:n})]))}openConsolesForAllNodesInWidget(e){let t="Please start the following nodes if you want to open consoles for them: ",n=0;e.forEach(a=>{a.console_type!=="none"&&(a.status==="started"?(this.mapSettingsService.logConsoleSubject.next(!0),setTimeout(()=>{this.openConsoleForNode(a)},500)):(n++,t+=a.name+" "))}),n>0&&this.toasterService.error(t)}openConsolesForAllNodesInNewTabs(e){let t="Please start the following nodes if you want to open consoles in tabs for them: ",n=0;e.forEach(a=>{if(a.console_type==="telnet"||a.console_type==="ssh"||a.console_type==="docker_exec")if(a.status==="started"){let o=this.router.url.split("/"),l=`/static/web-ui/${o[1]}/${o[2]}/${o[3]}/${o[4]}/nodes/${a.node_id}`;window.open(l)}else n++,t+=a.name+" "}),n>0&&this.toasterService.error(t)}static \u0275fac=function(t){return new(t||i)(J(bi),J(ia),J(ya))};static \u0275prov=P({token:i,factory:i.\u0275fac})}return i})();var Km=(()=>{class i{get vertical(){return this._vertical}set vertical(e){this._vertical=Be(e)}_vertical=!1;get inset(){return this._inset}set inset(e){this._inset=Be(e)}_inset=!1;static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,n){t&2&&(T("aria-orientation",n.vertical?"vertical":"horizontal"),p("mat-divider-vertical",n.vertical)("mat-divider-horizontal",!n.vertical)("mat-divider-inset",n.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,n){},styles:[`.mat-divider { +`],encapsulation:2,changeDetection:0})}return i})(),km=(()=>{class i{id=r(K).getId("mat-tab-nav-panel-");_activeTabId;static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(t,n){t&2&&T("aria-labelledby",n._activeTabId)("id",n.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:at,decls:1,vars:0,template:function(t,n){t&1&&(H(),w(0))},encapsulation:2,changeDetection:0})}return i})(),Cm=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[j]})}return i})();var ot=class{data=[];keyIndex=new Map;dataChange=new Ye([]);itemUpdated=new f;getItems(){return this.data}add(s){if(this.findIndex(s)>=0){this.update(s);return}this.data=[...this.data,s],this.keyIndex.set(this.getItemKey(s),this.data.length-1),this.dataChange.next(this.data)}set(s){let e=[];for(let t of s||[]){let n=this.getItemKey(t),a=this.keyIndex.get(n);e.push(a!==void 0?Object.assign(this.data[a],t):t)}this.data=e,this.reindex(),this.dataChange.next(this.data)}get(s){let e=this.keyIndex.get(s);if(e!==void 0)return this.data[e]}update(s){let e=this.findIndex(s);if(e>=0){let t=Object.assign(this.data[e],s);this.data=[...this.data],this.data[e]=t,this.dataChange.next(this.data),this.itemUpdated.next(t)}}remove(s){let e=this.findIndex(s);e>=0&&(this.data=this.data.filter((t,n)=>n!==e),this.reindex(),this.dataChange.next(this.data))}applyBatch(s,e){if(s.length>0){let t=this.data.length;this.data=[...this.data,...s];for(let n=0;n0){let t=new Set(e.map(n=>this.getItemKey(n)));this.data=this.data.filter(n=>!t.has(this.getItemKey(n))),this.reindex()}else s.length===0&&(this.data=[...this.data]);this.dataChange.next(this.data)}get changes(){return this.dataChange}get itemChanged(){return this.itemUpdated}clear(){this.data=[],this.keyIndex.clear(),this.dataChange.next(this.data)}reindex(){this.keyIndex.clear();for(let s=0;s{class i extends ot{getItemKey(e){return e.link_id}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Le(i)))(n||i)}})();static \u0275prov=P({token:i,factory:i.\u0275fac})}return i})();var Nr=new C("DEFAULT_THEME_TOKEN",{providedIn:"root",factory:()=>"indigo-pink"}),ya=(()=>{class i{document;_darkMode$=new Ye(!1);darkMode$=this._darkMode$.asObservable();themeChanged=new g;mapThemeChanged=new g;currentTheme="indigo-pink";currentMapTheme="auto";savedTheme="indigo-pink";savedMapTheme="auto";availableThemes=[{key:"deeppurple-amber",label:"Deep Purple & Amber",type:"light",primaryColor:"#6750A4"},{key:"indigo-pink",label:"Indigo & Pink",type:"light",primaryColor:"#3F51B5"},{key:"magenta-violet",label:"Magenta & Violet",type:"light",primaryColor:"#D81B60"},{key:"rose-red",label:"Rose & Red",type:"light",primaryColor:"#E91E63"},{key:"pink-bluegrey",label:"Pink & Bluegrey",type:"dark",primaryColor:"#E91E63"},{key:"purple-green",label:"Purple & Green",type:"dark",primaryColor:"#7E57C2"},{key:"azure-blue",label:"Azure & Blue",type:"dark",primaryColor:"#0078D4"},{key:"cyan-orange",label:"Cyan & Orange",type:"dark",primaryColor:"#00B7C3"}];availableMapBackgrounds=[{key:"auto",label:"Follow global theme",background:"",textColor:"",type:"light"},{key:"light-1",label:"Cyan Sky",background:"radial-gradient(ellipse at 20% 20%, #B2EBF2 0%, #E0F7FA 70%)",textColor:"#006064",type:"light"},{key:"light-2",label:"Blue Sky",background:"radial-gradient(ellipse at 20% 20%, #BBDEFB 0%, #E3F2FD 70%)",textColor:"#1565C0",type:"light"},{key:"light-3",label:"Cloud Gray",background:"radial-gradient(ellipse at 20% 20%, #F5F5F5 0%, #FAFAFA 70%)",textColor:"#424242",type:"light"},{key:"light-4",label:"Lavender",background:"radial-gradient(ellipse at 20% 20%, #E1BEE7 0%, #F3E5F5 70%)",textColor:"#4A148C",type:"light"},{key:"dark-1",label:"Deep Cyan",background:"linear-gradient(135deg, #006064 0%, #00838F 50%, #006064 100%)",textColor:"#FFFFFF",type:"dark"},{key:"dark-2",label:"Deep Blue",background:"linear-gradient(135deg, #1565C0 0%, #1976D2 50%, #1565C0 100%)",textColor:"#FFFFFF",type:"dark"},{key:"dark-3",label:"Charcoal",background:"linear-gradient(135deg, #424242 0%, #616161 50%, #424242 100%)",textColor:"#FFFFFF",type:"dark"},{key:"dark-4",label:"Deep Purple",background:"linear-gradient(135deg, #4A148C 0%, #6A1B9A 50%, #4A148C 100%)",textColor:"#FFFFFF",type:"dark"}];constructor(e,t){this.document=e;let n=localStorage.getItem("theme");this.currentTheme=n||t,this.savedTheme=this.currentTheme;let a=localStorage.getItem("mapTheme");this.currentMapTheme=a||"auto",this.savedMapTheme=this.currentMapTheme,this.applyTheme(this.currentTheme)}getCurrentTheme(){return this.currentTheme}getThemeType(){return this.isDarkTheme(this.currentTheme)?"dark":"light"}getActualMapTheme(){if(this.savedMapTheme==="auto")return this.getThemeType();let e=this.availableMapBackgrounds.find(t=>t.key===this.savedMapTheme);return e?e.type:"light"}getActualTheme(){return this.getThemeType()}isDarkTheme(e){return e==="pink-bluegrey"||e==="purple-green"||e==="azure-blue"||e==="cyan-orange"}setTheme(e){this.currentTheme!==e&&(this.currentTheme=e,this.savedTheme=e,this.applyTheme(e),this.saveThemePreference(e),this.themeChanged.emit(e),this.currentMapTheme==="auto"&&this.mapThemeChanged.emit(e),this._darkMode$.next(this.isDarkTheme(e)))}toggleTheme(){let e=this.getThemeType(),t;e==="dark"?t=this.availableThemes.find(n=>n.type==="light")?.key||"deeppurple-amber":t=this.availableThemes.find(n=>n.type==="dark")?.key||"pink-bluegrey",this.setTheme(t)}setDarkMode(e){let t=e?"pink-bluegrey":"indigo-pink";this.setTheme(t)}setMapTheme(e){this.currentMapTheme=e,this.savedMapTheme=e,localStorage.setItem("mapTheme",e),this.mapThemeChanged.emit(this.getActualMapTheme())}restoreTheme(){let e=localStorage.getItem("theme");e&&this.availableThemes.some(t=>t.key===e)&&this.setTheme(e)}applyTheme(e){let t=this.document.documentElement;t.classList.remove("theme-deeppurple-amber","theme-indigo-pink","theme-magenta-violet","theme-rose-red","theme-pink-bluegrey","theme-purple-green","theme-azure-blue","theme-cyan-orange"),t.classList.add(`theme-${e}`)}saveThemePreference(e){localStorage.setItem("theme",e)}isDarkMode(){return this.isDarkTheme(this.currentTheme)}isLightMode(){return!this.isDarkTheme(this.currentTheme)}getCanvasLabelColor(){return this.getActualMapTheme()==="dark"?"#FFFFFF":"#000000"}getCanvasLinkColor(){return this.getActualMapTheme()==="dark"?"#FFFFFF":"#000000"}static \u0275fac=function(t){return new(t||i)(J(be),J(Nr))};static \u0275prov=P({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var xa=(()=>{class i{themeService;symbolScalingSubject=new f;isScrollDisabled=new f;isMapLocked=new f;isTopologySummaryVisible=!0;isLogConsoleVisible=!1;isLayerNumberVisible=!1;isItemLockStatusVisible=!1;logConsoleSubject=new f;mapRenderedEmitter=new g;openReadme;showInterfaceLabels=!0;integrateLinkLabelsToLinks=!0;openConsolesInWidget=!1;defaultSceneWidth;defaultSceneHeight;defaultGridSize;defaultDrawingGridSize;defaultShowGrid;defaultSnapToGrid;defaultLabelStyle;defaultNoteStyle;defaultLinkStyle;static FONT_FAMILIES=["TypeWriter","Noto Sans","Arial","Courier New","Times New Roman","Helvetica","Verdana","Georgia","Comic Sans MS"];static FONT_WEIGHTS=["normal","bold"];static LINK_STYLE_NAMES=["Invisible","Solid","Dash","Dot","Dash Dot","Dash Dot Dot"];static LINK_TYPES=[{label:"Straight",value:"straight"},{label:"Bezier",value:"bezier"},{label:"Flowchart",value:"flowchart"},{label:"StateMachine",value:"statemachine"},{label:"Freeform",value:"freeform"}];static DEFAULT_SCENE_WIDTH=2e3;static DEFAULT_SCENE_HEIGHT=1e3;static DEFAULT_GRID_SIZE=75;static DEFAULT_DRAWING_GRID_SIZE=25;static DEFAULT_SHOW_GRID=!1;static DEFAULT_SNAP_TO_GRID=!1;defaultLabelStyleFallback;defaultNoteStyleFallback;defaultLinkStyleFallback;static SCENE_WIDTH_KEY="defaultSceneWidth";static SCENE_HEIGHT_KEY="defaultSceneHeight";static GRID_SIZE_KEY="defaultGridSize";static DRAWING_GRID_SIZE_KEY="defaultDrawingGridSize";static SHOW_GRID_KEY="defaultShowGrid";static SNAP_TO_GRID_KEY="defaultSnapToGrid";static LABEL_STYLE_KEY="defaultLabelStyle";static NOTE_STYLE_KEY="defaultNoteStyle";static LINK_STYLE_KEY="defaultLinkStyle";constructor(e){this.themeService=e,this.defaultLabelStyleFallback={fontFamily:"TypeWriter",fontSize:10,fontWeight:"bold",color:this.themeService.getCanvasLabelColor()},this.defaultNoteStyleFallback={fontFamily:"Noto Sans",fontSize:11,fontWeight:"bold",color:this.themeService.getCanvasLabelColor()},this.defaultLinkStyleFallback={color:this.themeService.getCanvasLinkColor(),width:2,type:1,link_type:"straight"},this.isLayerNumberVisible=localStorage.getItem("layersVisibility")==="true",localStorage.getItem("integrateLinkLabelsToLinks")&&(this.integrateLinkLabelsToLinks=localStorage.getItem("integrateLinkLabelsToLinks")==="true"),localStorage.getItem("openConsolesInWidget")&&(this.openConsolesInWidget=localStorage.getItem("openConsolesInWidget")==="true"),localStorage.getItem("symbolScaling")||localStorage.setItem("symbolScaling","true"),localStorage.getItem("openReadme")?this.openReadme=localStorage.getItem("openReadme")==="true":localStorage.setItem("openReadme","false"),localStorage.getItem("showInterfaceLabels")?this.showInterfaceLabels=localStorage.getItem("showInterfaceLabels")==="true":localStorage.setItem("showInterfaceLabels","true"),this.defaultSceneWidth=this.readNumber(i.SCENE_WIDTH_KEY,i.DEFAULT_SCENE_WIDTH),this.defaultSceneHeight=this.readNumber(i.SCENE_HEIGHT_KEY,i.DEFAULT_SCENE_HEIGHT),this.defaultGridSize=this.readNumber(i.GRID_SIZE_KEY,i.DEFAULT_GRID_SIZE),this.defaultDrawingGridSize=this.readNumber(i.DRAWING_GRID_SIZE_KEY,i.DEFAULT_DRAWING_GRID_SIZE),this.defaultShowGrid=this.readBoolean(i.SHOW_GRID_KEY,i.DEFAULT_SHOW_GRID),this.defaultSnapToGrid=this.readBoolean(i.SNAP_TO_GRID_KEY,i.DEFAULT_SNAP_TO_GRID),this.defaultLabelStyle=this.readTextStyle(i.LABEL_STYLE_KEY,this.defaultLabelStyleFallback),this.defaultNoteStyle=this.readTextStyle(i.NOTE_STYLE_KEY,this.defaultNoteStyleFallback),this.defaultLinkStyle=this.readLinkStyle(i.LINK_STYLE_KEY,this.defaultLinkStyleFallback)}readNumber(e,t){let n=localStorage.getItem(e);if(n===null)return t;let a=parseInt(n,10);return Number.isFinite(a)&&a>=0?a:t}readBoolean(e,t){let n=localStorage.getItem(e);return n===null?t:n==="true"}readTextStyle(e,t){let n=localStorage.getItem(e);if(!n)return S({},t);try{return this.normalizeTextStyle(JSON.parse(n),t)}catch{return S({},t)}}readLinkStyle(e,t){let n=localStorage.getItem(e);if(!n)return S({},t);try{return this.normalizeLinkStyle(JSON.parse(n),t)}catch{return S({},t)}}normalizeTextStyle(e,t){let n=typeof e=="object"&&e!==null?e:{},a=Number(n.fontSize);return{fontFamily:i.FONT_FAMILIES.includes(n.fontFamily)?n.fontFamily:t.fontFamily,fontSize:Number.isFinite(a)?Math.min(200,Math.max(1,Math.round(a*2)/2)):t.fontSize,fontWeight:i.FONT_WEIGHTS.includes(n.fontWeight)?n.fontWeight:t.fontWeight,color:this.normalizeColor(n.color,t.color)}}normalizeLinkStyle(e,t){let n=typeof e=="object"&&e!==null?e:{},a=Number(n.width),o=Number(n.type),l=i.LINK_TYPES.map(v=>v.value);return{color:this.normalizeColor(n.color,t.color),width:Number.isFinite(a)?Math.min(20,Math.max(1,Math.round(a))):t.width,type:Number.isInteger(o)&&o>=0&&o=0?Math.round(e):i.DEFAULT_SCENE_WIDTH;this.defaultSceneWidth=t,localStorage.setItem(i.SCENE_WIDTH_KEY,String(t))}getDefaultSceneHeight(){return this.defaultSceneHeight}setDefaultSceneHeight(e){let t=Number.isFinite(e)&&e>=0?Math.round(e):i.DEFAULT_SCENE_HEIGHT;this.defaultSceneHeight=t,localStorage.setItem(i.SCENE_HEIGHT_KEY,String(t))}getDefaultGridSize(){return this.defaultGridSize}setDefaultGridSize(e){let t=Number.isFinite(e)&&e>=0?Math.round(e):i.DEFAULT_GRID_SIZE;this.defaultGridSize=t,localStorage.setItem(i.GRID_SIZE_KEY,String(t))}getDefaultDrawingGridSize(){return this.defaultDrawingGridSize}setDefaultDrawingGridSize(e){let t=Number.isFinite(e)&&e>=0?Math.round(e):i.DEFAULT_DRAWING_GRID_SIZE;this.defaultDrawingGridSize=t,localStorage.setItem(i.DRAWING_GRID_SIZE_KEY,String(t))}getDefaultShowGrid(){return this.defaultShowGrid}setDefaultShowGrid(e){this.defaultShowGrid=e,localStorage.setItem(i.SHOW_GRID_KEY,e?"true":"false")}getDefaultSnapToGrid(){return this.defaultSnapToGrid}setDefaultSnapToGrid(e){this.defaultSnapToGrid=e,localStorage.setItem(i.SNAP_TO_GRID_KEY,e?"true":"false")}getDefaultLabelStyle(){return le(S({},this.defaultLabelStyle),{color:this.hasDefaultLabelStyle()?this.defaultLabelStyle.color:this.themeService.getCanvasLabelColor()})}hasDefaultLabelStyle(){return localStorage.getItem(i.LABEL_STYLE_KEY)!==null}setDefaultLabelStyle(e){this.defaultLabelStyle=this.normalizeTextStyle(e,this.defaultLabelStyleFallback),localStorage.setItem(i.LABEL_STYLE_KEY,JSON.stringify(this.defaultLabelStyle))}getDefaultNoteStyle(){return le(S({},this.defaultNoteStyle),{color:this.hasDefaultNoteStyle()?this.defaultNoteStyle.color:this.themeService.getCanvasLabelColor()})}hasDefaultNoteStyle(){return localStorage.getItem(i.NOTE_STYLE_KEY)!==null}setDefaultNoteStyle(e){this.defaultNoteStyle=this.normalizeTextStyle(e,this.defaultNoteStyleFallback),localStorage.setItem(i.NOTE_STYLE_KEY,JSON.stringify(this.defaultNoteStyle))}getDefaultLinkStyle(){return le(S({},this.defaultLinkStyle),{color:this.hasDefaultLinkStyle()?this.defaultLinkStyle.color:this.themeService.getCanvasLinkColor()})}hasDefaultLinkStyle(){return localStorage.getItem(i.LINK_STYLE_KEY)!==null}setDefaultLinkStyle(e){this.defaultLinkStyle=this.normalizeLinkStyle(e,this.defaultLinkStyleFallback),localStorage.setItem(i.LINK_STYLE_KEY,JSON.stringify(this.defaultLinkStyle))}static \u0275fac=function(t){return new(t||i)(J(ya))};static \u0275prov=P({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var Hm=(()=>{class i extends ot{getItemKey(e){return e.node_id}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Le(i)))(n||i)}})();static \u0275prov=P({token:i,factory:i.\u0275fac})}return i})();var qm=(()=>{class i{router;toasterService;mapSettingsService;nodeConsoleTrigger=new g;closeNodeConsoleTrigger=new f;consoleResized=new f;openConsoles=0;defaultConsoleWidth=720;defaultConsoleHeight=408;defaultNumberOfColumns=80;defaultNumberOfRows=24;lastNumberOfColumns;lastNumberOfRows;constructor(e,t,n){this.router=e,this.toasterService=t,this.mapSettingsService=n}getNumberOfColumns(){return this.lastNumberOfColumns}getNumberOfRows(){return this.lastNumberOfRows}setNumberOfColumns(e){this.lastNumberOfColumns=e}setNumberOfRows(e){this.lastNumberOfRows=e}openConsoleForNode(e){this.nodeConsoleTrigger.emit(e)}closeConsoleForNode(e){this.closeNodeConsoleTrigger.next(e)}resizeTerminal(e){this.consoleResized.next(e)}getLineWidth(){return this.defaultConsoleWidth/this.defaultNumberOfColumns}getLineHeight(){return this.defaultConsoleHeight/this.defaultNumberOfRows}getUrl(e,t){let n="ws";return e.protocol==="https:"&&(n="wss"),`${n}://${e.host}:${e.port}/${tt.current_version}/projects/${t.project_id}/nodes/${t.node_id}/console/ws?token=${e.authToken}`}sendTerminalSize(e,t,n){e&&e.readyState===WebSocket.OPEN&&e.send(new Blob([JSON.stringify({cols:t,rows:n})]))}openConsolesForAllNodesInWidget(e){let t="Please start the following nodes if you want to open consoles for them: ",n=0;e.forEach(a=>{a.console_type!=="none"&&(a.status==="started"?(this.mapSettingsService.logConsoleSubject.next(!0),setTimeout(()=>{this.openConsoleForNode(a)},500)):(n++,t+=a.name+" "))}),n>0&&this.toasterService.error(t)}openConsolesForAllNodesInNewTabs(e){let t="Please start the following nodes if you want to open consoles in tabs for them: ",n=0;e.forEach(a=>{if(a.console_type==="telnet"||a.console_type==="ssh"||a.console_type==="docker_exec")if(a.status==="started"){let o=this.router.url.split("/"),l=`/static/web-ui/${o[1]}/${o[2]}/${o[3]}/${o[4]}/nodes/${a.node_id}`;window.open(l)}else n++,t+=a.name+" "}),n>0&&this.toasterService.error(t)}static \u0275fac=function(t){return new(t||i)(J(bi),J(aa),J(xa))};static \u0275prov=P({token:i,factory:i.\u0275fac})}return i})();var Xm=(()=>{class i{get vertical(){return this._vertical}set vertical(e){this._vertical=Be(e)}_vertical=!1;get inset(){return this._inset}set inset(e){this._inset=Be(e)}_inset=!1;static \u0275fac=function(t){return new(t||i)};static \u0275cmp=M({type:i,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,n){t&2&&(T("aria-orientation",n.vertical?"vertical":"horizontal"),p("mat-divider-vertical",n.vertical)("mat-divider-horizontal",!n.vertical)("mat-divider-inset",n.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,n){},styles:[`.mat-divider { display: block; margin: 0; border-top-style: solid; @@ -2942,4 +2942,4 @@ div.mat-mdc-select-panel { margin-left: auto; margin-right: 80px; } -`],encapsulation:2,changeDetection:0})}return i})(),Xm=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[j]})}return i})();var We=typeof window>"u"?!1:"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;function zr(i){let s=i.cloneNode(!0),e=s.querySelectorAll("[id]"),t=i.nodeName.toLowerCase();return s.removeAttribute("id"),e.forEach(n=>{n.removeAttribute("id")}),t==="canvas"?Ca(i,s):(t==="input"||t==="select"||t==="textarea")&&ka(i,s),xa("canvas",i,s,Ca),xa("input, textarea, select",i,s,ka),s}function xa(i,s,e,t){let n=s.querySelectorAll(i);if(n.length){let a=e.querySelectorAll(i);for(let o=0;on[l]).find(l=>!!l);if(o&&o.includes("translate")&&(e=o.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$1"),t=o.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$2")),s==="absolute")return{height:i.nativeElement.offsetHeight,width:i.nativeElement.offsetWidth,top:i.nativeElement.offsetTop-t,bottom:i.nativeElement.offsetHeight+i.nativeElement.offsetTop-t,left:i.nativeElement.offsetLeft-e,right:i.nativeElement.offsetWidth+i.nativeElement.offsetLeft-e};{let l=i.nativeElement.getBoundingClientRect();return{height:l.height,width:l.width,top:l.top-t,bottom:l.bottom-t,left:l.left-e,right:l.right-e,scrollTop:i.nativeElement.scrollTop,scrollLeft:i.nativeElement.scrollLeft}}}var Ta=Object.freeze({topLeft:"nw-resize",topRight:"ne-resize",bottomLeft:"sw-resize",bottomRight:"se-resize",leftOrRight:"col-resize",topOrBottom:"row-resize"});function Ma(i,s){return i.left&&i.top?s.topLeft:i.right&&i.top?s.topRight:i.left&&i.bottom?s.bottomLeft:i.right&&i.bottom?s.bottomRight:i.left||i.right?s.leftOrRight:i.top||i.bottom?s.topOrBottom:""}function Nt({edges:i,initialRectangle:s,newRectangle:e}){let t={};return Object.keys(i).forEach(n=>{t[n]=(e[n]||0)-(s[n]||0)}),t}var Ia="resize-active",Vr="resize-ghost-element",Gr=50,Wr=(()=>{class i{constructor(){this.enableGhostResize=!1,this.resizeSnapGrid={},this.resizeCursors=Ta,this.ghostElementPositioning="fixed",this.allowNegativeResizes=!1,this.mouseMoveThrottleMS=Gr,this.resizeStart=new g,this.resizing=new g,this.resizeEnd=new g,this.mouseup=new f,this.mousedown=new f,this.mousemove=new f,this.destroy$=new f,this.platformId=r(Rn),this.renderer=r(ae),this.elm=r(D),this.zone=r(z),this.rendererFactory=r(Fn),this.document=r(be),this.pointerEventListeners=bn.getInstance(this.rendererFactory.createRenderer(this.document,null),this.zone)}ngOnInit(){let e=G(this.pointerEventListeners.pointerDown,this.mousedown),t=G(this.pointerEventListeners.pointerMove,this.mousemove).pipe(In(({event:b})=>{a&&b.cancelable&&!Sa(b)&&b.preventDefault()}),rt()),n=G(this.pointerEventListeners.pointerUp,this.mouseup),a,o=()=>{a&&a.clonedNode&&(this.elm.nativeElement.parentElement.removeChild(a.clonedNode),this.renderer.setStyle(this.elm.nativeElement,"visibility","inherit"))},l=()=>S(S({},Ta),this.resizeCursors);e.pipe(yn(b=>{function V(R){return{clientX:R.clientX-b.clientX,clientY:R.clientY-b.clientY}}let ue=()=>{let R={x:1,y:1};return a&&(this.resizeSnapGrid.left&&a.edges.left?R.x=+this.resizeSnapGrid.left:this.resizeSnapGrid.right&&a.edges.right&&(R.x=+this.resizeSnapGrid.right),this.resizeSnapGrid.top&&a.edges.top?R.y=+this.resizeSnapGrid.top:this.resizeSnapGrid.bottom&&a.edges.bottom&&(R.y=+this.resizeSnapGrid.bottom)),R};function fe(R,oe){return{x:Math.ceil(R.clientX/oe.x),y:Math.ceil(R.clientY/oe.y)}}return G(t.pipe($e(1)).pipe(pe(R=>[,R])),t.pipe(ut())).pipe(pe(([R,oe])=>[R&&V(R),V(oe)])).pipe(Z(([R,oe])=>{if(!R)return!0;let ht=ue(),_n=fe(R,ht),gn=fe(oe,ht);return _n.x!==gn.x||_n.y!==gn.y})).pipe(pe(([,R])=>{let oe=ue();return{clientX:Math.round(R.clientX/oe.x)*oe.x,clientY:Math.round(R.clientY/oe.y)*oe.y}})).pipe(x(G(n,e)))})).pipe(Z(()=>!!a)).pipe(pe(({clientX:b,clientY:V})=>wa(a.startingRect,a.edges,b,V))).pipe(Z(b=>this.allowNegativeResizes||!!(b.height&&b.width&&b.height>0&&b.width>0))).pipe(Z(b=>this.validateResize?this.validateResize({rectangle:b,edges:Nt({edges:a.edges,initialRectangle:a.startingRect,newRectangle:b})}):!0),x(this.destroy$)).subscribe(b=>{a&&a.clonedNode&&(this.renderer.setStyle(a.clonedNode,"height",`${b.height}px`),this.renderer.setStyle(a.clonedNode,"width",`${b.width}px`),this.renderer.setStyle(a.clonedNode,"top",`${b.top}px`),this.renderer.setStyle(a.clonedNode,"left",`${b.left}px`)),this.resizing.observers.length>0&&this.zone.run(()=>{this.resizing.emit({edges:Nt({edges:a.edges,initialRectangle:a.startingRect,newRectangle:b}),rectangle:b})}),a.currentRect=b}),e.pipe(pe(({edges:b})=>b||{}),Z(b=>Object.keys(b).length>0),x(this.destroy$)).subscribe(b=>{a&&o();let V=jr(this.elm,this.ghostElementPositioning);a={edges:b,startingRect:V,currentRect:V};let ue=l(),fe=Ma(a.edges,ue);this.renderer.setStyle(document.body,"cursor",fe),this.setElementClass(this.elm,Ia,!0),this.enableGhostResize&&(a.clonedNode=zr(this.elm.nativeElement),this.elm.nativeElement.parentElement.appendChild(a.clonedNode),this.renderer.setStyle(this.elm.nativeElement,"visibility","hidden"),this.renderer.setStyle(a.clonedNode,"position",this.ghostElementPositioning),this.renderer.setStyle(a.clonedNode,"left",`${a.startingRect.left}px`),this.renderer.setStyle(a.clonedNode,"top",`${a.startingRect.top}px`),this.renderer.setStyle(a.clonedNode,"height",`${a.startingRect.height}px`),this.renderer.setStyle(a.clonedNode,"width",`${a.startingRect.width}px`),this.renderer.setStyle(a.clonedNode,"cursor",Ma(a.edges,ue)),this.renderer.addClass(a.clonedNode,Vr),a.clonedNode.scrollTop=a.startingRect.scrollTop,a.clonedNode.scrollLeft=a.startingRect.scrollLeft),this.resizeStart.observers.length>0&&this.zone.run(()=>{this.resizeStart.emit({edges:Nt({edges:b,initialRectangle:V,newRectangle:V}),rectangle:wa(V,{},0,0)})})}),n.pipe(x(this.destroy$)).subscribe(()=>{a&&(this.renderer.removeClass(this.elm.nativeElement,Ia),this.renderer.setStyle(document.body,"cursor",""),this.renderer.setStyle(this.elm.nativeElement,"cursor",""),this.resizeEnd.observers.length>0&&this.zone.run(()=>{this.resizeEnd.emit({edges:Nt({edges:a.edges,initialRectangle:a.startingRect,newRectangle:a.currentRect}),rectangle:a.currentRect})}),o(),a=null)})}ngOnDestroy(){Gn(this.platformId)&&this.renderer.setStyle(document.body,"cursor",""),this.mousedown.complete(),this.mouseup.complete(),this.mousemove.complete(),this.destroy$.next()}setElementClass(e,t,n){n?this.renderer.addClass(e.nativeElement,t):this.renderer.removeClass(e.nativeElement,t)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=I({type:i,selectors:[["","mwlResizable",""]],inputs:{validateResize:"validateResize",enableGhostResize:"enableGhostResize",resizeSnapGrid:"resizeSnapGrid",resizeCursors:"resizeCursors",ghostElementPositioning:"ghostElementPositioning",allowNegativeResizes:"allowNegativeResizes",mouseMoveThrottleMS:"mouseMoveThrottleMS"},outputs:{resizeStart:"resizeStart",resizing:"resizing",resizeEnd:"resizeEnd"},exportAs:["mwlResizable"]})}}return i})(),bn=class i{static getInstance(s,e){return i.instance||(i.instance=new i(s,e)),i.instance}constructor(s,e){this.pointerDown=new Oe(t=>{let n,a;return e.runOutsideAngular(()=>{n=s.listen("document","mousedown",o=>{t.next({clientX:o.clientX,clientY:o.clientY,event:o})}),We&&(a=s.listen("document","touchstart",o=>{t.next({clientX:o.touches[0].clientX,clientY:o.touches[0].clientY,event:o})}))}),()=>{n(),We&&a()}}).pipe(rt()),this.pointerMove=new Oe(t=>{let n,a;return e.runOutsideAngular(()=>{n=s.listen("document","mousemove",o=>{t.next({clientX:o.clientX,clientY:o.clientY,event:o})}),We&&(a=s.listen("document","touchmove",o=>{t.next({clientX:o.targetTouches[0].clientX,clientY:o.targetTouches[0].clientY,event:o})}))}),()=>{n(),We&&a()}}).pipe(rt()),this.pointerUp=new Oe(t=>{let n,a,o;return e.runOutsideAngular(()=>{n=s.listen("document","mouseup",l=>{t.next({clientX:l.clientX,clientY:l.clientY,event:l})}),We&&(a=s.listen("document","touchend",l=>{t.next({clientX:l.changedTouches[0].clientX,clientY:l.changedTouches[0].clientY,event:l})}),o=s.listen("document","touchcancel",l=>{t.next({clientX:l.changedTouches[0].clientX,clientY:l.changedTouches[0].clientY,event:l})}))}),()=>{n(),We&&(a(),o())}}).pipe(rt())}},sh=(()=>{class i{constructor(){this.renderer=r(ae),this.element=r(D),this.zone=r(z),this.resizableDirective=r(Wr,{optional:!0}),this.resizeEdges={},this.eventListeners={},this.destroy$=new f}ngOnInit(){this.zone.runOutsideAngular(()=>{this.listenOnTheHost("mousedown").subscribe(e=>{this.onMousedown(e,e.clientX,e.clientY)}),this.listenOnTheHost("mouseup").subscribe(e=>{this.onMouseup(e.clientX,e.clientY)}),We&&(this.listenOnTheHost("touchstart").subscribe(e=>{this.onMousedown(e,e.touches[0].clientX,e.touches[0].clientY)}),G(this.listenOnTheHost("touchend"),this.listenOnTheHost("touchcancel")).subscribe(e=>{this.onMouseup(e.changedTouches[0].clientX,e.changedTouches[0].clientY)}))})}ngOnDestroy(){this.destroy$.next(),this.unsubscribeEventListeners()}onMousedown(e,t,n){e.cancelable&&!Sa(e)&&e.preventDefault(),this.eventListeners.touchmove||(this.eventListeners.touchmove=this.renderer.listen(this.element.nativeElement,"touchmove",a=>{this.onMousemove(a,a.targetTouches[0].clientX,a.targetTouches[0].clientY)})),this.eventListeners.mousemove||(this.eventListeners.mousemove=this.renderer.listen(this.element.nativeElement,"mousemove",a=>{this.onMousemove(a,a.clientX,a.clientY)})),this.resizable.mousedown.next({clientX:t,clientY:n,edges:this.resizeEdges})}onMouseup(e,t){this.unsubscribeEventListeners(),this.resizable.mouseup.next({clientX:e,clientY:t,edges:this.resizeEdges})}get resizable(){return this.resizableDirective||this.resizableContainer}onMousemove(e,t,n){this.resizable.mousemove.next({clientX:t,clientY:n,edges:this.resizeEdges,event:e})}unsubscribeEventListeners(){Object.keys(this.eventListeners).forEach(e=>{this.eventListeners[e](),delete this.eventListeners[e]})}listenOnTheHost(e){return kn(this.element.nativeElement,e).pipe(x(this.destroy$))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=I({type:i,selectors:[["","mwlResizeHandle",""]],inputs:{resizeEdges:"resizeEdges",resizableContainer:"resizableContainer"}})}}return i})(),lh=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=B({type:i})}static{this.\u0275inj=N({})}}return i})();var uh=(()=>{class i{_entries=Q([]);entries=this._entries.asReadonly();getSnapshot(){return this._entries()}rebuildAll(e){let t=[];for(let n of e)this.collect(n,t);this.setEntries(t)}rebuildFromAggregate(e){let t=[];for(let[n,a]of Object.entries(e)){let o=n.indexOf("/"),l=o>=0?n.slice(o+1):n;t.push({name:l,linkId:a.link_id,bpf:a.bpf,tag:a.tag??null,color:a.color})}this.setEntries(t)}reconcileLink(e){let t=this._entries().filter(n=>n.linkId!==e.link_id);this.collect(e,t),this.setEntries(t)}removeLink(e){let t=this._entries().filter(n=>n.linkId!==e);this.setEntries(t)}reset(){this._entries.set([])}collect(e,t){if(e.markers)for(let[n,a]of Object.entries(e.markers))t.push({name:n,linkId:e.link_id,bpf:a.bpf,tag:a.tag,color:a.color})}setEntries(e){Yr(this._entries(),e)||this._entries.set(e)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=P({token:i,factory:i.\u0275fac})}return i})();function Yr(i,s){if(i.length!==s.length)return!1;let e=n=>`${n.linkId}\0${n.name}\0${n.bpf}\0${n.tag??""}\0${n.color??""}`,t=new Set(i.map(e));for(let n of s)if(!t.has(e(n)))return!1;return!0}export{Ba as a,_s as b,Zt as c,Ws as d,Ct as e,Ys as f,$s as g,nn as h,Io as i,an as j,So as k,Do as l,on as m,rn as n,Wi as o,$i as p,Yi as q,At as r,St as s,Dt as t,no as u,en as v,Et as w,Ii as x,Si as y,Di as z,Rt as A,Cc as B,wc as C,Tc as D,qi as E,Fc as F,Ge as G,Lt as H,dn as I,Zc as J,Xi as K,Zi as L,na as M,ia as N,_d as O,aa as P,va as Q,hr as R,Yd as S,Ir as T,Dr as U,Er as V,ym as W,Ar as X,Lr as Y,xm as Z,km as _,ya as $,ot as aa,Pm as ba,zm as ca,uh as da,$m as ea,Km as fa,Xm as ga,Wr as ha,sh as ia,lh as ja}; +`],encapsulation:2,changeDetection:0})}return i})(),Zm=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=B({type:i});static \u0275inj=N({imports:[j]})}return i})();var We=typeof window>"u"?!1:"ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;function Hr(i){let s=i.cloneNode(!0),e=s.querySelectorAll("[id]"),t=i.nodeName.toLowerCase();return s.removeAttribute("id"),e.forEach(n=>{n.removeAttribute("id")}),t==="canvas"?wa(i,s):(t==="input"||t==="select"||t==="textarea")&&Ca(i,s),ka("canvas",i,s,wa),ka("input, textarea, select",i,s,Ca),s}function ka(i,s,e,t){let n=s.querySelectorAll(i);if(n.length){let a=e.querySelectorAll(i);for(let o=0;on[l]).find(l=>!!l);if(o&&o.includes("translate")&&(e=o.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$1"),t=o.replace(/.*translate3?d?\((-?[0-9]*)px, (-?[0-9]*)px.*/,"$2")),s==="absolute")return{height:i.nativeElement.offsetHeight,width:i.nativeElement.offsetWidth,top:i.nativeElement.offsetTop-t,bottom:i.nativeElement.offsetHeight+i.nativeElement.offsetTop-t,left:i.nativeElement.offsetLeft-e,right:i.nativeElement.offsetWidth+i.nativeElement.offsetLeft-e};{let l=i.nativeElement.getBoundingClientRect();return{height:l.height,width:l.width,top:l.top-t,bottom:l.bottom-t,left:l.left-e,right:l.right-e,scrollTop:i.nativeElement.scrollTop,scrollLeft:i.nativeElement.scrollLeft}}}var Ma=Object.freeze({topLeft:"nw-resize",topRight:"ne-resize",bottomLeft:"sw-resize",bottomRight:"se-resize",leftOrRight:"col-resize",topOrBottom:"row-resize"});function Ia(i,s){return i.left&&i.top?s.topLeft:i.right&&i.top?s.topRight:i.left&&i.bottom?s.bottomLeft:i.right&&i.bottom?s.bottomRight:i.left||i.right?s.leftOrRight:i.top||i.bottom?s.topOrBottom:""}function Nt({edges:i,initialRectangle:s,newRectangle:e}){let t={};return Object.keys(i).forEach(n=>{t[n]=(e[n]||0)-(s[n]||0)}),t}var Sa="resize-active",Gr="resize-ghost-element",Wr=50,Yr=(()=>{class i{constructor(){this.enableGhostResize=!1,this.resizeSnapGrid={},this.resizeCursors=Ma,this.ghostElementPositioning="fixed",this.allowNegativeResizes=!1,this.mouseMoveThrottleMS=Wr,this.resizeStart=new g,this.resizing=new g,this.resizeEnd=new g,this.mouseup=new f,this.mousedown=new f,this.mousemove=new f,this.destroy$=new f,this.platformId=r(Rn),this.renderer=r(ae),this.elm=r(D),this.zone=r(z),this.rendererFactory=r(Fn),this.document=r(be),this.pointerEventListeners=bn.getInstance(this.rendererFactory.createRenderer(this.document,null),this.zone)}ngOnInit(){let e=G(this.pointerEventListeners.pointerDown,this.mousedown),t=G(this.pointerEventListeners.pointerMove,this.mousemove).pipe(In(({event:b})=>{a&&b.cancelable&&!Da(b)&&b.preventDefault()}),rt()),n=G(this.pointerEventListeners.pointerUp,this.mouseup),a,o=()=>{a&&a.clonedNode&&(this.elm.nativeElement.parentElement.removeChild(a.clonedNode),this.renderer.setStyle(this.elm.nativeElement,"visibility","inherit"))},l=()=>S(S({},Ma),this.resizeCursors);e.pipe(yn(b=>{function V(R){return{clientX:R.clientX-b.clientX,clientY:R.clientY-b.clientY}}let ue=()=>{let R={x:1,y:1};return a&&(this.resizeSnapGrid.left&&a.edges.left?R.x=+this.resizeSnapGrid.left:this.resizeSnapGrid.right&&a.edges.right&&(R.x=+this.resizeSnapGrid.right),this.resizeSnapGrid.top&&a.edges.top?R.y=+this.resizeSnapGrid.top:this.resizeSnapGrid.bottom&&a.edges.bottom&&(R.y=+this.resizeSnapGrid.bottom)),R};function fe(R,oe){return{x:Math.ceil(R.clientX/oe.x),y:Math.ceil(R.clientY/oe.y)}}return G(t.pipe($e(1)).pipe(pe(R=>[,R])),t.pipe(ut())).pipe(pe(([R,oe])=>[R&&V(R),V(oe)])).pipe(Z(([R,oe])=>{if(!R)return!0;let ht=ue(),_n=fe(R,ht),gn=fe(oe,ht);return _n.x!==gn.x||_n.y!==gn.y})).pipe(pe(([,R])=>{let oe=ue();return{clientX:Math.round(R.clientX/oe.x)*oe.x,clientY:Math.round(R.clientY/oe.y)*oe.y}})).pipe(x(G(n,e)))})).pipe(Z(()=>!!a)).pipe(pe(({clientX:b,clientY:V})=>Ta(a.startingRect,a.edges,b,V))).pipe(Z(b=>this.allowNegativeResizes||!!(b.height&&b.width&&b.height>0&&b.width>0))).pipe(Z(b=>this.validateResize?this.validateResize({rectangle:b,edges:Nt({edges:a.edges,initialRectangle:a.startingRect,newRectangle:b})}):!0),x(this.destroy$)).subscribe(b=>{a&&a.clonedNode&&(this.renderer.setStyle(a.clonedNode,"height",`${b.height}px`),this.renderer.setStyle(a.clonedNode,"width",`${b.width}px`),this.renderer.setStyle(a.clonedNode,"top",`${b.top}px`),this.renderer.setStyle(a.clonedNode,"left",`${b.left}px`)),this.resizing.observers.length>0&&this.zone.run(()=>{this.resizing.emit({edges:Nt({edges:a.edges,initialRectangle:a.startingRect,newRectangle:b}),rectangle:b})}),a.currentRect=b}),e.pipe(pe(({edges:b})=>b||{}),Z(b=>Object.keys(b).length>0),x(this.destroy$)).subscribe(b=>{a&&o();let V=Vr(this.elm,this.ghostElementPositioning);a={edges:b,startingRect:V,currentRect:V};let ue=l(),fe=Ia(a.edges,ue);this.renderer.setStyle(document.body,"cursor",fe),this.setElementClass(this.elm,Sa,!0),this.enableGhostResize&&(a.clonedNode=Hr(this.elm.nativeElement),this.elm.nativeElement.parentElement.appendChild(a.clonedNode),this.renderer.setStyle(this.elm.nativeElement,"visibility","hidden"),this.renderer.setStyle(a.clonedNode,"position",this.ghostElementPositioning),this.renderer.setStyle(a.clonedNode,"left",`${a.startingRect.left}px`),this.renderer.setStyle(a.clonedNode,"top",`${a.startingRect.top}px`),this.renderer.setStyle(a.clonedNode,"height",`${a.startingRect.height}px`),this.renderer.setStyle(a.clonedNode,"width",`${a.startingRect.width}px`),this.renderer.setStyle(a.clonedNode,"cursor",Ia(a.edges,ue)),this.renderer.addClass(a.clonedNode,Gr),a.clonedNode.scrollTop=a.startingRect.scrollTop,a.clonedNode.scrollLeft=a.startingRect.scrollLeft),this.resizeStart.observers.length>0&&this.zone.run(()=>{this.resizeStart.emit({edges:Nt({edges:b,initialRectangle:V,newRectangle:V}),rectangle:Ta(V,{},0,0)})})}),n.pipe(x(this.destroy$)).subscribe(()=>{a&&(this.renderer.removeClass(this.elm.nativeElement,Sa),this.renderer.setStyle(document.body,"cursor",""),this.renderer.setStyle(this.elm.nativeElement,"cursor",""),this.resizeEnd.observers.length>0&&this.zone.run(()=>{this.resizeEnd.emit({edges:Nt({edges:a.edges,initialRectangle:a.startingRect,newRectangle:a.currentRect}),rectangle:a.currentRect})}),o(),a=null)})}ngOnDestroy(){Gn(this.platformId)&&this.renderer.setStyle(document.body,"cursor",""),this.mousedown.complete(),this.mouseup.complete(),this.mousemove.complete(),this.destroy$.next()}setElementClass(e,t,n){n?this.renderer.addClass(e.nativeElement,t):this.renderer.removeClass(e.nativeElement,t)}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=I({type:i,selectors:[["","mwlResizable",""]],inputs:{validateResize:"validateResize",enableGhostResize:"enableGhostResize",resizeSnapGrid:"resizeSnapGrid",resizeCursors:"resizeCursors",ghostElementPositioning:"ghostElementPositioning",allowNegativeResizes:"allowNegativeResizes",mouseMoveThrottleMS:"mouseMoveThrottleMS"},outputs:{resizeStart:"resizeStart",resizing:"resizing",resizeEnd:"resizeEnd"},exportAs:["mwlResizable"]})}}return i})(),bn=class i{static getInstance(s,e){return i.instance||(i.instance=new i(s,e)),i.instance}constructor(s,e){this.pointerDown=new Oe(t=>{let n,a;return e.runOutsideAngular(()=>{n=s.listen("document","mousedown",o=>{t.next({clientX:o.clientX,clientY:o.clientY,event:o})}),We&&(a=s.listen("document","touchstart",o=>{t.next({clientX:o.touches[0].clientX,clientY:o.touches[0].clientY,event:o})}))}),()=>{n(),We&&a()}}).pipe(rt()),this.pointerMove=new Oe(t=>{let n,a;return e.runOutsideAngular(()=>{n=s.listen("document","mousemove",o=>{t.next({clientX:o.clientX,clientY:o.clientY,event:o})}),We&&(a=s.listen("document","touchmove",o=>{t.next({clientX:o.targetTouches[0].clientX,clientY:o.targetTouches[0].clientY,event:o})}))}),()=>{n(),We&&a()}}).pipe(rt()),this.pointerUp=new Oe(t=>{let n,a,o;return e.runOutsideAngular(()=>{n=s.listen("document","mouseup",l=>{t.next({clientX:l.clientX,clientY:l.clientY,event:l})}),We&&(a=s.listen("document","touchend",l=>{t.next({clientX:l.changedTouches[0].clientX,clientY:l.changedTouches[0].clientY,event:l})}),o=s.listen("document","touchcancel",l=>{t.next({clientX:l.changedTouches[0].clientX,clientY:l.changedTouches[0].clientY,event:l})}))}),()=>{n(),We&&(a(),o())}}).pipe(rt())}},lh=(()=>{class i{constructor(){this.renderer=r(ae),this.element=r(D),this.zone=r(z),this.resizableDirective=r(Yr,{optional:!0}),this.resizeEdges={},this.eventListeners={},this.destroy$=new f}ngOnInit(){this.zone.runOutsideAngular(()=>{this.listenOnTheHost("mousedown").subscribe(e=>{this.onMousedown(e,e.clientX,e.clientY)}),this.listenOnTheHost("mouseup").subscribe(e=>{this.onMouseup(e.clientX,e.clientY)}),We&&(this.listenOnTheHost("touchstart").subscribe(e=>{this.onMousedown(e,e.touches[0].clientX,e.touches[0].clientY)}),G(this.listenOnTheHost("touchend"),this.listenOnTheHost("touchcancel")).subscribe(e=>{this.onMouseup(e.changedTouches[0].clientX,e.changedTouches[0].clientY)}))})}ngOnDestroy(){this.destroy$.next(),this.unsubscribeEventListeners()}onMousedown(e,t,n){e.cancelable&&!Da(e)&&e.preventDefault(),this.eventListeners.touchmove||(this.eventListeners.touchmove=this.renderer.listen(this.element.nativeElement,"touchmove",a=>{this.onMousemove(a,a.targetTouches[0].clientX,a.targetTouches[0].clientY)})),this.eventListeners.mousemove||(this.eventListeners.mousemove=this.renderer.listen(this.element.nativeElement,"mousemove",a=>{this.onMousemove(a,a.clientX,a.clientY)})),this.resizable.mousedown.next({clientX:t,clientY:n,edges:this.resizeEdges})}onMouseup(e,t){this.unsubscribeEventListeners(),this.resizable.mouseup.next({clientX:e,clientY:t,edges:this.resizeEdges})}get resizable(){return this.resizableDirective||this.resizableContainer}onMousemove(e,t,n){this.resizable.mousemove.next({clientX:t,clientY:n,edges:this.resizeEdges,event:e})}unsubscribeEventListeners(){Object.keys(this.eventListeners).forEach(e=>{this.eventListeners[e](),delete this.eventListeners[e]})}listenOnTheHost(e){return kn(this.element.nativeElement,e).pipe(x(this.destroy$))}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275dir=I({type:i,selectors:[["","mwlResizeHandle",""]],inputs:{resizeEdges:"resizeEdges",resizableContainer:"resizableContainer"}})}}return i})(),ch=(()=>{class i{static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275mod=B({type:i})}static{this.\u0275inj=N({})}}return i})();var fh=(()=>{class i{_entries=Q([]);entries=this._entries.asReadonly();getSnapshot(){return this._entries()}rebuildAll(e){let t=[];for(let n of e)this.collect(n,t);this.setEntries(t)}rebuildFromAggregate(e){let t=[];for(let[n,a]of Object.entries(e)){let o=n.indexOf("/"),l=o>=0?n.slice(o+1):n;t.push({name:l,linkId:a.link_id,bpf:a.bpf,tag:a.tag??null,color:a.color})}this.setEntries(t)}reconcileLink(e){let t=this._entries().filter(n=>n.linkId!==e.link_id);this.collect(e,t),this.setEntries(t)}removeLink(e){let t=this._entries().filter(n=>n.linkId!==e);this.setEntries(t)}reset(){this._entries.set([])}collect(e,t){if(e.markers)for(let[n,a]of Object.entries(e.markers))t.push({name:n,linkId:e.link_id,bpf:a.bpf,tag:a.tag,color:a.color})}setEntries(e){$r(this._entries(),e)||this._entries.set(e)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=P({token:i,factory:i.\u0275fac})}return i})();function $r(i,s){if(i.length!==s.length)return!1;let e=n=>`${n.linkId}\0${n.name}\0${n.bpf}\0${n.tag??""}\0${n.color??""}`,t=new Set(i.map(e));for(let n of s)if(!t.has(e(n)))return!1;return!0}export{za as a,gs as b,Zt as c,Ys as d,Ct as e,$s as f,qs as g,nn as h,So as i,an as j,Do as k,Eo as l,on as m,rn as n,Wi as o,$i as p,Yi as q,At as r,St as s,Dt as t,io as u,en as v,Et as w,Ii as x,Si as y,Di as z,Rt as A,wc as B,Tc as C,Mc as D,oa as E,Ui as F,Oc as G,Ge as H,Lt as I,dn as J,Jc as K,Xi as L,Zi as M,ia as N,aa as O,ur as P,Ad as Q,Nd as R,ya as S,Sr as T,Er as U,Rr as V,xm as W,Lr as X,Pr as Y,km as Z,Cm as _,ot as $,Sm as aa,xa as ba,Hm as ca,fh as da,qm as ea,Xm as fa,Zm as ga,Yr as ha,lh as ia,ch as ja}; diff --git a/gns3server/static/web-ui/index.html b/gns3server/static/web-ui/index.html index 65d330b40..200e7cad9 100644 --- a/gns3server/static/web-ui/index.html +++ b/gns3server/static/web-ui/index.html @@ -33,7 +33,7 @@ } })(); - + @@ -115,5 +115,5 @@ } })(); - + diff --git a/gns3server/static/web-ui/main-2SCMRH5O.js b/gns3server/static/web-ui/main-2SCMRH5O.js new file mode 100644 index 000000000..666f12b3f --- /dev/null +++ b/gns3server/static/web-ui/main-2SCMRH5O.js @@ -0,0 +1,4594 @@ +import{a as mt,b as rt,c as m5,d as _t,e as We,f as Wt,g as Xe,h as tb,i as qe,j as bt,k as Qe,l as ke,m as T5,n as E5,o as sb,p as O5,q as hg}from"./chunk-2MJLPLTV.js";import{$ as hm,A as Ho,B as ct,C as b5,D as ot,E as ob,F as ml,G as _s,H as x5,I as y5,J as pl,K as ab,L as w5,M as M5,N as gg,O as re,P as Gt,Q as Rt,R as Uk,S as Ni,T as rb,U as Ir,V as Xo,W as Yo,X as S5,Y as k5,Z as P5,_ as bo,a as pt,aa as so,b as st,ba as ui,c as ut,ca as Xn,d as u5,da as _m,e as Ko,ea as ga,f as eo,fa as fs,g as it,ga as Ja,h as Ve,ha as er,i as Wn,ia as tr,j as Dr,k as Bi,l as oi,m as nb,n as ug,o as Pe,p as we,q as Td,r as ib,s as g5,t as h5,u as gm,v as _5,w as nt,x as f5,y as v5,z as C5}from"./chunk-YK4BK3GN.js";import{$ as Qn,$a as mA,$b as Et,$c as DA,$d as No,$e as um,A as nA,Aa as IC,Ab as gt,Ac as Pa,Ad as LA,Ae as t5,B as Ci,Ba as Bk,Bb as ht,Bc as og,Bd as VA,Be as dg,C as ma,Ca as lf,Cc as dm,Cd as WC,Ce as YC,D as La,Da as Ba,Db as Bn,Dc as bA,De as n5,E as DC,Ea as AC,Eb as jn,Ec as fe,Ed as BA,Ee as $k,F as ro,Fa as So,Fb as Te,Fc as nc,Fe as ZC,G as Yi,Ga as lm,Gb as Tt,Gc as xA,Ge as i5,H as sl,Ha as m,Hb as ne,Hc as yA,Hd as jA,He as Or,I as ei,Ia as Ya,Ib as Za,Ic as VC,Ie as Hk,J as Lk,Ja as pa,Jb as c,Jc as BC,Je as mf,K as iA,Ka as Fp,Kb as N,Kc as wA,Kd as GC,Ke as o5,L as rf,La as qi,Lb as X,Lc as MA,Ld as $A,Le as $a,M as tg,Ma as Mt,Mb as Un,Mc as ag,Md as Pd,Me as a5,N as Gr,Nb as pA,Nc as SA,Nd as At,Ne as Vp,O as sf,Oa as Wo,Ob as RC,Oc as kA,Od as HA,Oe as r5,P as oA,Pa as V,Pb as uA,Pc as us,Pd as Ue,Pe as s5,Q as ng,Qa as on,Qb as an,Qc as PA,Qd as UA,Qe as $t,R as aA,Ra as yt,Rb as Xt,Rc as rg,Rd as qC,Re as mg,S as ig,Sa as qr,Sb as rn,Sc as TA,Sd as Nt,Se as Ft,Tb as ka,Tc as Pr,Td as vt,Te as Co,Ua as mi,Ub as Md,Uc as Ta,Ud as QC,Ue as JC,V as wd,Va as se,Vb as un,Vc as jC,Vd as Qo,Ve as vn,Wa as NC,Wb as at,Wc as df,Wd as Ji,We as l5,X as Di,Xa as dA,Xb as tn,Xc as Rp,Xd as Ec,Xe as ce,Y as Dn,Yb as Go,Yc as EA,Yd as Ge,Ye as ie,Z as He,Za as Hs,Zb as zC,Zc as OA,Zd as WA,Ze as c5,_ as rA,_a as Ce,_b as LC,_c as mm,_d as Ct,_e as eb,a as q,aa as Ii,ab as T,ac as gn,ad as cl,ae as Tr,af as d5,b as ze,ba as Pc,bb as FC,bc as Io,bd as ja,be as GA,bf as Xr,c as EC,ca as J,cb as E,cc as gA,cd as Kr,ce as qA,cf as Be,d as al,da as nn,db as ni,dc as Qr,dd as zp,de as Yt,df as Oc,e as qn,ea as mn,eb as Oe,ec as hA,ed as sg,ee as Ut,ef as he,f as Jl,fa as _e,fb as Q,fc as cf,fd as IA,fe as QA,ff as Y,g as Oo,ga as f,gb as K,gc as Ne,gd as AA,ge as KA,gf as zi,h as Sr,ha as sA,hb as v,hc as cm,hd as NA,he as pm,hf as p5,i as Ye,ia as lA,ib as r,ic as _A,id as Vi,ie as Er,if as sn,j as cn,ja as Vk,jb as l,jc as $o,jd as jk,je as dl,jf as Yr,k as Ju,ka as y,kb as L,kc as ee,kd as $C,ke as XA,kf as pg,l as J4,la as w,lb as ii,lc as ln,ld as kd,le as cg,m as eA,ma as Mi,mb as Si,mc as fA,md as FA,me as Ai,n as rl,na as Xa,nb as kr,nd as Lp,ne as St,o as eg,oa as xa,ob as Fe,oc as $,od as RA,oe as It,p as tA,pa as Do,pb as Re,pc as oe,pd as ua,pe as hs,q as sm,qa as Va,qb as li,qc as Sd,qd as zA,r as Vt,ra as be,rb as R,rc as zt,re as KC,s as jo,sa as Gi,sb as pr,sc as qo,sd as lg,t as af,ta as cA,tb as _,te as XC,u as OC,ua as z,ub as Tc,uc as ki,ue as YA,v as Rk,va as Vn,vb as h,vc as Ao,ve as ZA,w as Pt,wa as Nn,wb as pi,wc as vA,wd as HC,we as JA,x as mr,xa as yi,xb as Zt,xc as CA,xd as UC,xe as e5,y as Np,ya as Kt,yb as Zi,yc as ll,yd as gs,z as zk,za as ec,zb as Kn,zc as tc}from"./chunk-JPY5KHMK.js";var Hz=al((jz,$z)=>{(function(n){if(typeof jz=="object")$z.exports=n();else if(typeof define=="function"&&define.amd)define(n);else{var o;try{o=window}catch{o=self}o.SparkMD5=n()}})(function(n){"use strict";var o=function(S,O){return S+O&4294967295},e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function t(S,O,A,D,F,I){return O=o(o(O,S),o(D,I)),o(O<>>32-F,A)}function i(S,O){var A=S[0],D=S[1],F=S[2],I=S[3];A+=(D&F|~D&I)+O[0]-680876936|0,A=(A<<7|A>>>25)+D|0,I+=(A&D|~A&F)+O[1]-389564586|0,I=(I<<12|I>>>20)+A|0,F+=(I&A|~I&D)+O[2]+606105819|0,F=(F<<17|F>>>15)+I|0,D+=(F&I|~F&A)+O[3]-1044525330|0,D=(D<<22|D>>>10)+F|0,A+=(D&F|~D&I)+O[4]-176418897|0,A=(A<<7|A>>>25)+D|0,I+=(A&D|~A&F)+O[5]+1200080426|0,I=(I<<12|I>>>20)+A|0,F+=(I&A|~I&D)+O[6]-1473231341|0,F=(F<<17|F>>>15)+I|0,D+=(F&I|~F&A)+O[7]-45705983|0,D=(D<<22|D>>>10)+F|0,A+=(D&F|~D&I)+O[8]+1770035416|0,A=(A<<7|A>>>25)+D|0,I+=(A&D|~A&F)+O[9]-1958414417|0,I=(I<<12|I>>>20)+A|0,F+=(I&A|~I&D)+O[10]-42063|0,F=(F<<17|F>>>15)+I|0,D+=(F&I|~F&A)+O[11]-1990404162|0,D=(D<<22|D>>>10)+F|0,A+=(D&F|~D&I)+O[12]+1804603682|0,A=(A<<7|A>>>25)+D|0,I+=(A&D|~A&F)+O[13]-40341101|0,I=(I<<12|I>>>20)+A|0,F+=(I&A|~I&D)+O[14]-1502002290|0,F=(F<<17|F>>>15)+I|0,D+=(F&I|~F&A)+O[15]+1236535329|0,D=(D<<22|D>>>10)+F|0,A+=(D&I|F&~I)+O[1]-165796510|0,A=(A<<5|A>>>27)+D|0,I+=(A&F|D&~F)+O[6]-1069501632|0,I=(I<<9|I>>>23)+A|0,F+=(I&D|A&~D)+O[11]+643717713|0,F=(F<<14|F>>>18)+I|0,D+=(F&A|I&~A)+O[0]-373897302|0,D=(D<<20|D>>>12)+F|0,A+=(D&I|F&~I)+O[5]-701558691|0,A=(A<<5|A>>>27)+D|0,I+=(A&F|D&~F)+O[10]+38016083|0,I=(I<<9|I>>>23)+A|0,F+=(I&D|A&~D)+O[15]-660478335|0,F=(F<<14|F>>>18)+I|0,D+=(F&A|I&~A)+O[4]-405537848|0,D=(D<<20|D>>>12)+F|0,A+=(D&I|F&~I)+O[9]+568446438|0,A=(A<<5|A>>>27)+D|0,I+=(A&F|D&~F)+O[14]-1019803690|0,I=(I<<9|I>>>23)+A|0,F+=(I&D|A&~D)+O[3]-187363961|0,F=(F<<14|F>>>18)+I|0,D+=(F&A|I&~A)+O[8]+1163531501|0,D=(D<<20|D>>>12)+F|0,A+=(D&I|F&~I)+O[13]-1444681467|0,A=(A<<5|A>>>27)+D|0,I+=(A&F|D&~F)+O[2]-51403784|0,I=(I<<9|I>>>23)+A|0,F+=(I&D|A&~D)+O[7]+1735328473|0,F=(F<<14|F>>>18)+I|0,D+=(F&A|I&~A)+O[12]-1926607734|0,D=(D<<20|D>>>12)+F|0,A+=(D^F^I)+O[5]-378558|0,A=(A<<4|A>>>28)+D|0,I+=(A^D^F)+O[8]-2022574463|0,I=(I<<11|I>>>21)+A|0,F+=(I^A^D)+O[11]+1839030562|0,F=(F<<16|F>>>16)+I|0,D+=(F^I^A)+O[14]-35309556|0,D=(D<<23|D>>>9)+F|0,A+=(D^F^I)+O[1]-1530992060|0,A=(A<<4|A>>>28)+D|0,I+=(A^D^F)+O[4]+1272893353|0,I=(I<<11|I>>>21)+A|0,F+=(I^A^D)+O[7]-155497632|0,F=(F<<16|F>>>16)+I|0,D+=(F^I^A)+O[10]-1094730640|0,D=(D<<23|D>>>9)+F|0,A+=(D^F^I)+O[13]+681279174|0,A=(A<<4|A>>>28)+D|0,I+=(A^D^F)+O[0]-358537222|0,I=(I<<11|I>>>21)+A|0,F+=(I^A^D)+O[3]-722521979|0,F=(F<<16|F>>>16)+I|0,D+=(F^I^A)+O[6]+76029189|0,D=(D<<23|D>>>9)+F|0,A+=(D^F^I)+O[9]-640364487|0,A=(A<<4|A>>>28)+D|0,I+=(A^D^F)+O[12]-421815835|0,I=(I<<11|I>>>21)+A|0,F+=(I^A^D)+O[15]+530742520|0,F=(F<<16|F>>>16)+I|0,D+=(F^I^A)+O[2]-995338651|0,D=(D<<23|D>>>9)+F|0,A+=(F^(D|~I))+O[0]-198630844|0,A=(A<<6|A>>>26)+D|0,I+=(D^(A|~F))+O[7]+1126891415|0,I=(I<<10|I>>>22)+A|0,F+=(A^(I|~D))+O[14]-1416354905|0,F=(F<<15|F>>>17)+I|0,D+=(I^(F|~A))+O[5]-57434055|0,D=(D<<21|D>>>11)+F|0,A+=(F^(D|~I))+O[12]+1700485571|0,A=(A<<6|A>>>26)+D|0,I+=(D^(A|~F))+O[3]-1894986606|0,I=(I<<10|I>>>22)+A|0,F+=(A^(I|~D))+O[10]-1051523|0,F=(F<<15|F>>>17)+I|0,D+=(I^(F|~A))+O[1]-2054922799|0,D=(D<<21|D>>>11)+F|0,A+=(F^(D|~I))+O[8]+1873313359|0,A=(A<<6|A>>>26)+D|0,I+=(D^(A|~F))+O[15]-30611744|0,I=(I<<10|I>>>22)+A|0,F+=(A^(I|~D))+O[6]-1560198380|0,F=(F<<15|F>>>17)+I|0,D+=(I^(F|~A))+O[13]+1309151649|0,D=(D<<21|D>>>11)+F|0,A+=(F^(D|~I))+O[4]-145523070|0,A=(A<<6|A>>>26)+D|0,I+=(D^(A|~F))+O[11]-1120210379|0,I=(I<<10|I>>>22)+A|0,F+=(A^(I|~D))+O[2]+718787259|0,F=(F<<15|F>>>17)+I|0,D+=(I^(F|~A))+O[9]-343485551|0,D=(D<<21|D>>>11)+F|0,S[0]=A+S[0]|0,S[1]=D+S[1]|0,S[2]=F+S[2]|0,S[3]=I+S[3]|0}function a(S){var O=[],A;for(A=0;A<64;A+=4)O[A>>2]=S.charCodeAt(A)+(S.charCodeAt(A+1)<<8)+(S.charCodeAt(A+2)<<16)+(S.charCodeAt(A+3)<<24);return O}function s(S){var O=[],A;for(A=0;A<64;A+=4)O[A>>2]=S[A]+(S[A+1]<<8)+(S[A+2]<<16)+(S[A+3]<<24);return O}function d(S){var O=S.length,A=[1732584193,-271733879,-1732584194,271733878],D,F,I,B,le,ae;for(D=64;D<=O;D+=64)i(A,a(S.substring(D-64,D)));for(S=S.substring(D-64),F=S.length,I=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],D=0;D>2]|=S.charCodeAt(D)<<(D%4<<3);if(I[D>>2]|=128<<(D%4<<3),D>55)for(i(A,I),D=0;D<16;D+=1)I[D]=0;return B=O*8,B=B.toString(16).match(/(.*?)(.{0,8})$/),le=parseInt(B[2],16),ae=parseInt(B[1],16)||0,I[14]=le,I[15]=ae,i(A,I),A}function p(S){var O=S.length,A=[1732584193,-271733879,-1732584194,271733878],D,F,I,B,le,ae;for(D=64;D<=O;D+=64)i(A,s(S.subarray(D-64,D)));for(S=D-64>2]|=S[D]<<(D%4<<3);if(I[D>>2]|=128<<(D%4<<3),D>55)for(i(A,I),D=0;D<16;D+=1)I[D]=0;return B=O*8,B=B.toString(16).match(/(.*?)(.{0,8})$/),le=parseInt(B[2],16),ae=parseInt(B[1],16)||0,I[14]=le,I[15]=ae,i(A,I),A}function u(S){var O="",A;for(A=0;A<4;A+=1)O+=e[S>>A*8+4&15]+e[S>>A*8&15];return O}function g(S){var O;for(O=0;O>16)+(O>>16)+(A>>16);return D<<16|A&65535}),typeof ArrayBuffer<"u"&&!ArrayBuffer.prototype.slice&&(function(){function S(O,A){return O=O|0||0,O<0?Math.max(O+A,0):Math.min(O,A)}ArrayBuffer.prototype.slice=function(O,A){var D=this.byteLength,F=S(O,D),I=D,B,le,ae,W;return A!==n&&(I=S(A,D)),F>I?new ArrayBuffer(0):(B=I-F,le=new ArrayBuffer(B),ae=new Uint8Array(le),W=new Uint8Array(this,F,B),ae.set(W),le)}})();function C(S){return/[\u0080-\uFFFF]/.test(S)&&(S=unescape(encodeURIComponent(S))),S}function M(S,O){var A=S.length,D=new ArrayBuffer(A),F=new Uint8Array(D),I;for(I=0;I>2]|=O.charCodeAt(D)<<(D%4<<3);return this._finish(F,A),I=g(this._hash),S&&(I=P(I)),this.reset(),I},k.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},k.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},k.prototype.setState=function(S){return this._buff=S.buff,this._length=S.length,this._hash=S.hash,this},k.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},k.prototype._finish=function(S,O){var A=O,D,F,I;if(S[A>>2]|=128<<(A%4<<3),A>55)for(i(this._hash,S),A=0;A<16;A+=1)S[A]=0;D=this._length*8,D=D.toString(16).match(/(.*?)(.{0,8})$/),F=parseInt(D[2],16),I=parseInt(D[1],16)||0,S[14]=F,S[15]=I,i(this._hash,S)},k.hash=function(S,O){return k.hashBinary(C(S),O)},k.hashBinary=function(S,O){var A=d(S),D=g(A);return O?P(D):D},k.ArrayBuffer=function(){this.reset()},k.ArrayBuffer.prototype.append=function(S){var O=b(this._buff.buffer,S,!0),A=O.length,D;for(this._length+=S.byteLength,D=64;D<=A;D+=64)i(this._hash,s(O.subarray(D-64,D)));return this._buff=D-64>2]|=O[F]<<(F%4<<3);return this._finish(D,A),I=g(this._hash),S&&(I=P(I)),this.reset(),I},k.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},k.ArrayBuffer.prototype.getState=function(){var S=k.prototype.getState.call(this);return S.buff=x(S.buff),S},k.ArrayBuffer.prototype.setState=function(S){return S.buff=M(S.buff,!0),k.prototype.setState.call(this,S)},k.ArrayBuffer.prototype.destroy=k.prototype.destroy,k.ArrayBuffer.prototype._finish=k.prototype._finish,k.ArrayBuffer.hash=function(S,O){var A=p(new Uint8Array(S)),D=g(A);return O?P(D):D},k})});var Jz=al((Qut,by)=>{(function(n,o,e){if(!n)return;for(var t={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},i={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},a={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},s={option:"alt",command:"meta",return:"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},d,p=1;p<20;++p)t[111+p]="f"+p;for(p=0;p<=9;++p)t[p+96]=p.toString();function u(I,B,le){if(I.addEventListener){I.addEventListener(B,le,!1);return}I.attachEvent("on"+B,le)}function g(I){if(I.type=="keypress"){var B=String.fromCharCode(I.which);return I.shiftKey||(B=B.toLowerCase()),B}return t[I.which]?t[I.which]:i[I.which]?i[I.which]:String.fromCharCode(I.which).toLowerCase()}function C(I,B){return I.sort().join(",")===B.sort().join(",")}function M(I){var B=[];return I.shiftKey&&B.push("shift"),I.altKey&&B.push("alt"),I.ctrlKey&&B.push("ctrl"),I.metaKey&&B.push("meta"),B}function x(I){if(I.preventDefault){I.preventDefault();return}I.returnValue=!1}function b(I){if(I.stopPropagation){I.stopPropagation();return}I.cancelBubble=!0}function P(I){return I=="shift"||I=="ctrl"||I=="alt"||I=="meta"}function k(){if(!d){d={};for(var I in t)I>95&&I<112||t.hasOwnProperty(I)&&(d[t[I]]=I)}return d}function S(I,B,le){return le||(le=k()[I]?"keydown":"keypress"),le=="keypress"&&B.length&&(le="keydown"),le}function O(I){return I==="+"?["+"]:(I=I.replace(/\+{2}/g,"+plus"),I.split("+"))}function A(I,B){var le,ae,W,G=[];for(le=O(I),W=0;W1){te(me,Me,Ie,$e);return}Z=A(me,$e),B._callbacks[Z.key]=B._callbacks[Z.key]||[],pe(Z.key,Z.modifiers,{type:Z.action},tt,me,et),B._callbacks[Z.key][tt?"unshift":"push"]({callback:Ie,modifiers:Z.modifiers,action:Z.action,seq:tt,level:et,combo:me})}B._bindMultiple=function(me,Ie,$e){for(var tt=0;tt-1||D(B,le.target))return!1;if("composedPath"in I&&typeof I.composedPath=="function"){var ae=I.composedPath()[0];ae!==I.target&&(B=ae)}return B.tagName=="INPUT"||B.tagName=="SELECT"||B.tagName=="TEXTAREA"||B.isContentEditable},F.prototype.handleKey=function(){var I=this;return I._handleKey.apply(I,arguments)},F.addKeycodes=function(I){for(var B in I)I.hasOwnProperty(B)&&(t[B]=I[B]);d=null},F.init=function(){var I=F(o);for(var B in I)B.charAt(0)!=="_"&&(F[B]=(function(le){return function(){return I[le].apply(I,arguments)}})(B))},F.init(),n.Mousetrap=F,typeof by<"u"&&by.exports&&(by.exports=F),typeof define=="function"&&define.amd&&define(function(){return F})})(typeof window<"u"?window:null,typeof window<"u"?document:null)});var s7=al(cO=>{var r7="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");cO.encode=function(n){if(0<=n&&n{var l7=s7(),dO=5,c7=1<>1;return o?-e:e}mO.encode=function(o){var e="",t,i=Uhe(o);do t=i&d7,i>>>=dO,i>0&&(t|=m7),e+=l7.encode(t);while(i>0);return e};mO.decode=function(o,e,t){var i=o.length,a=0,s=0,d,p;do{if(e>=i)throw new Error("Expected more digits in base 64 VLQ value.");if(p=l7.decode(o.charCodeAt(e++)),p===-1)throw new Error("Invalid base64 digit: "+o.charAt(e-1));d=!!(p&m7),p&=d7,a=a+(p<{function Ghe(n,o,e){if(o in n)return n[o];if(arguments.length===3)return e;throw new Error('"'+o+'" is a required argument.')}cr.getArg=Ghe;var u7=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,qhe=/^data:.+\,.+$/;function Ev(n){var o=n.match(u7);return o?{scheme:o[1],auth:o[2],host:o[3],port:o[4],path:o[5]}:null}cr.urlParse=Ev;function Rh(n){var o="";return n.scheme&&(o+=n.scheme+":"),o+="//",n.auth&&(o+=n.auth+"@"),n.host&&(o+=n.host),n.port&&(o+=":"+n.port),n.path&&(o+=n.path),o}cr.urlGenerate=Rh;var Qhe=32;function Khe(n){var o=[];return function(e){for(var t=0;tQhe&&o.pop(),a}}var pO=Khe(function(o){var e=o,t=Ev(o);if(t){if(!t.path)return o;e=t.path}for(var i=cr.isAbsolute(e),a=[],s=0,d=0;;)if(s=d,d=e.indexOf("/",s),d===-1){a.push(e.slice(s));break}else for(a.push(e.slice(s,d));d=0;d--)p=a[d],p==="."?a.splice(d,1):p===".."?u++:u>0&&(p===""?(a.splice(d+1,u),u=0):(a.splice(d,2),u--));return e=a.join("/"),e===""&&(e=i?"/":"."),t?(t.path=e,Rh(t)):e});cr.normalize=pO;function g7(n,o){n===""&&(n="."),o===""&&(o=".");var e=Ev(o),t=Ev(n);if(t&&(n=t.path||"/"),e&&!e.scheme)return t&&(e.scheme=t.scheme),Rh(e);if(e||o.match(qhe))return o;if(t&&!t.host&&!t.path)return t.host=o,Rh(t);var i=o.charAt(0)==="/"?o:pO(n.replace(/\/+$/,"")+"/"+o);return t?(t.path=i,Rh(t)):i}cr.join=g7;cr.isAbsolute=function(n){return n.charAt(0)==="/"||u7.test(n)};function Xhe(n,o){n===""&&(n="."),n=n.replace(/\/$/,"");for(var e=0;o.indexOf(n+"/")!==0;){var t=n.lastIndexOf("/");if(t<0||(n=n.slice(0,t),n.match(/^([^\/]+:\/)?\/*$/)))return o;++e}return Array(e+1).join("../")+o.substr(n.length+1)}cr.relative=Xhe;var h7=(function(){var n=Object.create(null);return!("__proto__"in n)})();function _7(n){return n}function Yhe(n){return f7(n)?"$"+n:n}cr.toSetString=h7?_7:Yhe;function Zhe(n){return f7(n)?n.slice(1):n}cr.fromSetString=h7?_7:Zhe;function f7(n){if(!n)return!1;var o=n.length;if(o<9||n.charCodeAt(o-1)!==95||n.charCodeAt(o-2)!==95||n.charCodeAt(o-3)!==111||n.charCodeAt(o-4)!==116||n.charCodeAt(o-5)!==111||n.charCodeAt(o-6)!==114||n.charCodeAt(o-7)!==112||n.charCodeAt(o-8)!==95||n.charCodeAt(o-9)!==95)return!1;for(var e=o-10;e>=0;e--)if(n.charCodeAt(e)!==36)return!1;return!0}function Jhe(n,o,e){var t=Xd(n.source,o.source);return t!==0||(t=n.originalLine-o.originalLine,t!==0)||(t=n.originalColumn-o.originalColumn,t!==0||e)||(t=n.generatedColumn-o.generatedColumn,t!==0)||(t=n.generatedLine-o.generatedLine,t!==0)?t:Xd(n.name,o.name)}cr.compareByOriginalPositions=Jhe;function e_e(n,o,e){var t;return t=n.originalLine-o.originalLine,t!==0||(t=n.originalColumn-o.originalColumn,t!==0||e)||(t=n.generatedColumn-o.generatedColumn,t!==0)||(t=n.generatedLine-o.generatedLine,t!==0)?t:Xd(n.name,o.name)}cr.compareByOriginalPositionsNoSource=e_e;function t_e(n,o,e){var t=n.generatedLine-o.generatedLine;return t!==0||(t=n.generatedColumn-o.generatedColumn,t!==0||e)||(t=Xd(n.source,o.source),t!==0)||(t=n.originalLine-o.originalLine,t!==0)||(t=n.originalColumn-o.originalColumn,t!==0)?t:Xd(n.name,o.name)}cr.compareByGeneratedPositionsDeflated=t_e;function n_e(n,o,e){var t=n.generatedColumn-o.generatedColumn;return t!==0||e||(t=Xd(n.source,o.source),t!==0)||(t=n.originalLine-o.originalLine,t!==0)||(t=n.originalColumn-o.originalColumn,t!==0)?t:Xd(n.name,o.name)}cr.compareByGeneratedPositionsDeflatedNoLine=n_e;function Xd(n,o){return n===o?0:n===null?1:o===null?-1:n>o?1:-1}function i_e(n,o){var e=n.generatedLine-o.generatedLine;return e!==0||(e=n.generatedColumn-o.generatedColumn,e!==0)||(e=Xd(n.source,o.source),e!==0)||(e=n.originalLine-o.originalLine,e!==0)||(e=n.originalColumn-o.originalColumn,e!==0)?e:Xd(n.name,o.name)}cr.compareByGeneratedPositionsInflated=i_e;function o_e(n){return JSON.parse(n.replace(/^\)]}'[^\n]*\n/,""))}cr.parseSourceMapInput=o_e;function a_e(n,o,e){if(o=o||"",n&&(n[n.length-1]!=="/"&&o[0]!=="/"&&(n+="/"),o=n+o),e){var t=Ev(e);if(!t)throw new Error("sourceMapURL could not be parsed");if(t.path){var i=t.path.lastIndexOf("/");i>=0&&(t.path=t.path.substring(0,i+1))}o=g7(Rh(t),o)}return pO(o)}cr.computeSourceURL=a_e});var C7=al(v7=>{var uO=By(),gO=Object.prototype.hasOwnProperty,Nu=typeof Map<"u";function Yd(){this._array=[],this._set=Nu?new Map:Object.create(null)}Yd.fromArray=function(o,e){for(var t=new Yd,i=0,a=o.length;i=0)return e}else{var t=uO.toSetString(o);if(gO.call(this._set,t))return this._set[t]}throw new Error('"'+o+'" is not in the set.')};Yd.prototype.at=function(o){if(o>=0&&o{var b7=By();function r_e(n,o){var e=n.generatedLine,t=o.generatedLine,i=n.generatedColumn,a=o.generatedColumn;return t>e||t==e&&a>=i||b7.compareByGeneratedPositionsInflated(n,o)<=0}function jy(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}jy.prototype.unsortedForEach=function(o,e){this._array.forEach(o,e)};jy.prototype.add=function(o){r_e(this._last,o)?(this._last=o,this._array.push(o)):(this._sorted=!1,this._array.push(o))};jy.prototype.toArray=function(){return this._sorted||(this._array.sort(b7.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};x7.MappingList=jy});var M7=al(w7=>{var Ov=p7(),Sa=By(),$y=C7().ArraySet,s_e=y7().MappingList;function Bl(n){n||(n={}),this._file=Sa.getArg(n,"file",null),this._sourceRoot=Sa.getArg(n,"sourceRoot",null),this._skipValidation=Sa.getArg(n,"skipValidation",!1),this._ignoreInvalidMapping=Sa.getArg(n,"ignoreInvalidMapping",!1),this._sources=new $y,this._names=new $y,this._mappings=new s_e,this._sourcesContents=null}Bl.prototype._version=3;Bl.fromSourceMap=function(o,e){var t=o.sourceRoot,i=new Bl(Object.assign(e||{},{file:o.file,sourceRoot:t}));return o.eachMapping(function(a){var s={generated:{line:a.generatedLine,column:a.generatedColumn}};a.source!=null&&(s.source=a.source,t!=null&&(s.source=Sa.relative(t,s.source)),s.original={line:a.originalLine,column:a.originalColumn},a.name!=null&&(s.name=a.name)),i.addMapping(s)}),o.sources.forEach(function(a){var s=a;t!==null&&(s=Sa.relative(t,a)),i._sources.has(s)||i._sources.add(s);var d=o.sourceContentFor(a);d!=null&&i.setSourceContent(a,d)}),i};Bl.prototype.addMapping=function(o){var e=Sa.getArg(o,"generated"),t=Sa.getArg(o,"original",null),i=Sa.getArg(o,"source",null),a=Sa.getArg(o,"name",null);!this._skipValidation&&this._validateMapping(e,t,i,a)===!1||(i!=null&&(i=String(i),this._sources.has(i)||this._sources.add(i)),a!=null&&(a=String(a),this._names.has(a)||this._names.add(a)),this._mappings.add({generatedLine:e.line,generatedColumn:e.column,originalLine:t!=null&&t.line,originalColumn:t!=null&&t.column,source:i,name:a}))};Bl.prototype.setSourceContent=function(o,e){var t=o;this._sourceRoot!=null&&(t=Sa.relative(this._sourceRoot,t)),e!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[Sa.toSetString(t)]=e):this._sourcesContents&&(delete this._sourcesContents[Sa.toSetString(t)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Bl.prototype.applySourceMap=function(o,e,t){var i=e;if(e==null){if(o.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);i=o.file}var a=this._sourceRoot;a!=null&&(i=Sa.relative(a,i));var s=new $y,d=new $y;this._mappings.unsortedForEach(function(p){if(p.source===i&&p.originalLine!=null){var u=o.originalPositionFor({line:p.originalLine,column:p.originalColumn});u.source!=null&&(p.source=u.source,t!=null&&(p.source=Sa.join(t,p.source)),a!=null&&(p.source=Sa.relative(a,p.source)),p.originalLine=u.line,p.originalColumn=u.column,u.name!=null&&(p.name=u.name))}var g=p.source;g!=null&&!s.has(g)&&s.add(g);var C=p.name;C!=null&&!d.has(C)&&d.add(C)},this),this._sources=s,this._names=d,o.sources.forEach(function(p){var u=o.sourceContentFor(p);u!=null&&(t!=null&&(p=Sa.join(t,p)),a!=null&&(p=Sa.relative(a,p)),this.setSourceContent(p,u))},this)};Bl.prototype._validateMapping=function(o,e,t,i){if(e&&typeof e.line!="number"&&typeof e.column!="number"){var a="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(a),!1;throw new Error(a)}if(!(o&&"line"in o&&"column"in o&&o.line>0&&o.column>=0&&!e&&!t&&!i)){if(o&&"line"in o&&"column"in o&&e&&"line"in e&&"column"in e&&o.line>0&&o.column>=0&&e.line>0&&e.column>=0&&t)return;var a="Invalid mapping: "+JSON.stringify({generated:o,source:t,original:e,name:i});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(a),!1;throw new Error(a)}};Bl.prototype._serializeMappings=function(){for(var o=0,e=1,t=0,i=0,a=0,s=0,d="",p,u,g,C,M=this._mappings.toArray(),x=0,b=M.length;x0){if(!Sa.compareByGeneratedPositionsInflated(u,M[x-1]))continue;p+=","}p+=Ov.encode(u.generatedColumn-o),o=u.generatedColumn,u.source!=null&&(C=this._sources.indexOf(u.source),p+=Ov.encode(C-s),s=C,p+=Ov.encode(u.originalLine-1-i),i=u.originalLine-1,p+=Ov.encode(u.originalColumn-t),t=u.originalColumn,u.name!=null&&(g=this._names.indexOf(u.name),p+=Ov.encode(g-a),a=g)),d+=p}return d};Bl.prototype._generateSourcesContent=function(o,e){return o.map(function(t){if(!this._sourcesContents)return null;e!=null&&(t=Sa.relative(e,t));var i=Sa.toSetString(t);return Object.prototype.hasOwnProperty.call(this._sourcesContents,i)?this._sourcesContents[i]:null},this)};Bl.prototype.toJSON=function(){var o={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(o.file=this._file),this._sourceRoot!=null&&(o.sourceRoot=this._sourceRoot),this._sourcesContents&&(o.sourcesContent=this._generateSourcesContent(o.sources,o.sourceRoot)),o};Bl.prototype.toString=function(){return JSON.stringify(this.toJSON())};w7.SourceMapGenerator=Bl});var HM=al((nj,$M)=>{(function(n){"use strict";let o="(0?\\d+|0x[a-f0-9]+)",e={fourOctet:new RegExp(`^${o}\\.${o}\\.${o}\\.${o}$`,"i"),threeOctet:new RegExp(`^${o}\\.${o}\\.${o}$`,"i"),twoOctet:new RegExp(`^${o}\\.${o}$`,"i"),longValue:new RegExp(`^${o}$`,"i")},t=new RegExp("^0[0-7]+$","i"),i=new RegExp("^0x[a-f0-9]+$","i"),a="%[0-9a-z]{1,}",s="(?:[0-9a-f]+::?)+",d={zoneIndex:new RegExp(a,"i"),native:new RegExp(`^(::)?(${s})?([0-9a-f]+)?(::)?(${a})?$`,"i"),deprecatedTransitional:new RegExp(`^(?:::)(${o}\\.${o}\\.${o}\\.${o}(${a})?)$`,"i"),transitional:new RegExp(`^((?:${s})|(?:::)(?:${s})?)${o}\\.${o}\\.${o}\\.${o}(${a})?$`,"i")};function p(x,b){if(x.indexOf("::")!==x.lastIndexOf("::"))return null;let P=0,k=-1,S=(x.match(d.zoneIndex)||[])[0],O,A;for(S&&(S=S.substring(1),x=x.replace(/%.+$/,""));(k=x.indexOf(":",k+1))>=0;)P++;if(x.substr(0,2)==="::"&&P--,x.substr(-2,2)==="::"&&P--,P>b)return null;for(A=b-P,O=":";A--;)O+="0:";return x=x.replace("::",O),x[0]===":"&&(x=x.slice(1)),x[x.length-1]===":"&&(x=x.slice(0,-1)),b=(function(){let D=x.split(":"),F=[];for(let I=0;I0;){if(O=P-k,O<0&&(O=0),x[S]>>O!==b[S]>>O)return!1;k-=P,S+=1}return!0}function g(x){if(i.test(x))return parseInt(x,16);if(x[0]==="0"&&!isNaN(parseInt(x[1],10))){if(t.test(x))return parseInt(x,8);throw new Error(`ipaddr: cannot parse ${x} as octal`)}return parseInt(x,10)}function C(x,b){for(;x.length=0;S-=1)if(O=this.octets[S],O in k){if(A=k[O],P&&A!==0)return null;A!==8&&(P=!0),b+=A}else return null;return 32-b},x.prototype.range=function(){return M.subnetMatch(this,this.SpecialRanges)},x.prototype.toByteArray=function(){return this.octets.slice(0)},x.prototype.toIPv4MappedAddress=function(){return M.IPv6.parse(`::ffff:${this.toString()}`)},x.prototype.toNormalizedString=function(){return this.toString()},x.prototype.toString=function(){return this.octets.join(".")},x})(),M.IPv4.broadcastAddressFromCIDR=function(x){try{let b=this.parseCIDR(x),P=b[0].toByteArray(),k=this.subnetMaskFromPrefixLength(b[1]).toByteArray(),S=[],O=0;for(;O<4;)S.push(parseInt(P[O],10)|parseInt(k[O],10)^255),O++;return new this(S)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},M.IPv4.isIPv4=function(x){return this.parser(x)!==null},M.IPv4.isValid=function(x){try{return new this(this.parser(x)),!0}catch{return!1}},M.IPv4.isValidCIDR=function(x){try{return this.parseCIDR(x),!0}catch{return!1}},M.IPv4.isValidFourPartDecimal=function(x){return!!(M.IPv4.isValid(x)&&x.match(/^(0|[1-9]\d*)(\.(0|[1-9]\d*)){3}$/))},M.IPv4.isValidCIDRFourPartDecimal=function(x){let b=x.match(/^(.+)\/(\d+)$/);return!M.IPv4.isValidCIDR(x)||!b?!1:M.IPv4.isValidFourPartDecimal(b[1])},M.IPv4.networkAddressFromCIDR=function(x){let b,P,k,S,O;try{for(b=this.parseCIDR(x),k=b[0].toByteArray(),O=this.subnetMaskFromPrefixLength(b[1]).toByteArray(),S=[],P=0;P<4;)S.push(parseInt(k[P],10)&parseInt(O[P],10)),P++;return new this(S)}catch{throw new Error("ipaddr: the address does not have IPv4 CIDR format")}},M.IPv4.parse=function(x){let b=this.parser(x);if(b===null)throw new Error("ipaddr: string is not formatted like an IPv4 Address");return new this(b)},M.IPv4.parseCIDR=function(x){let b;if(b=x.match(/^(.+)\/(\d+)$/)){let P=parseInt(b[2]);if(P>=0&&P<=32){let k=[this.parse(b[1]),P];return Object.defineProperty(k,"toString",{value:function(){return this.join("/")}}),k}}throw new Error("ipaddr: string is not formatted like an IPv4 CIDR range")},M.IPv4.parser=function(x){let b,P,k;if(b=x.match(e.fourOctet))return(function(){let S=b.slice(1,6),O=[];for(let A=0;A4294967295||k<0)throw new Error("ipaddr: address outside defined range");return(function(){let S=[],O;for(O=0;O<=24;O+=8)S.push(k>>O&255);return S})().reverse()}else return(b=x.match(e.twoOctet))?(function(){let S=b.slice(1,4),O=[];if(k=g(S[1]),k>16777215||k<0)throw new Error("ipaddr: address outside defined range");return O.push(g(S[0])),O.push(k>>16&255),O.push(k>>8&255),O.push(k&255),O})():(b=x.match(e.threeOctet))?(function(){let S=b.slice(1,5),O=[];if(k=g(S[2]),k>65535||k<0)throw new Error("ipaddr: address outside defined range");return O.push(g(S[0])),O.push(g(S[1])),O.push(k>>8&255),O.push(k&255),O})():null},M.IPv4.subnetMaskFromPrefixLength=function(x){if(x=parseInt(x),x<0||x>32)throw new Error("ipaddr: invalid IPv4 prefix length");let b=[0,0,0,0],P=0,k=Math.floor(x/8);for(;P=0;A-=1)if(S=this.parts[A],S in k){if(O=k[S],P&&O!==0)return null;O!==16&&(P=!0),b+=O}else return null;return 128-b},x.prototype.range=function(){return M.subnetMatch(this,this.SpecialRanges)},x.prototype.toByteArray=function(){let b,P=[],k=this.parts;for(let S=0;S>8),P.push(b&255);return P},x.prototype.toFixedLengthString=function(){let b=function(){let k=[];for(let S=0;S>8,P&255,k>>8,k&255])},x.prototype.toNormalizedString=function(){let b=function(){let k=[];for(let S=0;SS&&(k=O.index,S=O[0].length);return S<0?P:`${P.substring(0,k)}::${P.substring(k+S)}`},x.prototype.toString=function(){return this.toRFC5952String()},x})(),M.IPv6.broadcastAddressFromCIDR=function(x){try{let b=this.parseCIDR(x),P=b[0].toByteArray(),k=this.subnetMaskFromPrefixLength(b[1]).toByteArray(),S=[],O=0;for(;O<16;)S.push(parseInt(P[O],10)|parseInt(k[O],10)^255),O++;return new this(S)}catch(b){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${b})`)}},M.IPv6.isIPv6=function(x){return this.parser(x)!==null},M.IPv6.isValid=function(x){if(typeof x=="string"&&x.indexOf(":")===-1)return!1;try{let b=this.parser(x);return new this(b.parts,b.zoneId),!0}catch{return!1}},M.IPv6.isValidCIDR=function(x){if(typeof x=="string"&&x.indexOf(":")===-1)return!1;try{return this.parseCIDR(x),!0}catch{return!1}},M.IPv6.networkAddressFromCIDR=function(x){let b,P,k,S,O;try{for(b=this.parseCIDR(x),k=b[0].toByteArray(),O=this.subnetMaskFromPrefixLength(b[1]).toByteArray(),S=[],P=0;P<16;)S.push(parseInt(k[P],10)&parseInt(O[P],10)),P++;return new this(S)}catch(A){throw new Error(`ipaddr: the address does not have IPv6 CIDR format (${A})`)}},M.IPv6.parse=function(x){let b=this.parser(x);if(b.parts===null)throw new Error("ipaddr: string is not formatted like an IPv6 Address");return new this(b.parts,b.zoneId)},M.IPv6.parseCIDR=function(x){let b,P,k;if((P=x.match(/^(.+)\/(\d+)$/))&&(b=parseInt(P[2]),b>=0&&b<=128))return k=[this.parse(P[1]),b],Object.defineProperty(k,"toString",{value:function(){return this.join("/")}}),k;throw new Error("ipaddr: string is not formatted like an IPv6 CIDR range")},M.IPv6.parser=function(x){let b,P,k,S,O,A;if(k=x.match(d.deprecatedTransitional))return this.parser(`::ffff:${k[1]}`);if(d.native.test(x))return p(x,8);if((k=x.match(d.transitional))&&(A=k[6]||"",b=k[1],k[1].endsWith("::")||(b=b.slice(0,-1)),b=p(b+A,6),b.parts)){for(O=[parseInt(k[2]),parseInt(k[3]),parseInt(k[4]),parseInt(k[5])],P=0;P128)throw new Error("ipaddr: invalid IPv6 prefix length");let b=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],P=0,k=Math.floor(x/8);for(;P{"use strict";(function(){var n=typeof S4<"u"&&S4||typeof define<"u"&&{}||this||window;typeof define<"u"&&define("save-svg-as-png",[],function(){return n}),n.default=n;var o="http://www.w3.org/2000/xmlns/",e="http://www.w3.org/1999/xhtml",t="http://www.w3.org/2000/svg",i=']>',a=/url\(["']?(.+?)["']?\)/,s={woff2:"font/woff2",woff:"font/woff",otf:"application/x-font-opentype",ttf:"application/x-font-ttf",eot:"application/vnd.ms-fontobject",sfnt:"application/font-sfnt",svg:"image/svg+xml"},d=function(G){return G instanceof HTMLElement||G instanceof SVGElement},p=function(G){if(!d(G))throw new Error("an HTMLElement or SVGElement is required; got "+G)},u=function(G){return new Promise(function(ve,Se){d(G)?ve(G):Se(new Error("an HTMLElement or SVGElement is required; got "+G))})},g=function(G){return G&&G.lastIndexOf("http",0)===0&&G.lastIndexOf(window.location.host)===-1},C=function(G){var ve=Object.keys(s).filter(function(Se){return G.indexOf("."+Se)>0}).map(function(Se){return s[Se]});return ve?ve[0]:(console.error("Unknown font format for "+G+". Fonts may not be working correctly."),"application/octet-stream")},M=function(G){for(var ve="",Se=new Uint8Array(G),pe=0;pe"u"||pe===null||isNaN(parseFloat(pe))?0:pe},b=function(G,ve,Se,pe){if(G.tagName==="svg")return{width:Se||x(G,ve,"width"),height:pe||x(G,ve,"height")};if(G.getBBox){var Ae=G.getBBox(),ue=Ae.x,H=Ae.y,te=Ae.width,de=Ae.height;return{width:ue+te,height:H+de}}},P=function(G){return decodeURIComponent(encodeURIComponent(G).replace(/%([0-9A-F]{2})/g,function(ve,Se){var pe=String.fromCharCode("0x"+Se);return pe==="%"?"%25":pe}))},k=function(G){for(var ve=window.atob(G.split(",")[1]),Se=G.split(",")[0].split(":")[1].split(";")[0],pe=new ArrayBuffer(ve.length),Ae=new Uint8Array(pe),ue=0;ue"u",$e=H||[];return B().forEach(function(tt){var et=tt.rules,Me=tt.href;et&&Array.from(et).forEach(function(Z){if(typeof Z.style<"u")if(S(G,Z.selectorText))me.push(de(Z.selectorText,Z.style.cssText));else if(Ie&&Z.cssText.match(/^@font-face/)){var Le=O(Z,Me);Le&&$e.push(Le)}else te||me.push(Z.cssText)})}),F($e).then(function(tt){return me.join(` +`)+tt})},ae=function(){if(!navigator.msSaveOrOpenBlob&&!("download"in document.createElement("a")))return{popup:window.open()}};n.prepareSvg=function(W,G,ve){p(W);var Se=G||{},pe=Se.left,Ae=pe===void 0?0:pe,ue=Se.top,H=ue===void 0?0:ue,te=Se.width,de=Se.height,me=Se.scale,Ie=me===void 0?1:me,$e=Se.responsive,tt=$e===void 0?!1:$e,et=Se.excludeCss,Me=et===void 0?!1:et;return A(W).then(function(){var Z=W.cloneNode(!0);Z.style.backgroundColor=(G||{}).backgroundColor||W.style.backgroundColor;var Le=b(W,Z,te,de),Ze=Le.width,dt=Le.height;if(W.tagName!=="svg")if(W.getBBox){Z.getAttribute("transform")!=null&&Z.setAttribute("transform",Z.getAttribute("transform").replace(/translate\(.*?\)/,""));var Ot=document.createElementNS("http://www.w3.org/2000/svg","svg");Ot.appendChild(Z),Z=Ot}else{console.error("Attempted to render non-SVG element",W);return}if(Z.setAttribute("version","1.1"),Z.setAttribute("viewBox",[Ae,H,Ze,dt].join(" ")),Z.getAttribute("xmlns")||Z.setAttributeNS(o,"xmlns",t),Z.getAttribute("xmlns:xlink")||Z.setAttributeNS(o,"xmlns:xlink","http://www.w3.org/1999/xlink"),tt?(Z.removeAttribute("width"),Z.removeAttribute("height"),Z.setAttribute("preserveAspectRatio","xMinYMin meet")):(Z.setAttribute("width",Ze*Ie),Z.setAttribute("height",dt*Ie)),Array.from(Z.querySelectorAll("foreignObject > *")).forEach(function(Mo){Mo.setAttributeNS(o,"xmlns",Mo.tagName==="svg"?t:e)}),Me){var si=document.createElement("div");si.appendChild(Z);var Bo=si.innerHTML;if(typeof ve=="function")ve(Bo,Ze,dt);else return{src:Bo,width:Ze,height:dt}}else return le(W,G).then(function(Mo){var Ka=document.createElement("style");Ka.setAttribute("type","text/css"),Ka.innerHTML=``;var Gn=document.createElement("defs");Gn.appendChild(Ka),Z.insertBefore(Gn,Z.firstChild);var om=document.createElement("div");om.appendChild(Z);var Zu=om.innerHTML.replace(/NS\d+:href/gi,'xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href');if(typeof ve=="function")ve(Zu,Ze,dt);else return{src:Zu,width:Ze,height:dt}})})},n.svgAsDataUri=function(W,G,ve){return p(W),n.prepareSvg(W,G).then(function(Se){var pe=Se.src,Ae=Se.width,ue=Se.height,H="data:image/svg+xml;base64,"+window.btoa(P(i+pe));return typeof ve=="function"&&ve(H,Ae,ue),H})},n.svgAsPngUri=function(W,G,ve){p(W);var Se=G||{},pe=Se.encoderType,Ae=pe===void 0?"image/png":pe,ue=Se.encoderOptions,H=ue===void 0?.8:ue,te=Se.canvg,de=function(Ie){var $e=Ie.src,tt=Ie.width,et=Ie.height,Me=document.createElement("canvas"),Z=Me.getContext("2d"),Le=window.devicePixelRatio||1;Me.width=tt*Le,Me.height=et*Le,Me.style.width=Me.width+"px",Me.style.height=Me.height+"px",Z.setTransform(Le,0,0,Le,0,0),te?te(Me,$e):Z.drawImage($e,0,0);var Ze=void 0;try{Ze=Me.toDataURL(Ae,H)}catch(dt){if(typeof SecurityError<"u"&&dt instanceof SecurityError||dt.name==="SecurityError"){console.error("Rendered SVG images cannot be downloaded in this browser.");return}else throw dt}return typeof ve=="function"&&ve(Ze,Me.width,Me.height),Promise.resolve(Ze)};return te?n.prepareSvg(W,G).then(de):n.svgAsDataUri(W,G).then(function(me){return new Promise(function(Ie,$e){var tt=new Image;tt.onload=function(){return Ie(de({src:tt,width:tt.width,height:tt.height}))},tt.onerror=function(){$e(`There was an error loading the data URI as an image on the following SVG +`+window.atob(me.slice(26))+`Open the following link to see browser's diagnosis +`+me)},tt.src=me})})},n.download=function(W,G,ve){if(navigator.msSaveOrOpenBlob)navigator.msSaveOrOpenBlob(k(G),W);else{var Se=document.createElement("a");if("download"in Se){Se.download=W,Se.style.display="none",document.body.appendChild(Se);try{var pe=k(G),Ae=URL.createObjectURL(pe);Se.href=Ae,Se.onclick=function(){return requestAnimationFrame(function(){return URL.revokeObjectURL(Ae)})}}catch(ue){console.error(ue),console.warn("Error while getting object URL. Falling back to string URL."),Se.href=G}Se.click(),document.body.removeChild(Se)}else ve&&ve.popup&&(ve.popup.document.title=W,ve.popup.location.replace(G))}},n.saveSvg=function(W,G,ve){var Se=ae();return u(W).then(function(pe){return n.svgAsDataUri(pe,ve||{})}).then(function(pe){return n.download(G,pe,Se)})},n.saveSvgAsPng=function(W,G,ve){var Se=ae();return u(W).then(function(pe){return n.svgAsPngUri(pe,ve||{})}).then(function(pe){return n.download(G,pe,Se)})}})()});var O4=al((d2,E4)=>{(function(n,o){if(typeof d2=="object"&&typeof E4=="object")E4.exports=o();else if(typeof define=="function"&&define.amd)define([],o);else{var e=o();for(var t in e)(typeof d2=="object"?d2:n)[t]=e[t]}})(globalThis,()=>(()=>{"use strict";var n={4567:function(i,a,s){var d=this&&this.__decorate||function(k,S,O,A){var D,F=arguments.length,I=F<3?S:A===null?A=Object.getOwnPropertyDescriptor(S,O):A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(k,S,O,A);else for(var B=k.length-1;B>=0;B--)(D=k[B])&&(I=(F<3?D(I):F>3?D(S,O,I):D(S,O))||I);return F>3&&I&&Object.defineProperty(S,O,I),I},p=this&&this.__param||function(k,S){return function(O,A){S(O,A,k)}};Object.defineProperty(a,"__esModule",{value:!0}),a.AccessibilityManager=void 0;let u=s(9042),g=s(9924),C=s(844),M=s(4725),x=s(2585),b=s(3656),P=a.AccessibilityManager=class extends C.Disposable{constructor(k,S,O,A){super(),this._terminal=k,this._coreBrowserService=O,this._renderService=A,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=this._coreBrowserService.mainDocument.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=this._coreBrowserService.mainDocument.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let D=0;Dthis._handleBoundaryFocus(D,0),this._bottomBoundaryFocusListener=D=>this._handleBoundaryFocus(D,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=this._coreBrowserService.mainDocument.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new g.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize(D=>this._handleResize(D.rows))),this.register(this._terminal.onRender(D=>this._refreshRows(D.start,D.end))),this.register(this._terminal.onScroll(()=>this._refreshRows())),this.register(this._terminal.onA11yChar(D=>this._handleChar(D))),this.register(this._terminal.onLineFeed(()=>this._handleChar(` +`))),this.register(this._terminal.onA11yTab(D=>this._handleTab(D))),this.register(this._terminal.onKey(D=>this._handleKey(D.key))),this.register(this._terminal.onBlur(()=>this._clearLiveRegion())),this.register(this._renderService.onDimensionsChange(()=>this._refreshRowsDimensions())),this.register((0,b.addDisposableDomListener)(document,"selectionchange",()=>this._handleSelectionChange())),this.register(this._coreBrowserService.onDprChange(()=>this._refreshRowsDimensions())),this._refreshRows(),this.register((0,C.toDisposable)(()=>{this._accessibilityContainer.remove(),this._rowElements.length=0}))}_handleTab(k){for(let S=0;S0?this._charsToConsume.shift()!==k&&(this._charsToAnnounce+=k):this._charsToAnnounce+=k,k===` +`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=u.tooMuchOutput)))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0}_handleKey(k){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(k)||this._charsToConsume.push(k)}_refreshRows(k,S){this._liveRegionDebouncer.refresh(k,S,this._terminal.rows)}_renderRows(k,S){let O=this._terminal.buffer,A=O.lines.length.toString();for(let D=k;D<=S;D++){let F=O.lines.get(O.ydisp+D),I=[],B=F?.translateToString(!0,void 0,void 0,I)||"",le=(O.ydisp+D+1).toString(),ae=this._rowElements[D];ae&&(B.length===0?(ae.innerText="\xA0",this._rowColumns.set(ae,[0,1])):(ae.textContent=B,this._rowColumns.set(ae,I)),ae.setAttribute("aria-posinset",le),ae.setAttribute("aria-setsize",A))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(k,S){let O=k.target,A=this._rowElements[S===0?1:this._rowElements.length-2];if(O.getAttribute("aria-posinset")===(S===0?"1":`${this._terminal.buffer.lines.length}`)||k.relatedTarget!==A)return;let D,F;if(S===0?(D=O,F=this._rowElements.pop(),this._rowContainer.removeChild(F)):(D=this._rowElements.shift(),F=O,this._rowContainer.removeChild(D)),D.removeEventListener("focus",this._topBoundaryFocusListener),F.removeEventListener("focus",this._bottomBoundaryFocusListener),S===0){let I=this._createAccessibilityTreeNode();this._rowElements.unshift(I),this._rowContainer.insertAdjacentElement("afterbegin",I)}else{let I=this._createAccessibilityTreeNode();this._rowElements.push(I),this._rowContainer.appendChild(I)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(S===0?-1:1),this._rowElements[S===0?1:this._rowElements.length-2].focus(),k.preventDefault(),k.stopImmediatePropagation()}_handleSelectionChange(){if(this._rowElements.length===0)return;let k=document.getSelection();if(!k)return;if(k.isCollapsed)return void(this._rowContainer.contains(k.anchorNode)&&this._terminal.clearSelection());if(!k.anchorNode||!k.focusNode)return void console.error("anchorNode and/or focusNode are null");let S={node:k.anchorNode,offset:k.anchorOffset},O={node:k.focusNode,offset:k.focusOffset};if((S.node.compareDocumentPosition(O.node)&Node.DOCUMENT_POSITION_PRECEDING||S.node===O.node&&S.offset>O.offset)&&([S,O]=[O,S]),S.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(S={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(S.node))return;let A=this._rowElements.slice(-1)[0];if(O.node.compareDocumentPosition(A)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(O={node:A,offset:A.textContent?.length??0}),!this._rowContainer.contains(O.node))return;let D=({node:B,offset:le})=>{let ae=B instanceof Text?B.parentNode:B,W=parseInt(ae?.getAttribute("aria-posinset"),10)-1;if(isNaN(W))return console.warn("row is invalid. Race condition?"),null;let G=this._rowColumns.get(ae);if(!G)return console.warn("columns is null. Race condition?"),null;let ve=le=this._terminal.cols&&(++W,ve=0),{row:W,column:ve}},F=D(S),I=D(O);if(F&&I){if(F.row>I.row||F.row===I.row&&F.column>=I.column)throw new Error("invalid range");this._terminal.select(F.column,F.row,(I.row-F.row)*this._terminal.cols-F.column+I.column)}}_handleResize(k){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let S=this._rowContainer.children.length;Sk;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){let k=this._coreBrowserService.mainDocument.createElement("div");return k.setAttribute("role","listitem"),k.tabIndex=-1,this._refreshRowDimensions(k),k}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let k=0;k{function s(g){return g.replace(/\r?\n/g,"\r")}function d(g,C){return C?"\x1B[200~"+g+"\x1B[201~":g}function p(g,C,M,x){g=d(g=s(g),M.decPrivateModes.bracketedPasteMode&&x.rawOptions.ignoreBracketedPasteMode!==!0),M.triggerDataEvent(g,!0),C.value=""}function u(g,C,M){let x=M.getBoundingClientRect(),b=g.clientX-x.left-10,P=g.clientY-x.top-10;C.style.width="20px",C.style.height="20px",C.style.left=`${b}px`,C.style.top=`${P}px`,C.style.zIndex="1000",C.focus()}Object.defineProperty(a,"__esModule",{value:!0}),a.rightClickHandler=a.moveTextAreaUnderMouseCursor=a.paste=a.handlePasteEvent=a.copyHandler=a.bracketTextForPaste=a.prepareTextForTerminal=void 0,a.prepareTextForTerminal=s,a.bracketTextForPaste=d,a.copyHandler=function(g,C){g.clipboardData&&g.clipboardData.setData("text/plain",C.selectionText),g.preventDefault()},a.handlePasteEvent=function(g,C,M,x){g.stopPropagation(),g.clipboardData&&p(g.clipboardData.getData("text/plain"),C,M,x)},a.paste=p,a.moveTextAreaUnderMouseCursor=u,a.rightClickHandler=function(g,C,M,x,b){u(g,C,M),b&&x.rightClickSelect(g),C.value=x.selectionText,C.select()}},7239:(i,a,s)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ColorContrastCache=void 0;let d=s(1505);a.ColorContrastCache=class{constructor(){this._color=new d.TwoKeyMap,this._css=new d.TwoKeyMap}setCss(p,u,g){this._css.set(p,u,g)}getCss(p,u){return this._css.get(p,u)}setColor(p,u,g){this._color.set(p,u,g)}getColor(p,u){return this._color.get(p,u)}clear(){this._color.clear(),this._css.clear()}}},3656:(i,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.addDisposableDomListener=void 0,a.addDisposableDomListener=function(s,d,p,u){s.addEventListener(d,p,u);let g=!1;return{dispose:()=>{g||(g=!0,s.removeEventListener(d,p,u))}}}},3551:function(i,a,s){var d=this&&this.__decorate||function(P,k,S,O){var A,D=arguments.length,F=D<3?k:O===null?O=Object.getOwnPropertyDescriptor(k,S):O;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")F=Reflect.decorate(P,k,S,O);else for(var I=P.length-1;I>=0;I--)(A=P[I])&&(F=(D<3?A(F):D>3?A(k,S,F):A(k,S))||F);return D>3&&F&&Object.defineProperty(k,S,F),F},p=this&&this.__param||function(P,k){return function(S,O){k(S,O,P)}};Object.defineProperty(a,"__esModule",{value:!0}),a.Linkifier=void 0;let u=s(3656),g=s(8460),C=s(844),M=s(2585),x=s(4725),b=a.Linkifier=class extends C.Disposable{get currentLink(){return this._currentLink}constructor(P,k,S,O,A){super(),this._element=P,this._mouseService=k,this._renderService=S,this._bufferService=O,this._linkProviderService=A,this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new g.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new g.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,C.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,C.toDisposable)(()=>{this._lastMouseEvent=void 0,this._activeProviderReplies?.clear()})),this.register(this._bufferService.onResize(()=>{this._clearCurrentLink(),this._wasResized=!0})),this.register((0,u.addDisposableDomListener)(this._element,"mouseleave",()=>{this._isMouseOut=!0,this._clearCurrentLink()})),this.register((0,u.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,u.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,u.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(P){this._lastMouseEvent=P;let k=this._positionFromMouseEvent(P,this._element,this._mouseService);if(!k)return;this._isMouseOut=!1;let S=P.composedPath();for(let O=0;O{O?.forEach(A=>{A.link.dispose&&A.link.dispose()})}),this._activeProviderReplies=new Map,this._activeLine=P.y);let S=!1;for(let[O,A]of this._linkProviderService.linkProviders.entries())k?this._activeProviderReplies?.get(O)&&(S=this._checkLinkProviderResult(O,P,S)):A.provideLinks(P.y,D=>{if(this._isMouseOut)return;let F=D?.map(I=>({link:I}));this._activeProviderReplies?.set(O,F),S=this._checkLinkProviderResult(O,P,S),this._activeProviderReplies?.size===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(P.y,this._activeProviderReplies)})}_removeIntersectingLinks(P,k){let S=new Set;for(let O=0;OP?this._bufferService.cols:F.link.range.end.x;for(let le=I;le<=B;le++){if(S.has(le)){A.splice(D--,1);break}S.add(le)}}}}_checkLinkProviderResult(P,k,S){if(!this._activeProviderReplies)return S;let O=this._activeProviderReplies.get(P),A=!1;for(let D=0;Dthis._linkAtPosition(F.link,k));D&&(S=!0,this._handleNewLink(D))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!S)for(let D=0;Dthis._linkAtPosition(I.link,k));if(F){S=!0,this._handleNewLink(F);break}}return S}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(P){if(!this._currentLink)return;let k=this._positionFromMouseEvent(P,this._element,this._mouseService);k&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,k)&&this._currentLink.link.activate(P,this._currentLink.link.text)}_clearCurrentLink(P,k){this._currentLink&&this._lastMouseEvent&&(!P||!k||this._currentLink.link.range.start.y>=P&&this._currentLink.link.range.end.y<=k)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,C.disposeArray)(this._linkCacheDisposables))}_handleNewLink(P){if(!this._lastMouseEvent)return;let k=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);k&&this._linkAtPosition(P.link,k)&&(this._currentLink=P,this._currentLink.state={decorations:{underline:P.link.decorations===void 0||P.link.decorations.underline,pointerCursor:P.link.decorations===void 0||P.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,P.link,this._lastMouseEvent),P.link.decorations={},Object.defineProperties(P.link.decorations,{pointerCursor:{get:()=>this._currentLink?.state?.decorations.pointerCursor,set:S=>{this._currentLink?.state&&this._currentLink.state.decorations.pointerCursor!==S&&(this._currentLink.state.decorations.pointerCursor=S,this._currentLink.state.isHovered&&this._element.classList.toggle("xterm-cursor-pointer",S))}},underline:{get:()=>this._currentLink?.state?.decorations.underline,set:S=>{this._currentLink?.state&&this._currentLink?.state?.decorations.underline!==S&&(this._currentLink.state.decorations.underline=S,this._currentLink.state.isHovered&&this._fireUnderlineEvent(P.link,S))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange(S=>{if(!this._currentLink)return;let O=S.start===0?0:S.start+1+this._bufferService.buffer.ydisp,A=this._bufferService.buffer.ydisp+1+S.end;if(this._currentLink.link.range.start.y>=O&&this._currentLink.link.range.end.y<=A&&(this._clearCurrentLink(O,A),this._lastMouseEvent)){let D=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);D&&this._askForLink(D,!1)}})))}_linkHover(P,k,S){this._currentLink?.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(k,!0),this._currentLink.state.decorations.pointerCursor&&P.classList.add("xterm-cursor-pointer")),k.hover&&k.hover(S,k.text)}_fireUnderlineEvent(P,k){let S=P.range,O=this._bufferService.buffer.ydisp,A=this._createLinkUnderlineEvent(S.start.x-1,S.start.y-O-1,S.end.x,S.end.y-O-1,void 0);(k?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(A)}_linkLeave(P,k,S){this._currentLink?.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(k,!1),this._currentLink.state.decorations.pointerCursor&&P.classList.remove("xterm-cursor-pointer")),k.leave&&k.leave(S,k.text)}_linkAtPosition(P,k){let S=P.range.start.y*this._bufferService.cols+P.range.start.x,O=P.range.end.y*this._bufferService.cols+P.range.end.x,A=k.y*this._bufferService.cols+k.x;return S<=A&&A<=O}_positionFromMouseEvent(P,k,S){let O=S.getCoords(P,k,this._bufferService.cols,this._bufferService.rows);if(O)return{x:O[0],y:O[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(P,k,S,O,A){return{x1:P,y1:k,x2:S,y2:O,cols:this._bufferService.cols,fg:A}}};a.Linkifier=b=d([p(1,x.IMouseService),p(2,x.IRenderService),p(3,M.IBufferService),p(4,x.ILinkProviderService)],b)},9042:(i,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.tooMuchOutput=a.promptLabel=void 0,a.promptLabel="Terminal input",a.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(i,a,s){var d=this&&this.__decorate||function(x,b,P,k){var S,O=arguments.length,A=O<3?b:k===null?k=Object.getOwnPropertyDescriptor(b,P):k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")A=Reflect.decorate(x,b,P,k);else for(var D=x.length-1;D>=0;D--)(S=x[D])&&(A=(O<3?S(A):O>3?S(b,P,A):S(b,P))||A);return O>3&&A&&Object.defineProperty(b,P,A),A},p=this&&this.__param||function(x,b){return function(P,k){b(P,k,x)}};Object.defineProperty(a,"__esModule",{value:!0}),a.OscLinkProvider=void 0;let u=s(511),g=s(2585),C=a.OscLinkProvider=class{constructor(x,b,P){this._bufferService=x,this._optionsService=b,this._oscLinkService=P}provideLinks(x,b){let P=this._bufferService.buffer.lines.get(x-1);if(!P)return void b(void 0);let k=[],S=this._optionsService.rawOptions.linkHandler,O=new u.CellData,A=P.getTrimmedLength(),D=-1,F=-1,I=!1;for(let B=0;BS?S.activate(G,ve,ae):M(0,ve),hover:(G,ve)=>S?.hover?.(G,ve,ae),leave:(G,ve)=>S?.leave?.(G,ve,ae)})}I=!1,O.hasExtendedAttrs()&&O.extended.urlId?(F=B,D=O.extended.urlId):(F=-1,D=-1)}}b(k)}};function M(x,b){if(confirm(`Do you want to navigate to ${b}? + +WARNING: This link could potentially be dangerous`)){let P=window.open();if(P){try{P.opener=null}catch{}P.location.href=b}else console.warn("Opening link blocked as opener could not be cleared")}}a.OscLinkProvider=C=d([p(0,g.IBufferService),p(1,g.IOptionsService),p(2,g.IOscLinkService)],C)},6193:(i,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.RenderDebouncer=void 0,a.RenderDebouncer=class{constructor(s,d){this._renderCallback=s,this._coreBrowserService=d,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}addRefreshCallback(s){return this._refreshCallbacks.push(s),this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh())),this._animationFrame}refresh(s,d,p){this._rowCount=p,s=s!==void 0?s:0,d=d!==void 0?d:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,s):s,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,d):d,this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._animationFrame=void 0,this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return void this._runRefreshCallbacks();let s=Math.max(this._rowStart,0),d=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(s,d),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(let s of this._refreshCallbacks)s(0);this._refreshCallbacks=[]}}},3236:(i,a,s)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Terminal=void 0;let d=s(3614),p=s(3656),u=s(3551),g=s(9042),C=s(3730),M=s(1680),x=s(3107),b=s(5744),P=s(2950),k=s(1296),S=s(428),O=s(4269),A=s(5114),D=s(8934),F=s(3230),I=s(9312),B=s(4725),le=s(6731),ae=s(8055),W=s(8969),G=s(8460),ve=s(844),Se=s(6114),pe=s(8437),Ae=s(2584),ue=s(7399),H=s(5941),te=s(9074),de=s(2585),me=s(5435),Ie=s(4567),$e=s(779);class tt extends W.CoreTerminal{get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}get onWillOpen(){return this._onWillOpen.event}constructor(Me={}){super(Me),this.browser=Se,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._accessibilityManager=this.register(new ve.MutableDisposable),this._onCursorMove=this.register(new G.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onKey=this.register(new G.EventEmitter),this.onKey=this._onKey.event,this._onRender=this.register(new G.EventEmitter),this.onRender=this._onRender.event,this._onSelectionChange=this.register(new G.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this.register(new G.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onBell=this.register(new G.EventEmitter),this.onBell=this._onBell.event,this._onFocus=this.register(new G.EventEmitter),this._onBlur=this.register(new G.EventEmitter),this._onA11yCharEmitter=this.register(new G.EventEmitter),this._onA11yTabEmitter=this.register(new G.EventEmitter),this._onWillOpen=this.register(new G.EventEmitter),this._setup(),this._decorationService=this._instantiationService.createInstance(te.DecorationService),this._instantiationService.setService(de.IDecorationService,this._decorationService),this._linkProviderService=this._instantiationService.createInstance($e.LinkProviderService),this._instantiationService.setService(B.ILinkProviderService,this._linkProviderService),this._linkProviderService.registerLinkProvider(this._instantiationService.createInstance(C.OscLinkProvider)),this.register(this._inputHandler.onRequestBell(()=>this._onBell.fire())),this.register(this._inputHandler.onRequestRefreshRows((Z,Le)=>this.refresh(Z,Le))),this.register(this._inputHandler.onRequestSendFocus(()=>this._reportFocus())),this.register(this._inputHandler.onRequestReset(()=>this.reset())),this.register(this._inputHandler.onRequestWindowsOptionsReport(Z=>this._reportWindowsOptions(Z))),this.register(this._inputHandler.onColor(Z=>this._handleColorEvent(Z))),this.register((0,G.forwardEvent)(this._inputHandler.onCursorMove,this._onCursorMove)),this.register((0,G.forwardEvent)(this._inputHandler.onTitleChange,this._onTitleChange)),this.register((0,G.forwardEvent)(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this.register((0,G.forwardEvent)(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this.register(this._bufferService.onResize(Z=>this._afterResize(Z.cols,Z.rows))),this.register((0,ve.toDisposable)(()=>{this._customKeyEventHandler=void 0,this.element?.parentNode?.removeChild(this.element)}))}_handleColorEvent(Me){if(this._themeService)for(let Z of Me){let Le,Ze="";switch(Z.index){case 256:Le="foreground",Ze="10";break;case 257:Le="background",Ze="11";break;case 258:Le="cursor",Ze="12";break;default:Le="ansi",Ze="4;"+Z.index}switch(Z.type){case 0:let dt=ae.color.toColorRGB(Le==="ansi"?this._themeService.colors.ansi[Z.index]:this._themeService.colors[Le]);this.coreService.triggerDataEvent(`${Ae.C0.ESC}]${Ze};${(0,H.toRgbString)(dt)}${Ae.C1_ESCAPED.ST}`);break;case 1:if(Le==="ansi")this._themeService.modifyColors(Ot=>Ot.ansi[Z.index]=ae.channels.toColor(...Z.color));else{let Ot=Le;this._themeService.modifyColors(si=>si[Ot]=ae.channels.toColor(...Z.color))}break;case 2:this._themeService.restoreColor(Z.index)}}}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_handleScreenReaderModeOptionChange(Me){Me?!this._accessibilityManager.value&&this._renderService&&(this._accessibilityManager.value=this._instantiationService.createInstance(Ie.AccessibilityManager,this)):this._accessibilityManager.clear()}_handleTextAreaFocus(Me){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(Ae.C0.ESC+"[I"),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){return this.textarea?.blur()}_handleTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(Ae.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}_syncTextArea(){if(!this.textarea||!this.buffer.isCursorInViewport||this._compositionHelper.isComposing||!this._renderService)return;let Me=this.buffer.ybase+this.buffer.y,Z=this.buffer.lines.get(Me);if(!Z)return;let Le=Math.min(this.buffer.x,this.cols-1),Ze=this._renderService.dimensions.css.cell.height,dt=Z.getWidth(Le),Ot=this._renderService.dimensions.css.cell.width*dt,si=this.buffer.y*this._renderService.dimensions.css.cell.height,Bo=Le*this._renderService.dimensions.css.cell.width;this.textarea.style.left=Bo+"px",this.textarea.style.top=si+"px",this.textarea.style.width=Ot+"px",this.textarea.style.height=Ze+"px",this.textarea.style.lineHeight=Ze+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this.register((0,p.addDisposableDomListener)(this.element,"copy",Z=>{this.hasSelection()&&(0,d.copyHandler)(Z,this._selectionService)}));let Me=Z=>(0,d.handlePasteEvent)(Z,this.textarea,this.coreService,this.optionsService);this.register((0,p.addDisposableDomListener)(this.textarea,"paste",Me)),this.register((0,p.addDisposableDomListener)(this.element,"paste",Me)),Se.isFirefox?this.register((0,p.addDisposableDomListener)(this.element,"mousedown",Z=>{Z.button===2&&(0,d.rightClickHandler)(Z,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})):this.register((0,p.addDisposableDomListener)(this.element,"contextmenu",Z=>{(0,d.rightClickHandler)(Z,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)})),Se.isLinux&&this.register((0,p.addDisposableDomListener)(this.element,"auxclick",Z=>{Z.button===1&&(0,d.moveTextAreaUnderMouseCursor)(Z,this.textarea,this.screenElement)}))}_bindKeys(){this.register((0,p.addDisposableDomListener)(this.textarea,"keyup",Me=>this._keyUp(Me),!0)),this.register((0,p.addDisposableDomListener)(this.textarea,"keydown",Me=>this._keyDown(Me),!0)),this.register((0,p.addDisposableDomListener)(this.textarea,"keypress",Me=>this._keyPress(Me),!0)),this.register((0,p.addDisposableDomListener)(this.textarea,"compositionstart",()=>this._compositionHelper.compositionstart())),this.register((0,p.addDisposableDomListener)(this.textarea,"compositionupdate",Me=>this._compositionHelper.compositionupdate(Me))),this.register((0,p.addDisposableDomListener)(this.textarea,"compositionend",()=>this._compositionHelper.compositionend())),this.register((0,p.addDisposableDomListener)(this.textarea,"input",Me=>this._inputEvent(Me),!0)),this.register(this.onRender(()=>this._compositionHelper.updateCompositionElements()))}open(Me){if(!Me)throw new Error("Terminal requires a parent element.");if(Me.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this.element?.ownerDocument.defaultView&&this._coreBrowserService)return void(this.element.ownerDocument.defaultView!==this._coreBrowserService.window&&(this._coreBrowserService.window=this.element.ownerDocument.defaultView));this._document=Me.ownerDocument,this.options.documentOverride&&this.options.documentOverride instanceof Document&&(this._document=this.optionsService.rawOptions.documentOverride),this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),Me.appendChild(this.element);let Z=this._document.createDocumentFragment();this._viewportElement=this._document.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),Z.appendChild(this._viewportElement),this._viewportScrollArea=this._document.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=this._document.createElement("div"),this.screenElement.classList.add("xterm-screen"),this.register((0,p.addDisposableDomListener)(this.screenElement,"mousemove",Le=>this.updateCursorStyle(Le))),this._helperContainer=this._document.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),Z.appendChild(this.screenElement),this.textarea=this._document.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",g.promptLabel),Se.isChromeOS||this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this._coreBrowserService=this.register(this._instantiationService.createInstance(A.CoreBrowserService,this.textarea,Me.ownerDocument.defaultView??window,this._document??typeof window<"u"?window.document:null)),this._instantiationService.setService(B.ICoreBrowserService,this._coreBrowserService),this.register((0,p.addDisposableDomListener)(this.textarea,"focus",Le=>this._handleTextAreaFocus(Le))),this.register((0,p.addDisposableDomListener)(this.textarea,"blur",()=>this._handleTextAreaBlur())),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(S.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(B.ICharSizeService,this._charSizeService),this._themeService=this._instantiationService.createInstance(le.ThemeService),this._instantiationService.setService(B.IThemeService,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(O.CharacterJoinerService),this._instantiationService.setService(B.ICharacterJoinerService,this._characterJoinerService),this._renderService=this.register(this._instantiationService.createInstance(F.RenderService,this.rows,this.screenElement)),this._instantiationService.setService(B.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange(Le=>this._onRender.fire(Le))),this.onResize(Le=>this._renderService.resize(Le.cols,Le.rows)),this._compositionView=this._document.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(P.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this._mouseService=this._instantiationService.createInstance(D.MouseService),this._instantiationService.setService(B.IMouseService,this._mouseService),this.linkifier=this.register(this._instantiationService.createInstance(u.Linkifier,this.screenElement)),this.element.appendChild(Z);try{this._onWillOpen.fire(this.element)}catch{}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this.viewport=this._instantiationService.createInstance(M.Viewport,this._viewportElement,this._viewportScrollArea),this.viewport.onRequestScrollLines(Le=>this.scrollLines(Le.amount,Le.suppressScrollEvent,1)),this.register(this._inputHandler.onRequestSyncScrollBar(()=>this.viewport.syncScrollArea())),this.register(this.viewport),this.register(this.onCursorMove(()=>{this._renderService.handleCursorMove(),this._syncTextArea()})),this.register(this.onResize(()=>this._renderService.handleResize(this.cols,this.rows))),this.register(this.onBlur(()=>this._renderService.handleBlur())),this.register(this.onFocus(()=>this._renderService.handleFocus())),this.register(this._renderService.onDimensionsChange(()=>this.viewport.syncScrollArea())),this._selectionService=this.register(this._instantiationService.createInstance(I.SelectionService,this.element,this.screenElement,this.linkifier)),this._instantiationService.setService(B.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines(Le=>this.scrollLines(Le.amount,Le.suppressScrollEvent))),this.register(this._selectionService.onSelectionChange(()=>this._onSelectionChange.fire())),this.register(this._selectionService.onRequestRedraw(Le=>this._renderService.handleSelectionChanged(Le.start,Le.end,Le.columnSelectMode))),this.register(this._selectionService.onLinuxMouseSelection(Le=>{this.textarea.value=Le,this.textarea.focus(),this.textarea.select()})),this.register(this._onScroll.event(Le=>{this.viewport.syncScrollArea(),this._selectionService.refresh()})),this.register((0,p.addDisposableDomListener)(this._viewportElement,"scroll",()=>this._selectionService.refresh())),this.register(this._instantiationService.createInstance(x.BufferDecorationRenderer,this.screenElement)),this.register((0,p.addDisposableDomListener)(this.element,"mousedown",Le=>this._selectionService.handleMouseDown(Le))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager.value=this._instantiationService.createInstance(Ie.AccessibilityManager,this)),this.register(this.optionsService.onSpecificOptionChange("screenReaderMode",Le=>this._handleScreenReaderModeOptionChange(Le))),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(b.OverviewRulerRenderer,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRulerWidth",Le=>{!this._overviewRulerRenderer&&Le&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(b.OverviewRulerRenderer,this._viewportElement,this.screenElement)))}),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(k.DomRenderer,this,this._document,this.element,this.screenElement,this._viewportElement,this._helperContainer,this.linkifier)}bindMouse(){let Me=this,Z=this.element;function Le(Ot){let si=Me._mouseService.getMouseReportCoords(Ot,Me.screenElement);if(!si)return!1;let Bo,Mo;switch(Ot.overrideType||Ot.type){case"mousemove":Mo=32,Ot.buttons===void 0?(Bo=3,Ot.button!==void 0&&(Bo=Ot.button<3?Ot.button:3)):Bo=1&Ot.buttons?0:4&Ot.buttons?1:2&Ot.buttons?2:3;break;case"mouseup":Mo=0,Bo=Ot.button<3?Ot.button:3;break;case"mousedown":Mo=1,Bo=Ot.button<3?Ot.button:3;break;case"wheel":if(Me._customWheelEventHandler&&Me._customWheelEventHandler(Ot)===!1||Me.viewport.getLinesScrolled(Ot)===0)return!1;Mo=Ot.deltaY<0?0:1,Bo=4;break;default:return!1}return!(Mo===void 0||Bo===void 0||Bo>4)&&Me.coreMouseService.triggerMouseEvent({col:si.col,row:si.row,x:si.x,y:si.y,button:Bo,action:Mo,ctrl:Ot.ctrlKey,alt:Ot.altKey,shift:Ot.shiftKey})}let Ze={mouseup:null,wheel:null,mousedrag:null,mousemove:null},dt={mouseup:Ot=>(Le(Ot),Ot.buttons||(this._document.removeEventListener("mouseup",Ze.mouseup),Ze.mousedrag&&this._document.removeEventListener("mousemove",Ze.mousedrag)),this.cancel(Ot)),wheel:Ot=>(Le(Ot),this.cancel(Ot,!0)),mousedrag:Ot=>{Ot.buttons&&Le(Ot)},mousemove:Ot=>{Ot.buttons||Le(Ot)}};this.register(this.coreMouseService.onProtocolChange(Ot=>{Ot?(this.optionsService.rawOptions.logLevel==="debug"&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(Ot)),this.element.classList.add("enable-mouse-events"),this._selectionService.disable()):(this._logService.debug("Unbinding from mouse events."),this.element.classList.remove("enable-mouse-events"),this._selectionService.enable()),8&Ot?Ze.mousemove||(Z.addEventListener("mousemove",dt.mousemove),Ze.mousemove=dt.mousemove):(Z.removeEventListener("mousemove",Ze.mousemove),Ze.mousemove=null),16&Ot?Ze.wheel||(Z.addEventListener("wheel",dt.wheel,{passive:!1}),Ze.wheel=dt.wheel):(Z.removeEventListener("wheel",Ze.wheel),Ze.wheel=null),2&Ot?Ze.mouseup||(Ze.mouseup=dt.mouseup):(this._document.removeEventListener("mouseup",Ze.mouseup),Ze.mouseup=null),4&Ot?Ze.mousedrag||(Ze.mousedrag=dt.mousedrag):(this._document.removeEventListener("mousemove",Ze.mousedrag),Ze.mousedrag=null)})),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,p.addDisposableDomListener)(Z,"mousedown",Ot=>{if(Ot.preventDefault(),this.focus(),this.coreMouseService.areMouseEventsActive&&!this._selectionService.shouldForceSelection(Ot))return Le(Ot),Ze.mouseup&&this._document.addEventListener("mouseup",Ze.mouseup),Ze.mousedrag&&this._document.addEventListener("mousemove",Ze.mousedrag),this.cancel(Ot)})),this.register((0,p.addDisposableDomListener)(Z,"wheel",Ot=>{if(!Ze.wheel){if(this._customWheelEventHandler&&this._customWheelEventHandler(Ot)===!1)return!1;if(!this.buffer.hasScrollback){let si=this.viewport.getLinesScrolled(Ot);if(si===0)return;let Bo=Ae.C0.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(Ot.deltaY<0?"A":"B"),Mo="";for(let Ka=0;Ka{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchStart(Ot),this.cancel(Ot)},{passive:!0})),this.register((0,p.addDisposableDomListener)(Z,"touchmove",Ot=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchMove(Ot)?void 0:this.cancel(Ot)},{passive:!1}))}refresh(Me,Z){this._renderService?.refreshRows(Me,Z)}updateCursorStyle(Me){this._selectionService?.shouldColumnSelect(Me)?this.element.classList.add("column-select"):this.element.classList.remove("column-select")}_showCursor(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}scrollLines(Me,Z,Le=0){Le===1?(super.scrollLines(Me,Z,Le),this.refresh(0,this.rows-1)):this.viewport?.scrollLines(Me)}paste(Me){(0,d.paste)(Me,this.textarea,this.coreService,this.optionsService)}attachCustomKeyEventHandler(Me){this._customKeyEventHandler=Me}attachCustomWheelEventHandler(Me){this._customWheelEventHandler=Me}registerLinkProvider(Me){return this._linkProviderService.registerLinkProvider(Me)}registerCharacterJoiner(Me){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");let Z=this._characterJoinerService.register(Me);return this.refresh(0,this.rows-1),Z}deregisterCharacterJoiner(Me){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(Me)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}registerMarker(Me){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+Me)}registerDecoration(Me){return this._decorationService.registerDecoration(Me)}hasSelection(){return!!this._selectionService&&this._selectionService.hasSelection}select(Me,Z,Le){this._selectionService.setSelection(Me,Z,Le)}getSelection(){return this._selectionService?this._selectionService.selectionText:""}getSelectionPosition(){if(this._selectionService&&this._selectionService.hasSelection)return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){this._selectionService?.clearSelection()}selectAll(){this._selectionService?.selectAll()}selectLines(Me,Z){this._selectionService?.selectLines(Me,Z)}_keyDown(Me){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&this._customKeyEventHandler(Me)===!1)return!1;let Z=this.browser.isMac&&this.options.macOptionIsMeta&&Me.altKey;if(!Z&&!this._compositionHelper.keydown(Me))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this.scrollToBottom(),!1;Z||Me.key!=="Dead"&&Me.key!=="AltGraph"||(this._unprocessedDeadKey=!0);let Le=(0,ue.evaluateKeyboardEvent)(Me,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(Me),Le.type===3||Le.type===2){let Ze=this.rows-1;return this.scrollLines(Le.type===2?-Ze:Ze),this.cancel(Me,!0)}return Le.type===1&&this.selectAll(),!!this._isThirdLevelShift(this.browser,Me)||(Le.cancel&&this.cancel(Me,!0),!Le.key||!!(Me.key&&!Me.ctrlKey&&!Me.altKey&&!Me.metaKey&&Me.key.length===1&&Me.key.charCodeAt(0)>=65&&Me.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(Le.key!==Ae.C0.ETX&&Le.key!==Ae.C0.CR||(this.textarea.value=""),this._onKey.fire({key:Le.key,domEvent:Me}),this._showCursor(),this.coreService.triggerDataEvent(Le.key,!0),!this.optionsService.rawOptions.screenReaderMode||Me.altKey||Me.ctrlKey?this.cancel(Me,!0):void(this._keyDownHandled=!0))))}_isThirdLevelShift(Me,Z){let Le=Me.isMac&&!this.options.macOptionIsMeta&&Z.altKey&&!Z.ctrlKey&&!Z.metaKey||Me.isWindows&&Z.altKey&&Z.ctrlKey&&!Z.metaKey||Me.isWindows&&Z.getModifierState("AltGraph");return Z.type==="keypress"?Le:Le&&(!Z.keyCode||Z.keyCode>47)}_keyUp(Me){this._keyDownSeen=!1,this._customKeyEventHandler&&this._customKeyEventHandler(Me)===!1||((function(Z){return Z.keyCode===16||Z.keyCode===17||Z.keyCode===18})(Me)||this.focus(),this.updateCursorStyle(Me),this._keyPressHandled=!1)}_keyPress(Me){let Z;if(this._keyPressHandled=!1,this._keyDownHandled||this._customKeyEventHandler&&this._customKeyEventHandler(Me)===!1)return!1;if(this.cancel(Me),Me.charCode)Z=Me.charCode;else if(Me.which===null||Me.which===void 0)Z=Me.keyCode;else{if(Me.which===0||Me.charCode===0)return!1;Z=Me.which}return!(!Z||(Me.altKey||Me.ctrlKey||Me.metaKey)&&!this._isThirdLevelShift(this.browser,Me)||(Z=String.fromCharCode(Z),this._onKey.fire({key:Z,domEvent:Me}),this._showCursor(),this.coreService.triggerDataEvent(Z,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))}_inputEvent(Me){if(Me.data&&Me.inputType==="insertText"&&(!Me.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;let Z=Me.data;return this.coreService.triggerDataEvent(Z,!0),this.cancel(Me),!0}return!1}resize(Me,Z){Me!==this.cols||Z!==this.rows?super.resize(Me,Z):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()}_afterResize(Me,Z){this._charSizeService?.measure(),this.viewport?.syncScrollArea(!0)}clear(){if(this.buffer.ybase!==0||this.buffer.y!==0){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(let Me=1;Me{Object.defineProperty(a,"__esModule",{value:!0}),a.TimeBasedDebouncer=void 0,a.TimeBasedDebouncer=class{constructor(s,d=1e3){this._renderCallback=s,this._debounceThresholdMS=d,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(s,d,p){this._rowCount=p,s=s!==void 0?s:0,d=d!==void 0?d:this._rowCount-1,this._rowStart=this._rowStart!==void 0?Math.min(this._rowStart,s):s,this._rowEnd=this._rowEnd!==void 0?Math.max(this._rowEnd,d):d;let u=Date.now();if(u-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=u,this._innerRefresh();else if(!this._additionalRefreshRequested){let g=u-this._lastRefreshMs,C=this._debounceThresholdMS-g;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout(()=>{this._lastRefreshMs=Date.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0},C)}}_innerRefresh(){if(this._rowStart===void 0||this._rowEnd===void 0||this._rowCount===void 0)return;let s=Math.max(this._rowStart,0),d=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(s,d)}}},1680:function(i,a,s){var d=this&&this.__decorate||function(P,k,S,O){var A,D=arguments.length,F=D<3?k:O===null?O=Object.getOwnPropertyDescriptor(k,S):O;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")F=Reflect.decorate(P,k,S,O);else for(var I=P.length-1;I>=0;I--)(A=P[I])&&(F=(D<3?A(F):D>3?A(k,S,F):A(k,S))||F);return D>3&&F&&Object.defineProperty(k,S,F),F},p=this&&this.__param||function(P,k){return function(S,O){k(S,O,P)}};Object.defineProperty(a,"__esModule",{value:!0}),a.Viewport=void 0;let u=s(3656),g=s(4725),C=s(8460),M=s(844),x=s(2585),b=a.Viewport=class extends M.Disposable{constructor(P,k,S,O,A,D,F,I){super(),this._viewportElement=P,this._scrollArea=k,this._bufferService=S,this._optionsService=O,this._charSizeService=A,this._renderService=D,this._coreBrowserService=F,this.scrollBarWidth=0,this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._wheelPartialScroll=0,this._refreshAnimationFrame=null,this._ignoreNextScrollEvent=!1,this._smoothScrollState={startTime:0,origin:-1,target:-1},this._onRequestScrollLines=this.register(new C.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this.register((0,u.addDisposableDomListener)(this._viewportElement,"scroll",this._handleScroll.bind(this))),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate(B=>this._activeBuffer=B.activeBuffer)),this._renderDimensions=this._renderService.dimensions,this.register(this._renderService.onDimensionsChange(B=>this._renderDimensions=B)),this._handleThemeChange(I.colors),this.register(I.onChangeColors(B=>this._handleThemeChange(B))),this.register(this._optionsService.onSpecificOptionChange("scrollback",()=>this.syncScrollArea())),setTimeout(()=>this.syncScrollArea())}_handleThemeChange(P){this._viewportElement.style.backgroundColor=P.background.css}reset(){this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._coreBrowserService.window.requestAnimationFrame(()=>this.syncScrollArea())}_refresh(P){if(P)return this._innerRefresh(),void(this._refreshAnimationFrame!==null&&this._coreBrowserService.window.cancelAnimationFrame(this._refreshAnimationFrame));this._refreshAnimationFrame===null&&(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._innerRefresh()))}_innerRefresh(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderDimensions.device.cell.height/this._coreBrowserService.dpr,this._currentDeviceCellHeight=this._renderDimensions.device.cell.height,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;let k=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderDimensions.css.canvas.height);this._lastRecordedBufferHeight!==k&&(this._lastRecordedBufferHeight=k,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}let P=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==P&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=P),this._refreshAnimationFrame=null}syncScrollArea(P=!1){if(this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(P);this._lastRecordedViewportHeight===this._renderService.dimensions.css.canvas.height&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.device.cell.height===this._currentDeviceCellHeight||this._refresh(P)}_handleScroll(P){if(this._lastScrollTop=this._viewportElement.scrollTop,!this._viewportElement.offsetParent)return;if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._onRequestScrollLines.fire({amount:0,suppressScrollEvent:!0});let k=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._onRequestScrollLines.fire({amount:k,suppressScrollEvent:!0})}_smoothScroll(){if(this._isDisposed||this._smoothScrollState.origin===-1||this._smoothScrollState.target===-1)return;let P=this._smoothScrollPercent();this._viewportElement.scrollTop=this._smoothScrollState.origin+Math.round(P*(this._smoothScrollState.target-this._smoothScrollState.origin)),P<1?this._coreBrowserService.window.requestAnimationFrame(()=>this._smoothScroll()):this._clearSmoothScrollState()}_smoothScrollPercent(){return this._optionsService.rawOptions.smoothScrollDuration&&this._smoothScrollState.startTime?Math.max(Math.min((Date.now()-this._smoothScrollState.startTime)/this._optionsService.rawOptions.smoothScrollDuration,1),0):1}_clearSmoothScrollState(){this._smoothScrollState.startTime=0,this._smoothScrollState.origin=-1,this._smoothScrollState.target=-1}_bubbleScroll(P,k){let S=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(k<0&&this._viewportElement.scrollTop!==0||k>0&&S0&&(S=ae),O=""}}return{bufferElements:A,cursorElement:S}}getLinesScrolled(P){if(P.deltaY===0||P.shiftKey)return 0;let k=this._applyScrollModifier(P.deltaY,P);return P.deltaMode===WheelEvent.DOM_DELTA_PIXEL?(k/=this._currentRowHeight+0,this._wheelPartialScroll+=k,k=Math.floor(Math.abs(this._wheelPartialScroll))*(this._wheelPartialScroll>0?1:-1),this._wheelPartialScroll%=1):P.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(k*=this._bufferService.rows),k}_applyScrollModifier(P,k){let S=this._optionsService.rawOptions.fastScrollModifier;return S==="alt"&&k.altKey||S==="ctrl"&&k.ctrlKey||S==="shift"&&k.shiftKey?P*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:P*this._optionsService.rawOptions.scrollSensitivity}handleTouchStart(P){this._lastTouchY=P.touches[0].pageY}handleTouchMove(P){let k=this._lastTouchY-P.touches[0].pageY;return this._lastTouchY=P.touches[0].pageY,k!==0&&(this._viewportElement.scrollTop+=k,this._bubbleScroll(P,k))}};a.Viewport=b=d([p(2,x.IBufferService),p(3,x.IOptionsService),p(4,g.ICharSizeService),p(5,g.IRenderService),p(6,g.ICoreBrowserService),p(7,g.IThemeService)],b)},3107:function(i,a,s){var d=this&&this.__decorate||function(x,b,P,k){var S,O=arguments.length,A=O<3?b:k===null?k=Object.getOwnPropertyDescriptor(b,P):k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")A=Reflect.decorate(x,b,P,k);else for(var D=x.length-1;D>=0;D--)(S=x[D])&&(A=(O<3?S(A):O>3?S(b,P,A):S(b,P))||A);return O>3&&A&&Object.defineProperty(b,P,A),A},p=this&&this.__param||function(x,b){return function(P,k){b(P,k,x)}};Object.defineProperty(a,"__esModule",{value:!0}),a.BufferDecorationRenderer=void 0;let u=s(4725),g=s(844),C=s(2585),M=a.BufferDecorationRenderer=class extends g.Disposable{constructor(x,b,P,k,S){super(),this._screenElement=x,this._bufferService=b,this._coreBrowserService=P,this._decorationService=k,this._renderService=S,this._decorationElements=new Map,this._altBufferIsActive=!1,this._dimensionsChanged=!1,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),this._screenElement.appendChild(this._container),this.register(this._renderService.onRenderedViewportChange(()=>this._doRefreshDecorations())),this.register(this._renderService.onDimensionsChange(()=>{this._dimensionsChanged=!0,this._queueRefresh()})),this.register(this._coreBrowserService.onDprChange(()=>this._queueRefresh())),this.register(this._bufferService.buffers.onBufferActivate(()=>{this._altBufferIsActive=this._bufferService.buffer===this._bufferService.buffers.alt})),this.register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh())),this.register(this._decorationService.onDecorationRemoved(O=>this._removeDecoration(O))),this.register((0,g.toDisposable)(()=>{this._container.remove(),this._decorationElements.clear()}))}_queueRefresh(){this._animationFrame===void 0&&(this._animationFrame=this._renderService.addRefreshCallback(()=>{this._doRefreshDecorations(),this._animationFrame=void 0}))}_doRefreshDecorations(){for(let x of this._decorationService.decorations)this._renderDecoration(x);this._dimensionsChanged=!1}_renderDecoration(x){this._refreshStyle(x),this._dimensionsChanged&&this._refreshXPosition(x)}_createElement(x){let b=this._coreBrowserService.mainDocument.createElement("div");b.classList.add("xterm-decoration"),b.classList.toggle("xterm-decoration-top-layer",x?.options?.layer==="top"),b.style.width=`${Math.round((x.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,b.style.height=(x.options.height||1)*this._renderService.dimensions.css.cell.height+"px",b.style.top=(x.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height+"px",b.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`;let P=x.options.x??0;return P&&P>this._bufferService.cols&&(b.style.display="none"),this._refreshXPosition(x,b),b}_refreshStyle(x){let b=x.marker.line-this._bufferService.buffers.active.ydisp;if(b<0||b>=this._bufferService.rows)x.element&&(x.element.style.display="none",x.onRenderEmitter.fire(x.element));else{let P=this._decorationElements.get(x);P||(P=this._createElement(x),x.element=P,this._decorationElements.set(x,P),this._container.appendChild(P),x.onDispose(()=>{this._decorationElements.delete(x),P.remove()})),P.style.top=b*this._renderService.dimensions.css.cell.height+"px",P.style.display=this._altBufferIsActive?"none":"block",x.onRenderEmitter.fire(P)}}_refreshXPosition(x,b=x.element){if(!b)return;let P=x.options.x??0;(x.options.anchor||"left")==="right"?b.style.right=P?P*this._renderService.dimensions.css.cell.width+"px":"":b.style.left=P?P*this._renderService.dimensions.css.cell.width+"px":""}_removeDecoration(x){this._decorationElements.get(x)?.remove(),this._decorationElements.delete(x),x.dispose()}};a.BufferDecorationRenderer=M=d([p(1,C.IBufferService),p(2,u.ICoreBrowserService),p(3,C.IDecorationService),p(4,u.IRenderService)],M)},5871:(i,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ColorZoneStore=void 0,a.ColorZoneStore=class{constructor(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}get zones(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}clear(){this._zones.length=0,this._zonePoolIndex=0}addDecoration(s){if(s.options.overviewRulerOptions){for(let d of this._zones)if(d.color===s.options.overviewRulerOptions.color&&d.position===s.options.overviewRulerOptions.position){if(this._lineIntersectsZone(d,s.marker.line))return;if(this._lineAdjacentToZone(d,s.marker.line,s.options.overviewRulerOptions.position))return void this._addLineToZone(d,s.marker.line)}if(this._zonePoolIndex=s.startBufferLine&&d<=s.endBufferLine}_lineAdjacentToZone(s,d,p){return d>=s.startBufferLine-this._linePadding[p||"full"]&&d<=s.endBufferLine+this._linePadding[p||"full"]}_addLineToZone(s,d){s.startBufferLine=Math.min(s.startBufferLine,d),s.endBufferLine=Math.max(s.endBufferLine,d)}}},5744:function(i,a,s){var d=this&&this.__decorate||function(S,O,A,D){var F,I=arguments.length,B=I<3?O:D===null?D=Object.getOwnPropertyDescriptor(O,A):D;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")B=Reflect.decorate(S,O,A,D);else for(var le=S.length-1;le>=0;le--)(F=S[le])&&(B=(I<3?F(B):I>3?F(O,A,B):F(O,A))||B);return I>3&&B&&Object.defineProperty(O,A,B),B},p=this&&this.__param||function(S,O){return function(A,D){O(A,D,S)}};Object.defineProperty(a,"__esModule",{value:!0}),a.OverviewRulerRenderer=void 0;let u=s(5871),g=s(4725),C=s(844),M=s(2585),x={full:0,left:0,center:0,right:0},b={full:0,left:0,center:0,right:0},P={full:0,left:0,center:0,right:0},k=a.OverviewRulerRenderer=class extends C.Disposable{get _width(){return this._optionsService.options.overviewRulerWidth||0}constructor(S,O,A,D,F,I,B){super(),this._viewportElement=S,this._screenElement=O,this._bufferService=A,this._decorationService=D,this._renderService=F,this._optionsService=I,this._coreBrowserService=B,this._colorZoneStore=new u.ColorZoneStore,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=this._coreBrowserService.mainDocument.createElement("canvas"),this._canvas.classList.add("xterm-decoration-overview-ruler"),this._refreshCanvasDimensions(),this._viewportElement.parentElement?.insertBefore(this._canvas,this._viewportElement);let le=this._canvas.getContext("2d");if(!le)throw new Error("Ctx cannot be null");this._ctx=le,this._registerDecorationListeners(),this._registerBufferChangeListeners(),this._registerDimensionChangeListeners(),this.register((0,C.toDisposable)(()=>{this._canvas?.remove()}))}_registerDecorationListeners(){this.register(this._decorationService.onDecorationRegistered(()=>this._queueRefresh(void 0,!0))),this.register(this._decorationService.onDecorationRemoved(()=>this._queueRefresh(void 0,!0)))}_registerBufferChangeListeners(){this.register(this._renderService.onRenderedViewportChange(()=>this._queueRefresh())),this.register(this._bufferService.buffers.onBufferActivate(()=>{this._canvas.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block"})),this.register(this._bufferService.onScroll(()=>{this._lastKnownBufferLength!==this._bufferService.buffers.normal.lines.length&&(this._refreshDrawHeightConstants(),this._refreshColorZonePadding())}))}_registerDimensionChangeListeners(){this.register(this._renderService.onRender(()=>{this._containerHeight&&this._containerHeight===this._screenElement.clientHeight||(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)})),this.register(this._optionsService.onSpecificOptionChange("overviewRulerWidth",()=>this._queueRefresh(!0))),this.register(this._coreBrowserService.onDprChange(()=>this._queueRefresh(!0))),this._queueRefresh(!0)}_refreshDrawConstants(){let S=Math.floor(this._canvas.width/3),O=Math.ceil(this._canvas.width/3);b.full=this._canvas.width,b.left=S,b.center=O,b.right=S,this._refreshDrawHeightConstants(),P.full=0,P.left=0,P.center=b.left,P.right=b.left+b.center}_refreshDrawHeightConstants(){x.full=Math.round(2*this._coreBrowserService.dpr);let S=this._canvas.height/this._bufferService.buffer.lines.length,O=Math.round(Math.max(Math.min(S,12),6)*this._coreBrowserService.dpr);x.left=O,x.center=O,x.right=O}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*x.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*x.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*x.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*x.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}_refreshCanvasDimensions(){this._canvas.style.width=`${this._width}px`,this._canvas.width=Math.round(this._width*this._coreBrowserService.dpr),this._canvas.style.height=`${this._screenElement.clientHeight}px`,this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowserService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}_refreshDecorations(){this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();for(let O of this._decorationService.decorations)this._colorZoneStore.addDecoration(O);this._ctx.lineWidth=1;let S=this._colorZoneStore.zones;for(let O of S)O.position!=="full"&&this._renderColorZone(O);for(let O of S)O.position==="full"&&this._renderColorZone(O);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderColorZone(S){this._ctx.fillStyle=S.color,this._ctx.fillRect(P[S.position||"full"],Math.round((this._canvas.height-1)*(S.startBufferLine/this._bufferService.buffers.active.lines.length)-x[S.position||"full"]/2),b[S.position||"full"],Math.round((this._canvas.height-1)*((S.endBufferLine-S.startBufferLine)/this._bufferService.buffers.active.lines.length)+x[S.position||"full"]))}_queueRefresh(S,O){this._shouldUpdateDimensions=S||this._shouldUpdateDimensions,this._shouldUpdateAnchor=O||this._shouldUpdateAnchor,this._animationFrame===void 0&&(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>{this._refreshDecorations(),this._animationFrame=void 0}))}};a.OverviewRulerRenderer=k=d([p(2,M.IBufferService),p(3,M.IDecorationService),p(4,g.IRenderService),p(5,M.IOptionsService),p(6,g.ICoreBrowserService)],k)},2950:function(i,a,s){var d=this&&this.__decorate||function(x,b,P,k){var S,O=arguments.length,A=O<3?b:k===null?k=Object.getOwnPropertyDescriptor(b,P):k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")A=Reflect.decorate(x,b,P,k);else for(var D=x.length-1;D>=0;D--)(S=x[D])&&(A=(O<3?S(A):O>3?S(b,P,A):S(b,P))||A);return O>3&&A&&Object.defineProperty(b,P,A),A},p=this&&this.__param||function(x,b){return function(P,k){b(P,k,x)}};Object.defineProperty(a,"__esModule",{value:!0}),a.CompositionHelper=void 0;let u=s(4725),g=s(2585),C=s(2584),M=a.CompositionHelper=class{get isComposing(){return this._isComposing}constructor(x,b,P,k,S,O){this._textarea=x,this._compositionView=b,this._bufferService=P,this._optionsService=k,this._coreService=S,this._renderService=O,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}compositionstart(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")}compositionupdate(x){this._compositionView.textContent=x.data,this.updateCompositionElements(),setTimeout(()=>{this._compositionPosition.end=this._textarea.value.length},0)}compositionend(){this._finalizeComposition(!0)}keydown(x){if(this._isComposing||this._isSendingComposition){if(x.keyCode===229||x.keyCode===16||x.keyCode===17||x.keyCode===18)return!1;this._finalizeComposition(!1)}return x.keyCode!==229||(this._handleAnyTextareaChanges(),!1)}_finalizeComposition(x){if(this._compositionView.classList.remove("active"),this._isComposing=!1,x){let b={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout(()=>{if(this._isSendingComposition){let P;this._isSendingComposition=!1,b.start+=this._dataAlreadySent.length,P=this._isComposing?this._textarea.value.substring(b.start,b.end):this._textarea.value.substring(b.start),P.length>0&&this._coreService.triggerDataEvent(P,!0)}},0)}else{this._isSendingComposition=!1;let b=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(b,!0)}}_handleAnyTextareaChanges(){let x=this._textarea.value;setTimeout(()=>{if(!this._isComposing){let b=this._textarea.value,P=b.replace(x,"");this._dataAlreadySent=P,b.length>x.length?this._coreService.triggerDataEvent(P,!0):b.lengththis.updateCompositionElements(!0),0)}}};a.CompositionHelper=M=d([p(2,g.IBufferService),p(3,g.IOptionsService),p(4,g.ICoreService),p(5,u.IRenderService)],M)},9806:(i,a)=>{function s(d,p,u){let g=u.getBoundingClientRect(),C=d.getComputedStyle(u),M=parseInt(C.getPropertyValue("padding-left")),x=parseInt(C.getPropertyValue("padding-top"));return[p.clientX-g.left-M,p.clientY-g.top-x]}Object.defineProperty(a,"__esModule",{value:!0}),a.getCoords=a.getCoordsRelativeToElement=void 0,a.getCoordsRelativeToElement=s,a.getCoords=function(d,p,u,g,C,M,x,b,P){if(!M)return;let k=s(d,p,u);return k?(k[0]=Math.ceil((k[0]+(P?x/2:0))/x),k[1]=Math.ceil(k[1]/b),k[0]=Math.min(Math.max(k[0],1),g+(P?1:0)),k[1]=Math.min(Math.max(k[1],1),C),k):void 0}},9504:(i,a,s)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.moveToCellSequence=void 0;let d=s(2584);function p(b,P,k,S){let O=b-u(b,k),A=P-u(P,k),D=Math.abs(O-A)-(function(F,I,B){let le=0,ae=F-u(F,B),W=I-u(I,B);for(let G=0;G=0&&bP?"A":"B"}function C(b,P,k,S,O,A){let D=b,F=P,I="";for(;D!==k||F!==S;)D+=O?1:-1,O&&D>A.cols-1?(I+=A.buffer.translateBufferLineToString(F,!1,b,D),D=0,b=0,F++):!O&&D<0&&(I+=A.buffer.translateBufferLineToString(F,!1,0,b+1),D=A.cols-1,b=D,F--);return I+A.buffer.translateBufferLineToString(F,!1,b,D)}function M(b,P){let k=P?"O":"[";return d.C0.ESC+k+b}function x(b,P){b=Math.floor(b);let k="";for(let S=0;S0?ae-u(ae,W):B;let Se=ae,pe=(function(Ae,ue,H,te,de,me){let Ie;return Ie=p(H,te,de,me).length>0?te-u(te,de):ue,Ae=H&&Ieb?"D":"C",x(Math.abs(O-b),M(D,S));D=A>P?"D":"C";let F=Math.abs(A-P);return x((function(I,B){return B.cols-I})(A>P?b:O,k)+(F-1)*k.cols+1+((A>P?O:b)-1),M(D,S))}},1296:function(i,a,s){var d=this&&this.__decorate||function(G,ve,Se,pe){var Ae,ue=arguments.length,H=ue<3?ve:pe===null?pe=Object.getOwnPropertyDescriptor(ve,Se):pe;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")H=Reflect.decorate(G,ve,Se,pe);else for(var te=G.length-1;te>=0;te--)(Ae=G[te])&&(H=(ue<3?Ae(H):ue>3?Ae(ve,Se,H):Ae(ve,Se))||H);return ue>3&&H&&Object.defineProperty(ve,Se,H),H},p=this&&this.__param||function(G,ve){return function(Se,pe){ve(Se,pe,G)}};Object.defineProperty(a,"__esModule",{value:!0}),a.DomRenderer=void 0;let u=s(3787),g=s(2550),C=s(2223),M=s(6171),x=s(6052),b=s(4725),P=s(8055),k=s(8460),S=s(844),O=s(2585),A="xterm-dom-renderer-owner-",D="xterm-rows",F="xterm-fg-",I="xterm-bg-",B="xterm-focus",le="xterm-selection",ae=1,W=a.DomRenderer=class extends S.Disposable{constructor(G,ve,Se,pe,Ae,ue,H,te,de,me,Ie,$e,tt){super(),this._terminal=G,this._document=ve,this._element=Se,this._screenElement=pe,this._viewportElement=Ae,this._helperContainer=ue,this._linkifier2=H,this._charSizeService=de,this._optionsService=me,this._bufferService=Ie,this._coreBrowserService=$e,this._themeService=tt,this._terminalClass=ae++,this._rowElements=[],this._selectionRenderModel=(0,x.createSelectionRenderModel)(),this.onRequestRedraw=this.register(new k.EventEmitter).event,this._rowContainer=this._document.createElement("div"),this._rowContainer.classList.add(D),this._rowContainer.style.lineHeight="normal",this._rowContainer.setAttribute("aria-hidden","true"),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=this._document.createElement("div"),this._selectionContainer.classList.add(le),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions=(0,M.createRenderDimensions)(),this._updateDimensions(),this.register(this._optionsService.onOptionChange(()=>this._handleOptionsChanged())),this.register(this._themeService.onChangeColors(et=>this._injectCss(et))),this._injectCss(this._themeService.colors),this._rowFactory=te.createInstance(u.DomRendererRowFactory,document),this._element.classList.add(A+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this.register(this._linkifier2.onShowLinkUnderline(et=>this._handleLinkHover(et))),this.register(this._linkifier2.onHideLinkUnderline(et=>this._handleLinkLeave(et))),this.register((0,S.toDisposable)(()=>{this._element.classList.remove(A+this._terminalClass),this._rowContainer.remove(),this._selectionContainer.remove(),this._widthCache.dispose(),this._themeStyleElement.remove(),this._dimensionsStyleElement.remove()})),this._widthCache=new g.WidthCache(this._document,this._helperContainer),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}_updateDimensions(){let G=this._coreBrowserService.dpr;this.dimensions.device.char.width=this._charSizeService.width*G,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*G),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.left=0,this.dimensions.device.char.top=0,this.dimensions.device.canvas.width=this.dimensions.device.cell.width*this._bufferService.cols,this.dimensions.device.canvas.height=this.dimensions.device.cell.height*this._bufferService.rows,this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/G),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/G),this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols,this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows;for(let Se of this._rowElements)Se.style.width=`${this.dimensions.css.canvas.width}px`,Se.style.height=`${this.dimensions.css.cell.height}px`,Se.style.lineHeight=`${this.dimensions.css.cell.height}px`,Se.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));let ve=`${this._terminalSelector} .${D} span { display: inline-block; height: 100%; vertical-align: top;}`;this._dimensionsStyleElement.textContent=ve,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._screenElement.style.height=`${this.dimensions.css.canvas.height}px`}_injectCss(G){this._themeStyleElement||(this._themeStyleElement=this._document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));let ve=`${this._terminalSelector} .${D} { color: ${G.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px; font-kerning: none; white-space: pre}`;ve+=`${this._terminalSelector} .${D} .xterm-dim { color: ${P.color.multiplyOpacity(G.foreground,.5).css};}`,ve+=`${this._terminalSelector} span:not(.xterm-bold) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.xterm-bold { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.xterm-italic { font-style: italic;}`;let Se=`blink_underline_${this._terminalClass}`,pe=`blink_bar_${this._terminalClass}`,Ae=`blink_block_${this._terminalClass}`;ve+=`@keyframes ${Se} { 50% { border-bottom-style: hidden; }}`,ve+=`@keyframes ${pe} { 50% { box-shadow: none; }}`,ve+=`@keyframes ${Ae} { 0% { background-color: ${G.cursor.css}; color: ${G.cursorAccent.css}; } 50% { background-color: inherit; color: ${G.cursor.css}; }}`,ve+=`${this._terminalSelector} .${D}.${B} .xterm-cursor.xterm-cursor-blink.xterm-cursor-underline { animation: ${Se} 1s step-end infinite;}${this._terminalSelector} .${D}.${B} .xterm-cursor.xterm-cursor-blink.xterm-cursor-bar { animation: ${pe} 1s step-end infinite;}${this._terminalSelector} .${D}.${B} .xterm-cursor.xterm-cursor-blink.xterm-cursor-block { animation: ${Ae} 1s step-end infinite;}${this._terminalSelector} .${D} .xterm-cursor.xterm-cursor-block { background-color: ${G.cursor.css}; color: ${G.cursorAccent.css};}${this._terminalSelector} .${D} .xterm-cursor.xterm-cursor-block:not(.xterm-cursor-blink) { background-color: ${G.cursor.css} !important; color: ${G.cursorAccent.css} !important;}${this._terminalSelector} .${D} .xterm-cursor.xterm-cursor-outline { outline: 1px solid ${G.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .${D} .xterm-cursor.xterm-cursor-bar { box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${G.cursor.css} inset;}${this._terminalSelector} .${D} .xterm-cursor.xterm-cursor-underline { border-bottom: 1px ${G.cursor.css}; border-bottom-style: solid; height: calc(100% - 1px);}`,ve+=`${this._terminalSelector} .${le} { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .${le} div { position: absolute; background-color: ${G.selectionBackgroundOpaque.css};}${this._terminalSelector} .${le} div { position: absolute; background-color: ${G.selectionInactiveBackgroundOpaque.css};}`;for(let[ue,H]of G.ansi.entries())ve+=`${this._terminalSelector} .${F}${ue} { color: ${H.css}; }${this._terminalSelector} .${F}${ue}.xterm-dim { color: ${P.color.multiplyOpacity(H,.5).css}; }${this._terminalSelector} .${I}${ue} { background-color: ${H.css}; }`;ve+=`${this._terminalSelector} .${F}${C.INVERTED_DEFAULT_COLOR} { color: ${P.color.opaque(G.background).css}; }${this._terminalSelector} .${F}${C.INVERTED_DEFAULT_COLOR}.xterm-dim { color: ${P.color.multiplyOpacity(P.color.opaque(G.background),.5).css}; }${this._terminalSelector} .${I}${C.INVERTED_DEFAULT_COLOR} { background-color: ${G.foreground.css}; }`,this._themeStyleElement.textContent=ve}_setDefaultSpacing(){let G=this.dimensions.css.cell.width-this._widthCache.get("W",!1,!1);this._rowContainer.style.letterSpacing=`${G}px`,this._rowFactory.defaultSpacing=G}handleDevicePixelRatioChange(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}_refreshRowElements(G,ve){for(let Se=this._rowElements.length;Se<=ve;Se++){let pe=this._document.createElement("div");this._rowContainer.appendChild(pe),this._rowElements.push(pe)}for(;this._rowElements.length>ve;)this._rowContainer.removeChild(this._rowElements.pop())}handleResize(G,ve){this._refreshRowElements(G,ve),this._updateDimensions(),this.handleSelectionChanged(this._selectionRenderModel.selectionStart,this._selectionRenderModel.selectionEnd,this._selectionRenderModel.columnSelectMode)}handleCharSizeChanged(){this._updateDimensions(),this._widthCache.clear(),this._setDefaultSpacing()}handleBlur(){this._rowContainer.classList.remove(B),this.renderRows(0,this._bufferService.rows-1)}handleFocus(){this._rowContainer.classList.add(B),this.renderRows(this._bufferService.buffer.y,this._bufferService.buffer.y)}handleSelectionChanged(G,ve,Se){if(this._selectionContainer.replaceChildren(),this._rowFactory.handleSelectionChanged(G,ve,Se),this.renderRows(0,this._bufferService.rows-1),!G||!ve)return;this._selectionRenderModel.update(this._terminal,G,ve,Se);let pe=this._selectionRenderModel.viewportStartRow,Ae=this._selectionRenderModel.viewportEndRow,ue=this._selectionRenderModel.viewportCappedStartRow,H=this._selectionRenderModel.viewportCappedEndRow;if(ue>=this._bufferService.rows||H<0)return;let te=this._document.createDocumentFragment();if(Se){let de=G[0]>ve[0];te.appendChild(this._createSelectionElement(ue,de?ve[0]:G[0],de?G[0]:ve[0],H-ue+1))}else{let de=pe===ue?G[0]:0,me=ue===Ae?ve[0]:this._bufferService.cols;te.appendChild(this._createSelectionElement(ue,de,me));let Ie=H-ue-1;if(te.appendChild(this._createSelectionElement(ue+1,0,this._bufferService.cols,Ie)),ue!==H){let $e=Ae===H?ve[0]:this._bufferService.cols;te.appendChild(this._createSelectionElement(H,0,$e))}}this._selectionContainer.appendChild(te)}_createSelectionElement(G,ve,Se,pe=1){let Ae=this._document.createElement("div"),ue=ve*this.dimensions.css.cell.width,H=this.dimensions.css.cell.width*(Se-ve);return ue+H>this.dimensions.css.canvas.width&&(H=this.dimensions.css.canvas.width-ue),Ae.style.height=pe*this.dimensions.css.cell.height+"px",Ae.style.top=G*this.dimensions.css.cell.height+"px",Ae.style.left=`${ue}px`,Ae.style.width=`${H}px`,Ae}handleCursorMove(){}_handleOptionsChanged(){this._updateDimensions(),this._injectCss(this._themeService.colors),this._widthCache.setFont(this._optionsService.rawOptions.fontFamily,this._optionsService.rawOptions.fontSize,this._optionsService.rawOptions.fontWeight,this._optionsService.rawOptions.fontWeightBold),this._setDefaultSpacing()}clear(){for(let G of this._rowElements)G.replaceChildren()}renderRows(G,ve){let Se=this._bufferService.buffer,pe=Se.ybase+Se.y,Ae=Math.min(Se.x,this._bufferService.cols-1),ue=this._optionsService.rawOptions.cursorBlink,H=this._optionsService.rawOptions.cursorStyle,te=this._optionsService.rawOptions.cursorInactiveStyle;for(let de=G;de<=ve;de++){let me=de+Se.ydisp,Ie=this._rowElements[de],$e=Se.lines.get(me);if(!Ie||!$e)break;Ie.replaceChildren(...this._rowFactory.createRow($e,me,me===pe,H,te,Ae,ue,this.dimensions.css.cell.width,this._widthCache,-1,-1))}}get _terminalSelector(){return`.${A}${this._terminalClass}`}_handleLinkHover(G){this._setCellUnderline(G.x1,G.x2,G.y1,G.y2,G.cols,!0)}_handleLinkLeave(G){this._setCellUnderline(G.x1,G.x2,G.y1,G.y2,G.cols,!1)}_setCellUnderline(G,ve,Se,pe,Ae,ue){Se<0&&(G=0),pe<0&&(ve=0);let H=this._bufferService.rows-1;Se=Math.max(Math.min(Se,H),0),pe=Math.max(Math.min(pe,H),0),Ae=Math.min(Ae,this._bufferService.cols);let te=this._bufferService.buffer,de=te.ybase+te.y,me=Math.min(te.x,Ae-1),Ie=this._optionsService.rawOptions.cursorBlink,$e=this._optionsService.rawOptions.cursorStyle,tt=this._optionsService.rawOptions.cursorInactiveStyle;for(let et=Se;et<=pe;++et){let Me=et+te.ydisp,Z=this._rowElements[et],Le=te.lines.get(Me);if(!Z||!Le)break;Z.replaceChildren(...this._rowFactory.createRow(Le,Me,Me===de,$e,tt,me,Ie,this.dimensions.css.cell.width,this._widthCache,ue?et===Se?G:0:-1,ue?(et===pe?ve:Ae)-1:-1))}}};a.DomRenderer=W=d([p(7,O.IInstantiationService),p(8,b.ICharSizeService),p(9,O.IOptionsService),p(10,O.IBufferService),p(11,b.ICoreBrowserService),p(12,b.IThemeService)],W)},3787:function(i,a,s){var d=this&&this.__decorate||function(D,F,I,B){var le,ae=arguments.length,W=ae<3?F:B===null?B=Object.getOwnPropertyDescriptor(F,I):B;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")W=Reflect.decorate(D,F,I,B);else for(var G=D.length-1;G>=0;G--)(le=D[G])&&(W=(ae<3?le(W):ae>3?le(F,I,W):le(F,I))||W);return ae>3&&W&&Object.defineProperty(F,I,W),W},p=this&&this.__param||function(D,F){return function(I,B){F(I,B,D)}};Object.defineProperty(a,"__esModule",{value:!0}),a.DomRendererRowFactory=void 0;let u=s(2223),g=s(643),C=s(511),M=s(2585),x=s(8055),b=s(4725),P=s(4269),k=s(6171),S=s(3734),O=a.DomRendererRowFactory=class{constructor(D,F,I,B,le,ae,W){this._document=D,this._characterJoinerService=F,this._optionsService=I,this._coreBrowserService=B,this._coreService=le,this._decorationService=ae,this._themeService=W,this._workCell=new C.CellData,this._columnSelectMode=!1,this.defaultSpacing=0}handleSelectionChanged(D,F,I){this._selectionStart=D,this._selectionEnd=F,this._columnSelectMode=I}createRow(D,F,I,B,le,ae,W,G,ve,Se,pe){let Ae=[],ue=this._characterJoinerService.getJoinedCharacters(F),H=this._themeService.colors,te,de=D.getNoBgTrimmedLength();I&&de0&&si===ue[0][0]){Mo=!0;let oa=ue.shift();Gn=new P.JoinedCellData(this._workCell,D.translateToString(!0,oa[0],oa[1]),oa[1]-oa[0]),Ka=oa[1]-1,Bo=Gn.getWidth()}let om=this._isCellInSelection(si,F),Zu=I&&si===ae,Ak=Ot&&si>=Se&&si<=pe,Nk=!1;this._decorationService.forEachDecorationAtCell(si,F,void 0,oa=>{Nk=!0});let PC=Gn.getChars()||g.WHITESPACE_CELL_CHAR;if(PC===" "&&(Gn.isUnderline()||Gn.isOverline())&&(PC="\xA0"),Ze=Bo*G-ve.get(PC,Gn.isBold(),Gn.isItalic()),te){if(me&&(om&&Le||!om&&!Le&&Gn.bg===$e)&&(om&&Le&&H.selectionForeground||Gn.fg===tt)&&Gn.extended.ext===et&&Ak===Me&&Ze===Z&&!Zu&&!Mo&&!Nk){Gn.isInvisible()?Ie+=g.WHITESPACE_CELL_CHAR:Ie+=PC,me++;continue}me&&(te.textContent=Ie),te=this._document.createElement("span"),me=0,Ie=""}else te=this._document.createElement("span");if($e=Gn.bg,tt=Gn.fg,et=Gn.extended.ext,Me=Ak,Z=Ze,Le=om,Mo&&ae>=si&&ae<=Ka&&(ae=si),!this._coreService.isCursorHidden&&Zu&&this._coreService.isCursorInitialized){if(dt.push("xterm-cursor"),this._coreBrowserService.isFocused)W&&dt.push("xterm-cursor-blink"),dt.push(B==="bar"?"xterm-cursor-bar":B==="underline"?"xterm-cursor-underline":"xterm-cursor-block");else if(le)switch(le){case"outline":dt.push("xterm-cursor-outline");break;case"block":dt.push("xterm-cursor-block");break;case"bar":dt.push("xterm-cursor-bar");break;case"underline":dt.push("xterm-cursor-underline")}}if(Gn.isBold()&&dt.push("xterm-bold"),Gn.isItalic()&&dt.push("xterm-italic"),Gn.isDim()&&dt.push("xterm-dim"),Ie=Gn.isInvisible()?g.WHITESPACE_CELL_CHAR:Gn.getChars()||g.WHITESPACE_CELL_CHAR,Gn.isUnderline()&&(dt.push(`xterm-underline-${Gn.extended.underlineStyle}`),Ie===" "&&(Ie="\xA0"),!Gn.isUnderlineColorDefault()))if(Gn.isUnderlineColorRGB())te.style.textDecorationColor=`rgb(${S.AttributeData.toColorRGB(Gn.getUnderlineColor()).join(",")})`;else{let oa=Gn.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&Gn.isBold()&&oa<8&&(oa+=8),te.style.textDecorationColor=H.ansi[oa].css}Gn.isOverline()&&(dt.push("xterm-overline"),Ie===" "&&(Ie="\xA0")),Gn.isStrikethrough()&&dt.push("xterm-strikethrough"),Ak&&(te.style.textDecoration="underline");let ol=Gn.getFgColor(),tf=Gn.getFgColorMode(),kc=Gn.getBgColor(),nf=Gn.getBgColorMode(),Fk=!!Gn.isInverse();if(Fk){let oa=ol;ol=kc,kc=oa;let jH=tf;tf=nf,nf=jH}let am,TC,rm,of=!1;switch(this._decorationService.forEachDecorationAtCell(si,F,void 0,oa=>{oa.options.layer!=="top"&&of||(oa.backgroundColorRGB&&(nf=50331648,kc=oa.backgroundColorRGB.rgba>>8&16777215,am=oa.backgroundColorRGB),oa.foregroundColorRGB&&(tf=50331648,ol=oa.foregroundColorRGB.rgba>>8&16777215,TC=oa.foregroundColorRGB),of=oa.options.layer==="top")}),!of&&om&&(am=this._coreBrowserService.isFocused?H.selectionBackgroundOpaque:H.selectionInactiveBackgroundOpaque,kc=am.rgba>>8&16777215,nf=50331648,of=!0,H.selectionForeground&&(tf=50331648,ol=H.selectionForeground.rgba>>8&16777215,TC=H.selectionForeground)),of&&dt.push("xterm-decoration-top"),nf){case 16777216:case 33554432:rm=H.ansi[kc],dt.push(`xterm-bg-${kc}`);break;case 50331648:rm=x.channels.toColor(kc>>16,kc>>8&255,255&kc),this._addStyle(te,`background-color:#${A((kc>>>0).toString(16),"0",6)}`);break;default:Fk?(rm=H.foreground,dt.push(`xterm-bg-${u.INVERTED_DEFAULT_COLOR}`)):rm=H.background}switch(am||Gn.isDim()&&(am=x.color.multiplyOpacity(rm,.5)),tf){case 16777216:case 33554432:Gn.isBold()&&ol<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(ol+=8),this._applyMinimumContrast(te,rm,H.ansi[ol],Gn,am,void 0)||dt.push(`xterm-fg-${ol}`);break;case 50331648:let oa=x.channels.toColor(ol>>16&255,ol>>8&255,255&ol);this._applyMinimumContrast(te,rm,oa,Gn,am,TC)||this._addStyle(te,`color:#${A(ol.toString(16),"0",6)}`);break;default:this._applyMinimumContrast(te,rm,H.foreground,Gn,am,TC)||Fk&&dt.push(`xterm-fg-${u.INVERTED_DEFAULT_COLOR}`)}dt.length&&(te.className=dt.join(" "),dt.length=0),Zu||Mo||Nk?te.textContent=Ie:me++,Ze!==this.defaultSpacing&&(te.style.letterSpacing=`${Ze}px`),Ae.push(te),si=Ka}return te&&me&&(te.textContent=Ie),Ae}_applyMinimumContrast(D,F,I,B,le,ae){if(this._optionsService.rawOptions.minimumContrastRatio===1||(0,k.treatGlyphAsBackgroundColor)(B.getCode()))return!1;let W=this._getContrastCache(B),G;if(le||ae||(G=W.getColor(F.rgba,I.rgba)),G===void 0){let ve=this._optionsService.rawOptions.minimumContrastRatio/(B.isDim()?2:1);G=x.color.ensureContrastRatio(le||F,ae||I,ve),W.setColor((le||F).rgba,(ae||I).rgba,G??null)}return!!G&&(this._addStyle(D,`color:${G.css}`),!0)}_getContrastCache(D){return D.isDim()?this._themeService.colors.halfContrastCache:this._themeService.colors.contrastCache}_addStyle(D,F){D.setAttribute("style",`${D.getAttribute("style")||""}${F};`)}_isCellInSelection(D,F){let I=this._selectionStart,B=this._selectionEnd;return!(!I||!B)&&(this._columnSelectMode?I[0]<=B[0]?D>=I[0]&&F>=I[1]&&D=I[1]&&D>=B[0]&&F<=B[1]:F>I[1]&&F=I[0]&&D=I[0])}};function A(D,F,I){for(;D.length{Object.defineProperty(a,"__esModule",{value:!0}),a.WidthCache=void 0,a.WidthCache=class{constructor(s,d){this._flat=new Float32Array(256),this._font="",this._fontSize=0,this._weight="normal",this._weightBold="bold",this._measureElements=[],this._container=s.createElement("div"),this._container.classList.add("xterm-width-cache-measure-container"),this._container.setAttribute("aria-hidden","true"),this._container.style.whiteSpace="pre",this._container.style.fontKerning="none";let p=s.createElement("span");p.classList.add("xterm-char-measure-element");let u=s.createElement("span");u.classList.add("xterm-char-measure-element"),u.style.fontWeight="bold";let g=s.createElement("span");g.classList.add("xterm-char-measure-element"),g.style.fontStyle="italic";let C=s.createElement("span");C.classList.add("xterm-char-measure-element"),C.style.fontWeight="bold",C.style.fontStyle="italic",this._measureElements=[p,u,g,C],this._container.appendChild(p),this._container.appendChild(u),this._container.appendChild(g),this._container.appendChild(C),d.appendChild(this._container),this.clear()}dispose(){this._container.remove(),this._measureElements.length=0,this._holey=void 0}clear(){this._flat.fill(-9999),this._holey=new Map}setFont(s,d,p,u){s===this._font&&d===this._fontSize&&p===this._weight&&u===this._weightBold||(this._font=s,this._fontSize=d,this._weight=p,this._weightBold=u,this._container.style.fontFamily=this._font,this._container.style.fontSize=`${this._fontSize}px`,this._measureElements[0].style.fontWeight=`${p}`,this._measureElements[1].style.fontWeight=`${u}`,this._measureElements[2].style.fontWeight=`${p}`,this._measureElements[3].style.fontWeight=`${u}`,this.clear())}get(s,d,p){let u=0;if(!d&&!p&&s.length===1&&(u=s.charCodeAt(0))<256){if(this._flat[u]!==-9999)return this._flat[u];let M=this._measure(s,0);return M>0&&(this._flat[u]=M),M}let g=s;d&&(g+="B"),p&&(g+="I");let C=this._holey.get(g);if(C===void 0){let M=0;d&&(M|=1),p&&(M|=2),C=this._measure(s,M),C>0&&this._holey.set(g,C)}return C}_measure(s,d){let p=this._measureElements[d];return p.textContent=s.repeat(32),p.offsetWidth/32}}},2223:(i,a,s)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.TEXT_BASELINE=a.DIM_OPACITY=a.INVERTED_DEFAULT_COLOR=void 0;let d=s(6114);a.INVERTED_DEFAULT_COLOR=257,a.DIM_OPACITY=.5,a.TEXT_BASELINE=d.isFirefox||d.isLegacyEdge?"bottom":"ideographic"},6171:(i,a)=>{function s(p){return 57508<=p&&p<=57558}function d(p){return p>=128512&&p<=128591||p>=127744&&p<=128511||p>=128640&&p<=128767||p>=9728&&p<=9983||p>=9984&&p<=10175||p>=65024&&p<=65039||p>=129280&&p<=129535||p>=127462&&p<=127487}Object.defineProperty(a,"__esModule",{value:!0}),a.computeNextVariantOffset=a.createRenderDimensions=a.treatGlyphAsBackgroundColor=a.allowRescaling=a.isEmoji=a.isRestrictedPowerlineGlyph=a.isPowerlineGlyph=a.throwIfFalsy=void 0,a.throwIfFalsy=function(p){if(!p)throw new Error("value must not be falsy");return p},a.isPowerlineGlyph=s,a.isRestrictedPowerlineGlyph=function(p){return 57520<=p&&p<=57527},a.isEmoji=d,a.allowRescaling=function(p,u,g,C){return u===1&&g>Math.ceil(1.5*C)&&p!==void 0&&p>255&&!d(p)&&!s(p)&&!(function(M){return 57344<=M&&M<=63743})(p)},a.treatGlyphAsBackgroundColor=function(p){return s(p)||(function(u){return 9472<=u&&u<=9631})(p)},a.createRenderDimensions=function(){return{css:{canvas:{width:0,height:0},cell:{width:0,height:0}},device:{canvas:{width:0,height:0},cell:{width:0,height:0},char:{width:0,height:0,left:0,top:0}}}},a.computeNextVariantOffset=function(p,u,g=0){return(p-(2*Math.round(u)-g))%(2*Math.round(u))}},6052:(i,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.createSelectionRenderModel=void 0;class s{constructor(){this.clear()}clear(){this.hasSelection=!1,this.columnSelectMode=!1,this.viewportStartRow=0,this.viewportEndRow=0,this.viewportCappedStartRow=0,this.viewportCappedEndRow=0,this.startCol=0,this.endCol=0,this.selectionStart=void 0,this.selectionEnd=void 0}update(p,u,g,C=!1){if(this.selectionStart=u,this.selectionEnd=g,!u||!g||u[0]===g[0]&&u[1]===g[1])return void this.clear();let M=p.buffers.active.ydisp,x=u[1]-M,b=g[1]-M,P=Math.max(x,0),k=Math.min(b,p.rows-1);P>=p.rows||k<0?this.clear():(this.hasSelection=!0,this.columnSelectMode=C,this.viewportStartRow=x,this.viewportEndRow=b,this.viewportCappedStartRow=P,this.viewportCappedEndRow=k,this.startCol=u[0],this.endCol=g[0])}isCellSelected(p,u,g){return!!this.hasSelection&&(g-=p.buffer.active.viewportY,this.columnSelectMode?this.startCol<=this.endCol?u>=this.startCol&&g>=this.viewportCappedStartRow&&u=this.viewportCappedStartRow&&u>=this.endCol&&g<=this.viewportCappedEndRow:g>this.viewportStartRow&&g=this.startCol&&u=this.startCol)}}a.createSelectionRenderModel=function(){return new s}},456:(i,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.SelectionModel=void 0,a.SelectionModel=class{constructor(s){this._bufferService=s,this.isSelectAllActive=!1,this.selectionStartLength=0}clearSelection(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0}get finalSelectionStart(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart}get finalSelectionEnd(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){let s=this.selectionStart[0]+this.selectionStartLength;return s>this._bufferService.cols?s%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(s/this._bufferService.cols)-1]:[s%this._bufferService.cols,this.selectionStart[1]+Math.floor(s/this._bufferService.cols)]:[s,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){let s=this.selectionStart[0]+this.selectionStartLength;return s>this._bufferService.cols?[s%this._bufferService.cols,this.selectionStart[1]+Math.floor(s/this._bufferService.cols)]:[Math.max(s,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}areSelectionValuesReversed(){let s=this.selectionStart,d=this.selectionEnd;return!(!s||!d)&&(s[1]>d[1]||s[1]===d[1]&&s[0]>d[0])}handleTrim(s){return this.selectionStart&&(this.selectionStart[1]-=s),this.selectionEnd&&(this.selectionEnd[1]-=s),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}}},428:function(i,a,s){var d=this&&this.__decorate||function(k,S,O,A){var D,F=arguments.length,I=F<3?S:A===null?A=Object.getOwnPropertyDescriptor(S,O):A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(k,S,O,A);else for(var B=k.length-1;B>=0;B--)(D=k[B])&&(I=(F<3?D(I):F>3?D(S,O,I):D(S,O))||I);return F>3&&I&&Object.defineProperty(S,O,I),I},p=this&&this.__param||function(k,S){return function(O,A){S(O,A,k)}};Object.defineProperty(a,"__esModule",{value:!0}),a.CharSizeService=void 0;let u=s(2585),g=s(8460),C=s(844),M=a.CharSizeService=class extends C.Disposable{get hasValidSize(){return this.width>0&&this.height>0}constructor(k,S,O){super(),this._optionsService=O,this.width=0,this.height=0,this._onCharSizeChange=this.register(new g.EventEmitter),this.onCharSizeChange=this._onCharSizeChange.event;try{this._measureStrategy=this.register(new P(this._optionsService))}catch{this._measureStrategy=this.register(new b(k,S,this._optionsService))}this.register(this._optionsService.onMultipleOptionChange(["fontFamily","fontSize"],()=>this.measure()))}measure(){let k=this._measureStrategy.measure();k.width===this.width&&k.height===this.height||(this.width=k.width,this.height=k.height,this._onCharSizeChange.fire())}};a.CharSizeService=M=d([p(2,u.IOptionsService)],M);class x extends C.Disposable{constructor(){super(...arguments),this._result={width:0,height:0}}_validateAndSet(S,O){S!==void 0&&S>0&&O!==void 0&&O>0&&(this._result.width=S,this._result.height=O)}}class b extends x{constructor(S,O,A){super(),this._document=S,this._parentElement=O,this._optionsService=A,this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W".repeat(32),this._measureElement.setAttribute("aria-hidden","true"),this._measureElement.style.whiteSpace="pre",this._measureElement.style.fontKerning="none",this._parentElement.appendChild(this._measureElement)}measure(){return this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=`${this._optionsService.rawOptions.fontSize}px`,this._validateAndSet(Number(this._measureElement.offsetWidth)/32,Number(this._measureElement.offsetHeight)),this._result}}class P extends x{constructor(S){super(),this._optionsService=S,this._canvas=new OffscreenCanvas(100,100),this._ctx=this._canvas.getContext("2d");let O=this._ctx.measureText("W");if(!("width"in O&&"fontBoundingBoxAscent"in O&&"fontBoundingBoxDescent"in O))throw new Error("Required font metrics not supported")}measure(){this._ctx.font=`${this._optionsService.rawOptions.fontSize}px ${this._optionsService.rawOptions.fontFamily}`;let S=this._ctx.measureText("W");return this._validateAndSet(S.width,S.fontBoundingBoxAscent+S.fontBoundingBoxDescent),this._result}}},4269:function(i,a,s){var d=this&&this.__decorate||function(P,k,S,O){var A,D=arguments.length,F=D<3?k:O===null?O=Object.getOwnPropertyDescriptor(k,S):O;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")F=Reflect.decorate(P,k,S,O);else for(var I=P.length-1;I>=0;I--)(A=P[I])&&(F=(D<3?A(F):D>3?A(k,S,F):A(k,S))||F);return D>3&&F&&Object.defineProperty(k,S,F),F},p=this&&this.__param||function(P,k){return function(S,O){k(S,O,P)}};Object.defineProperty(a,"__esModule",{value:!0}),a.CharacterJoinerService=a.JoinedCellData=void 0;let u=s(3734),g=s(643),C=s(511),M=s(2585);class x extends u.AttributeData{constructor(k,S,O){super(),this.content=0,this.combinedData="",this.fg=k.fg,this.bg=k.bg,this.combinedData=S,this._width=O}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(k){throw new Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}a.JoinedCellData=x;let b=a.CharacterJoinerService=class Fj{constructor(k){this._bufferService=k,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new C.CellData}register(k){let S={id:this._nextCharacterJoinerId++,handler:k};return this._characterJoiners.push(S),S.id}deregister(k){for(let S=0;S1){let W=this._getJoinedRanges(A,I,F,S,D);for(let G=0;G1){let ae=this._getJoinedRanges(A,I,F,S,D);for(let W=0;W{Object.defineProperty(a,"__esModule",{value:!0}),a.CoreBrowserService=void 0;let d=s(844),p=s(8460),u=s(3656);class g extends d.Disposable{constructor(x,b,P){super(),this._textarea=x,this._window=b,this.mainDocument=P,this._isFocused=!1,this._cachedIsFocused=void 0,this._screenDprMonitor=new C(this._window),this._onDprChange=this.register(new p.EventEmitter),this.onDprChange=this._onDprChange.event,this._onWindowChange=this.register(new p.EventEmitter),this.onWindowChange=this._onWindowChange.event,this.register(this.onWindowChange(k=>this._screenDprMonitor.setWindow(k))),this.register((0,p.forwardEvent)(this._screenDprMonitor.onDprChange,this._onDprChange)),this._textarea.addEventListener("focus",()=>this._isFocused=!0),this._textarea.addEventListener("blur",()=>this._isFocused=!1)}get window(){return this._window}set window(x){this._window!==x&&(this._window=x,this._onWindowChange.fire(this._window))}get dpr(){return this.window.devicePixelRatio}get isFocused(){return this._cachedIsFocused===void 0&&(this._cachedIsFocused=this._isFocused&&this._textarea.ownerDocument.hasFocus(),queueMicrotask(()=>this._cachedIsFocused=void 0)),this._cachedIsFocused}}a.CoreBrowserService=g;class C extends d.Disposable{constructor(x){super(),this._parentWindow=x,this._windowResizeListener=this.register(new d.MutableDisposable),this._onDprChange=this.register(new p.EventEmitter),this.onDprChange=this._onDprChange.event,this._outerListener=()=>this._setDprAndFireIfDiffers(),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._updateDpr(),this._setWindowResizeListener(),this.register((0,d.toDisposable)(()=>this.clearListener()))}setWindow(x){this._parentWindow=x,this._setWindowResizeListener(),this._setDprAndFireIfDiffers()}_setWindowResizeListener(){this._windowResizeListener.value=(0,u.addDisposableDomListener)(this._parentWindow,"resize",()=>this._setDprAndFireIfDiffers())}_setDprAndFireIfDiffers(){this._parentWindow.devicePixelRatio!==this._currentDevicePixelRatio&&this._onDprChange.fire(this._parentWindow.devicePixelRatio),this._updateDpr()}_updateDpr(){this._outerListener&&(this._resolutionMediaMatchList?.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia(`screen and (resolution: ${this._parentWindow.devicePixelRatio}dppx)`),this._resolutionMediaMatchList.addListener(this._outerListener))}clearListener(){this._resolutionMediaMatchList&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._outerListener=void 0)}}},779:(i,a,s)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.LinkProviderService=void 0;let d=s(844);class p extends d.Disposable{constructor(){super(),this.linkProviders=[],this.register((0,d.toDisposable)(()=>this.linkProviders.length=0))}registerLinkProvider(g){return this.linkProviders.push(g),{dispose:()=>{let C=this.linkProviders.indexOf(g);C!==-1&&this.linkProviders.splice(C,1)}}}}a.LinkProviderService=p},8934:function(i,a,s){var d=this&&this.__decorate||function(M,x,b,P){var k,S=arguments.length,O=S<3?x:P===null?P=Object.getOwnPropertyDescriptor(x,b):P;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")O=Reflect.decorate(M,x,b,P);else for(var A=M.length-1;A>=0;A--)(k=M[A])&&(O=(S<3?k(O):S>3?k(x,b,O):k(x,b))||O);return S>3&&O&&Object.defineProperty(x,b,O),O},p=this&&this.__param||function(M,x){return function(b,P){x(b,P,M)}};Object.defineProperty(a,"__esModule",{value:!0}),a.MouseService=void 0;let u=s(4725),g=s(9806),C=a.MouseService=class{constructor(M,x){this._renderService=M,this._charSizeService=x}getCoords(M,x,b,P,k){return(0,g.getCoords)(window,M,x,b,P,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,k)}getMouseReportCoords(M,x){let b=(0,g.getCoordsRelativeToElement)(window,M,x);if(this._charSizeService.hasValidSize)return b[0]=Math.min(Math.max(b[0],0),this._renderService.dimensions.css.canvas.width-1),b[1]=Math.min(Math.max(b[1],0),this._renderService.dimensions.css.canvas.height-1),{col:Math.floor(b[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(b[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(b[0]),y:Math.floor(b[1])}}};a.MouseService=C=d([p(0,u.IRenderService),p(1,u.ICharSizeService)],C)},3230:function(i,a,s){var d=this&&this.__decorate||function(k,S,O,A){var D,F=arguments.length,I=F<3?S:A===null?A=Object.getOwnPropertyDescriptor(S,O):A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(k,S,O,A);else for(var B=k.length-1;B>=0;B--)(D=k[B])&&(I=(F<3?D(I):F>3?D(S,O,I):D(S,O))||I);return F>3&&I&&Object.defineProperty(S,O,I),I},p=this&&this.__param||function(k,S){return function(O,A){S(O,A,k)}};Object.defineProperty(a,"__esModule",{value:!0}),a.RenderService=void 0;let u=s(6193),g=s(4725),C=s(8460),M=s(844),x=s(7226),b=s(2585),P=a.RenderService=class extends M.Disposable{get dimensions(){return this._renderer.value.dimensions}constructor(k,S,O,A,D,F,I,B){super(),this._rowCount=k,this._charSizeService=A,this._renderer=this.register(new M.MutableDisposable),this._pausedResizeTask=new x.DebouncedIdleTask,this._observerDisposable=this.register(new M.MutableDisposable),this._isPaused=!1,this._needsFullRefresh=!1,this._isNextRenderRedrawOnly=!0,this._needsSelectionRefresh=!1,this._canvasWidth=0,this._canvasHeight=0,this._selectionState={start:void 0,end:void 0,columnSelectMode:!1},this._onDimensionsChange=this.register(new C.EventEmitter),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this.register(new C.EventEmitter),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this.register(new C.EventEmitter),this.onRender=this._onRender.event,this._onRefreshRequest=this.register(new C.EventEmitter),this.onRefreshRequest=this._onRefreshRequest.event,this._renderDebouncer=new u.RenderDebouncer((le,ae)=>this._renderRows(le,ae),I),this.register(this._renderDebouncer),this.register(I.onDprChange(()=>this.handleDevicePixelRatioChange())),this.register(F.onResize(()=>this._fullRefresh())),this.register(F.buffers.onBufferActivate(()=>this._renderer.value?.clear())),this.register(O.onOptionChange(()=>this._handleOptionsChanged())),this.register(this._charSizeService.onCharSizeChange(()=>this.handleCharSizeChanged())),this.register(D.onDecorationRegistered(()=>this._fullRefresh())),this.register(D.onDecorationRemoved(()=>this._fullRefresh())),this.register(O.onMultipleOptionChange(["customGlyphs","drawBoldTextInBrightColors","letterSpacing","lineHeight","fontFamily","fontSize","fontWeight","fontWeightBold","minimumContrastRatio","rescaleOverlappingGlyphs"],()=>{this.clear(),this.handleResize(F.cols,F.rows),this._fullRefresh()})),this.register(O.onMultipleOptionChange(["cursorBlink","cursorStyle"],()=>this.refreshRows(F.buffer.y,F.buffer.y,!0))),this.register(B.onChangeColors(()=>this._fullRefresh())),this._registerIntersectionObserver(I.window,S),this.register(I.onWindowChange(le=>this._registerIntersectionObserver(le,S)))}_registerIntersectionObserver(k,S){if("IntersectionObserver"in k){let O=new k.IntersectionObserver(A=>this._handleIntersectionChange(A[A.length-1]),{threshold:0});O.observe(S),this._observerDisposable.value=(0,M.toDisposable)(()=>O.disconnect())}}_handleIntersectionChange(k){this._isPaused=k.isIntersecting===void 0?k.intersectionRatio===0:!k.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this._pausedResizeTask.flush(),this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}refreshRows(k,S,O=!1){this._isPaused?this._needsFullRefresh=!0:(O||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(k,S,this._rowCount))}_renderRows(k,S){this._renderer.value&&(k=Math.min(k,this._rowCount-1),S=Math.min(S,this._rowCount-1),this._renderer.value.renderRows(k,S),this._needsSelectionRefresh&&(this._renderer.value.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:k,end:S}),this._onRender.fire({start:k,end:S}),this._isNextRenderRedrawOnly=!0)}resize(k,S){this._rowCount=S,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer.value&&(this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize())}_fireOnCanvasResize(){this._renderer.value&&(this._renderer.value.dimensions.css.canvas.width===this._canvasWidth&&this._renderer.value.dimensions.css.canvas.height===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.value.dimensions))}hasRenderer(){return!!this._renderer.value}setRenderer(k){this._renderer.value=k,this._renderer.value&&(this._renderer.value.onRequestRedraw(S=>this.refreshRows(S.start,S.end,!0)),this._needsSelectionRefresh=!0,this._fullRefresh())}addRefreshCallback(k){return this._renderDebouncer.addRefreshCallback(k)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){this._renderer.value&&(this._renderer.value.clearTextureAtlas?.(),this._fullRefresh())}handleDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer.value&&(this._renderer.value.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}handleResize(k,S){this._renderer.value&&(this._isPaused?this._pausedResizeTask.set(()=>this._renderer.value?.handleResize(k,S)):this._renderer.value.handleResize(k,S),this._fullRefresh())}handleCharSizeChanged(){this._renderer.value?.handleCharSizeChanged()}handleBlur(){this._renderer.value?.handleBlur()}handleFocus(){this._renderer.value?.handleFocus()}handleSelectionChanged(k,S,O){this._selectionState.start=k,this._selectionState.end=S,this._selectionState.columnSelectMode=O,this._renderer.value?.handleSelectionChanged(k,S,O)}handleCursorMove(){this._renderer.value?.handleCursorMove()}clear(){this._renderer.value?.clear()}};a.RenderService=P=d([p(2,b.IOptionsService),p(3,g.ICharSizeService),p(4,b.IDecorationService),p(5,b.IBufferService),p(6,g.ICoreBrowserService),p(7,g.IThemeService)],P)},9312:function(i,a,s){var d=this&&this.__decorate||function(I,B,le,ae){var W,G=arguments.length,ve=G<3?B:ae===null?ae=Object.getOwnPropertyDescriptor(B,le):ae;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")ve=Reflect.decorate(I,B,le,ae);else for(var Se=I.length-1;Se>=0;Se--)(W=I[Se])&&(ve=(G<3?W(ve):G>3?W(B,le,ve):W(B,le))||ve);return G>3&&ve&&Object.defineProperty(B,le,ve),ve},p=this&&this.__param||function(I,B){return function(le,ae){B(le,ae,I)}};Object.defineProperty(a,"__esModule",{value:!0}),a.SelectionService=void 0;let u=s(9806),g=s(9504),C=s(456),M=s(4725),x=s(8460),b=s(844),P=s(6114),k=s(4841),S=s(511),O=s(2585),A="\xA0",D=new RegExp(A,"g"),F=a.SelectionService=class extends b.Disposable{constructor(I,B,le,ae,W,G,ve,Se,pe){super(),this._element=I,this._screenElement=B,this._linkifier=le,this._bufferService=ae,this._coreService=W,this._mouseService=G,this._optionsService=ve,this._renderService=Se,this._coreBrowserService=pe,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new S.CellData,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this.register(new x.EventEmitter),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this.register(new x.EventEmitter),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this.register(new x.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this.register(new x.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this._mouseMoveListener=Ae=>this._handleMouseMove(Ae),this._mouseUpListener=Ae=>this._handleMouseUp(Ae),this._coreService.onUserInput(()=>{this.hasSelection&&this.clearSelection()}),this._trimListener=this._bufferService.buffer.lines.onTrim(Ae=>this._handleTrim(Ae)),this.register(this._bufferService.buffers.onBufferActivate(Ae=>this._handleBufferActivate(Ae))),this.enable(),this._model=new C.SelectionModel(this._bufferService),this._activeSelectionMode=0,this.register((0,b.toDisposable)(()=>{this._removeMouseDownListeners()}))}reset(){this.clearSelection()}disable(){this.clearSelection(),this._enabled=!1}enable(){this._enabled=!0}get selectionStart(){return this._model.finalSelectionStart}get selectionEnd(){return this._model.finalSelectionEnd}get hasSelection(){let I=this._model.finalSelectionStart,B=this._model.finalSelectionEnd;return!(!I||!B||I[0]===B[0]&&I[1]===B[1])}get selectionText(){let I=this._model.finalSelectionStart,B=this._model.finalSelectionEnd;if(!I||!B)return"";let le=this._bufferService.buffer,ae=[];if(this._activeSelectionMode===3){if(I[0]===B[0])return"";let W=I[0]W.replace(D," ")).join(P.isWindows?`\r +`:` +`)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(I){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._refresh())),P.isLinux&&I&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})}_isClickInSelection(I){let B=this._getMouseBufferCoords(I),le=this._model.finalSelectionStart,ae=this._model.finalSelectionEnd;return!!(le&&ae&&B)&&this._areCoordsInSelection(B,le,ae)}isCellInSelection(I,B){let le=this._model.finalSelectionStart,ae=this._model.finalSelectionEnd;return!(!le||!ae)&&this._areCoordsInSelection([I,B],le,ae)}_areCoordsInSelection(I,B,le){return I[1]>B[1]&&I[1]=B[0]&&I[0]=B[0]}_selectWordAtCursor(I,B){let le=this._linkifier.currentLink?.link?.range;if(le)return this._model.selectionStart=[le.start.x-1,le.start.y-1],this._model.selectionStartLength=(0,k.getRangeLength)(le,this._bufferService.cols),this._model.selectionEnd=void 0,!0;let ae=this._getMouseBufferCoords(I);return!!ae&&(this._selectWordAt(ae,B),this._model.selectionEnd=void 0,!0)}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(I,B){this._model.clearSelection(),I=Math.max(I,0),B=Math.min(B,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,I],this._model.selectionEnd=[this._bufferService.cols,B],this.refresh(),this._onSelectionChange.fire()}_handleTrim(I){this._model.handleTrim(I)&&this.refresh()}_getMouseBufferCoords(I){let B=this._mouseService.getCoords(I,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(B)return B[0]--,B[1]--,B[1]+=this._bufferService.buffer.ydisp,B}_getMouseEventScrollAmount(I){let B=(0,u.getCoordsRelativeToElement)(this._coreBrowserService.window,I,this._screenElement)[1],le=this._renderService.dimensions.css.canvas.height;return B>=0&&B<=le?0:(B>le&&(B-=le),B=Math.min(Math.max(B,-50),50),B/=50,B/Math.abs(B)+Math.round(14*B))}shouldForceSelection(I){return P.isMac?I.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:I.shiftKey}handleMouseDown(I){if(this._mouseDownTimeStamp=I.timeStamp,(I.button!==2||!this.hasSelection)&&I.button===0){if(!this._enabled){if(!this.shouldForceSelection(I))return;I.stopPropagation()}I.preventDefault(),this._dragScrollAmount=0,this._enabled&&I.shiftKey?this._handleIncrementalClick(I):I.detail===1?this._handleSingleClick(I):I.detail===2?this._handleDoubleClick(I):I.detail===3&&this._handleTripleClick(I),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval(()=>this._dragScroll(),50)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(I){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(I))}_handleSingleClick(I){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(I)?3:0,this._model.selectionStart=this._getMouseBufferCoords(I),!this._model.selectionStart)return;this._model.selectionEnd=void 0;let B=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);B&&B.length!==this._model.selectionStart[0]&&B.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}_handleDoubleClick(I){this._selectWordAtCursor(I,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(I){let B=this._getMouseBufferCoords(I);B&&(this._activeSelectionMode=2,this._selectLineAt(B[1]))}shouldColumnSelect(I){return I.altKey&&!(P.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(I){if(I.stopImmediatePropagation(),!this._model.selectionStart)return;let B=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(I),!this._model.selectionEnd)return void this.refresh(!0);this._activeSelectionMode===2?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));let le=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(I.ydisp+this._bufferService.rows,I.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=I.ydisp),this.refresh()}}_handleMouseUp(I){let B=I.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&B<500&&I.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){let le=this._mouseService.getCoords(I,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(le&&le[0]!==void 0&&le[1]!==void 0){let ae=(0,g.moveToCellSequence)(le[0]-1,le[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(ae,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){let I=this._model.finalSelectionStart,B=this._model.finalSelectionEnd,le=!(!I||!B||I[0]===B[0]&&I[1]===B[1]);le?I&&B&&(this._oldSelectionStart&&this._oldSelectionEnd&&I[0]===this._oldSelectionStart[0]&&I[1]===this._oldSelectionStart[1]&&B[0]===this._oldSelectionEnd[0]&&B[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(I,B,le)):this._oldHasSelection&&this._fireOnSelectionChange(I,B,le)}_fireOnSelectionChange(I,B,le){this._oldSelectionStart=I,this._oldSelectionEnd=B,this._oldHasSelection=le,this._onSelectionChange.fire()}_handleBufferActivate(I){this.clearSelection(),this._trimListener.dispose(),this._trimListener=I.activeBuffer.lines.onTrim(B=>this._handleTrim(B))}_convertViewportColToCharacterIndex(I,B){let le=B;for(let ae=0;B>=ae;ae++){let W=I.loadCell(ae,this._workCell).getChars().length;this._workCell.getWidth()===0?le--:W>1&&B!==ae&&(le+=W-1)}return le}setSelection(I,B,le){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[I,B],this._model.selectionStartLength=le,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(I){this._isClickInSelection(I)||(this._selectWordAtCursor(I,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(I,B,le=!0,ae=!0){if(I[0]>=this._bufferService.cols)return;let W=this._bufferService.buffer,G=W.lines.get(I[1]);if(!G)return;let ve=W.translateBufferLineToString(I[1],!1),Se=this._convertViewportColToCharacterIndex(G,I[0]),pe=Se,Ae=I[0]-Se,ue=0,H=0,te=0,de=0;if(ve.charAt(Se)===" "){for(;Se>0&&ve.charAt(Se-1)===" ";)Se--;for(;pe1&&(de+=et-1,pe+=et-1);$e>0&&Se>0&&!this._isCharWordSeparator(G.loadCell($e-1,this._workCell));){G.loadCell($e-1,this._workCell);let Me=this._workCell.getChars().length;this._workCell.getWidth()===0?(ue++,$e--):Me>1&&(te+=Me-1,Se-=Me-1),Se--,$e--}for(;tt1&&(de+=Me-1,pe+=Me-1),pe++,tt++}}pe++;let me=Se+Ae-ue+te,Ie=Math.min(this._bufferService.cols,pe-Se+ue+H-te-de);if(B||ve.slice(Se,pe).trim()!==""){if(le&&me===0&&G.getCodePoint(0)!==32){let $e=W.lines.get(I[1]-1);if($e&&G.isWrapped&&$e.getCodePoint(this._bufferService.cols-1)!==32){let tt=this._getWordAt([this._bufferService.cols-1,I[1]-1],!1,!0,!1);if(tt){let et=this._bufferService.cols-tt.start;me-=et,Ie+=et}}}if(ae&&me+Ie===this._bufferService.cols&&G.getCodePoint(this._bufferService.cols-1)!==32){let $e=W.lines.get(I[1]+1);if($e?.isWrapped&&$e.getCodePoint(0)!==32){let tt=this._getWordAt([0,I[1]+1],!1,!1,!0);tt&&(Ie+=tt.length)}}return{start:me,length:Ie}}}_selectWordAt(I,B){let le=this._getWordAt(I,B);if(le){for(;le.start<0;)le.start+=this._bufferService.cols,I[1]--;this._model.selectionStart=[le.start,I[1]],this._model.selectionStartLength=le.length}}_selectToWordAt(I){let B=this._getWordAt(I,!0);if(B){let le=I[1];for(;B.start<0;)B.start+=this._bufferService.cols,le--;if(!this._model.areSelectionValuesReversed())for(;B.start+B.length>this._bufferService.cols;)B.length-=this._bufferService.cols,le++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?B.start:B.start+B.length,le]}}_isCharWordSeparator(I){return I.getWidth()!==0&&this._optionsService.rawOptions.wordSeparator.indexOf(I.getChars())>=0}_selectLineAt(I){let B=this._bufferService.buffer.getWrappedRangeForLine(I),le={start:{x:0,y:B.first},end:{x:this._bufferService.cols-1,y:B.last}};this._model.selectionStart=[0,B.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,k.getRangeLength)(le,this._bufferService.cols)}};a.SelectionService=F=d([p(3,O.IBufferService),p(4,O.ICoreService),p(5,M.IMouseService),p(6,O.IOptionsService),p(7,M.IRenderService),p(8,M.ICoreBrowserService)],F)},4725:(i,a,s)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ILinkProviderService=a.IThemeService=a.ICharacterJoinerService=a.ISelectionService=a.IRenderService=a.IMouseService=a.ICoreBrowserService=a.ICharSizeService=void 0;let d=s(8343);a.ICharSizeService=(0,d.createDecorator)("CharSizeService"),a.ICoreBrowserService=(0,d.createDecorator)("CoreBrowserService"),a.IMouseService=(0,d.createDecorator)("MouseService"),a.IRenderService=(0,d.createDecorator)("RenderService"),a.ISelectionService=(0,d.createDecorator)("SelectionService"),a.ICharacterJoinerService=(0,d.createDecorator)("CharacterJoinerService"),a.IThemeService=(0,d.createDecorator)("ThemeService"),a.ILinkProviderService=(0,d.createDecorator)("LinkProviderService")},6731:function(i,a,s){var d=this&&this.__decorate||function(F,I,B,le){var ae,W=arguments.length,G=W<3?I:le===null?le=Object.getOwnPropertyDescriptor(I,B):le;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")G=Reflect.decorate(F,I,B,le);else for(var ve=F.length-1;ve>=0;ve--)(ae=F[ve])&&(G=(W<3?ae(G):W>3?ae(I,B,G):ae(I,B))||G);return W>3&&G&&Object.defineProperty(I,B,G),G},p=this&&this.__param||function(F,I){return function(B,le){I(B,le,F)}};Object.defineProperty(a,"__esModule",{value:!0}),a.ThemeService=a.DEFAULT_ANSI_COLORS=void 0;let u=s(7239),g=s(8055),C=s(8460),M=s(844),x=s(2585),b=g.css.toColor("#ffffff"),P=g.css.toColor("#000000"),k=g.css.toColor("#ffffff"),S=g.css.toColor("#000000"),O={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};a.DEFAULT_ANSI_COLORS=Object.freeze((()=>{let F=[g.css.toColor("#2e3436"),g.css.toColor("#cc0000"),g.css.toColor("#4e9a06"),g.css.toColor("#c4a000"),g.css.toColor("#3465a4"),g.css.toColor("#75507b"),g.css.toColor("#06989a"),g.css.toColor("#d3d7cf"),g.css.toColor("#555753"),g.css.toColor("#ef2929"),g.css.toColor("#8ae234"),g.css.toColor("#fce94f"),g.css.toColor("#729fcf"),g.css.toColor("#ad7fa8"),g.css.toColor("#34e2e2"),g.css.toColor("#eeeeec")],I=[0,95,135,175,215,255];for(let B=0;B<216;B++){let le=I[B/36%6|0],ae=I[B/6%6|0],W=I[B%6];F.push({css:g.channels.toCss(le,ae,W),rgba:g.channels.toRgba(le,ae,W)})}for(let B=0;B<24;B++){let le=8+10*B;F.push({css:g.channels.toCss(le,le,le),rgba:g.channels.toRgba(le,le,le)})}return F})());let A=a.ThemeService=class extends M.Disposable{get colors(){return this._colors}constructor(F){super(),this._optionsService=F,this._contrastCache=new u.ColorContrastCache,this._halfContrastCache=new u.ColorContrastCache,this._onChangeColors=this.register(new C.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._colors={foreground:b,background:P,cursor:k,cursorAccent:S,selectionForeground:void 0,selectionBackgroundTransparent:O,selectionBackgroundOpaque:g.color.blend(P,O),selectionInactiveBackgroundTransparent:O,selectionInactiveBackgroundOpaque:g.color.blend(P,O),ansi:a.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache,halfContrastCache:this._halfContrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this.register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",()=>this._contrastCache.clear())),this.register(this._optionsService.onSpecificOptionChange("theme",()=>this._setTheme(this._optionsService.rawOptions.theme)))}_setTheme(F={}){let I=this._colors;if(I.foreground=D(F.foreground,b),I.background=D(F.background,P),I.cursor=D(F.cursor,k),I.cursorAccent=D(F.cursorAccent,S),I.selectionBackgroundTransparent=D(F.selectionBackground,O),I.selectionBackgroundOpaque=g.color.blend(I.background,I.selectionBackgroundTransparent),I.selectionInactiveBackgroundTransparent=D(F.selectionInactiveBackground,I.selectionBackgroundTransparent),I.selectionInactiveBackgroundOpaque=g.color.blend(I.background,I.selectionInactiveBackgroundTransparent),I.selectionForeground=F.selectionForeground?D(F.selectionForeground,g.NULL_COLOR):void 0,I.selectionForeground===g.NULL_COLOR&&(I.selectionForeground=void 0),g.color.isOpaque(I.selectionBackgroundTransparent)&&(I.selectionBackgroundTransparent=g.color.opacity(I.selectionBackgroundTransparent,.3)),g.color.isOpaque(I.selectionInactiveBackgroundTransparent)&&(I.selectionInactiveBackgroundTransparent=g.color.opacity(I.selectionInactiveBackgroundTransparent,.3)),I.ansi=a.DEFAULT_ANSI_COLORS.slice(),I.ansi[0]=D(F.black,a.DEFAULT_ANSI_COLORS[0]),I.ansi[1]=D(F.red,a.DEFAULT_ANSI_COLORS[1]),I.ansi[2]=D(F.green,a.DEFAULT_ANSI_COLORS[2]),I.ansi[3]=D(F.yellow,a.DEFAULT_ANSI_COLORS[3]),I.ansi[4]=D(F.blue,a.DEFAULT_ANSI_COLORS[4]),I.ansi[5]=D(F.magenta,a.DEFAULT_ANSI_COLORS[5]),I.ansi[6]=D(F.cyan,a.DEFAULT_ANSI_COLORS[6]),I.ansi[7]=D(F.white,a.DEFAULT_ANSI_COLORS[7]),I.ansi[8]=D(F.brightBlack,a.DEFAULT_ANSI_COLORS[8]),I.ansi[9]=D(F.brightRed,a.DEFAULT_ANSI_COLORS[9]),I.ansi[10]=D(F.brightGreen,a.DEFAULT_ANSI_COLORS[10]),I.ansi[11]=D(F.brightYellow,a.DEFAULT_ANSI_COLORS[11]),I.ansi[12]=D(F.brightBlue,a.DEFAULT_ANSI_COLORS[12]),I.ansi[13]=D(F.brightMagenta,a.DEFAULT_ANSI_COLORS[13]),I.ansi[14]=D(F.brightCyan,a.DEFAULT_ANSI_COLORS[14]),I.ansi[15]=D(F.brightWhite,a.DEFAULT_ANSI_COLORS[15]),F.extendedAnsi){let B=Math.min(I.ansi.length-16,F.extendedAnsi.length);for(let le=0;le{Object.defineProperty(a,"__esModule",{value:!0}),a.CircularList=void 0;let d=s(8460),p=s(844);class u extends p.Disposable{constructor(C){super(),this._maxLength=C,this.onDeleteEmitter=this.register(new d.EventEmitter),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this.register(new d.EventEmitter),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this.register(new d.EventEmitter),this.onTrim=this.onTrimEmitter.event,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(C){if(this._maxLength===C)return;let M=new Array(C);for(let x=0;xthis._length)for(let M=this._length;M=C;b--)this._array[this._getCyclicIndex(b+x.length)]=this._array[this._getCyclicIndex(b)];for(let b=0;bthis._maxLength){let b=this._length+x.length-this._maxLength;this._startIndex+=b,this._length=this._maxLength,this.onTrimEmitter.fire(b)}else this._length+=x.length}trimStart(C){C>this._length&&(C=this._length),this._startIndex+=C,this._length-=C,this.onTrimEmitter.fire(C)}shiftElements(C,M,x){if(!(M<=0)){if(C<0||C>=this._length)throw new Error("start argument out of range");if(C+x<0)throw new Error("Cannot shift elements in list beyond index 0");if(x>0){for(let P=M-1;P>=0;P--)this.set(C+P+x,this.get(C+P));let b=C+M+x-this._length;if(b>0)for(this._length+=b;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let b=0;b{Object.defineProperty(a,"__esModule",{value:!0}),a.clone=void 0,a.clone=function s(d,p=5){if(typeof d!="object")return d;let u=Array.isArray(d)?[]:{};for(let g in d)u[g]=p<=1?d[g]:d[g]&&s(d[g],p-1);return u}},8055:(i,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.contrastRatio=a.toPaddedHex=a.rgba=a.rgb=a.css=a.color=a.channels=a.NULL_COLOR=void 0;let s=0,d=0,p=0,u=0;var g,C,M,x,b;function P(S){let O=S.toString(16);return O.length<2?"0"+O:O}function k(S,O){return S>>0},S.toColor=function(O,A,D,F){return{css:S.toCss(O,A,D,F),rgba:S.toRgba(O,A,D,F)}}})(g||(a.channels=g={})),(function(S){function O(A,D){return u=Math.round(255*D),[s,d,p]=b.toChannels(A.rgba),{css:g.toCss(s,d,p,u),rgba:g.toRgba(s,d,p,u)}}S.blend=function(A,D){if(u=(255&D.rgba)/255,u===1)return{css:D.css,rgba:D.rgba};let F=D.rgba>>24&255,I=D.rgba>>16&255,B=D.rgba>>8&255,le=A.rgba>>24&255,ae=A.rgba>>16&255,W=A.rgba>>8&255;return s=le+Math.round((F-le)*u),d=ae+Math.round((I-ae)*u),p=W+Math.round((B-W)*u),{css:g.toCss(s,d,p),rgba:g.toRgba(s,d,p)}},S.isOpaque=function(A){return(255&A.rgba)==255},S.ensureContrastRatio=function(A,D,F){let I=b.ensureContrastRatio(A.rgba,D.rgba,F);if(I)return g.toColor(I>>24&255,I>>16&255,I>>8&255)},S.opaque=function(A){let D=(255|A.rgba)>>>0;return[s,d,p]=b.toChannels(D),{css:g.toCss(s,d,p),rgba:D}},S.opacity=O,S.multiplyOpacity=function(A,D){return u=255&A.rgba,O(A,u*D/255)},S.toColorRGB=function(A){return[A.rgba>>24&255,A.rgba>>16&255,A.rgba>>8&255]}})(C||(a.color=C={})),(function(S){let O,A;try{let D=document.createElement("canvas");D.width=1,D.height=1;let F=D.getContext("2d",{willReadFrequently:!0});F&&(O=F,O.globalCompositeOperation="copy",A=O.createLinearGradient(0,0,1,1))}catch{}S.toColor=function(D){if(D.match(/#[\da-f]{3,8}/i))switch(D.length){case 4:return s=parseInt(D.slice(1,2).repeat(2),16),d=parseInt(D.slice(2,3).repeat(2),16),p=parseInt(D.slice(3,4).repeat(2),16),g.toColor(s,d,p);case 5:return s=parseInt(D.slice(1,2).repeat(2),16),d=parseInt(D.slice(2,3).repeat(2),16),p=parseInt(D.slice(3,4).repeat(2),16),u=parseInt(D.slice(4,5).repeat(2),16),g.toColor(s,d,p,u);case 7:return{css:D,rgba:(parseInt(D.slice(1),16)<<8|255)>>>0};case 9:return{css:D,rgba:parseInt(D.slice(1),16)>>>0}}let F=D.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(F)return s=parseInt(F[1]),d=parseInt(F[2]),p=parseInt(F[3]),u=Math.round(255*(F[5]===void 0?1:parseFloat(F[5]))),g.toColor(s,d,p,u);if(!O||!A)throw new Error("css.toColor: Unsupported css format");if(O.fillStyle=A,O.fillStyle=D,typeof O.fillStyle!="string")throw new Error("css.toColor: Unsupported css format");if(O.fillRect(0,0,1,1),[s,d,p,u]=O.getImageData(0,0,1,1).data,u!==255)throw new Error("css.toColor: Unsupported css format");return{rgba:g.toRgba(s,d,p,u),css:D}}})(M||(a.css=M={})),(function(S){function O(A,D,F){let I=A/255,B=D/255,le=F/255;return .2126*(I<=.03928?I/12.92:Math.pow((I+.055)/1.055,2.4))+.7152*(B<=.03928?B/12.92:Math.pow((B+.055)/1.055,2.4))+.0722*(le<=.03928?le/12.92:Math.pow((le+.055)/1.055,2.4))}S.relativeLuminance=function(A){return O(A>>16&255,A>>8&255,255&A)},S.relativeLuminance2=O})(x||(a.rgb=x={})),(function(S){function O(D,F,I){let B=D>>24&255,le=D>>16&255,ae=D>>8&255,W=F>>24&255,G=F>>16&255,ve=F>>8&255,Se=k(x.relativeLuminance2(W,G,ve),x.relativeLuminance2(B,le,ae));for(;Se0||G>0||ve>0);)W-=Math.max(0,Math.ceil(.1*W)),G-=Math.max(0,Math.ceil(.1*G)),ve-=Math.max(0,Math.ceil(.1*ve)),Se=k(x.relativeLuminance2(W,G,ve),x.relativeLuminance2(B,le,ae));return(W<<24|G<<16|ve<<8|255)>>>0}function A(D,F,I){let B=D>>24&255,le=D>>16&255,ae=D>>8&255,W=F>>24&255,G=F>>16&255,ve=F>>8&255,Se=k(x.relativeLuminance2(W,G,ve),x.relativeLuminance2(B,le,ae));for(;Se>>0}S.blend=function(D,F){if(u=(255&F)/255,u===1)return F;let I=F>>24&255,B=F>>16&255,le=F>>8&255,ae=D>>24&255,W=D>>16&255,G=D>>8&255;return s=ae+Math.round((I-ae)*u),d=W+Math.round((B-W)*u),p=G+Math.round((le-G)*u),g.toRgba(s,d,p)},S.ensureContrastRatio=function(D,F,I){let B=x.relativeLuminance(D>>8),le=x.relativeLuminance(F>>8);if(k(B,le)>8));if(vek(B,x.relativeLuminance(Se>>8))?G:Se}return G}let ae=A(D,F,I),W=k(B,x.relativeLuminance(ae>>8));if(Wk(B,x.relativeLuminance(G>>8))?ae:G}return ae}},S.reduceLuminance=O,S.increaseLuminance=A,S.toChannels=function(D){return[D>>24&255,D>>16&255,D>>8&255,255&D]}})(b||(a.rgba=b={})),a.toPaddedHex=P,a.contrastRatio=k},8969:(i,a,s)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CoreTerminal=void 0;let d=s(844),p=s(2585),u=s(4348),g=s(7866),C=s(744),M=s(7302),x=s(6975),b=s(8460),P=s(1753),k=s(1480),S=s(7994),O=s(9282),A=s(5435),D=s(5981),F=s(2660),I=!1;class B extends d.Disposable{get onScroll(){return this._onScrollApi||(this._onScrollApi=this.register(new b.EventEmitter),this._onScroll.event(ae=>{this._onScrollApi?.fire(ae.position)})),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(ae){for(let W in ae)this.optionsService.options[W]=ae[W]}constructor(ae){super(),this._windowsWrappingHeuristics=this.register(new d.MutableDisposable),this._onBinary=this.register(new b.EventEmitter),this.onBinary=this._onBinary.event,this._onData=this.register(new b.EventEmitter),this.onData=this._onData.event,this._onLineFeed=this.register(new b.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onResize=this.register(new b.EventEmitter),this.onResize=this._onResize.event,this._onWriteParsed=this.register(new b.EventEmitter),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this.register(new b.EventEmitter),this._instantiationService=new u.InstantiationService,this.optionsService=this.register(new M.OptionsService(ae)),this._instantiationService.setService(p.IOptionsService,this.optionsService),this._bufferService=this.register(this._instantiationService.createInstance(C.BufferService)),this._instantiationService.setService(p.IBufferService,this._bufferService),this._logService=this.register(this._instantiationService.createInstance(g.LogService)),this._instantiationService.setService(p.ILogService,this._logService),this.coreService=this.register(this._instantiationService.createInstance(x.CoreService)),this._instantiationService.setService(p.ICoreService,this.coreService),this.coreMouseService=this.register(this._instantiationService.createInstance(P.CoreMouseService)),this._instantiationService.setService(p.ICoreMouseService,this.coreMouseService),this.unicodeService=this.register(this._instantiationService.createInstance(k.UnicodeService)),this._instantiationService.setService(p.IUnicodeService,this.unicodeService),this._charsetService=this._instantiationService.createInstance(S.CharsetService),this._instantiationService.setService(p.ICharsetService,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(F.OscLinkService),this._instantiationService.setService(p.IOscLinkService,this._oscLinkService),this._inputHandler=this.register(new A.InputHandler(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this.register((0,b.forwardEvent)(this._inputHandler.onLineFeed,this._onLineFeed)),this.register(this._inputHandler),this.register((0,b.forwardEvent)(this._bufferService.onResize,this._onResize)),this.register((0,b.forwardEvent)(this.coreService.onData,this._onData)),this.register((0,b.forwardEvent)(this.coreService.onBinary,this._onBinary)),this.register(this.coreService.onRequestScrollToBottom(()=>this.scrollToBottom())),this.register(this.coreService.onUserInput(()=>this._writeBuffer.handleUserInput())),this.register(this.optionsService.onMultipleOptionChange(["windowsMode","windowsPty"],()=>this._handleWindowsPtyOptionChange())),this.register(this._bufferService.onScroll(W=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this.register(this._inputHandler.onScroll(W=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this._writeBuffer=this.register(new D.WriteBuffer((W,G)=>this._inputHandler.parse(W,G))),this.register((0,b.forwardEvent)(this._writeBuffer.onWriteParsed,this._onWriteParsed))}write(ae,W){this._writeBuffer.write(ae,W)}writeSync(ae,W){this._logService.logLevel<=p.LogLevelEnum.WARN&&!I&&(this._logService.warn("writeSync is unreliable and will be removed soon."),I=!0),this._writeBuffer.writeSync(ae,W)}input(ae,W=!0){this.coreService.triggerDataEvent(ae,W)}resize(ae,W){isNaN(ae)||isNaN(W)||(ae=Math.max(ae,C.MINIMUM_COLS),W=Math.max(W,C.MINIMUM_ROWS),this._bufferService.resize(ae,W))}scroll(ae,W=!1){this._bufferService.scroll(ae,W)}scrollLines(ae,W,G){this._bufferService.scrollLines(ae,W,G)}scrollPages(ae){this.scrollLines(ae*(this.rows-1))}scrollToTop(){this.scrollLines(-this._bufferService.buffer.ydisp)}scrollToBottom(){this.scrollLines(this._bufferService.buffer.ybase-this._bufferService.buffer.ydisp)}scrollToLine(ae){let W=ae-this._bufferService.buffer.ydisp;W!==0&&this.scrollLines(W)}registerEscHandler(ae,W){return this._inputHandler.registerEscHandler(ae,W)}registerDcsHandler(ae,W){return this._inputHandler.registerDcsHandler(ae,W)}registerCsiHandler(ae,W){return this._inputHandler.registerCsiHandler(ae,W)}registerOscHandler(ae,W){return this._inputHandler.registerOscHandler(ae,W)}_setup(){this._handleWindowsPtyOptionChange()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsPtyOptionChange(){let ae=!1,W=this.optionsService.rawOptions.windowsPty;W&&W.buildNumber!==void 0&&W.buildNumber!==void 0?ae=W.backend==="conpty"&&W.buildNumber<21376:this.optionsService.rawOptions.windowsMode&&(ae=!0),ae?this._enableWindowsWrappingHeuristics():this._windowsWrappingHeuristics.clear()}_enableWindowsWrappingHeuristics(){if(!this._windowsWrappingHeuristics.value){let ae=[];ae.push(this.onLineFeed(O.updateWindowsModeWrappedState.bind(null,this._bufferService))),ae.push(this.registerCsiHandler({final:"H"},()=>((0,O.updateWindowsModeWrappedState)(this._bufferService),!1))),this._windowsWrappingHeuristics.value=(0,d.toDisposable)(()=>{for(let W of ae)W.dispose()})}}}a.CoreTerminal=B},8460:(i,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.runAndSubscribe=a.forwardEvent=a.EventEmitter=void 0,a.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=s=>(this._listeners.push(s),{dispose:()=>{if(!this._disposed){for(let d=0;dd.fire(p))},a.runAndSubscribe=function(s,d){return d(void 0),s(p=>d(p))}},5435:function(i,a,s){var d=this&&this.__decorate||function(ue,H,te,de){var me,Ie=arguments.length,$e=Ie<3?H:de===null?de=Object.getOwnPropertyDescriptor(H,te):de;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")$e=Reflect.decorate(ue,H,te,de);else for(var tt=ue.length-1;tt>=0;tt--)(me=ue[tt])&&($e=(Ie<3?me($e):Ie>3?me(H,te,$e):me(H,te))||$e);return Ie>3&&$e&&Object.defineProperty(H,te,$e),$e},p=this&&this.__param||function(ue,H){return function(te,de){H(te,de,ue)}};Object.defineProperty(a,"__esModule",{value:!0}),a.InputHandler=a.WindowsOptionsReportType=void 0;let u=s(2584),g=s(7116),C=s(2015),M=s(844),x=s(482),b=s(8437),P=s(8460),k=s(643),S=s(511),O=s(3734),A=s(2585),D=s(1480),F=s(6242),I=s(6351),B=s(5941),le={"(":0,")":1,"*":2,"+":3,"-":1,".":2},ae=131072;function W(ue,H){if(ue>24)return H.setWinLines||!1;switch(ue){case 1:return!!H.restoreWin;case 2:return!!H.minimizeWin;case 3:return!!H.setWinPosition;case 4:return!!H.setWinSizePixels;case 5:return!!H.raiseWin;case 6:return!!H.lowerWin;case 7:return!!H.refreshWin;case 8:return!!H.setWinSizeChars;case 9:return!!H.maximizeWin;case 10:return!!H.fullscreenWin;case 11:return!!H.getWinState;case 13:return!!H.getWinPosition;case 14:return!!H.getWinSizePixels;case 15:return!!H.getScreenSizePixels;case 16:return!!H.getCellSizePixels;case 18:return!!H.getWinSizeChars;case 19:return!!H.getScreenSizeChars;case 20:return!!H.getIconTitle;case 21:return!!H.getWinTitle;case 22:return!!H.pushTitle;case 23:return!!H.popTitle;case 24:return!!H.setWinLines}return!1}var G;(function(ue){ue[ue.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",ue[ue.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(G||(a.WindowsOptionsReportType=G={}));let ve=0;class Se extends M.Disposable{getAttrData(){return this._curAttrData}constructor(H,te,de,me,Ie,$e,tt,et,Me=new C.EscapeSequenceParser){super(),this._bufferService=H,this._charsetService=te,this._coreService=de,this._logService=me,this._optionsService=Ie,this._oscLinkService=$e,this._coreMouseService=tt,this._unicodeService=et,this._parser=Me,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new x.StringToUtf32,this._utf8Decoder=new x.Utf8ToUtf32,this._workCell=new S.CellData,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=b.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=b.DEFAULT_ATTR_DATA.clone(),this._onRequestBell=this.register(new P.EventEmitter),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this.register(new P.EventEmitter),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this.register(new P.EventEmitter),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this.register(new P.EventEmitter),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this.register(new P.EventEmitter),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this.register(new P.EventEmitter),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this.register(new P.EventEmitter),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this.register(new P.EventEmitter),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this.register(new P.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this.register(new P.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onScroll=this.register(new P.EventEmitter),this.onScroll=this._onScroll.event,this._onTitleChange=this.register(new P.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onColor=this.register(new P.EventEmitter),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this.register(this._parser),this._dirtyRowTracker=new pe(this._bufferService),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate(Z=>this._activeBuffer=Z.activeBuffer)),this._parser.setCsiHandlerFallback((Z,Le)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(Z),params:Le.toArray()})}),this._parser.setEscHandlerFallback(Z=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(Z)})}),this._parser.setExecuteHandlerFallback(Z=>{this._logService.debug("Unknown EXECUTE code: ",{code:Z})}),this._parser.setOscHandlerFallback((Z,Le,Ze)=>{this._logService.debug("Unknown OSC code: ",{identifier:Z,action:Le,data:Ze})}),this._parser.setDcsHandlerFallback((Z,Le,Ze)=>{Le==="HOOK"&&(Ze=Ze.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(Z),action:Le,payload:Ze})}),this._parser.setPrintHandler((Z,Le,Ze)=>this.print(Z,Le,Ze)),this._parser.registerCsiHandler({final:"@"},Z=>this.insertChars(Z)),this._parser.registerCsiHandler({intermediates:" ",final:"@"},Z=>this.scrollLeft(Z)),this._parser.registerCsiHandler({final:"A"},Z=>this.cursorUp(Z)),this._parser.registerCsiHandler({intermediates:" ",final:"A"},Z=>this.scrollRight(Z)),this._parser.registerCsiHandler({final:"B"},Z=>this.cursorDown(Z)),this._parser.registerCsiHandler({final:"C"},Z=>this.cursorForward(Z)),this._parser.registerCsiHandler({final:"D"},Z=>this.cursorBackward(Z)),this._parser.registerCsiHandler({final:"E"},Z=>this.cursorNextLine(Z)),this._parser.registerCsiHandler({final:"F"},Z=>this.cursorPrecedingLine(Z)),this._parser.registerCsiHandler({final:"G"},Z=>this.cursorCharAbsolute(Z)),this._parser.registerCsiHandler({final:"H"},Z=>this.cursorPosition(Z)),this._parser.registerCsiHandler({final:"I"},Z=>this.cursorForwardTab(Z)),this._parser.registerCsiHandler({final:"J"},Z=>this.eraseInDisplay(Z,!1)),this._parser.registerCsiHandler({prefix:"?",final:"J"},Z=>this.eraseInDisplay(Z,!0)),this._parser.registerCsiHandler({final:"K"},Z=>this.eraseInLine(Z,!1)),this._parser.registerCsiHandler({prefix:"?",final:"K"},Z=>this.eraseInLine(Z,!0)),this._parser.registerCsiHandler({final:"L"},Z=>this.insertLines(Z)),this._parser.registerCsiHandler({final:"M"},Z=>this.deleteLines(Z)),this._parser.registerCsiHandler({final:"P"},Z=>this.deleteChars(Z)),this._parser.registerCsiHandler({final:"S"},Z=>this.scrollUp(Z)),this._parser.registerCsiHandler({final:"T"},Z=>this.scrollDown(Z)),this._parser.registerCsiHandler({final:"X"},Z=>this.eraseChars(Z)),this._parser.registerCsiHandler({final:"Z"},Z=>this.cursorBackwardTab(Z)),this._parser.registerCsiHandler({final:"`"},Z=>this.charPosAbsolute(Z)),this._parser.registerCsiHandler({final:"a"},Z=>this.hPositionRelative(Z)),this._parser.registerCsiHandler({final:"b"},Z=>this.repeatPrecedingCharacter(Z)),this._parser.registerCsiHandler({final:"c"},Z=>this.sendDeviceAttributesPrimary(Z)),this._parser.registerCsiHandler({prefix:">",final:"c"},Z=>this.sendDeviceAttributesSecondary(Z)),this._parser.registerCsiHandler({final:"d"},Z=>this.linePosAbsolute(Z)),this._parser.registerCsiHandler({final:"e"},Z=>this.vPositionRelative(Z)),this._parser.registerCsiHandler({final:"f"},Z=>this.hVPosition(Z)),this._parser.registerCsiHandler({final:"g"},Z=>this.tabClear(Z)),this._parser.registerCsiHandler({final:"h"},Z=>this.setMode(Z)),this._parser.registerCsiHandler({prefix:"?",final:"h"},Z=>this.setModePrivate(Z)),this._parser.registerCsiHandler({final:"l"},Z=>this.resetMode(Z)),this._parser.registerCsiHandler({prefix:"?",final:"l"},Z=>this.resetModePrivate(Z)),this._parser.registerCsiHandler({final:"m"},Z=>this.charAttributes(Z)),this._parser.registerCsiHandler({final:"n"},Z=>this.deviceStatus(Z)),this._parser.registerCsiHandler({prefix:"?",final:"n"},Z=>this.deviceStatusPrivate(Z)),this._parser.registerCsiHandler({intermediates:"!",final:"p"},Z=>this.softReset(Z)),this._parser.registerCsiHandler({intermediates:" ",final:"q"},Z=>this.setCursorStyle(Z)),this._parser.registerCsiHandler({final:"r"},Z=>this.setScrollRegion(Z)),this._parser.registerCsiHandler({final:"s"},Z=>this.saveCursor(Z)),this._parser.registerCsiHandler({final:"t"},Z=>this.windowOptions(Z)),this._parser.registerCsiHandler({final:"u"},Z=>this.restoreCursor(Z)),this._parser.registerCsiHandler({intermediates:"'",final:"}"},Z=>this.insertColumns(Z)),this._parser.registerCsiHandler({intermediates:"'",final:"~"},Z=>this.deleteColumns(Z)),this._parser.registerCsiHandler({intermediates:'"',final:"q"},Z=>this.selectProtected(Z)),this._parser.registerCsiHandler({intermediates:"$",final:"p"},Z=>this.requestMode(Z,!0)),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},Z=>this.requestMode(Z,!1)),this._parser.setExecuteHandler(u.C0.BEL,()=>this.bell()),this._parser.setExecuteHandler(u.C0.LF,()=>this.lineFeed()),this._parser.setExecuteHandler(u.C0.VT,()=>this.lineFeed()),this._parser.setExecuteHandler(u.C0.FF,()=>this.lineFeed()),this._parser.setExecuteHandler(u.C0.CR,()=>this.carriageReturn()),this._parser.setExecuteHandler(u.C0.BS,()=>this.backspace()),this._parser.setExecuteHandler(u.C0.HT,()=>this.tab()),this._parser.setExecuteHandler(u.C0.SO,()=>this.shiftOut()),this._parser.setExecuteHandler(u.C0.SI,()=>this.shiftIn()),this._parser.setExecuteHandler(u.C1.IND,()=>this.index()),this._parser.setExecuteHandler(u.C1.NEL,()=>this.nextLine()),this._parser.setExecuteHandler(u.C1.HTS,()=>this.tabSet()),this._parser.registerOscHandler(0,new F.OscHandler(Z=>(this.setTitle(Z),this.setIconName(Z),!0))),this._parser.registerOscHandler(1,new F.OscHandler(Z=>this.setIconName(Z))),this._parser.registerOscHandler(2,new F.OscHandler(Z=>this.setTitle(Z))),this._parser.registerOscHandler(4,new F.OscHandler(Z=>this.setOrReportIndexedColor(Z))),this._parser.registerOscHandler(8,new F.OscHandler(Z=>this.setHyperlink(Z))),this._parser.registerOscHandler(10,new F.OscHandler(Z=>this.setOrReportFgColor(Z))),this._parser.registerOscHandler(11,new F.OscHandler(Z=>this.setOrReportBgColor(Z))),this._parser.registerOscHandler(12,new F.OscHandler(Z=>this.setOrReportCursorColor(Z))),this._parser.registerOscHandler(104,new F.OscHandler(Z=>this.restoreIndexedColor(Z))),this._parser.registerOscHandler(110,new F.OscHandler(Z=>this.restoreFgColor(Z))),this._parser.registerOscHandler(111,new F.OscHandler(Z=>this.restoreBgColor(Z))),this._parser.registerOscHandler(112,new F.OscHandler(Z=>this.restoreCursorColor(Z))),this._parser.registerEscHandler({final:"7"},()=>this.saveCursor()),this._parser.registerEscHandler({final:"8"},()=>this.restoreCursor()),this._parser.registerEscHandler({final:"D"},()=>this.index()),this._parser.registerEscHandler({final:"E"},()=>this.nextLine()),this._parser.registerEscHandler({final:"H"},()=>this.tabSet()),this._parser.registerEscHandler({final:"M"},()=>this.reverseIndex()),this._parser.registerEscHandler({final:"="},()=>this.keypadApplicationMode()),this._parser.registerEscHandler({final:">"},()=>this.keypadNumericMode()),this._parser.registerEscHandler({final:"c"},()=>this.fullReset()),this._parser.registerEscHandler({final:"n"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"o"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"|"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"}"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"~"},()=>this.setgLevel(1)),this._parser.registerEscHandler({intermediates:"%",final:"@"},()=>this.selectDefaultCharset()),this._parser.registerEscHandler({intermediates:"%",final:"G"},()=>this.selectDefaultCharset());for(let Z in g.CHARSETS)this._parser.registerEscHandler({intermediates:"(",final:Z},()=>this.selectCharset("("+Z)),this._parser.registerEscHandler({intermediates:")",final:Z},()=>this.selectCharset(")"+Z)),this._parser.registerEscHandler({intermediates:"*",final:Z},()=>this.selectCharset("*"+Z)),this._parser.registerEscHandler({intermediates:"+",final:Z},()=>this.selectCharset("+"+Z)),this._parser.registerEscHandler({intermediates:"-",final:Z},()=>this.selectCharset("-"+Z)),this._parser.registerEscHandler({intermediates:".",final:Z},()=>this.selectCharset("."+Z)),this._parser.registerEscHandler({intermediates:"/",final:Z},()=>this.selectCharset("/"+Z));this._parser.registerEscHandler({intermediates:"#",final:"8"},()=>this.screenAlignmentPattern()),this._parser.setErrorHandler(Z=>(this._logService.error("Parsing error: ",Z),Z)),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new I.DcsHandler((Z,Le)=>this.requestStatusString(Z,Le)))}_preserveStack(H,te,de,me){this._parseStack.paused=!0,this._parseStack.cursorStartX=H,this._parseStack.cursorStartY=te,this._parseStack.decodedLength=de,this._parseStack.position=me}_logSlowResolvingAsync(H){this._logService.logLevel<=A.LogLevelEnum.WARN&&Promise.race([H,new Promise((te,de)=>setTimeout(()=>de("#SLOW_TIMEOUT"),5e3))]).catch(te=>{if(te!=="#SLOW_TIMEOUT")throw te;console.warn("async parser handler taking longer than 5000 ms")})}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(H,te){let de,me=this._activeBuffer.x,Ie=this._activeBuffer.y,$e=0,tt=this._parseStack.paused;if(tt){if(de=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,te))return this._logSlowResolvingAsync(de),de;me=this._parseStack.cursorStartX,Ie=this._parseStack.cursorStartY,this._parseStack.paused=!1,H.length>ae&&($e=this._parseStack.position+ae)}if(this._logService.logLevel<=A.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+(typeof H=="string"?` "${H}"`:` "${Array.prototype.map.call(H,Z=>String.fromCharCode(Z)).join("")}"`),typeof H=="string"?H.split("").map(Z=>Z.charCodeAt(0)):H),this._parseBuffer.lengthae)for(let Z=$e;Z0&&Ze.getWidth(this._activeBuffer.x-1)===2&&Ze.setCellFromCodepoint(this._activeBuffer.x-1,0,1,Le);let dt=this._parser.precedingJoinState;for(let Ot=te;Otet){if(Me){let Ka=Ze,Gn=this._activeBuffer.x-Mo;for(this._activeBuffer.x=Mo,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),Ze=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y),Mo>0&&Ze instanceof b.BufferLine&&Ze.copyCellsFrom(Ka,Gn,0,Mo,!1);Gn=0;)Ze.setCellFromCodepoint(this._activeBuffer.x++,0,0,Le)}else if(Z&&(Ze.insertCells(this._activeBuffer.x,Ie-Mo,this._activeBuffer.getNullCell(Le)),Ze.getWidth(et-1)===2&&Ze.setCellFromCodepoint(et-1,k.NULL_CELL_CODE,k.NULL_CELL_WIDTH,Le)),Ze.setCellFromCodepoint(this._activeBuffer.x++,me,Ie,Le),Ie>0)for(;--Ie;)Ze.setCellFromCodepoint(this._activeBuffer.x++,0,0,Le)}this._parser.precedingJoinState=dt,this._activeBuffer.x0&&Ze.getWidth(this._activeBuffer.x)===0&&!Ze.hasContent(this._activeBuffer.x)&&Ze.setCellFromCodepoint(this._activeBuffer.x,0,1,Le),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(H,te){return H.final!=="t"||H.prefix||H.intermediates?this._parser.registerCsiHandler(H,te):this._parser.registerCsiHandler(H,de=>!W(de.params[0],this._optionsService.rawOptions.windowOptions)||te(de))}registerDcsHandler(H,te){return this._parser.registerDcsHandler(H,new I.DcsHandler(te))}registerEscHandler(H,te){return this._parser.registerEscHandler(H,te)}registerOscHandler(H,te){return this._parser.registerOscHandler(H,new F.OscHandler(te))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows?this._activeBuffer.y=this._bufferService.rows-1:this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(this._activeBuffer.x===0&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)?.isWrapped){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;let H=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);H.hasWidth(this._activeBuffer.x)&&!H.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let H=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-H),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(H=this._bufferService.cols-1){this._activeBuffer.x=Math.min(H,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(H,te){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=H,this._activeBuffer.y=this._activeBuffer.scrollTop+te):(this._activeBuffer.x=H,this._activeBuffer.y=te),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(H,te){this._restrictCursor(),this._setCursor(this._activeBuffer.x+H,this._activeBuffer.y+te)}cursorUp(H){let te=this._activeBuffer.y-this._activeBuffer.scrollTop;return te>=0?this._moveCursor(0,-Math.min(te,H.params[0]||1)):this._moveCursor(0,-(H.params[0]||1)),!0}cursorDown(H){let te=this._activeBuffer.scrollBottom-this._activeBuffer.y;return te>=0?this._moveCursor(0,Math.min(te,H.params[0]||1)):this._moveCursor(0,H.params[0]||1),!0}cursorForward(H){return this._moveCursor(H.params[0]||1,0),!0}cursorBackward(H){return this._moveCursor(-(H.params[0]||1),0),!0}cursorNextLine(H){return this.cursorDown(H),this._activeBuffer.x=0,!0}cursorPrecedingLine(H){return this.cursorUp(H),this._activeBuffer.x=0,!0}cursorCharAbsolute(H){return this._setCursor((H.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(H){return this._setCursor(H.length>=2?(H.params[1]||1)-1:0,(H.params[0]||1)-1),!0}charPosAbsolute(H){return this._setCursor((H.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(H){return this._moveCursor(H.params[0]||1,0),!0}linePosAbsolute(H){return this._setCursor(this._activeBuffer.x,(H.params[0]||1)-1),!0}vPositionRelative(H){return this._moveCursor(0,H.params[0]||1),!0}hVPosition(H){return this.cursorPosition(H),!0}tabClear(H){let te=H.params[0];return te===0?delete this._activeBuffer.tabs[this._activeBuffer.x]:te===3&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(H){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let te=H.params[0]||1;for(;te--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(H){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let te=H.params[0]||1;for(;te--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(H){let te=H.params[0];return te===1&&(this._curAttrData.bg|=536870912),te!==2&&te!==0||(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(H,te,de,me=!1,Ie=!1){let $e=this._activeBuffer.lines.get(this._activeBuffer.ybase+H);$e.replaceCells(te,de,this._activeBuffer.getNullCell(this._eraseAttrData()),Ie),me&&($e.isWrapped=!1)}_resetBufferLine(H,te=!1){let de=this._activeBuffer.lines.get(this._activeBuffer.ybase+H);de&&(de.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),te),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+H),de.isWrapped=!1)}eraseInDisplay(H,te=!1){let de;switch(this._restrictCursor(this._bufferService.cols),H.params[0]){case 0:for(de=this._activeBuffer.y,this._dirtyRowTracker.markDirty(de),this._eraseInBufferLine(de++,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,te);de=this._bufferService.cols&&(this._activeBuffer.lines.get(de+1).isWrapped=!1);de--;)this._resetBufferLine(de,te);this._dirtyRowTracker.markDirty(0);break;case 2:for(de=this._bufferService.rows,this._dirtyRowTracker.markDirty(de-1);de--;)this._resetBufferLine(de,te);this._dirtyRowTracker.markDirty(0);break;case 3:let me=this._activeBuffer.lines.length-this._bufferService.rows;me>0&&(this._activeBuffer.lines.trimStart(me),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-me,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-me,0),this._onScroll.fire(0))}return!0}eraseInLine(H,te=!1){switch(this._restrictCursor(this._bufferService.cols),H.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,te);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,te);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,te)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(H){this._restrictCursor();let te=H.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.y65535?2:1}let Me=et;for(let Z=1;Z0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(u.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(u.C0.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(H){return H.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(u.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(u.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(H.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(u.C0.ESC+"[>83;40003;0c")),!0}_is(H){return(this._optionsService.rawOptions.termName+"").indexOf(H)===0}setMode(H){for(let te=0;teBo?1:2,dt=H.params[0];return Ot=dt,si=te?dt===2?4:dt===4?Ze($e.modes.insertMode):dt===12?3:dt===20?Ze(Le.convertEol):0:dt===1?Ze(de.applicationCursorKeys):dt===3?Le.windowOptions.setWinLines?et===80?2:et===132?1:0:0:dt===6?Ze(de.origin):dt===7?Ze(de.wraparound):dt===8?3:dt===9?Ze(me==="X10"):dt===12?Ze(Le.cursorBlink):dt===25?Ze(!$e.isCursorHidden):dt===45?Ze(de.reverseWraparound):dt===66?Ze(de.applicationKeypad):dt===67?4:dt===1e3?Ze(me==="VT200"):dt===1002?Ze(me==="DRAG"):dt===1003?Ze(me==="ANY"):dt===1004?Ze(de.sendFocus):dt===1005?4:dt===1006?Ze(Ie==="SGR"):dt===1015?4:dt===1016?Ze(Ie==="SGR_PIXELS"):dt===1048?1:dt===47||dt===1047||dt===1049?Ze(Me===Z):dt===2004?Ze(de.bracketedPasteMode):0,$e.triggerDataEvent(`${u.C0.ESC}[${te?"":"?"}${Ot};${si}$y`),!0;var Ot,si}_updateAttrColor(H,te,de,me,Ie){return te===2?(H|=50331648,H&=-16777216,H|=O.AttributeData.fromColorRGB([de,me,Ie])):te===5&&(H&=-50331904,H|=33554432|255&de),H}_extractColor(H,te,de){let me=[0,0,-1,0,0,0],Ie=0,$e=0;do{if(me[$e+Ie]=H.params[te+$e],H.hasSubParams(te+$e)){let tt=H.getSubParams(te+$e),et=0;do me[1]===5&&(Ie=1),me[$e+et+1+Ie]=tt[et];while(++et=2||me[1]===2&&$e+Ie>=5)break;me[1]&&(Ie=1)}while(++$e+te5)&&(H=1),te.extended.underlineStyle=H,te.fg|=268435456,H===0&&(te.fg&=-268435457),te.updateExtended()}_processSGR0(H){H.fg=b.DEFAULT_ATTR_DATA.fg,H.bg=b.DEFAULT_ATTR_DATA.bg,H.extended=H.extended.clone(),H.extended.underlineStyle=0,H.extended.underlineColor&=-67108864,H.updateExtended()}charAttributes(H){if(H.length===1&&H.params[0]===0)return this._processSGR0(this._curAttrData),!0;let te=H.length,de,me=this._curAttrData;for(let Ie=0;Ie=30&&de<=37?(me.fg&=-50331904,me.fg|=16777216|de-30):de>=40&&de<=47?(me.bg&=-50331904,me.bg|=16777216|de-40):de>=90&&de<=97?(me.fg&=-50331904,me.fg|=16777224|de-90):de>=100&&de<=107?(me.bg&=-50331904,me.bg|=16777224|de-100):de===0?this._processSGR0(me):de===1?me.fg|=134217728:de===3?me.bg|=67108864:de===4?(me.fg|=268435456,this._processUnderline(H.hasSubParams(Ie)?H.getSubParams(Ie)[0]:1,me)):de===5?me.fg|=536870912:de===7?me.fg|=67108864:de===8?me.fg|=1073741824:de===9?me.fg|=2147483648:de===2?me.bg|=134217728:de===21?this._processUnderline(2,me):de===22?(me.fg&=-134217729,me.bg&=-134217729):de===23?me.bg&=-67108865:de===24?(me.fg&=-268435457,this._processUnderline(0,me)):de===25?me.fg&=-536870913:de===27?me.fg&=-67108865:de===28?me.fg&=-1073741825:de===29?me.fg&=2147483647:de===39?(me.fg&=-67108864,me.fg|=16777215&b.DEFAULT_ATTR_DATA.fg):de===49?(me.bg&=-67108864,me.bg|=16777215&b.DEFAULT_ATTR_DATA.bg):de===38||de===48||de===58?Ie+=this._extractColor(H,Ie,me):de===53?me.bg|=1073741824:de===55?me.bg&=-1073741825:de===59?(me.extended=me.extended.clone(),me.extended.underlineColor=-1,me.updateExtended()):de===100?(me.fg&=-67108864,me.fg|=16777215&b.DEFAULT_ATTR_DATA.fg,me.bg&=-67108864,me.bg|=16777215&b.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",de);return!0}deviceStatus(H){switch(H.params[0]){case 5:this._coreService.triggerDataEvent(`${u.C0.ESC}[0n`);break;case 6:let te=this._activeBuffer.y+1,de=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${u.C0.ESC}[${te};${de}R`)}return!0}deviceStatusPrivate(H){if(H.params[0]===6){let te=this._activeBuffer.y+1,de=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${u.C0.ESC}[?${te};${de}R`)}return!0}softReset(H){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=b.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}setCursorStyle(H){let te=H.params[0]||1;switch(te){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}let de=te%2==1;return this._optionsService.options.cursorBlink=de,!0}setScrollRegion(H){let te=H.params[0]||1,de;return(H.length<2||(de=H.params[1])>this._bufferService.rows||de===0)&&(de=this._bufferService.rows),de>te&&(this._activeBuffer.scrollTop=te-1,this._activeBuffer.scrollBottom=de-1,this._setCursor(0,0)),!0}windowOptions(H){if(!W(H.params[0],this._optionsService.rawOptions.windowOptions))return!0;let te=H.length>1?H.params[1]:0;switch(H.params[0]){case 14:te!==2&&this._onRequestWindowsOptionsReport.fire(G.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(G.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${u.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:te!==0&&te!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),te!==0&&te!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:te!==0&&te!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),te!==0&&te!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0}saveCursor(H){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(H){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(H){return this._windowTitle=H,this._onTitleChange.fire(H),!0}setIconName(H){return this._iconName=H,!0}setOrReportIndexedColor(H){let te=[],de=H.split(";");for(;de.length>1;){let me=de.shift(),Ie=de.shift();if(/^\d+$/.exec(me)){let $e=parseInt(me);if(Ae($e))if(Ie==="?")te.push({type:0,index:$e});else{let tt=(0,B.parseColor)(Ie);tt&&te.push({type:1,index:$e,color:tt})}}}return te.length&&this._onColor.fire(te),!0}setHyperlink(H){let te=H.split(";");return!(te.length<2)&&(te[1]?this._createHyperlink(te[0],te[1]):!te[0]&&this._finishHyperlink())}_createHyperlink(H,te){this._getCurrentLinkId()&&this._finishHyperlink();let de=H.split(":"),me,Ie=de.findIndex($e=>$e.startsWith("id="));return Ie!==-1&&(me=de[Ie].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:me,uri:te}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(H,te){let de=H.split(";");for(let me=0;me=this._specialColors.length);++me,++te)if(de[me]==="?")this._onColor.fire([{type:0,index:this._specialColors[te]}]);else{let Ie=(0,B.parseColor)(de[me]);Ie&&this._onColor.fire([{type:1,index:this._specialColors[te],color:Ie}])}return!0}setOrReportFgColor(H){return this._setOrReportSpecialColor(H,0)}setOrReportBgColor(H){return this._setOrReportSpecialColor(H,1)}setOrReportCursorColor(H){return this._setOrReportSpecialColor(H,2)}restoreIndexedColor(H){if(!H)return this._onColor.fire([{type:2}]),!0;let te=[],de=H.split(";");for(let me=0;me=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){let H=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,H,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=b.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=b.DEFAULT_ATTR_DATA.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal}setgLevel(H){return this._charsetService.setgLevel(H),!0}screenAlignmentPattern(){let H=new S.CellData;H.content=4194373,H.fg=this._curAttrData.fg,H.bg=this._curAttrData.bg,this._setCursor(0,0);for(let te=0;te(this._coreService.triggerDataEvent(`${u.C0.ESC}${Ie}${u.C0.ESC}\\`),!0))(H==='"q'?`P1$r${this._curAttrData.isProtected()?1:0}"q`:H==='"p'?'P1$r61;1"p':H==="r"?`P1$r${de.scrollTop+1};${de.scrollBottom+1}r`:H==="m"?"P1$r0m":H===" q"?`P1$r${{block:2,underline:4,bar:6}[me.cursorStyle]-(me.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(H,te){this._dirtyRowTracker.markRangeDirty(H,te)}}a.InputHandler=Se;let pe=class{constructor(ue){this._bufferService=ue,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(ue){uethis.end&&(this.end=ue)}markRangeDirty(ue,H){ue>H&&(ve=ue,ue=H,H=ve),uethis.end&&(this.end=H)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};function Ae(ue){return 0<=ue&&ue<256}pe=d([p(0,A.IBufferService)],pe)},844:(i,a)=>{function s(d){for(let p of d)p.dispose();d.length=0}Object.defineProperty(a,"__esModule",{value:!0}),a.getDisposeArrayDisposable=a.disposeArray=a.toDisposable=a.MutableDisposable=a.Disposable=void 0,a.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(let d of this._disposables)d.dispose();this._disposables.length=0}register(d){return this._disposables.push(d),d}unregister(d){let p=this._disposables.indexOf(d);p!==-1&&this._disposables.splice(p,1)}},a.MutableDisposable=class{constructor(){this._isDisposed=!1}get value(){return this._isDisposed?void 0:this._value}set value(d){this._isDisposed||d===this._value||(this._value?.dispose(),this._value=d)}clear(){this.value=void 0}dispose(){this._isDisposed=!0,this._value?.dispose(),this._value=void 0}},a.toDisposable=function(d){return{dispose:d}},a.disposeArray=s,a.getDisposeArrayDisposable=function(d){return{dispose:()=>s(d)}}},1505:(i,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.FourKeyMap=a.TwoKeyMap=void 0;class s{constructor(){this._data={}}set(p,u,g){this._data[p]||(this._data[p]={}),this._data[p][u]=g}get(p,u){return this._data[p]?this._data[p][u]:void 0}clear(){this._data={}}}a.TwoKeyMap=s,a.FourKeyMap=class{constructor(){this._data=new s}set(d,p,u,g,C){this._data.get(d,p)||this._data.set(d,p,new s),this._data.get(d,p).set(u,g,C)}get(d,p,u,g){return this._data.get(d,p)?.get(u,g)}clear(){this._data.clear()}}},6114:(i,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.isChromeOS=a.isLinux=a.isWindows=a.isIphone=a.isIpad=a.isMac=a.getSafariVersion=a.isSafari=a.isLegacyEdge=a.isFirefox=a.isNode=void 0,a.isNode=typeof process<"u"&&"title"in process;let s=a.isNode?"node":navigator.userAgent,d=a.isNode?"node":navigator.platform;a.isFirefox=s.includes("Firefox"),a.isLegacyEdge=s.includes("Edge"),a.isSafari=/^((?!chrome|android).)*safari/i.test(s),a.getSafariVersion=function(){if(!a.isSafari)return 0;let p=s.match(/Version\/(\d+)/);return p===null||p.length<2?0:parseInt(p[1])},a.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(d),a.isIpad=d==="iPad",a.isIphone=d==="iPhone",a.isWindows=["Windows","Win16","Win32","WinCE"].includes(d),a.isLinux=d.indexOf("Linux")>=0,a.isChromeOS=/\bCrOS\b/.test(s)},6106:(i,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.SortedList=void 0;let s=0;a.SortedList=class{constructor(d){this._getKey=d,this._array=[]}clear(){this._array.length=0}insert(d){this._array.length!==0?(s=this._search(this._getKey(d)),this._array.splice(s,0,d)):this._array.push(d)}delete(d){if(this._array.length===0)return!1;let p=this._getKey(d);if(p===void 0||(s=this._search(p),s===-1)||this._getKey(this._array[s])!==p)return!1;do if(this._array[s]===d)return this._array.splice(s,1),!0;while(++s=this._array.length)&&this._getKey(this._array[s])===d))do yield this._array[s];while(++s=this._array.length)&&this._getKey(this._array[s])===d))do p(this._array[s]);while(++s=p;){let g=p+u>>1,C=this._getKey(this._array[g]);if(C>d)u=g-1;else{if(!(C0&&this._getKey(this._array[g-1])===d;)g--;return g}p=g+1}}return p}}},7226:(i,a,s)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.DebouncedIdleTask=a.IdleTaskQueue=a.PriorityTaskQueue=void 0;let d=s(6114);class p{constructor(){this._tasks=[],this._i=0}enqueue(C){this._tasks.push(C),this._start()}flush(){for(;this._iP)return b-M<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(b-M))}ms`),void this._start();b=P}this.clear()}}class u extends p{_requestCallback(C){return setTimeout(()=>C(this._createDeadline(16)))}_cancelCallback(C){clearTimeout(C)}_createDeadline(C){let M=Date.now()+C;return{timeRemaining:()=>Math.max(0,M-Date.now())}}}a.PriorityTaskQueue=u,a.IdleTaskQueue=!d.isNode&&"requestIdleCallback"in window?class extends p{_requestCallback(g){return requestIdleCallback(g)}_cancelCallback(g){cancelIdleCallback(g)}}:u,a.DebouncedIdleTask=class{constructor(){this._queue=new a.IdleTaskQueue}set(g){this._queue.clear(),this._queue.enqueue(g)}flush(){this._queue.flush()}}},9282:(i,a,s)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.updateWindowsModeWrappedState=void 0;let d=s(643);a.updateWindowsModeWrappedState=function(p){let u=p.buffer.lines.get(p.buffer.ybase+p.buffer.y-1),g=u?.get(p.cols-1),C=p.buffer.lines.get(p.buffer.ybase+p.buffer.y);C&&g&&(C.isWrapped=g[d.CHAR_DATA_CODE_INDEX]!==d.NULL_CELL_CODE&&g[d.CHAR_DATA_CODE_INDEX]!==d.WHITESPACE_CELL_CODE)}},3734:(i,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ExtendedAttrs=a.AttributeData=void 0;class s{constructor(){this.fg=0,this.bg=0,this.extended=new d}static toColorRGB(u){return[u>>>16&255,u>>>8&255,255&u]}static fromColorRGB(u){return(255&u[0])<<16|(255&u[1])<<8|255&u[2]}clone(){let u=new s;return u.fg=this.fg,u.bg=this.bg,u.extended=this.extended.clone(),u}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}isOverline(){return 1073741824&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return(50331648&this.fg)==50331648}isBgRGB(){return(50331648&this.bg)==50331648}isFgPalette(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432}isBgPalette(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432}isFgDefault(){return(50331648&this.fg)==0}isBgDefault(){return(50331648&this.bg)==0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}getUnderlineVariantOffset(){return this.extended.underlineVariantOffset}}a.AttributeData=s;class d{get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(u){this._ext=u}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(u){this._ext&=-469762049,this._ext|=u<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(u){this._ext&=-67108864,this._ext|=67108863&u}get urlId(){return this._urlId}set urlId(u){this._urlId=u}get underlineVariantOffset(){let u=(3758096384&this._ext)>>29;return u<0?4294967288^u:u}set underlineVariantOffset(u){this._ext&=536870911,this._ext|=u<<29&3758096384}constructor(u=0,g=0){this._ext=0,this._urlId=0,this._ext=u,this._urlId=g}clone(){return new d(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}}a.ExtendedAttrs=d},9092:(i,a,s)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Buffer=a.MAX_BUFFER_SIZE=void 0;let d=s(6349),p=s(7226),u=s(3734),g=s(8437),C=s(4634),M=s(511),x=s(643),b=s(4863),P=s(7116);a.MAX_BUFFER_SIZE=4294967295,a.Buffer=class{constructor(k,S,O){this._hasScrollback=k,this._optionsService=S,this._bufferService=O,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=g.DEFAULT_ATTR_DATA.clone(),this.savedCharset=P.DEFAULT_CHARSET,this.markers=[],this._nullCell=M.CellData.fromCharData([0,x.NULL_CELL_CHAR,x.NULL_CELL_WIDTH,x.NULL_CELL_CODE]),this._whitespaceCell=M.CellData.fromCharData([0,x.WHITESPACE_CELL_CHAR,x.WHITESPACE_CELL_WIDTH,x.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._memoryCleanupQueue=new p.IdleTaskQueue,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new d.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(k){return k?(this._nullCell.fg=k.fg,this._nullCell.bg=k.bg,this._nullCell.extended=k.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new u.ExtendedAttrs),this._nullCell}getWhitespaceCell(k){return k?(this._whitespaceCell.fg=k.fg,this._whitespaceCell.bg=k.bg,this._whitespaceCell.extended=k.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new u.ExtendedAttrs),this._whitespaceCell}getBlankLine(k,S){return new g.BufferLine(this._bufferService.cols,this.getNullCell(k),S)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){let k=this.ybase+this.y-this.ydisp;return k>=0&&ka.MAX_BUFFER_SIZE?a.MAX_BUFFER_SIZE:S}fillViewportRows(k){if(this.lines.length===0){k===void 0&&(k=g.DEFAULT_ATTR_DATA);let S=this._rows;for(;S--;)this.lines.push(this.getBlankLine(k))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new d.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(k,S){let O=this.getNullCell(g.DEFAULT_ATTR_DATA),A=0,D=this._getCorrectBufferLength(S);if(D>this.lines.maxLength&&(this.lines.maxLength=D),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+F+1?(this.ybase--,F++,this.ydisp>0&&this.ydisp--):this.lines.push(new g.BufferLine(k,O)));else for(let I=this._rows;I>S;I--)this.lines.length>S+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(D0&&(this.lines.trimStart(I),this.ybase=Math.max(this.ybase-I,0),this.ydisp=Math.max(this.ydisp-I,0),this.savedY=Math.max(this.savedY-I,0)),this.lines.maxLength=D}this.x=Math.min(this.x,k-1),this.y=Math.min(this.y,S-1),F&&(this.y+=F),this.savedX=Math.min(this.savedX,k-1),this.scrollTop=0}if(this.scrollBottom=S-1,this._isReflowEnabled&&(this._reflow(k,S),this._cols>k))for(let F=0;F.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue(()=>this._batchedMemoryCleanup()))}_batchedMemoryCleanup(){let k=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,k=!1);let S=0;for(;this._memoryCleanupPosition100)return!0;return k}get _isReflowEnabled(){let k=this._optionsService.rawOptions.windowsPty;return k&&k.buildNumber?this._hasScrollback&&k.backend==="conpty"&&k.buildNumber>=21376:this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(k,S){this._cols!==k&&(k>this._cols?this._reflowLarger(k,S):this._reflowSmaller(k,S))}_reflowLarger(k,S){let O=(0,C.reflowLargerGetLinesToRemove)(this.lines,this._cols,k,this.ybase+this.y,this.getNullCell(g.DEFAULT_ATTR_DATA));if(O.length>0){let A=(0,C.reflowLargerCreateNewLayout)(this.lines,O);(0,C.reflowLargerApplyNewLayout)(this.lines,A.layout),this._reflowLargerAdjustViewport(k,S,A.countRemoved)}}_reflowLargerAdjustViewport(k,S,O){let A=this.getNullCell(g.DEFAULT_ATTR_DATA),D=O;for(;D-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length=0;F--){let I=this.lines.get(F);if(!I||!I.isWrapped&&I.getTrimmedLength()<=k)continue;let B=[I];for(;I.isWrapped&&F>0;)I=this.lines.get(--F),B.unshift(I);let le=this.ybase+this.y;if(le>=F&&le0&&(A.push({start:F+B.length+D,newLines:Se}),D+=Se.length),B.push(...Se);let pe=W.length-1,Ae=W[pe];Ae===0&&(pe--,Ae=W[pe]);let ue=B.length-G-1,H=ae;for(;ue>=0;){let de=Math.min(H,Ae);if(B[pe]===void 0)break;if(B[pe].copyCellsFrom(B[ue],H-de,Ae-de,de,!0),Ae-=de,Ae===0&&(pe--,Ae=W[pe]),H-=de,H===0){ue--;let me=Math.max(ue,0);H=(0,C.getWrappedLineTrimmedLength)(B,me,this._cols)}}for(let de=0;de0;)this.ybase===0?this.y0){let F=[],I=[];for(let pe=0;pe=0;pe--)if(W&&W.start>le+G){for(let Ae=W.newLines.length-1;Ae>=0;Ae--)this.lines.set(pe--,W.newLines[Ae]);pe++,F.push({index:le+1,amount:W.newLines.length}),G+=W.newLines.length,W=A[++ae]}else this.lines.set(pe,I[le--]);let ve=0;for(let pe=F.length-1;pe>=0;pe--)F[pe].index+=ve,this.lines.onInsertEmitter.fire(F[pe]),ve+=F[pe].amount;let Se=Math.max(0,B+D-this.lines.maxLength);Se>0&&this.lines.onTrimEmitter.fire(Se)}}translateBufferLineToString(k,S,O=0,A){let D=this.lines.get(k);return D?D.translateToString(S,O,A):""}getWrappedRangeForLine(k){let S=k,O=k;for(;S>0&&this.lines.get(S).isWrapped;)S--;for(;O+10;);return k>=this._cols?this._cols-1:k<0?0:k}nextStop(k){for(k==null&&(k=this.x);!this.tabs[++k]&&k=this._cols?this._cols-1:k<0?0:k}clearMarkers(k){this._isClearing=!0;for(let S=0;S{S.line-=O,S.line<0&&S.dispose()})),S.register(this.lines.onInsert(O=>{S.line>=O.index&&(S.line+=O.amount)})),S.register(this.lines.onDelete(O=>{S.line>=O.index&&S.lineO.index&&(S.line-=O.amount)})),S.register(S.onDispose(()=>this._removeMarker(S))),S}_removeMarker(k){this._isClearing||this.markers.splice(this.markers.indexOf(k),1)}}},8437:(i,a,s)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BufferLine=a.DEFAULT_ATTR_DATA=void 0;let d=s(3734),p=s(511),u=s(643),g=s(482);a.DEFAULT_ATTR_DATA=Object.freeze(new d.AttributeData);let C=0;class M{constructor(b,P,k=!1){this.isWrapped=k,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*b);let S=P||p.CellData.fromCharData([0,u.NULL_CELL_CHAR,u.NULL_CELL_WIDTH,u.NULL_CELL_CODE]);for(let O=0;O>22,2097152&P?this._combined[b].charCodeAt(this._combined[b].length-1):k]}set(b,P){this._data[3*b+1]=P[u.CHAR_DATA_ATTR_INDEX],P[u.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[b]=P[1],this._data[3*b+0]=2097152|b|P[u.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*b+0]=P[u.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|P[u.CHAR_DATA_WIDTH_INDEX]<<22}getWidth(b){return this._data[3*b+0]>>22}hasWidth(b){return 12582912&this._data[3*b+0]}getFg(b){return this._data[3*b+1]}getBg(b){return this._data[3*b+2]}hasContent(b){return 4194303&this._data[3*b+0]}getCodePoint(b){let P=this._data[3*b+0];return 2097152&P?this._combined[b].charCodeAt(this._combined[b].length-1):2097151&P}isCombined(b){return 2097152&this._data[3*b+0]}getString(b){let P=this._data[3*b+0];return 2097152&P?this._combined[b]:2097151&P?(0,g.stringFromCodePoint)(2097151&P):""}isProtected(b){return 536870912&this._data[3*b+2]}loadCell(b,P){return C=3*b,P.content=this._data[C+0],P.fg=this._data[C+1],P.bg=this._data[C+2],2097152&P.content&&(P.combinedData=this._combined[b]),268435456&P.bg&&(P.extended=this._extendedAttrs[b]),P}setCell(b,P){2097152&P.content&&(this._combined[b]=P.combinedData),268435456&P.bg&&(this._extendedAttrs[b]=P.extended),this._data[3*b+0]=P.content,this._data[3*b+1]=P.fg,this._data[3*b+2]=P.bg}setCellFromCodepoint(b,P,k,S){268435456&S.bg&&(this._extendedAttrs[b]=S.extended),this._data[3*b+0]=P|k<<22,this._data[3*b+1]=S.fg,this._data[3*b+2]=S.bg}addCodepointToCell(b,P,k){let S=this._data[3*b+0];2097152&S?this._combined[b]+=(0,g.stringFromCodePoint)(P):2097151&S?(this._combined[b]=(0,g.stringFromCodePoint)(2097151&S)+(0,g.stringFromCodePoint)(P),S&=-2097152,S|=2097152):S=P|4194304,k&&(S&=-12582913,S|=k<<22),this._data[3*b+0]=S}insertCells(b,P,k){if((b%=this.length)&&this.getWidth(b-1)===2&&this.setCellFromCodepoint(b-1,0,1,k),P=0;--O)this.setCell(b+P+O,this.loadCell(b+O,S));for(let O=0;Othis.length){if(this._data.buffer.byteLength>=4*k)this._data=new Uint32Array(this._data.buffer,0,k);else{let S=new Uint32Array(k);S.set(this._data),this._data=S}for(let S=this.length;S=b&&delete this._combined[D]}let O=Object.keys(this._extendedAttrs);for(let A=0;A=b&&delete this._extendedAttrs[D]}}return this.length=b,4*k*2=0;--b)if(4194303&this._data[3*b+0])return b+(this._data[3*b+0]>>22);return 0}getNoBgTrimmedLength(){for(let b=this.length-1;b>=0;--b)if(4194303&this._data[3*b+0]||50331648&this._data[3*b+2])return b+(this._data[3*b+0]>>22);return 0}copyCellsFrom(b,P,k,S,O){let A=b._data;if(O)for(let F=S-1;F>=0;F--){for(let I=0;I<3;I++)this._data[3*(k+F)+I]=A[3*(P+F)+I];268435456&A[3*(P+F)+2]&&(this._extendedAttrs[k+F]=b._extendedAttrs[P+F])}else for(let F=0;F=P&&(this._combined[I-P+k]=b._combined[I])}}translateToString(b,P,k,S){P=P??0,k=k??this.length,b&&(k=Math.min(k,this.getTrimmedLength())),S&&(S.length=0);let O="";for(;P>22||1}return S&&S.push(P),O}}a.BufferLine=M},4841:(i,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.getRangeLength=void 0,a.getRangeLength=function(s,d){if(s.start.y>s.end.y)throw new Error(`Buffer range end (${s.end.x}, ${s.end.y}) cannot be before start (${s.start.x}, ${s.start.y})`);return d*(s.end.y-s.start.y)+(s.end.x-s.start.x+1)}},4634:(i,a)=>{function s(d,p,u){if(p===d.length-1)return d[p].getTrimmedLength();let g=!d[p].hasContent(u-1)&&d[p].getWidth(u-1)===1,C=d[p+1].getWidth(0)===2;return g&&C?u-1:u}Object.defineProperty(a,"__esModule",{value:!0}),a.getWrappedLineTrimmedLength=a.reflowSmallerGetNewLineLengths=a.reflowLargerApplyNewLayout=a.reflowLargerCreateNewLayout=a.reflowLargerGetLinesToRemove=void 0,a.reflowLargerGetLinesToRemove=function(d,p,u,g,C){let M=[];for(let x=0;x=x&&g0&&(I>S||k[I].getTrimmedLength()===0);I--)F++;F>0&&(M.push(x+k.length-F),M.push(F)),x+=k.length-1}return M},a.reflowLargerCreateNewLayout=function(d,p){let u=[],g=0,C=p[g],M=0;for(let x=0;xs(d,k,p)).reduce((P,k)=>P+k),M=0,x=0,b=0;for(;bP&&(M-=P,x++);let k=d[x].getWidth(M-1)===2;k&&M--;let S=k?u-1:u;g.push(S),b+=S}return g},a.getWrappedLineTrimmedLength=s},5295:(i,a,s)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BufferSet=void 0;let d=s(8460),p=s(844),u=s(9092);class g extends p.Disposable{constructor(M,x){super(),this._optionsService=M,this._bufferService=x,this._onBufferActivate=this.register(new d.EventEmitter),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this.register(this._optionsService.onSpecificOptionChange("scrollback",()=>this.resize(this._bufferService.cols,this._bufferService.rows))),this.register(this._optionsService.onSpecificOptionChange("tabStopWidth",()=>this.setupTabStops()))}reset(){this._normal=new u.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new u.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(M){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(M),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(M,x){this._normal.resize(M,x),this._alt.resize(M,x),this.setupTabStops(M)}setupTabStops(M){this._normal.setupTabStops(M),this._alt.setupTabStops(M)}}a.BufferSet=g},511:(i,a,s)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CellData=void 0;let d=s(482),p=s(643),u=s(3734);class g extends u.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new u.ExtendedAttrs,this.combinedData=""}static fromCharData(M){let x=new g;return x.setFromCharData(M),x}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,d.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(M){this.fg=M[p.CHAR_DATA_ATTR_INDEX],this.bg=0;let x=!1;if(M[p.CHAR_DATA_CHAR_INDEX].length>2)x=!0;else if(M[p.CHAR_DATA_CHAR_INDEX].length===2){let b=M[p.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=b&&b<=56319){let P=M[p.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=P&&P<=57343?this.content=1024*(b-55296)+P-56320+65536|M[p.CHAR_DATA_WIDTH_INDEX]<<22:x=!0}else x=!0}else this.content=M[p.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|M[p.CHAR_DATA_WIDTH_INDEX]<<22;x&&(this.combinedData=M[p.CHAR_DATA_CHAR_INDEX],this.content=2097152|M[p.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}a.CellData=g},643:(i,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.WHITESPACE_CELL_CODE=a.WHITESPACE_CELL_WIDTH=a.WHITESPACE_CELL_CHAR=a.NULL_CELL_CODE=a.NULL_CELL_WIDTH=a.NULL_CELL_CHAR=a.CHAR_DATA_CODE_INDEX=a.CHAR_DATA_WIDTH_INDEX=a.CHAR_DATA_CHAR_INDEX=a.CHAR_DATA_ATTR_INDEX=a.DEFAULT_EXT=a.DEFAULT_ATTR=a.DEFAULT_COLOR=void 0,a.DEFAULT_COLOR=0,a.DEFAULT_ATTR=256|a.DEFAULT_COLOR<<9,a.DEFAULT_EXT=0,a.CHAR_DATA_ATTR_INDEX=0,a.CHAR_DATA_CHAR_INDEX=1,a.CHAR_DATA_WIDTH_INDEX=2,a.CHAR_DATA_CODE_INDEX=3,a.NULL_CELL_CHAR="",a.NULL_CELL_WIDTH=1,a.NULL_CELL_CODE=0,a.WHITESPACE_CELL_CHAR=" ",a.WHITESPACE_CELL_WIDTH=1,a.WHITESPACE_CELL_CODE=32},4863:(i,a,s)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Marker=void 0;let d=s(8460),p=s(844);class u{get id(){return this._id}constructor(C){this.line=C,this.isDisposed=!1,this._disposables=[],this._id=u._nextId++,this._onDispose=this.register(new d.EventEmitter),this.onDispose=this._onDispose.event}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),(0,p.disposeArray)(this._disposables),this._disposables.length=0)}register(C){return this._disposables.push(C),C}}a.Marker=u,u._nextId=1},7116:(i,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.DEFAULT_CHARSET=a.CHARSETS=void 0,a.CHARSETS={},a.DEFAULT_CHARSET=a.CHARSETS.B,a.CHARSETS[0]={"`":"\u25C6",a:"\u2592",b:"\u2409",c:"\u240C",d:"\u240D",e:"\u240A",f:"\xB0",g:"\xB1",h:"\u2424",i:"\u240B",j:"\u2518",k:"\u2510",l:"\u250C",m:"\u2514",n:"\u253C",o:"\u23BA",p:"\u23BB",q:"\u2500",r:"\u23BC",s:"\u23BD",t:"\u251C",u:"\u2524",v:"\u2534",w:"\u252C",x:"\u2502",y:"\u2264",z:"\u2265","{":"\u03C0","|":"\u2260","}":"\xA3","~":"\xB7"},a.CHARSETS.A={"#":"\xA3"},a.CHARSETS.B=void 0,a.CHARSETS[4]={"#":"\xA3","@":"\xBE","[":"ij","\\":"\xBD","]":"|","{":"\xA8","|":"f","}":"\xBC","~":"\xB4"},a.CHARSETS.C=a.CHARSETS[5]={"[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},a.CHARSETS.R={"#":"\xA3","@":"\xE0","[":"\xB0","\\":"\xE7","]":"\xA7","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xA8"},a.CHARSETS.Q={"@":"\xE0","[":"\xE2","\\":"\xE7","]":"\xEA","^":"\xEE","`":"\xF4","{":"\xE9","|":"\xF9","}":"\xE8","~":"\xFB"},a.CHARSETS.K={"@":"\xA7","[":"\xC4","\\":"\xD6","]":"\xDC","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xDF"},a.CHARSETS.Y={"#":"\xA3","@":"\xA7","[":"\xB0","\\":"\xE7","]":"\xE9","`":"\xF9","{":"\xE0","|":"\xF2","}":"\xE8","~":"\xEC"},a.CHARSETS.E=a.CHARSETS[6]={"@":"\xC4","[":"\xC6","\\":"\xD8","]":"\xC5","^":"\xDC","`":"\xE4","{":"\xE6","|":"\xF8","}":"\xE5","~":"\xFC"},a.CHARSETS.Z={"#":"\xA3","@":"\xA7","[":"\xA1","\\":"\xD1","]":"\xBF","{":"\xB0","|":"\xF1","}":"\xE7"},a.CHARSETS.H=a.CHARSETS[7]={"@":"\xC9","[":"\xC4","\\":"\xD6","]":"\xC5","^":"\xDC","`":"\xE9","{":"\xE4","|":"\xF6","}":"\xE5","~":"\xFC"},a.CHARSETS["="]={"#":"\xF9","@":"\xE0","[":"\xE9","\\":"\xE7","]":"\xEA","^":"\xEE",_:"\xE8","`":"\xF4","{":"\xE4","|":"\xF6","}":"\xFC","~":"\xFB"}},2584:(i,a)=>{var s,d,p;Object.defineProperty(a,"__esModule",{value:!0}),a.C1_ESCAPED=a.C1=a.C0=void 0,(function(u){u.NUL="\0",u.SOH="",u.STX="",u.ETX="",u.EOT="",u.ENQ="",u.ACK="",u.BEL="\x07",u.BS="\b",u.HT=" ",u.LF=` +`,u.VT="\v",u.FF="\f",u.CR="\r",u.SO="",u.SI="",u.DLE="",u.DC1="",u.DC2="",u.DC3="",u.DC4="",u.NAK="",u.SYN="",u.ETB="",u.CAN="",u.EM="",u.SUB="",u.ESC="\x1B",u.FS="",u.GS="",u.RS="",u.US="",u.SP=" ",u.DEL="\x7F"})(s||(a.C0=s={})),(function(u){u.PAD="\x80",u.HOP="\x81",u.BPH="\x82",u.NBH="\x83",u.IND="\x84",u.NEL="\x85",u.SSA="\x86",u.ESA="\x87",u.HTS="\x88",u.HTJ="\x89",u.VTS="\x8A",u.PLD="\x8B",u.PLU="\x8C",u.RI="\x8D",u.SS2="\x8E",u.SS3="\x8F",u.DCS="\x90",u.PU1="\x91",u.PU2="\x92",u.STS="\x93",u.CCH="\x94",u.MW="\x95",u.SPA="\x96",u.EPA="\x97",u.SOS="\x98",u.SGCI="\x99",u.SCI="\x9A",u.CSI="\x9B",u.ST="\x9C",u.OSC="\x9D",u.PM="\x9E",u.APC="\x9F"})(d||(a.C1=d={})),(function(u){u.ST=`${s.ESC}\\`})(p||(a.C1_ESCAPED=p={}))},7399:(i,a,s)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.evaluateKeyboardEvent=void 0;let d=s(2584),p={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};a.evaluateKeyboardEvent=function(u,g,C,M){let x={type:0,cancel:!1,key:void 0},b=(u.shiftKey?1:0)|(u.altKey?2:0)|(u.ctrlKey?4:0)|(u.metaKey?8:0);switch(u.keyCode){case 0:u.key==="UIKeyInputUpArrow"?x.key=g?d.C0.ESC+"OA":d.C0.ESC+"[A":u.key==="UIKeyInputLeftArrow"?x.key=g?d.C0.ESC+"OD":d.C0.ESC+"[D":u.key==="UIKeyInputRightArrow"?x.key=g?d.C0.ESC+"OC":d.C0.ESC+"[C":u.key==="UIKeyInputDownArrow"&&(x.key=g?d.C0.ESC+"OB":d.C0.ESC+"[B");break;case 8:x.key=u.ctrlKey?"\b":d.C0.DEL,u.altKey&&(x.key=d.C0.ESC+x.key);break;case 9:if(u.shiftKey){x.key=d.C0.ESC+"[Z";break}x.key=d.C0.HT,x.cancel=!0;break;case 13:x.key=u.altKey?d.C0.ESC+d.C0.CR:d.C0.CR,x.cancel=!0;break;case 27:x.key=d.C0.ESC,u.altKey&&(x.key=d.C0.ESC+d.C0.ESC),x.cancel=!0;break;case 37:if(u.metaKey)break;b?(x.key=d.C0.ESC+"[1;"+(b+1)+"D",x.key===d.C0.ESC+"[1;3D"&&(x.key=d.C0.ESC+(C?"b":"[1;5D"))):x.key=g?d.C0.ESC+"OD":d.C0.ESC+"[D";break;case 39:if(u.metaKey)break;b?(x.key=d.C0.ESC+"[1;"+(b+1)+"C",x.key===d.C0.ESC+"[1;3C"&&(x.key=d.C0.ESC+(C?"f":"[1;5C"))):x.key=g?d.C0.ESC+"OC":d.C0.ESC+"[C";break;case 38:if(u.metaKey)break;b?(x.key=d.C0.ESC+"[1;"+(b+1)+"A",C||x.key!==d.C0.ESC+"[1;3A"||(x.key=d.C0.ESC+"[1;5A")):x.key=g?d.C0.ESC+"OA":d.C0.ESC+"[A";break;case 40:if(u.metaKey)break;b?(x.key=d.C0.ESC+"[1;"+(b+1)+"B",C||x.key!==d.C0.ESC+"[1;3B"||(x.key=d.C0.ESC+"[1;5B")):x.key=g?d.C0.ESC+"OB":d.C0.ESC+"[B";break;case 45:u.shiftKey||u.ctrlKey||(x.key=d.C0.ESC+"[2~");break;case 46:x.key=b?d.C0.ESC+"[3;"+(b+1)+"~":d.C0.ESC+"[3~";break;case 36:x.key=b?d.C0.ESC+"[1;"+(b+1)+"H":g?d.C0.ESC+"OH":d.C0.ESC+"[H";break;case 35:x.key=b?d.C0.ESC+"[1;"+(b+1)+"F":g?d.C0.ESC+"OF":d.C0.ESC+"[F";break;case 33:u.shiftKey?x.type=2:u.ctrlKey?x.key=d.C0.ESC+"[5;"+(b+1)+"~":x.key=d.C0.ESC+"[5~";break;case 34:u.shiftKey?x.type=3:u.ctrlKey?x.key=d.C0.ESC+"[6;"+(b+1)+"~":x.key=d.C0.ESC+"[6~";break;case 112:x.key=b?d.C0.ESC+"[1;"+(b+1)+"P":d.C0.ESC+"OP";break;case 113:x.key=b?d.C0.ESC+"[1;"+(b+1)+"Q":d.C0.ESC+"OQ";break;case 114:x.key=b?d.C0.ESC+"[1;"+(b+1)+"R":d.C0.ESC+"OR";break;case 115:x.key=b?d.C0.ESC+"[1;"+(b+1)+"S":d.C0.ESC+"OS";break;case 116:x.key=b?d.C0.ESC+"[15;"+(b+1)+"~":d.C0.ESC+"[15~";break;case 117:x.key=b?d.C0.ESC+"[17;"+(b+1)+"~":d.C0.ESC+"[17~";break;case 118:x.key=b?d.C0.ESC+"[18;"+(b+1)+"~":d.C0.ESC+"[18~";break;case 119:x.key=b?d.C0.ESC+"[19;"+(b+1)+"~":d.C0.ESC+"[19~";break;case 120:x.key=b?d.C0.ESC+"[20;"+(b+1)+"~":d.C0.ESC+"[20~";break;case 121:x.key=b?d.C0.ESC+"[21;"+(b+1)+"~":d.C0.ESC+"[21~";break;case 122:x.key=b?d.C0.ESC+"[23;"+(b+1)+"~":d.C0.ESC+"[23~";break;case 123:x.key=b?d.C0.ESC+"[24;"+(b+1)+"~":d.C0.ESC+"[24~";break;default:if(!u.ctrlKey||u.shiftKey||u.altKey||u.metaKey)if(C&&!M||!u.altKey||u.metaKey)!C||u.altKey||u.ctrlKey||u.shiftKey||!u.metaKey?u.key&&!u.ctrlKey&&!u.altKey&&!u.metaKey&&u.keyCode>=48&&u.key.length===1?x.key=u.key:u.key&&u.ctrlKey&&(u.key==="_"&&(x.key=d.C0.US),u.key==="@"&&(x.key=d.C0.NUL)):u.keyCode===65&&(x.type=1);else{let P=p[u.keyCode],k=P?.[u.shiftKey?1:0];if(k)x.key=d.C0.ESC+k;else if(u.keyCode>=65&&u.keyCode<=90){let S=u.ctrlKey?u.keyCode-64:u.keyCode+32,O=String.fromCharCode(S);u.shiftKey&&(O=O.toUpperCase()),x.key=d.C0.ESC+O}else if(u.keyCode===32)x.key=d.C0.ESC+(u.ctrlKey?d.C0.NUL:" ");else if(u.key==="Dead"&&u.code.startsWith("Key")){let S=u.code.slice(3,4);u.shiftKey||(S=S.toLowerCase()),x.key=d.C0.ESC+S,x.cancel=!0}}else u.keyCode>=65&&u.keyCode<=90?x.key=String.fromCharCode(u.keyCode-64):u.keyCode===32?x.key=d.C0.NUL:u.keyCode>=51&&u.keyCode<=55?x.key=String.fromCharCode(u.keyCode-51+27):u.keyCode===56?x.key=d.C0.DEL:u.keyCode===219?x.key=d.C0.ESC:u.keyCode===220?x.key=d.C0.FS:u.keyCode===221&&(x.key=d.C0.GS)}return x}},482:(i,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Utf8ToUtf32=a.StringToUtf32=a.utf32ToString=a.stringFromCodePoint=void 0,a.stringFromCodePoint=function(s){return s>65535?(s-=65536,String.fromCharCode(55296+(s>>10))+String.fromCharCode(s%1024+56320)):String.fromCharCode(s)},a.utf32ToString=function(s,d=0,p=s.length){let u="";for(let g=d;g65535?(C-=65536,u+=String.fromCharCode(55296+(C>>10))+String.fromCharCode(C%1024+56320)):u+=String.fromCharCode(C)}return u},a.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(s,d){let p=s.length;if(!p)return 0;let u=0,g=0;if(this._interim){let C=s.charCodeAt(g++);56320<=C&&C<=57343?d[u++]=1024*(this._interim-55296)+C-56320+65536:(d[u++]=this._interim,d[u++]=C),this._interim=0}for(let C=g;C=p)return this._interim=M,u;let x=s.charCodeAt(C);56320<=x&&x<=57343?d[u++]=1024*(M-55296)+x-56320+65536:(d[u++]=M,d[u++]=x)}else M!==65279&&(d[u++]=M)}return u}},a.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(s,d){let p=s.length;if(!p)return 0;let u,g,C,M,x=0,b=0,P=0;if(this.interim[0]){let O=!1,A=this.interim[0];A&=(224&A)==192?31:(240&A)==224?15:7;let D,F=0;for(;(D=63&this.interim[++F])&&F<4;)A<<=6,A|=D;let I=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,B=I-F;for(;P=p)return 0;if(D=s[P++],(192&D)!=128){P--,O=!0;break}this.interim[F++]=D,A<<=6,A|=63&D}O||(I===2?A<128?P--:d[x++]=A:I===3?A<2048||A>=55296&&A<=57343||A===65279||(d[x++]=A):A<65536||A>1114111||(d[x++]=A)),this.interim.fill(0)}let k=p-4,S=P;for(;S=p)return this.interim[0]=u,x;if(g=s[S++],(192&g)!=128){S--;continue}if(b=(31&u)<<6|63&g,b<128){S--;continue}d[x++]=b}else if((240&u)==224){if(S>=p)return this.interim[0]=u,x;if(g=s[S++],(192&g)!=128){S--;continue}if(S>=p)return this.interim[0]=u,this.interim[1]=g,x;if(C=s[S++],(192&C)!=128){S--;continue}if(b=(15&u)<<12|(63&g)<<6|63&C,b<2048||b>=55296&&b<=57343||b===65279)continue;d[x++]=b}else if((248&u)==240){if(S>=p)return this.interim[0]=u,x;if(g=s[S++],(192&g)!=128){S--;continue}if(S>=p)return this.interim[0]=u,this.interim[1]=g,x;if(C=s[S++],(192&C)!=128){S--;continue}if(S>=p)return this.interim[0]=u,this.interim[1]=g,this.interim[2]=C,x;if(M=s[S++],(192&M)!=128){S--;continue}if(b=(7&u)<<18|(63&g)<<12|(63&C)<<6|63&M,b<65536||b>1114111)continue;d[x++]=b}}return x}}},225:(i,a,s)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.UnicodeV6=void 0;let d=s(1480),p=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],u=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]],g;a.UnicodeV6=class{constructor(){if(this.version="6",!g){g=new Uint8Array(65536),g.fill(1),g[0]=0,g.fill(0,1,32),g.fill(0,127,160),g.fill(2,4352,4448),g[9001]=2,g[9002]=2,g.fill(2,11904,42192),g[12351]=1,g.fill(2,44032,55204),g.fill(2,63744,64256),g.fill(2,65040,65050),g.fill(2,65072,65136),g.fill(2,65280,65377),g.fill(2,65504,65511);for(let C=0;Cx[k][1])return!1;for(;k>=P;)if(b=P+k>>1,M>x[b][1])P=b+1;else{if(!(M=131072&&C<=196605||C>=196608&&C<=262141?2:1}charProperties(C,M){let x=this.wcwidth(C),b=x===0&&M!==0;if(b){let P=d.UnicodeService.extractWidth(M);P===0?b=!1:P>x&&(x=P)}return d.UnicodeService.createPropertyValue(0,x,b)}}},5981:(i,a,s)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.WriteBuffer=void 0;let d=s(8460),p=s(844);class u extends p.Disposable{constructor(C){super(),this._action=C,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this.register(new d.EventEmitter),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(C,M){if(M!==void 0&&this._syncCalls>M)return void(this._syncCalls=0);if(this._pendingData+=C.length,this._writeBuffer.push(C),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;let x;for(this._isSyncWriting=!0;x=this._writeBuffer.shift();){this._action(x);let b=this._callbacks.shift();b&&b()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(C,M){if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput)return this._didUserInput=!1,this._pendingData+=C.length,this._writeBuffer.push(C),this._callbacks.push(M),void this._innerWrite();setTimeout(()=>this._innerWrite())}this._pendingData+=C.length,this._writeBuffer.push(C),this._callbacks.push(M)}_innerWrite(C=0,M=!0){let x=C||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){let b=this._writeBuffer[this._bufferOffset],P=this._action(b,M);if(P){let S=O=>Date.now()-x>=12?setTimeout(()=>this._innerWrite(0,O)):this._innerWrite(x,O);return void P.catch(O=>(queueMicrotask(()=>{throw O}),Promise.resolve(!1))).then(S)}let k=this._callbacks[this._bufferOffset];if(k&&k(),this._bufferOffset++,this._pendingData-=b.length,Date.now()-x>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(()=>this._innerWrite())):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}}a.WriteBuffer=u},5941:(i,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.toRgbString=a.parseColor=void 0;let s=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,d=/^[\da-f]+$/;function p(u,g){let C=u.toString(16),M=C.length<2?"0"+C:C;switch(g){case 4:return C[0];case 8:return M;case 12:return(M+M).slice(0,3);default:return M+M}}a.parseColor=function(u){if(!u)return;let g=u.toLowerCase();if(g.indexOf("rgb:")===0){g=g.slice(4);let C=s.exec(g);if(C){let M=C[1]?15:C[4]?255:C[7]?4095:65535;return[Math.round(parseInt(C[1]||C[4]||C[7]||C[10],16)/M*255),Math.round(parseInt(C[2]||C[5]||C[8]||C[11],16)/M*255),Math.round(parseInt(C[3]||C[6]||C[9]||C[12],16)/M*255)]}}else if(g.indexOf("#")===0&&(g=g.slice(1),d.exec(g)&&[3,6,9,12].includes(g.length))){let C=g.length/3,M=[0,0,0];for(let x=0;x<3;++x){let b=parseInt(g.slice(C*x,C*x+C),16);M[x]=C===1?b<<4:C===2?b:C===3?b>>4:b>>8}return M}},a.toRgbString=function(u,g=16){let[C,M,x]=u;return`rgb:${p(C,g)}/${p(M,g)}/${p(x,g)}`}},5770:(i,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.PAYLOAD_LIMIT=void 0,a.PAYLOAD_LIMIT=1e7},6351:(i,a,s)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.DcsHandler=a.DcsParser=void 0;let d=s(482),p=s(8742),u=s(5770),g=[];a.DcsParser=class{constructor(){this._handlers=Object.create(null),this._active=g,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=g}registerHandler(M,x){this._handlers[M]===void 0&&(this._handlers[M]=[]);let b=this._handlers[M];return b.push(x),{dispose:()=>{let P=b.indexOf(x);P!==-1&&b.splice(P,1)}}}clearHandler(M){this._handlers[M]&&delete this._handlers[M]}setHandlerFallback(M){this._handlerFb=M}reset(){if(this._active.length)for(let M=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;M>=0;--M)this._active[M].unhook(!1);this._stack.paused=!1,this._active=g,this._ident=0}hook(M,x){if(this.reset(),this._ident=M,this._active=this._handlers[M]||g,this._active.length)for(let b=this._active.length-1;b>=0;b--)this._active[b].hook(x);else this._handlerFb(this._ident,"HOOK",x)}put(M,x,b){if(this._active.length)for(let P=this._active.length-1;P>=0;P--)this._active[P].put(M,x,b);else this._handlerFb(this._ident,"PUT",(0,d.utf32ToString)(M,x,b))}unhook(M,x=!0){if(this._active.length){let b=!1,P=this._active.length-1,k=!1;if(this._stack.paused&&(P=this._stack.loopPosition-1,b=x,k=this._stack.fallThrough,this._stack.paused=!1),!k&&b===!1){for(;P>=0&&(b=this._active[P].unhook(M),b!==!0);P--)if(b instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=P,this._stack.fallThrough=!1,b;P--}for(;P>=0;P--)if(b=this._active[P].unhook(!1),b instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=P,this._stack.fallThrough=!0,b}else this._handlerFb(this._ident,"UNHOOK",M);this._active=g,this._ident=0}};let C=new p.Params;C.addParam(0),a.DcsHandler=class{constructor(M){this._handler=M,this._data="",this._params=C,this._hitLimit=!1}hook(M){this._params=M.length>1||M.params[0]?M.clone():C,this._data="",this._hitLimit=!1}put(M,x,b){this._hitLimit||(this._data+=(0,d.utf32ToString)(M,x,b),this._data.length>u.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}unhook(M){let x=!1;if(this._hitLimit)x=!1;else if(M&&(x=this._handler(this._data,this._params),x instanceof Promise))return x.then(b=>(this._params=C,this._data="",this._hitLimit=!1,b));return this._params=C,this._data="",this._hitLimit=!1,x}}},2015:(i,a,s)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.EscapeSequenceParser=a.VT500_TRANSITION_TABLE=a.TransitionTable=void 0;let d=s(844),p=s(8742),u=s(6242),g=s(6351);class C{constructor(P){this.table=new Uint8Array(P)}setDefault(P,k){this.table.fill(P<<4|k)}add(P,k,S,O){this.table[k<<8|P]=S<<4|O}addMany(P,k,S,O){for(let A=0;AI),k=(F,I)=>P.slice(F,I),S=k(32,127),O=k(0,24);O.push(25),O.push.apply(O,k(28,32));let A=k(0,14),D;for(D in b.setDefault(1,0),b.addMany(S,0,2,0),A)b.addMany([24,26,153,154],D,3,0),b.addMany(k(128,144),D,3,0),b.addMany(k(144,152),D,3,0),b.add(156,D,0,0),b.add(27,D,11,1),b.add(157,D,4,8),b.addMany([152,158,159],D,0,7),b.add(155,D,11,3),b.add(144,D,11,9);return b.addMany(O,0,3,0),b.addMany(O,1,3,1),b.add(127,1,0,1),b.addMany(O,8,0,8),b.addMany(O,3,3,3),b.add(127,3,0,3),b.addMany(O,4,3,4),b.add(127,4,0,4),b.addMany(O,6,3,6),b.addMany(O,5,3,5),b.add(127,5,0,5),b.addMany(O,2,3,2),b.add(127,2,0,2),b.add(93,1,4,8),b.addMany(S,8,5,8),b.add(127,8,5,8),b.addMany([156,27,24,26,7],8,6,0),b.addMany(k(28,32),8,0,8),b.addMany([88,94,95],1,0,7),b.addMany(S,7,0,7),b.addMany(O,7,0,7),b.add(156,7,0,0),b.add(127,7,0,7),b.add(91,1,11,3),b.addMany(k(64,127),3,7,0),b.addMany(k(48,60),3,8,4),b.addMany([60,61,62,63],3,9,4),b.addMany(k(48,60),4,8,4),b.addMany(k(64,127),4,7,0),b.addMany([60,61,62,63],4,0,6),b.addMany(k(32,64),6,0,6),b.add(127,6,0,6),b.addMany(k(64,127),6,0,0),b.addMany(k(32,48),3,9,5),b.addMany(k(32,48),5,9,5),b.addMany(k(48,64),5,0,6),b.addMany(k(64,127),5,7,0),b.addMany(k(32,48),4,9,5),b.addMany(k(32,48),1,9,2),b.addMany(k(32,48),2,9,2),b.addMany(k(48,127),2,10,0),b.addMany(k(48,80),1,10,0),b.addMany(k(81,88),1,10,0),b.addMany([89,90,92],1,10,0),b.addMany(k(96,127),1,10,0),b.add(80,1,11,9),b.addMany(O,9,0,9),b.add(127,9,0,9),b.addMany(k(28,32),9,0,9),b.addMany(k(32,48),9,9,12),b.addMany(k(48,60),9,8,10),b.addMany([60,61,62,63],9,9,10),b.addMany(O,11,0,11),b.addMany(k(32,128),11,0,11),b.addMany(k(28,32),11,0,11),b.addMany(O,10,0,10),b.add(127,10,0,10),b.addMany(k(28,32),10,0,10),b.addMany(k(48,60),10,8,10),b.addMany([60,61,62,63],10,0,11),b.addMany(k(32,48),10,9,12),b.addMany(O,12,0,12),b.add(127,12,0,12),b.addMany(k(28,32),12,0,12),b.addMany(k(32,48),12,9,12),b.addMany(k(48,64),12,0,11),b.addMany(k(64,127),12,12,13),b.addMany(k(64,127),10,12,13),b.addMany(k(64,127),9,12,13),b.addMany(O,13,13,13),b.addMany(S,13,13,13),b.add(127,13,0,13),b.addMany([27,156,24,26],13,14,0),b.add(M,0,2,0),b.add(M,8,5,8),b.add(M,6,0,6),b.add(M,11,0,11),b.add(M,13,13,13),b})();class x extends d.Disposable{constructor(P=a.VT500_TRANSITION_TABLE){super(),this._transitions=P,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new p.Params,this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._printHandlerFb=(k,S,O)=>{},this._executeHandlerFb=k=>{},this._csiHandlerFb=(k,S)=>{},this._escHandlerFb=k=>{},this._errorHandlerFb=k=>k,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this.register((0,d.toDisposable)(()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)})),this._oscParser=this.register(new u.OscParser),this._dcsParser=this.register(new g.DcsParser),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},()=>!0)}_identifier(P,k=[64,126]){let S=0;if(P.prefix){if(P.prefix.length>1)throw new Error("only one byte as prefix supported");if(S=P.prefix.charCodeAt(0),S&&60>S||S>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(P.intermediates){if(P.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let A=0;AD||D>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");S<<=8,S|=D}}if(P.final.length!==1)throw new Error("final must be a single byte");let O=P.final.charCodeAt(0);if(k[0]>O||O>k[1])throw new Error(`final must be in range ${k[0]} .. ${k[1]}`);return S<<=8,S|=O,S}identToString(P){let k=[];for(;P;)k.push(String.fromCharCode(255&P)),P>>=8;return k.reverse().join("")}setPrintHandler(P){this._printHandler=P}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(P,k){let S=this._identifier(P,[48,126]);this._escHandlers[S]===void 0&&(this._escHandlers[S]=[]);let O=this._escHandlers[S];return O.push(k),{dispose:()=>{let A=O.indexOf(k);A!==-1&&O.splice(A,1)}}}clearEscHandler(P){this._escHandlers[this._identifier(P,[48,126])]&&delete this._escHandlers[this._identifier(P,[48,126])]}setEscHandlerFallback(P){this._escHandlerFb=P}setExecuteHandler(P,k){this._executeHandlers[P.charCodeAt(0)]=k}clearExecuteHandler(P){this._executeHandlers[P.charCodeAt(0)]&&delete this._executeHandlers[P.charCodeAt(0)]}setExecuteHandlerFallback(P){this._executeHandlerFb=P}registerCsiHandler(P,k){let S=this._identifier(P);this._csiHandlers[S]===void 0&&(this._csiHandlers[S]=[]);let O=this._csiHandlers[S];return O.push(k),{dispose:()=>{let A=O.indexOf(k);A!==-1&&O.splice(A,1)}}}clearCsiHandler(P){this._csiHandlers[this._identifier(P)]&&delete this._csiHandlers[this._identifier(P)]}setCsiHandlerFallback(P){this._csiHandlerFb=P}registerDcsHandler(P,k){return this._dcsParser.registerHandler(this._identifier(P),k)}clearDcsHandler(P){this._dcsParser.clearHandler(this._identifier(P))}setDcsHandlerFallback(P){this._dcsParser.setHandlerFallback(P)}registerOscHandler(P,k){return this._oscParser.registerHandler(P,k)}clearOscHandler(P){this._oscParser.clearHandler(P)}setOscHandlerFallback(P){this._oscParser.setHandlerFallback(P)}setErrorHandler(P){this._errorHandler=P}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingJoinState=0,this._parseStack.state!==0&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(P,k,S,O,A){this._parseStack.state=P,this._parseStack.handlers=k,this._parseStack.handlerPos=S,this._parseStack.transition=O,this._parseStack.chunkPos=A}parse(P,k,S){let O,A=0,D=0,F=0;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,F=this._parseStack.chunkPos+1;else{if(S===void 0||this._parseStack.state===1)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");let I=this._parseStack.handlers,B=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(S===!1&&B>-1){for(;B>=0&&(O=I[B](this._params),O!==!0);B--)if(O instanceof Promise)return this._parseStack.handlerPos=B,O}this._parseStack.handlers=[];break;case 4:if(S===!1&&B>-1){for(;B>=0&&(O=I[B](),O!==!0);B--)if(O instanceof Promise)return this._parseStack.handlerPos=B,O}this._parseStack.handlers=[];break;case 6:if(A=P[this._parseStack.chunkPos],O=this._dcsParser.unhook(A!==24&&A!==26,S),O)return O;A===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(A=P[this._parseStack.chunkPos],O=this._oscParser.end(A!==24&&A!==26,S),O)return O;A===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,F=this._parseStack.chunkPos+1,this.precedingJoinState=0,this.currentState=15&this._parseStack.transition}for(let I=F;I>4){case 2:for(let G=I+1;;++G){if(G>=k||(A=P[G])<32||A>126&&A=k||(A=P[G])<32||A>126&&A=k||(A=P[G])<32||A>126&&A=k||(A=P[G])<32||A>126&&A=0&&(O=B[le](this._params),O!==!0);le--)if(O instanceof Promise)return this._preserveStack(3,B,le,D,I),O;le<0&&this._csiHandlerFb(this._collect<<8|A,this._params),this.precedingJoinState=0;break;case 8:do switch(A){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(A-48)}while(++I47&&A<60);I--;break;case 9:this._collect<<=8,this._collect|=A;break;case 10:let ae=this._escHandlers[this._collect<<8|A],W=ae?ae.length-1:-1;for(;W>=0&&(O=ae[W](),O!==!0);W--)if(O instanceof Promise)return this._preserveStack(4,ae,W,D,I),O;W<0&&this._escHandlerFb(this._collect<<8|A),this.precedingJoinState=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|A,this._params);break;case 13:for(let G=I+1;;++G)if(G>=k||(A=P[G])===24||A===26||A===27||A>127&&A=k||(A=P[G])<32||A>127&&A{Object.defineProperty(a,"__esModule",{value:!0}),a.OscHandler=a.OscParser=void 0;let d=s(5770),p=s(482),u=[];a.OscParser=class{constructor(){this._state=0,this._active=u,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(g,C){this._handlers[g]===void 0&&(this._handlers[g]=[]);let M=this._handlers[g];return M.push(C),{dispose:()=>{let x=M.indexOf(C);x!==-1&&M.splice(x,1)}}}clearHandler(g){this._handlers[g]&&delete this._handlers[g]}setHandlerFallback(g){this._handlerFb=g}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=u}reset(){if(this._state===2)for(let g=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;g>=0;--g)this._active[g].end(!1);this._stack.paused=!1,this._active=u,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||u,this._active.length)for(let g=this._active.length-1;g>=0;g--)this._active[g].start();else this._handlerFb(this._id,"START")}_put(g,C,M){if(this._active.length)for(let x=this._active.length-1;x>=0;x--)this._active[x].put(g,C,M);else this._handlerFb(this._id,"PUT",(0,p.utf32ToString)(g,C,M))}start(){this.reset(),this._state=1}put(g,C,M){if(this._state!==3){if(this._state===1)for(;C0&&this._put(g,C,M)}}end(g,C=!0){if(this._state!==0){if(this._state!==3)if(this._state===1&&this._start(),this._active.length){let M=!1,x=this._active.length-1,b=!1;if(this._stack.paused&&(x=this._stack.loopPosition-1,M=C,b=this._stack.fallThrough,this._stack.paused=!1),!b&&M===!1){for(;x>=0&&(M=this._active[x].end(g),M!==!0);x--)if(M instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=x,this._stack.fallThrough=!1,M;x--}for(;x>=0;x--)if(M=this._active[x].end(!1),M instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=x,this._stack.fallThrough=!0,M}else this._handlerFb(this._id,"END",g);this._active=u,this._id=-1,this._state=0}}},a.OscHandler=class{constructor(g){this._handler=g,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(g,C,M){this._hitLimit||(this._data+=(0,p.utf32ToString)(g,C,M),this._data.length>d.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}end(g){let C=!1;if(this._hitLimit)C=!1;else if(g&&(C=this._handler(this._data),C instanceof Promise))return C.then(M=>(this._data="",this._hitLimit=!1,M));return this._data="",this._hitLimit=!1,C}}},8742:(i,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Params=void 0;let s=2147483647;class d{static fromArray(u){let g=new d;if(!u.length)return g;for(let C=Array.isArray(u[0])?1:0;C256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(u),this.length=0,this._subParams=new Int32Array(g),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(u),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}clone(){let u=new d(this.maxLength,this.maxSubParamsLength);return u.params.set(this.params),u.length=this.length,u._subParams.set(this._subParams),u._subParamsLength=this._subParamsLength,u._subParamsIdx.set(this._subParamsIdx),u._rejectDigits=this._rejectDigits,u._rejectSubDigits=this._rejectSubDigits,u._digitIsSub=this._digitIsSub,u}toArray(){let u=[];for(let g=0;g>8,M=255&this._subParamsIdx[g];M-C>0&&u.push(Array.prototype.slice.call(this._subParams,C,M))}return u}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(u){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(u<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=u>s?s:u}}addSubParam(u){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(u<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=u>s?s:u,this._subParamsIdx[this.length-1]++}}hasSubParams(u){return(255&this._subParamsIdx[u])-(this._subParamsIdx[u]>>8)>0}getSubParams(u){let g=this._subParamsIdx[u]>>8,C=255&this._subParamsIdx[u];return C-g>0?this._subParams.subarray(g,C):null}getSubParamsAll(){let u={};for(let g=0;g>8,M=255&this._subParamsIdx[g];M-C>0&&(u[g]=this._subParams.slice(C,M))}return u}addDigit(u){let g;if(this._rejectDigits||!(g=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;let C=this._digitIsSub?this._subParams:this.params,M=C[g-1];C[g-1]=~M?Math.min(10*M+u,s):u}}a.Params=d},5741:(i,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.AddonManager=void 0,a.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let s=this._addons.length-1;s>=0;s--)this._addons[s].instance.dispose()}loadAddon(s,d){let p={instance:d,dispose:d.dispose,isDisposed:!1};this._addons.push(p),d.dispose=()=>this._wrappedAddonDispose(p),d.activate(s)}_wrappedAddonDispose(s){if(s.isDisposed)return;let d=-1;for(let p=0;p{Object.defineProperty(a,"__esModule",{value:!0}),a.BufferApiView=void 0;let d=s(3785),p=s(511);a.BufferApiView=class{constructor(u,g){this._buffer=u,this.type=g}init(u){return this._buffer=u,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(u){let g=this._buffer.lines.get(u);if(g)return new d.BufferLineApiView(g)}getNullCell(){return new p.CellData}}},3785:(i,a,s)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BufferLineApiView=void 0;let d=s(511);a.BufferLineApiView=class{constructor(p){this._line=p}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(p,u){if(!(p<0||p>=this._line.length))return u?(this._line.loadCell(p,u),u):this._line.loadCell(p,new d.CellData)}translateToString(p,u,g){return this._line.translateToString(p,u,g)}}},8285:(i,a,s)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BufferNamespaceApi=void 0;let d=s(8771),p=s(8460),u=s(844);class g extends u.Disposable{constructor(M){super(),this._core=M,this._onBufferChange=this.register(new p.EventEmitter),this.onBufferChange=this._onBufferChange.event,this._normal=new d.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new d.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(()=>this._onBufferChange.fire(this.active))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}}a.BufferNamespaceApi=g},7975:(i,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ParserApi=void 0,a.ParserApi=class{constructor(s){this._core=s}registerCsiHandler(s,d){return this._core.registerCsiHandler(s,p=>d(p.toArray()))}addCsiHandler(s,d){return this.registerCsiHandler(s,d)}registerDcsHandler(s,d){return this._core.registerDcsHandler(s,(p,u)=>d(p,u.toArray()))}addDcsHandler(s,d){return this.registerDcsHandler(s,d)}registerEscHandler(s,d){return this._core.registerEscHandler(s,d)}addEscHandler(s,d){return this.registerEscHandler(s,d)}registerOscHandler(s,d){return this._core.registerOscHandler(s,d)}addOscHandler(s,d){return this.registerOscHandler(s,d)}}},7090:(i,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.UnicodeApi=void 0,a.UnicodeApi=class{constructor(s){this._core=s}register(s){this._core.unicodeService.register(s)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(s){this._core.unicodeService.activeVersion=s}}},744:function(i,a,s){var d=this&&this.__decorate||function(b,P,k,S){var O,A=arguments.length,D=A<3?P:S===null?S=Object.getOwnPropertyDescriptor(P,k):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")D=Reflect.decorate(b,P,k,S);else for(var F=b.length-1;F>=0;F--)(O=b[F])&&(D=(A<3?O(D):A>3?O(P,k,D):O(P,k))||D);return A>3&&D&&Object.defineProperty(P,k,D),D},p=this&&this.__param||function(b,P){return function(k,S){P(k,S,b)}};Object.defineProperty(a,"__esModule",{value:!0}),a.BufferService=a.MINIMUM_ROWS=a.MINIMUM_COLS=void 0;let u=s(8460),g=s(844),C=s(5295),M=s(2585);a.MINIMUM_COLS=2,a.MINIMUM_ROWS=1;let x=a.BufferService=class extends g.Disposable{get buffer(){return this.buffers.active}constructor(b){super(),this.isUserScrolling=!1,this._onResize=this.register(new u.EventEmitter),this.onResize=this._onResize.event,this._onScroll=this.register(new u.EventEmitter),this.onScroll=this._onScroll.event,this.cols=Math.max(b.rawOptions.cols||0,a.MINIMUM_COLS),this.rows=Math.max(b.rawOptions.rows||0,a.MINIMUM_ROWS),this.buffers=this.register(new C.BufferSet(b,this))}resize(b,P){this.cols=b,this.rows=P,this.buffers.resize(b,P),this._onResize.fire({cols:b,rows:P})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(b,P=!1){let k=this.buffer,S;S=this._cachedBlankLine,S&&S.length===this.cols&&S.getFg(0)===b.fg&&S.getBg(0)===b.bg||(S=k.getBlankLine(b,P),this._cachedBlankLine=S),S.isWrapped=P;let O=k.ybase+k.scrollTop,A=k.ybase+k.scrollBottom;if(k.scrollTop===0){let D=k.lines.isFull;A===k.lines.length-1?D?k.lines.recycle().copyFrom(S):k.lines.push(S.clone()):k.lines.splice(A+1,0,S.clone()),D?this.isUserScrolling&&(k.ydisp=Math.max(k.ydisp-1,0)):(k.ybase++,this.isUserScrolling||k.ydisp++)}else{let D=A-O+1;k.lines.shiftElements(O+1,D-1,-1),k.lines.set(A,S.clone())}this.isUserScrolling||(k.ydisp=k.ybase),this._onScroll.fire(k.ydisp)}scrollLines(b,P,k){let S=this.buffer;if(b<0){if(S.ydisp===0)return;this.isUserScrolling=!0}else b+S.ydisp>=S.ybase&&(this.isUserScrolling=!1);let O=S.ydisp;S.ydisp=Math.max(Math.min(S.ydisp+b,S.ybase),0),O!==S.ydisp&&(P||this._onScroll.fire(S.ydisp))}};a.BufferService=x=d([p(0,M.IOptionsService)],x)},7994:(i,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CharsetService=void 0,a.CharsetService=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(s){this.glevel=s,this.charset=this._charsets[s]}setgCharset(s,d){this._charsets[s]=d,this.glevel===s&&(this.charset=d)}}},1753:function(i,a,s){var d=this&&this.__decorate||function(S,O,A,D){var F,I=arguments.length,B=I<3?O:D===null?D=Object.getOwnPropertyDescriptor(O,A):D;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")B=Reflect.decorate(S,O,A,D);else for(var le=S.length-1;le>=0;le--)(F=S[le])&&(B=(I<3?F(B):I>3?F(O,A,B):F(O,A))||B);return I>3&&B&&Object.defineProperty(O,A,B),B},p=this&&this.__param||function(S,O){return function(A,D){O(A,D,S)}};Object.defineProperty(a,"__esModule",{value:!0}),a.CoreMouseService=void 0;let u=s(2585),g=s(8460),C=s(844),M={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:S=>S.button!==4&&S.action===1&&(S.ctrl=!1,S.alt=!1,S.shift=!1,!0)},VT200:{events:19,restrict:S=>S.action!==32},DRAG:{events:23,restrict:S=>S.action!==32||S.button!==3},ANY:{events:31,restrict:S=>!0}};function x(S,O){let A=(S.ctrl?16:0)|(S.shift?4:0)|(S.alt?8:0);return S.button===4?(A|=64,A|=S.action):(A|=3&S.button,4&S.button&&(A|=64),8&S.button&&(A|=128),S.action===32?A|=32:S.action!==0||O||(A|=3)),A}let b=String.fromCharCode,P={DEFAULT:S=>{let O=[x(S,!1)+32,S.col+32,S.row+32];return O[0]>255||O[1]>255||O[2]>255?"":`\x1B[M${b(O[0])}${b(O[1])}${b(O[2])}`},SGR:S=>{let O=S.action===0&&S.button!==4?"m":"M";return`\x1B[<${x(S,!0)};${S.col};${S.row}${O}`},SGR_PIXELS:S=>{let O=S.action===0&&S.button!==4?"m":"M";return`\x1B[<${x(S,!0)};${S.x};${S.y}${O}`}},k=a.CoreMouseService=class extends C.Disposable{constructor(S,O){super(),this._bufferService=S,this._coreService=O,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._onProtocolChange=this.register(new g.EventEmitter),this.onProtocolChange=this._onProtocolChange.event;for(let A of Object.keys(M))this.addProtocol(A,M[A]);for(let A of Object.keys(P))this.addEncoding(A,P[A]);this.reset()}addProtocol(S,O){this._protocols[S]=O}addEncoding(S,O){this._encodings[S]=O}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return this._protocols[this._activeProtocol].events!==0}set activeProtocol(S){if(!this._protocols[S])throw new Error(`unknown protocol "${S}"`);this._activeProtocol=S,this._onProtocolChange.fire(this._protocols[S].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(S){if(!this._encodings[S])throw new Error(`unknown encoding "${S}"`);this._activeEncoding=S}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}triggerMouseEvent(S){if(S.col<0||S.col>=this._bufferService.cols||S.row<0||S.row>=this._bufferService.rows||S.button===4&&S.action===32||S.button===3&&S.action!==32||S.button!==4&&(S.action===2||S.action===3)||(S.col++,S.row++,S.action===32&&this._lastEvent&&this._equalEvents(this._lastEvent,S,this._activeEncoding==="SGR_PIXELS"))||!this._protocols[this._activeProtocol].restrict(S))return!1;let O=this._encodings[this._activeEncoding](S);return O&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(O):this._coreService.triggerDataEvent(O,!0)),this._lastEvent=S,!0}explainEvents(S){return{down:!!(1&S),up:!!(2&S),drag:!!(4&S),move:!!(8&S),wheel:!!(16&S)}}_equalEvents(S,O,A){if(A){if(S.x!==O.x||S.y!==O.y)return!1}else if(S.col!==O.col||S.row!==O.row)return!1;return S.button===O.button&&S.action===O.action&&S.ctrl===O.ctrl&&S.alt===O.alt&&S.shift===O.shift}};a.CoreMouseService=k=d([p(0,u.IBufferService),p(1,u.ICoreService)],k)},6975:function(i,a,s){var d=this&&this.__decorate||function(k,S,O,A){var D,F=arguments.length,I=F<3?S:A===null?A=Object.getOwnPropertyDescriptor(S,O):A;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")I=Reflect.decorate(k,S,O,A);else for(var B=k.length-1;B>=0;B--)(D=k[B])&&(I=(F<3?D(I):F>3?D(S,O,I):D(S,O))||I);return F>3&&I&&Object.defineProperty(S,O,I),I},p=this&&this.__param||function(k,S){return function(O,A){S(O,A,k)}};Object.defineProperty(a,"__esModule",{value:!0}),a.CoreService=void 0;let u=s(1439),g=s(8460),C=s(844),M=s(2585),x=Object.freeze({insertMode:!1}),b=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0}),P=a.CoreService=class extends C.Disposable{constructor(k,S,O){super(),this._bufferService=k,this._logService=S,this._optionsService=O,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this.register(new g.EventEmitter),this.onData=this._onData.event,this._onUserInput=this.register(new g.EventEmitter),this.onUserInput=this._onUserInput.event,this._onBinary=this.register(new g.EventEmitter),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this.register(new g.EventEmitter),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=(0,u.clone)(x),this.decPrivateModes=(0,u.clone)(b)}reset(){this.modes=(0,u.clone)(x),this.decPrivateModes=(0,u.clone)(b)}triggerDataEvent(k,S=!1){if(this._optionsService.rawOptions.disableStdin)return;let O=this._bufferService.buffer;S&&this._optionsService.rawOptions.scrollOnUserInput&&O.ybase!==O.ydisp&&this._onRequestScrollToBottom.fire(),S&&this._onUserInput.fire(),this._logService.debug(`sending data "${k}"`,()=>k.split("").map(A=>A.charCodeAt(0))),this._onData.fire(k)}triggerBinaryEvent(k){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${k}"`,()=>k.split("").map(S=>S.charCodeAt(0))),this._onBinary.fire(k))}};a.CoreService=P=d([p(0,M.IBufferService),p(1,M.ILogService),p(2,M.IOptionsService)],P)},9074:(i,a,s)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.DecorationService=void 0;let d=s(8055),p=s(8460),u=s(844),g=s(6106),C=0,M=0;class x extends u.Disposable{get decorations(){return this._decorations.values()}constructor(){super(),this._decorations=new g.SortedList(k=>k?.marker.line),this._onDecorationRegistered=this.register(new p.EventEmitter),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this.register(new p.EventEmitter),this.onDecorationRemoved=this._onDecorationRemoved.event,this.register((0,u.toDisposable)(()=>this.reset()))}registerDecoration(k){if(k.marker.isDisposed)return;let S=new b(k);if(S){let O=S.marker.onDispose(()=>S.dispose());S.onDispose(()=>{S&&(this._decorations.delete(S)&&this._onDecorationRemoved.fire(S),O.dispose())}),this._decorations.insert(S),this._onDecorationRegistered.fire(S)}return S}reset(){for(let k of this._decorations.values())k.dispose();this._decorations.clear()}*getDecorationsAtCell(k,S,O){let A=0,D=0;for(let F of this._decorations.getKeyIterator(S))A=F.options.x??0,D=A+(F.options.width??1),k>=A&&k{C=D.options.x??0,M=C+(D.options.width??1),k>=C&&k{Object.defineProperty(a,"__esModule",{value:!0}),a.InstantiationService=a.ServiceCollection=void 0;let d=s(2585),p=s(8343);class u{constructor(...C){this._entries=new Map;for(let[M,x]of C)this.set(M,x)}set(C,M){let x=this._entries.get(C);return this._entries.set(C,M),x}forEach(C){for(let[M,x]of this._entries.entries())C(M,x)}has(C){return this._entries.has(C)}get(C){return this._entries.get(C)}}a.ServiceCollection=u,a.InstantiationService=class{constructor(){this._services=new u,this._services.set(d.IInstantiationService,this)}setService(g,C){this._services.set(g,C)}getService(g){return this._services.get(g)}createInstance(g,...C){let M=(0,p.getServiceDependencies)(g).sort((P,k)=>P.index-k.index),x=[];for(let P of M){let k=this._services.get(P.id);if(!k)throw new Error(`[createInstance] ${g.name} depends on UNKNOWN service ${P.id}.`);x.push(k)}let b=M.length>0?M[0].index:C.length;if(C.length!==b)throw new Error(`[createInstance] First service dependency of ${g.name} at position ${b+1} conflicts with ${C.length} static arguments`);return new g(...C,...x)}}},7866:function(i,a,s){var d=this&&this.__decorate||function(b,P,k,S){var O,A=arguments.length,D=A<3?P:S===null?S=Object.getOwnPropertyDescriptor(P,k):S;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")D=Reflect.decorate(b,P,k,S);else for(var F=b.length-1;F>=0;F--)(O=b[F])&&(D=(A<3?O(D):A>3?O(P,k,D):O(P,k))||D);return A>3&&D&&Object.defineProperty(P,k,D),D},p=this&&this.__param||function(b,P){return function(k,S){P(k,S,b)}};Object.defineProperty(a,"__esModule",{value:!0}),a.traceCall=a.setTraceLogger=a.LogService=void 0;let u=s(844),g=s(2585),C={trace:g.LogLevelEnum.TRACE,debug:g.LogLevelEnum.DEBUG,info:g.LogLevelEnum.INFO,warn:g.LogLevelEnum.WARN,error:g.LogLevelEnum.ERROR,off:g.LogLevelEnum.OFF},M,x=a.LogService=class extends u.Disposable{get logLevel(){return this._logLevel}constructor(b){super(),this._optionsService=b,this._logLevel=g.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange("logLevel",()=>this._updateLogLevel())),M=this}_updateLogLevel(){this._logLevel=C[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(b){for(let P=0;PJSON.stringify(D)).join(", ")})`);let A=S.apply(this,O);return M.trace(`GlyphRenderer#${S.name} return`,A),A}}},7302:(i,a,s)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.OptionsService=a.DEFAULT_OPTIONS=void 0;let d=s(8460),p=s(844),u=s(6114);a.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,cursorInactiveStyle:"outline",customGlyphs:!0,drawBoldTextInBrightColors:!0,documentOverride:null,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",ignoreBracketedPasteMode:!1,lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",logger:null,scrollback:1e3,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rescaleOverlappingGlyphs:!1,rightClickSelectsWord:u.isMac,windowOptions:{},windowsMode:!1,windowsPty:{},wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0};let g=["normal","bold","100","200","300","400","500","600","700","800","900"];class C extends p.Disposable{constructor(x){super(),this._onOptionChange=this.register(new d.EventEmitter),this.onOptionChange=this._onOptionChange.event;let b=q({},a.DEFAULT_OPTIONS);for(let P in x)if(P in b)try{let k=x[P];b[P]=this._sanitizeAndValidateOption(P,k)}catch(k){console.error(k)}this.rawOptions=b,this.options=q({},b),this._setupOptions(),this.register((0,p.toDisposable)(()=>{this.rawOptions.linkHandler=null,this.rawOptions.documentOverride=null}))}onSpecificOptionChange(x,b){return this.onOptionChange(P=>{P===x&&b(this.rawOptions[x])})}onMultipleOptionChange(x,b){return this.onOptionChange(P=>{x.indexOf(P)!==-1&&b()})}_setupOptions(){let x=P=>{if(!(P in a.DEFAULT_OPTIONS))throw new Error(`No option with key "${P}"`);return this.rawOptions[P]},b=(P,k)=>{if(!(P in a.DEFAULT_OPTIONS))throw new Error(`No option with key "${P}"`);k=this._sanitizeAndValidateOption(P,k),this.rawOptions[P]!==k&&(this.rawOptions[P]=k,this._onOptionChange.fire(P))};for(let P in this.rawOptions){let k={get:x.bind(this,P),set:b.bind(this,P)};Object.defineProperty(this.options,P,k)}}_sanitizeAndValidateOption(x,b){switch(x){case"cursorStyle":if(b||(b=a.DEFAULT_OPTIONS[x]),!(function(P){return P==="block"||P==="underline"||P==="bar"})(b))throw new Error(`"${b}" is not a valid value for ${x}`);break;case"wordSeparator":b||(b=a.DEFAULT_OPTIONS[x]);break;case"fontWeight":case"fontWeightBold":if(typeof b=="number"&&1<=b&&b<=1e3)break;b=g.includes(b)?b:a.DEFAULT_OPTIONS[x];break;case"cursorWidth":b=Math.floor(b);case"lineHeight":case"tabStopWidth":if(b<1)throw new Error(`${x} cannot be less than 1, value: ${b}`);break;case"minimumContrastRatio":b=Math.max(1,Math.min(21,Math.round(10*b)/10));break;case"scrollback":if((b=Math.min(b,4294967295))<0)throw new Error(`${x} cannot be less than 0, value: ${b}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(b<=0)throw new Error(`${x} cannot be less than or equal to 0, value: ${b}`);break;case"rows":case"cols":if(!b&&b!==0)throw new Error(`${x} must be numeric, value: ${b}`);break;case"windowsPty":b=b??{}}return b}}a.OptionsService=C},2660:function(i,a,s){var d=this&&this.__decorate||function(C,M,x,b){var P,k=arguments.length,S=k<3?M:b===null?b=Object.getOwnPropertyDescriptor(M,x):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")S=Reflect.decorate(C,M,x,b);else for(var O=C.length-1;O>=0;O--)(P=C[O])&&(S=(k<3?P(S):k>3?P(M,x,S):P(M,x))||S);return k>3&&S&&Object.defineProperty(M,x,S),S},p=this&&this.__param||function(C,M){return function(x,b){M(x,b,C)}};Object.defineProperty(a,"__esModule",{value:!0}),a.OscLinkService=void 0;let u=s(2585),g=a.OscLinkService=class{constructor(C){this._bufferService=C,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(C){let M=this._bufferService.buffer;if(C.id===void 0){let O=M.addMarker(M.ybase+M.y),A={data:C,id:this._nextId++,lines:[O]};return O.onDispose(()=>this._removeMarkerFromLink(A,O)),this._dataByLinkId.set(A.id,A),A.id}let x=C,b=this._getEntryIdKey(x),P=this._entriesWithId.get(b);if(P)return this.addLineToLink(P.id,M.ybase+M.y),P.id;let k=M.addMarker(M.ybase+M.y),S={id:this._nextId++,key:this._getEntryIdKey(x),data:x,lines:[k]};return k.onDispose(()=>this._removeMarkerFromLink(S,k)),this._entriesWithId.set(S.key,S),this._dataByLinkId.set(S.id,S),S.id}addLineToLink(C,M){let x=this._dataByLinkId.get(C);if(x&&x.lines.every(b=>b.line!==M)){let b=this._bufferService.buffer.addMarker(M);x.lines.push(b),b.onDispose(()=>this._removeMarkerFromLink(x,b))}}getLinkData(C){return this._dataByLinkId.get(C)?.data}_getEntryIdKey(C){return`${C.id};;${C.uri}`}_removeMarkerFromLink(C,M){let x=C.lines.indexOf(M);x!==-1&&(C.lines.splice(x,1),C.lines.length===0&&(C.data.id!==void 0&&this._entriesWithId.delete(C.key),this._dataByLinkId.delete(C.id)))}};a.OscLinkService=g=d([p(0,u.IBufferService)],g)},8343:(i,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.createDecorator=a.getServiceDependencies=a.serviceRegistry=void 0;let s="di$target",d="di$dependencies";a.serviceRegistry=new Map,a.getServiceDependencies=function(p){return p[d]||[]},a.createDecorator=function(p){if(a.serviceRegistry.has(p))return a.serviceRegistry.get(p);let u=function(g,C,M){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");(function(x,b,P){b[s]===b?b[d].push({id:x,index:P}):(b[d]=[{id:x,index:P}],b[s]=b)})(u,g,M)};return u.toString=()=>p,a.serviceRegistry.set(p,u),u}},2585:(i,a,s)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.IDecorationService=a.IUnicodeService=a.IOscLinkService=a.IOptionsService=a.ILogService=a.LogLevelEnum=a.IInstantiationService=a.ICharsetService=a.ICoreService=a.ICoreMouseService=a.IBufferService=void 0;let d=s(8343);var p;a.IBufferService=(0,d.createDecorator)("BufferService"),a.ICoreMouseService=(0,d.createDecorator)("CoreMouseService"),a.ICoreService=(0,d.createDecorator)("CoreService"),a.ICharsetService=(0,d.createDecorator)("CharsetService"),a.IInstantiationService=(0,d.createDecorator)("InstantiationService"),(function(u){u[u.TRACE=0]="TRACE",u[u.DEBUG=1]="DEBUG",u[u.INFO=2]="INFO",u[u.WARN=3]="WARN",u[u.ERROR=4]="ERROR",u[u.OFF=5]="OFF"})(p||(a.LogLevelEnum=p={})),a.ILogService=(0,d.createDecorator)("LogService"),a.IOptionsService=(0,d.createDecorator)("OptionsService"),a.IOscLinkService=(0,d.createDecorator)("OscLinkService"),a.IUnicodeService=(0,d.createDecorator)("UnicodeService"),a.IDecorationService=(0,d.createDecorator)("DecorationService")},1480:(i,a,s)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.UnicodeService=void 0;let d=s(8460),p=s(225);class u{static extractShouldJoin(C){return(1&C)!=0}static extractWidth(C){return C>>1&3}static extractCharKind(C){return C>>3}static createPropertyValue(C,M,x=!1){return(16777215&C)<<3|(3&M)<<1|(x?1:0)}constructor(){this._providers=Object.create(null),this._active="",this._onChange=new d.EventEmitter,this.onChange=this._onChange.event;let C=new p.UnicodeV6;this.register(C),this._active=C.version,this._activeProvider=C}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(C){if(!this._providers[C])throw new Error(`unknown Unicode version "${C}"`);this._active=C,this._activeProvider=this._providers[C],this._onChange.fire(C)}register(C){this._providers[C.version]=C}wcwidth(C){return this._activeProvider.wcwidth(C)}getStringCellWidth(C){let M=0,x=0,b=C.length;for(let P=0;P=b)return M+this.wcwidth(k);let A=C.charCodeAt(P);56320<=A&&A<=57343?k=1024*(k-55296)+A-56320+65536:M+=this.wcwidth(A)}let S=this.charProperties(k,x),O=u.extractWidth(S);u.extractShouldJoin(S)&&(O-=u.extractWidth(x)),M+=O,x=S}return M}charProperties(C,M){return this._activeProvider.charProperties(C,M)}}a.UnicodeService=u}},o={};function e(i){var a=o[i];if(a!==void 0)return a.exports;var s=o[i]={exports:{}};return n[i].call(s.exports,s,s.exports,e),s.exports}var t={};return(()=>{var i=t;Object.defineProperty(i,"__esModule",{value:!0}),i.Terminal=void 0;let a=e(9042),s=e(3236),d=e(844),p=e(5741),u=e(8285),g=e(7975),C=e(7090),M=["cols","rows"];class x extends d.Disposable{constructor(P){super(),this._core=this.register(new s.Terminal(P)),this._addonManager=this.register(new p.AddonManager),this._publicOptions=q({},this._core.options);let k=O=>this._core.options[O],S=(O,A)=>{this._checkReadonlyOptions(O),this._core.options[O]=A};for(let O in this._core.options){let A={get:k.bind(this,O),set:S.bind(this,O)};Object.defineProperty(this._publicOptions,O,A)}}_checkReadonlyOptions(P){if(M.includes(P))throw new Error(`Option "${P}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||(this._parser=new g.ParserApi(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new C.UnicodeApi(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||(this._buffer=this.register(new u.BufferNamespaceApi(this._core))),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){let P=this._core.coreService.decPrivateModes,k="none";switch(this._core.coreMouseService.activeProtocol){case"X10":k="x10";break;case"VT200":k="vt200";break;case"DRAG":k="drag";break;case"ANY":k="any"}return{applicationCursorKeysMode:P.applicationCursorKeys,applicationKeypadMode:P.applicationKeypad,bracketedPasteMode:P.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:k,originMode:P.origin,reverseWraparoundMode:P.reverseWraparound,sendFocusMode:P.sendFocus,wraparoundMode:P.wraparound}}get options(){return this._publicOptions}set options(P){for(let k in P)this._publicOptions[k]=P[k]}blur(){this._core.blur()}focus(){this._core.focus()}input(P,k=!0){this._core.input(P,k)}resize(P,k){this._verifyIntegers(P,k),this._core.resize(P,k)}open(P){this._core.open(P)}attachCustomKeyEventHandler(P){this._core.attachCustomKeyEventHandler(P)}attachCustomWheelEventHandler(P){this._core.attachCustomWheelEventHandler(P)}registerLinkProvider(P){return this._core.registerLinkProvider(P)}registerCharacterJoiner(P){return this._checkProposedApi(),this._core.registerCharacterJoiner(P)}deregisterCharacterJoiner(P){this._checkProposedApi(),this._core.deregisterCharacterJoiner(P)}registerMarker(P=0){return this._verifyIntegers(P),this._core.registerMarker(P)}registerDecoration(P){return this._checkProposedApi(),this._verifyPositiveIntegers(P.x??0,P.width??0,P.height??0),this._core.registerDecoration(P)}hasSelection(){return this._core.hasSelection()}select(P,k,S){this._verifyIntegers(P,k,S),this._core.select(P,k,S)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(P,k){this._verifyIntegers(P,k),this._core.selectLines(P,k)}dispose(){super.dispose()}scrollLines(P){this._verifyIntegers(P),this._core.scrollLines(P)}scrollPages(P){this._verifyIntegers(P),this._core.scrollPages(P)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(P){this._verifyIntegers(P),this._core.scrollToLine(P)}clear(){this._core.clear()}write(P,k){this._core.write(P,k)}writeln(P,k){this._core.write(P),this._core.write(`\r +`,k)}paste(P){this._core.paste(P)}refresh(P,k){this._verifyIntegers(P,k),this._core.refresh(P,k)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(P){this._addonManager.loadAddon(this,P)}static get strings(){return a}_verifyIntegers(...P){for(let k of P)if(k===1/0||isNaN(k)||k%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...P){for(let k of P)if(k&&(k===1/0||isNaN(k)||k%1!=0||k<0))throw new Error("This API only accepts positive integers")}}i.Terminal=x})(),t})())});var A4=al((p2,I4)=>{(function(n,o){typeof p2=="object"&&typeof I4=="object"?I4.exports=o():typeof define=="function"&&define.amd?define([],o):typeof p2=="object"?p2.FitAddon=o():n.FitAddon=o()})(self,()=>(()=>{"use strict";var n={};return(()=>{var o=n;Object.defineProperty(o,"__esModule",{value:!0}),o.FitAddon=void 0,o.FitAddon=class{activate(e){this._terminal=e}dispose(){}fit(){let e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;let t=this._terminal._core;this._terminal.rows===e.rows&&this._terminal.cols===e.cols||(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;let e=this._terminal._core,t=e._renderService.dimensions;if(t.css.cell.width===0||t.css.cell.height===0)return;let i=this._terminal.options.scrollback===0?0:e.viewport.scrollBarWidth,a=window.getComputedStyle(this._terminal.element.parentElement),s=parseInt(a.getPropertyValue("height")),d=Math.max(0,parseInt(a.getPropertyValue("width"))),p=window.getComputedStyle(this._terminal.element),u=s-(parseInt(p.getPropertyValue("padding-top"))+parseInt(p.getPropertyValue("padding-bottom"))),g=d-(parseInt(p.getPropertyValue("padding-right"))+parseInt(p.getPropertyValue("padding-left")))-i;return{cols:Math.max(2,Math.floor(g/t.css.cell.width)),rows:Math.max(1,Math.floor(u/t.css.cell.height))}}}})(),n})())});var D5=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g"),Ag=class n{element=null;classNames=[];attrs=[];notSelectors=[];static parse(o){let e=[],t=(p,u)=>{u.notSelectors.length>0&&!u.element&&u.classNames.length==0&&u.attrs.length==0&&(u.element="*"),p.push(u)},i=new n,a,s=i,d=!1;for(D5.lastIndex=0;a=D5.exec(o);){if(a[1]){if(d)throw new Error("Nesting :not in a selector is not allowed");d=!0,s=new n,i.notSelectors.push(s)}let p=a[2];if(p){let g=a[3];g==="#"?s.addAttribute("id",p.slice(1)):g==="."?s.addClassName(p.slice(1)):s.setElement(p)}let u=a[4];if(u&&s.addAttribute(s.unescapeAttribute(u),a[6]),a[7]&&(d=!1,s=i),a[8]){if(d)throw new Error("Multiple selectors in :not are not supported");t(e,i),i=s=new n}}return t(e,i),e}unescapeAttribute(o){let e="",t=!1;for(let i=0;i0&&o.push("class",this.classNames.join(" ")),o.concat(this.attrs)}addAttribute(o,e=""){this.attrs.push(o,e&&e.toLowerCase()||"")}addClassName(o){this.classNames.push(o.toLowerCase())}toString(){let o=this.element||"";if(this.classNames&&this.classNames.forEach(e=>o+=`.${e}`),this.attrs)for(let e=0;eo+=`:not(${e})`),o}},kb=class n{static createNotMatcher(o){let e=new n;return e.addSelectables(o,null),e}_elementMap=new Map;_elementPartialMap=new Map;_classMap=new Map;_classPartialMap=new Map;_attrValueMap=new Map;_attrValuePartialMap=new Map;_listContexts=[];addSelectables(o,e){let t=null;o.length>1&&(t=new pP(o),this._listContexts.push(t));for(let i=0;i0&&(!this.listContext||!this.listContext.alreadyMatched)&&(t=!kb.createNotMatcher(this.notSelectors).match(o,null)),t&&e&&(!this.listContext||!this.listContext.alreadyMatched)&&(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),t}},Pb=class{registry;constructor(o){this.registry=o}match(o){return this.registry.has(o)?this.registry.get(o):[]}},gi=(function(n){return n[n.NONE=0]="NONE",n[n.HTML=1]="HTML",n[n.STYLE=2]="STYLE",n[n.SCRIPT=3]="SCRIPT",n[n.URL=4]="URL",n[n.RESOURCE_URL=5]="RESOURCE_URL",n[n.ATTRIBUTE_NO_BINDING=6]="ATTRIBUTE_NO_BINDING",n})(gi||{}),bb,I5="svg",$H="math";function HH(){return bb||(bb={},fm(gi.HTML,void 0,[["iframe",["srcdoc"]],["*",["innerHTML","outerHTML"]]]),fm(gi.STYLE,void 0,[["*",["style"]]]),fm(gi.URL,void 0,[["*",["formAction"]],["area",["href"]],["a",["href","xlink:href"]],["form",["action"]],["img",["src"]],["video",["src"]]]),fm(gi.URL,$H,[["*",["href","xlink:href"]],["annotation",["href","xlink:href"]],["annotation-xml",["href","xlink:href"]],["maction",["href","xlink:href"]],["malignmark",["href","xlink:href"]],["math",["href","xlink:href"]],["mroot",["href","xlink:href"]],["msqrt",["href","xlink:href"]],["merror",["href","xlink:href"]],["mfrac",["href","xlink:href"]],["mglyph",["href","xlink:href"]],["msub",["href","xlink:href"]],["msup",["href","xlink:href"]],["msubsup",["href","xlink:href"]],["mmultiscripts",["href","xlink:href"]],["mprescripts",["href","xlink:href"]],["mi",["href","xlink:href"]],["mn",["href","xlink:href"]],["mo",["href","xlink:href"]],["mpadded",["href","xlink:href"]],["mphantom",["href","xlink:href"]],["mrow",["href","xlink:href"]],["ms",["href","xlink:href"]],["mspace",["href","xlink:href"]],["mstyle",["href","xlink:href"]],["mtable",["href","xlink:href"]],["mtd",["href","xlink:href"]],["mtr",["href","xlink:href"]],["mtext",["href","xlink:href"]],["mover",["href","xlink:href"]],["munder",["href","xlink:href"]],["munderover",["href","xlink:href"]],["semantics",["href","xlink:href"]],["none",["href","xlink:href"]]]),fm(gi.RESOURCE_URL,void 0,[["base",["href"]],["embed",["src"]],["frame",["src"]],["iframe",["src"]],["link",["href"]],["object",["codebase","data"]]]),fm(gi.URL,I5,[["a",["href","xlink:href"]]]),fm(gi.ATTRIBUTE_NO_BINDING,I5,[["animate",["attributeName","values","to","from"]],["set",["to","attributeName"]],["animateMotion",["attributeName"]],["animateTransform",["attributeName"]]]),fm(gi.ATTRIBUTE_NO_BINDING,void 0,[["unknown",["attributeName","values","to","from","sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority"]],["iframe",["sandbox","allow","allowFullscreen","referrerPolicy","csp","fetchPriority"]]])),bb}function fm(n,o,e){for(let[t,i]of e){let a=o&&t!=="unknown"?`:${o}:${t}`:t;a=a.toLowerCase();for(let s of i)bb[`${a}|${s.toLowerCase()}`]=n}}var $p=(function(n){return n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",n[n.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",n})($p||{}),$3=(function(n){return n[n.OnPush=0]="OnPush",n[n.Default=1]="Default",n[n.Eager=1]="Eager",n})($3||{}),yf=(function(n){return n[n.None=0]="None",n[n.SignalBased=1]="SignalBased",n[n.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",n})(yf||{}),A5={name:"custom-elements"},N5={name:"no-errors-schema"};function UH(n){let o=n.classNames&&n.classNames.length?[8,...n.classNames]:[];return[n.element&&n.element!=="*"?n.element:"",...n.attrs,...o]}function WH(n){let o=n.classNames&&n.classNames.length?[8,...n.classNames]:[];return n.element?[5,n.element,...n.attrs,...o]:n.attrs.length?[3,...n.attrs,...o]:n.classNames&&n.classNames.length?[9,...n.classNames]:[]}function GH(n){let o=UH(n),e=n.notSelectors&&n.notSelectors.length?n.notSelectors.map(t=>WH(t)):[];return o.concat(...e)}function H3(n){return n?Ag.parse(n).map(GH):[]}var Ed=(function(n){return n[n.Directive=0]="Directive",n[n.Component=1]="Component",n[n.Injectable=2]="Injectable",n[n.Pipe=3]="Pipe",n[n.NgModule=4]="NgModule",n})(Ed||{});var Tb;function qH(n){return YH(XH(n.nodes).join("")+`[${n.meaning}]`)}function QH(n){return n.id||PN(n)}function PN(n){let o=new gP,e=n.nodes.map(t=>t.visit(o,null));return TN(e.join(""),n.meaning)}var Eb=class{visitText(o,e){return o.value}visitContainer(o,e){return`[${o.children.map(t=>t.visit(this)).join(", ")}]`}visitIcu(o,e){let t=Object.keys(o.cases).map(i=>`${i} {${o.cases[i].visit(this)}}`);return`{${o.expression}, ${o.type}, ${t.join(", ")}}`}visitTagPlaceholder(o,e){return o.isVoid?``:`${o.children.map(t=>t.visit(this)).join(", ")}`}visitPlaceholder(o,e){return o.value?`${o.value}`:``}visitIcuPlaceholder(o,e){return`${o.value.visit(this)}`}visitBlockPlaceholder(o,e){return`${o.children.map(t=>t.visit(this)).join(", ")}`}},KH=new Eb;function XH(n){return n.map(o=>o.visit(KH,null))}var gP=class extends Eb{visitIcu(o){let e=Object.keys(o.cases).map(t=>`${t} {${o.cases[t].visit(this)}}`);return`{${o.type}, ${e.join(", ")}}`}};function YH(n){Tb??=new TextEncoder;let o=[...Tb.encode(n)],e=eU(o,U3.Big),t=o.length*8,i=new Uint32Array(80),a=1732584193,s=4023233417,d=2562383102,p=271733878,u=3285377520;e[t>>5]|=128<<24-t%32,e[(t+64>>9<<4)+15]=t;for(let g=0;g>>0).toString(16).padStart(8,"0")}function ZH(n,o,e,t){return n<20?[o&e|~o&t,1518500249]:n<40?[o^e^t,1859775393]:n<60?[o&e|o&t|e&t,2400959708]:[o^e^t,3395469782]}function F5(n){Tb??=new TextEncoder;let o=Tb.encode(n),e=new DataView(o.buffer,o.byteOffset,o.byteLength),t=R5(e,o.length,0),i=R5(e,o.length,102072);return t==0&&(i==0||i==1)&&(t=t^319790063,i=i^-1801410264),BigInt.asUintN(32,BigInt(t))<>BigInt(63)&BigInt(1),e+=F5(o)),BigInt.asUintN(63,e).toString()}function R5(n,o,e){let t=2654435769,i=2654435769,a=0,s=o-12;for(;a<=s;a+=12){t+=n.getUint32(a,!0),i+=n.getUint32(a+4,!0),e+=n.getUint32(a+8,!0);let p=z5(t,i,e);t=p[0],i=p[1],e=p[2]}let d=o-a;return e+=o,d>=4?(t+=n.getUint32(a,!0),a+=4,d>=8?(i+=n.getUint32(a,!0),a+=4,d>=9&&(e+=n.getUint8(a++)<<8),d>=10&&(e+=n.getUint8(a++)<<16),d===11&&(e+=n.getUint8(a++)<<24)):(d>=5&&(i+=n.getUint8(a++)),d>=6&&(i+=n.getUint8(a++)<<8),d===7&&(i+=n.getUint8(a++)<<16))):(d>=1&&(t+=n.getUint8(a++)),d>=2&&(t+=n.getUint8(a++)<<8),d===3&&(t+=n.getUint8(a++)<<16)),z5(t,i,e)[2]}function z5(n,o,e){return n-=o,n-=e,n^=e>>>13,o-=e,o-=n,o^=n<<8,e-=n,e-=o,e^=o>>>13,n-=o,n-=e,n^=e>>>12,o-=e,o-=n,o^=n<<16,e-=n,e-=o,e^=o>>>5,n-=o,n-=e,n^=e>>>3,o-=e,o-=n,o^=n<<10,e-=n,e-=o,e^=o>>>15,[n,o,e]}var U3=(function(n){return n[n.Little=0]="Little",n[n.Big=1]="Big",n})(U3||{});function _g(n,o){return JH(n,o)[1]}function JH(n,o){let e=(n&65535)+(o&65535),t=(n>>>16)+(o>>>16)+(e>>>16);return[t>>>16,t<<16|e&65535]}function Wk(n,o){return n<>>32-o}function eU(n,o){let e=n.length+3>>>2,t=[];for(let i=0;i=n.length?0:n[o]}function tU(n,o,e){let t=0;if(e===U3.Big)for(let i=0;i<4;i++)t+=L5(n,o+i)<<24-8*i;else for(let i=0;i<4;i++)t+=L5(n,o+i)<<8*i;return t}var EN=(function(n){return n[n.None=0]="None",n[n.Const=1]="Const",n})(EN||{}),Ob=class{modifiers;constructor(o=EN.None){this.modifiers=o}hasModifier(o){return(this.modifiers&o)!==0}},Ld=(function(n){return n[n.Dynamic=0]="Dynamic",n[n.Bool=1]="Bool",n[n.String=2]="String",n[n.Int=3]="Int",n[n.Number=4]="Number",n[n.Function=5]="Function",n[n.Inferred=6]="Inferred",n[n.None=7]="None",n})(Ld||{}),Vc=class extends Ob{name;constructor(o,e){super(e),this.name=o}visitType(o,e){return o.visitBuiltinType(this,e)}},xl=class extends Ob{value;typeParams;constructor(o,e,t=null){super(e),this.value=o,this.typeParams=t}visitType(o,e){return o.visitExpressionType(this,e)}};var ws=new Vc(Ld.Dynamic),ic=new Vc(Ld.Inferred),nU=new Vc(Ld.Bool),mHe=new Vc(Ld.Int),iu=new Vc(Ld.Number),W3=new Vc(Ld.String),pHe=new Vc(Ld.Function),Bc=new Vc(Ld.None),zf=(function(n){return n[n.Minus=0]="Minus",n[n.Plus=1]="Plus",n})(zf||{}),lt=(function(n){return n[n.Equals=0]="Equals",n[n.NotEquals=1]="NotEquals",n[n.Assign=2]="Assign",n[n.Identical=3]="Identical",n[n.NotIdentical=4]="NotIdentical",n[n.Minus=5]="Minus",n[n.Plus=6]="Plus",n[n.Divide=7]="Divide",n[n.Multiply=8]="Multiply",n[n.Modulo=9]="Modulo",n[n.And=10]="And",n[n.Or=11]="Or",n[n.BitwiseOr=12]="BitwiseOr",n[n.BitwiseAnd=13]="BitwiseAnd",n[n.Lower=14]="Lower",n[n.LowerEquals=15]="LowerEquals",n[n.Bigger=16]="Bigger",n[n.BiggerEquals=17]="BiggerEquals",n[n.NullishCoalesce=18]="NullishCoalesce",n[n.Exponentiation=19]="Exponentiation",n[n.In=20]="In",n[n.InstanceOf=21]="InstanceOf",n[n.AdditionAssignment=22]="AdditionAssignment",n[n.SubtractionAssignment=23]="SubtractionAssignment",n[n.MultiplicationAssignment=24]="MultiplicationAssignment",n[n.DivisionAssignment=25]="DivisionAssignment",n[n.RemainderAssignment=26]="RemainderAssignment",n[n.ExponentiationAssignment=27]="ExponentiationAssignment",n[n.AndAssignment=28]="AndAssignment",n[n.OrAssignment=29]="OrAssignment",n[n.NullishCoalesceAssignment=30]="NullishCoalesceAssignment",n})(lt||{});function iU(n,o){return n==null||o==null?n==o:n.isEquivalent(o)}function ON(n,o,e){let t=n.length;if(t!==o.length)return!1;for(let i=0;ie.isEquivalent(t))}var Qi=class{type;sourceSpan;constructor(o,e){this.type=o||null,this.sourceSpan=e||null}prop(o,e){return new Xs(this,o,null,e)}key(o,e,t){return new Fd(this,o,e,t)}callFn(o,e,t){return new Ms(this,o,null,e,t)}instantiate(o,e,t){return new Vf(this,o,e,t)}conditional(o,e=null,t){return new jc(this,o,e,null,t)}equals(o,e){return new Pi(lt.Equals,this,o,null,e)}notEquals(o,e){return new Pi(lt.NotEquals,this,o,null,e)}identical(o,e){return new Pi(lt.Identical,this,o,null,e)}notIdentical(o,e){return new Pi(lt.NotIdentical,this,o,null,e)}minus(o,e){return new Pi(lt.Minus,this,o,null,e)}plus(o,e){return new Pi(lt.Plus,this,o,null,e)}divide(o,e){return new Pi(lt.Divide,this,o,null,e)}multiply(o,e){return new Pi(lt.Multiply,this,o,null,e)}modulo(o,e){return new Pi(lt.Modulo,this,o,null,e)}power(o,e){return new Pi(lt.Exponentiation,this,o,null,e)}and(o,e){return new Pi(lt.And,this,o,null,e)}bitwiseOr(o,e){return new Pi(lt.BitwiseOr,this,o,null,e)}bitwiseAnd(o,e){return new Pi(lt.BitwiseAnd,this,o,null,e)}or(o,e){return new Pi(lt.Or,this,o,null,e)}lower(o,e){return new Pi(lt.Lower,this,o,null,e)}lowerEquals(o,e){return new Pi(lt.LowerEquals,this,o,null,e)}bigger(o,e){return new Pi(lt.Bigger,this,o,null,e)}biggerEquals(o,e){return new Pi(lt.BiggerEquals,this,o,null,e)}isBlank(o){return this.equals(lU,o)}nullishCoalesce(o,e){return new Pi(lt.NullishCoalesce,this,o,null,e)}toStmt(){return new fr(this,null)}},oc=class n extends Qi{name;constructor(o,e,t){super(e,t),this.name=o}isEquivalent(o){return o instanceof n&&this.name===o.name}isConstant(){return!1}visitExpression(o,e){return o.visitReadVarExpr(this,e)}clone(){return new n(this.name,this.type,this.sourceSpan)}set(o){return new Pi(lt.Assign,this,o,null,this.sourceSpan)}},Ng=class n extends Qi{expr;constructor(o,e,t){super(e,t),this.expr=o}visitExpression(o,e){return o.visitTypeofExpr(this,e)}isEquivalent(o){return o instanceof n&&o.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new n(this.expr.clone())}},Db=class n extends Qi{expr;constructor(o,e,t){super(e,t),this.expr=o}visitExpression(o,e){return o.visitVoidExpr(this,e)}isEquivalent(o){return o instanceof n&&o.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new n(this.expr.clone())}},_i=class n extends Qi{node;constructor(o,e,t){super(e,t),this.node=o}isEquivalent(o){return o instanceof n&&this.node===o.node}isConstant(){return!1}visitExpression(o,e){return o.visitWrappedNodeExpr(this,e)}clone(){return new n(this.node,this.type,this.sourceSpan)}},Ms=class n extends Qi{fn;args;pure;constructor(o,e,t,i,a=!1){super(t,i),this.fn=o,this.args=e,this.pure=a}get receiver(){return this.fn}isEquivalent(o){return o instanceof n&&this.fn.isEquivalent(o.fn)&&Ks(this.args,o.args)&&this.pure===o.pure}isConstant(){return!1}visitExpression(o,e){return o.visitInvokeFunctionExpr(this,e)}clone(){return new n(this.fn.clone(),this.args.map(o=>o.clone()),this.type,this.sourceSpan,this.pure)}},Lf=class n extends Qi{tag;template;constructor(o,e,t,i){super(t,i),this.tag=o,this.template=e}isEquivalent(o){return o instanceof n&&this.tag.isEquivalent(o.tag)&&this.template.isEquivalent(o.template)}isConstant(){return!1}visitExpression(o,e){return o.visitTaggedTemplateLiteralExpr(this,e)}clone(){return new n(this.tag.clone(),this.template.clone(),this.type,this.sourceSpan)}},Vf=class n extends Qi{classExpr;args;constructor(o,e,t,i){super(t,i),this.classExpr=o,this.args=e}isEquivalent(o){return o instanceof n&&this.classExpr.isEquivalent(o.classExpr)&&Ks(this.args,o.args)}isConstant(){return!1}visitExpression(o,e){return o.visitInstantiateExpr(this,e)}clone(){return new n(this.classExpr.clone(),this.args.map(o=>o.clone()),this.type,this.sourceSpan)}},Fg=class n extends Qi{body;flags;constructor(o,e,t){super(null,t),this.body=o,this.flags=e}isEquivalent(o){return o instanceof n&&this.body===o.body&&this.flags===o.flags}isConstant(){return!0}visitExpression(o,e){return o.visitRegularExpressionLiteral(this,e)}clone(){return new n(this.body,this.flags,this.sourceSpan)}},_r=class n extends Qi{value;constructor(o,e,t){super(e,t),this.value=o}isEquivalent(o){return o instanceof n&&this.value===o.value}isConstant(){return!0}visitExpression(o,e){return o.visitLiteralExpr(this,e)}clone(){return new n(this.value,this.type,this.sourceSpan)}},Bf=class n extends Qi{elements;expressions;constructor(o,e,t){super(null,t),this.elements=o,this.expressions=e}isEquivalent(o){return o instanceof n&&ON(this.elements,o.elements,(e,t)=>e.text===t.text)&&Ks(this.expressions,o.expressions)}isConstant(){return!1}visitExpression(o,e){return o.visitTemplateLiteralExpr(this,e)}clone(){return new n(this.elements.map(o=>o.clone()),this.expressions.map(o=>o.clone()))}},Ib=class n extends Qi{text;rawText;constructor(o,e,t){super(W3,e),this.text=o,this.rawText=t??hP(xb(o))}visitExpression(o,e){return o.visitTemplateLiteralElementExpr(this,e)}isEquivalent(o){return o instanceof n&&o.text===this.text&&o.rawText===this.rawText}isConstant(){return!0}clone(){return new n(this.text,this.sourceSpan,this.rawText)}},Xp=class{text;sourceSpan;constructor(o,e){this.text=o,this.sourceSpan=e}},Og=class{text;sourceSpan;associatedMessage;constructor(o,e,t){this.text=o,this.sourceSpan=e,this.associatedMessage=t}},oU="|",V5="@@",aU="\u241F",Ab=class n extends Qi{metaBlock;messageParts;placeHolderNames;expressions;constructor(o,e,t,i,a){super(W3,a),this.metaBlock=o,this.messageParts=e,this.placeHolderNames=t,this.expressions=i}isEquivalent(o){return!1}isConstant(){return!1}visitExpression(o,e){return o.visitLocalizedString(this,e)}clone(){return new n(this.metaBlock,this.messageParts,this.placeHolderNames,this.expressions.map(o=>o.clone()),this.sourceSpan)}serializeI18nHead(){let o=this.metaBlock.description||"";return this.metaBlock.meaning&&(o=`${this.metaBlock.meaning}${oU}${o}`),this.metaBlock.customId&&(o=`${o}${V5}${this.metaBlock.customId}`),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach(e=>{o=`${o}${aU}${e}`}),B5(o,this.messageParts[0].text,this.getMessagePartSourceSpan(0))}getMessagePartSourceSpan(o){return this.messageParts[o]?.sourceSpan??this.sourceSpan}getPlaceholderSourceSpan(o){return this.placeHolderNames[o]?.sourceSpan??this.expressions[o]?.sourceSpan??this.sourceSpan}serializeI18nTemplatePart(o){let e=this.placeHolderNames[o-1],t=this.messageParts[o],i=e.text;return e.associatedMessage?.legacyIds.length===0&&(i+=`${V5}${TN(e.associatedMessage.messageString,e.associatedMessage.meaning)}`),B5(i,t.text,this.getMessagePartSourceSpan(o))}},xb=n=>n.replace(/\\/g,"\\\\"),rU=n=>n.replace(/^:/,"\\:"),sU=n=>n.replace(/:/g,"\\:"),hP=n=>n.replace(/`/g,"\\`").replace(/\${/g,"$\\{");function B5(n,o,e){return n===""?{cooked:o,raw:hP(rU(xb(o))),range:e}:{cooked:`:${n}:${o}`,raw:hP(`:${sU(xb(n))}:${xb(o)}`),range:e}}var ou=class n extends Qi{value;typeParams;constructor(o,e,t=null,i){super(e,i),this.value=o,this.typeParams=t}isEquivalent(o){return o instanceof n&&this.value.name===o.value.name&&this.value.moduleName===o.value.moduleName}isConstant(){return!1}visitExpression(o,e){return o.visitExternalExpr(this,e)}clone(){return new n(this.value,this.type,this.typeParams,this.sourceSpan)}};var jc=class n extends Qi{condition;falseCase;trueCase;constructor(o,e,t=null,i,a){super(i||e.type,a),this.condition=o,this.falseCase=t,this.trueCase=e}isEquivalent(o){return o instanceof n&&this.condition.isEquivalent(o.condition)&&this.trueCase.isEquivalent(o.trueCase)&&iU(this.falseCase,o.falseCase)}isConstant(){return!1}visitExpression(o,e){return o.visitConditionalExpr(this,e)}clone(){return new n(this.condition.clone(),this.trueCase.clone(),this.falseCase?.clone(),this.type,this.sourceSpan)}};var jf=class n extends Qi{condition;constructor(o,e){super(nU,e),this.condition=o}isEquivalent(o){return o instanceof n&&this.condition.isEquivalent(o.condition)}isConstant(){return!1}visitExpression(o,e){return o.visitNotExpr(this,e)}clone(){return new n(this.condition.clone(),this.sourceSpan)}},Da=class n{name;type;constructor(o,e=null){this.name=o,this.type=e}isEquivalent(o){return this.name===o.name}clone(){return new n(this.name,this.type)}},Pm=class n extends Qi{params;statements;name;constructor(o,e,t,i,a){super(t,i),this.params=o,this.statements=e,this.name=a}isEquivalent(o){return(o instanceof n||o instanceof $f)&&Ks(this.params,o.params)&&Ks(this.statements,o.statements)}isConstant(){return!1}visitExpression(o,e){return o.visitFunctionExpr(this,e)}toDeclStmt(o,e){return new $f(o,this.params,this.statements,this.type,e,this.sourceSpan)}clone(){return new n(this.params.map(o=>o.clone()),this.statements,this.type,this.sourceSpan,this.name)}},vu=class _P extends Qi{params;body;constructor(o,e,t,i){super(t,i),this.params=o,this.body=e}isEquivalent(o){return!(o instanceof _P)||!Ks(this.params,o.params)?!1:this.body instanceof Qi&&o.body instanceof Qi?this.body.isEquivalent(o.body):Array.isArray(this.body)&&Array.isArray(o.body)?Ks(this.body,o.body):!1}isConstant(){return!1}visitExpression(o,e){return o.visitArrowFunctionExpr(this,e)}clone(){return new _P(this.params.map(o=>o.clone()),Array.isArray(this.body)?this.body:this.body.clone(),this.type,this.sourceSpan)}toDeclStmt(o,e){return new Ga(o,this,ic,e,this.sourceSpan)}},au=class n extends Qi{operator;expr;parens;constructor(o,e,t,i,a=!0){super(t||iu,i),this.operator=o,this.expr=e,this.parens=a}isEquivalent(o){return o instanceof n&&this.operator===o.operator&&this.expr.isEquivalent(o.expr)}isConstant(){return!1}visitExpression(o,e){return o.visitUnaryOperatorExpr(this,e)}clone(){return new n(this.operator,this.expr.clone(),this.type,this.sourceSpan,this.parens)}},ac=class n extends Qi{expr;constructor(o,e,t){super(e,t),this.expr=o}visitExpression(o,e){return o.visitParenthesizedExpr(this,e)}isEquivalent(o){return o instanceof n&&o.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new n(this.expr.clone())}},Pi=class n extends Qi{operator;rhs;lhs;constructor(o,e,t,i,a){super(i||e.type,a),this.operator=o,this.rhs=t,this.lhs=e}isEquivalent(o){return o instanceof n&&this.operator===o.operator&&this.lhs.isEquivalent(o.lhs)&&this.rhs.isEquivalent(o.rhs)}isConstant(){return!1}visitExpression(o,e){return o.visitBinaryOperatorExpr(this,e)}clone(){return new n(this.operator,this.lhs.clone(),this.rhs.clone(),this.type,this.sourceSpan)}isAssignment(){let o=this.operator;return o===lt.Assign||o===lt.AdditionAssignment||o===lt.SubtractionAssignment||o===lt.MultiplicationAssignment||o===lt.DivisionAssignment||o===lt.RemainderAssignment||o===lt.ExponentiationAssignment||o===lt.AndAssignment||o===lt.OrAssignment||o===lt.NullishCoalesceAssignment}},Xs=class n extends Qi{receiver;name;constructor(o,e,t,i){super(t,i),this.receiver=o,this.name=e}get index(){return this.name}isEquivalent(o){return o instanceof n&&this.receiver.isEquivalent(o.receiver)&&this.name===o.name}isConstant(){return!1}visitExpression(o,e){return o.visitReadPropExpr(this,e)}set(o){return new Pi(lt.Assign,this.receiver.prop(this.name),o,null,this.sourceSpan)}clone(){return new n(this.receiver.clone(),this.name,this.type,this.sourceSpan)}},Fd=class n extends Qi{receiver;index;constructor(o,e,t,i){super(t,i),this.receiver=o,this.index=e}isEquivalent(o){return o instanceof n&&this.receiver.isEquivalent(o.receiver)&&this.index.isEquivalent(o.index)}isConstant(){return!1}visitExpression(o,e){return o.visitReadKeyExpr(this,e)}set(o){return new Pi(lt.Assign,this.receiver.key(this.index),o,null,this.sourceSpan)}clone(){return new n(this.receiver.clone(),this.index.clone(),this.type,this.sourceSpan)}},$c=class n extends Qi{entries;constructor(o,e,t){super(e,t),this.entries=o}isConstant(){return this.entries.every(o=>o.isConstant())}isEquivalent(o){return o instanceof n&&Ks(this.entries,o.entries)}visitExpression(o,e){return o.visitLiteralArrayExpr(this,e)}clone(){return new n(this.entries.map(o=>o.clone()),this.type,this.sourceSpan)}},Rg=class n{key;value;quoted;constructor(o,e,t){this.key=o,this.value=e,this.quoted=t}isEquivalent(o){return this.key===o.key&&this.value.isEquivalent(o.value)}clone(){return new n(this.key,this.value.clone(),this.quoted)}isConstant(){return this.value.isConstant()}},Tm=class n{expression;constructor(o){this.expression=o}isEquivalent(o){return o instanceof n&&this.expression.isEquivalent(o.expression)}clone(){return new n(this.expression.clone())}isConstant(){return this.expression.isConstant()}},rc=class n extends Qi{entries;valueType=null;constructor(o,e,t){super(e,t),this.entries=o,e&&(this.valueType=e.valueType)}isEquivalent(o){return o instanceof n&&Ks(this.entries,o.entries)}isConstant(){return this.entries.every(o=>o.isConstant())}visitExpression(o,e){return o.visitLiteralMapExpr(this,e)}clone(){let o=this.entries.map(e=>e.clone());return new n(o,this.type,this.sourceSpan)}};var ru=class n extends Qi{expression;constructor(o,e){super(null,e),this.expression=o}isEquivalent(o){return o instanceof n&&this.expression.isEquivalent(o.expression)}isConstant(){return this.expression.isConstant()}visitExpression(o,e){return o.visitSpreadElementExpr(this,e)}clone(){return new n(this.expression.clone(),this.sourceSpan)}},zg=new _r(null,null,null),lU=new _r(null,ic,null),ur=(function(n){return n[n.None=0]="None",n[n.Final=1]="Final",n[n.Private=2]="Private",n[n.Exported=4]="Exported",n[n.Static=8]="Static",n})(ur||{}),fP=class{text;multiline;trailingNewline;constructor(o,e,t){this.text=o,this.multiline=e,this.trailingNewline=t}toString(){return this.multiline?` ${this.text} `:this.text}},Nb=class extends fP{tags;constructor(o){super("",!0,!0),this.tags=o}toString(){return uU(this.tags)}},su=class{modifiers;sourceSpan;leadingComments;constructor(o=ur.None,e=null,t){this.modifiers=o,this.sourceSpan=e,this.leadingComments=t}hasModifier(o){return(this.modifiers&o)!==0}addLeadingComment(o){this.leadingComments=this.leadingComments??[],this.leadingComments.push(o)}},Ga=class n extends su{name;value;type;constructor(o,e,t,i,a,s){super(i,a,s),this.name=o,this.value=e,this.type=t||e&&e.type||null}isEquivalent(o){return o instanceof n&&this.name===o.name&&(this.value?!!o.value&&this.value.isEquivalent(o.value):!o.value)}visitStatement(o,e){return o.visitDeclareVarStmt(this,e)}},$f=class n extends su{name;params;statements;type;constructor(o,e,t,i,a,s,d){super(a,s,d),this.name=o,this.params=e,this.statements=t,this.type=i||null}isEquivalent(o){return o instanceof n&&Ks(this.params,o.params)&&Ks(this.statements,o.statements)}visitStatement(o,e){return o.visitDeclareFunctionStmt(this,e)}},fr=class n extends su{expr;constructor(o,e,t){super(ur.None,e,t),this.expr=o}isEquivalent(o){return o instanceof n&&this.expr.isEquivalent(o.expr)}visitStatement(o,e){return o.visitExpressionStmt(this,e)}},Ia=class n extends su{value;constructor(o,e=null,t){super(ur.None,e,t),this.value=o}isEquivalent(o){return o instanceof n&&this.value.isEquivalent(o.value)}visitStatement(o,e){return o.visitReturnStmt(this,e)}},Fb=class n extends su{condition;trueCase;falseCase;constructor(o,e,t=[],i,a){super(ur.None,i,a),this.condition=o,this.trueCase=e,this.falseCase=t}isEquivalent(o){return o instanceof n&&this.condition.isEquivalent(o.condition)&&Ks(this.trueCase,o.trueCase)&&Ks(this.falseCase,o.falseCase)}visitStatement(o,e){return o.visitIfStmt(this,e)}};function cU(n=[]){return new Nb(n)}function di(n,o,e){return new oc(n,o,e)}function Ht(n,o=null,e){return new ou(n,null,o,e)}function gr(n,o,e){return new xl(n,o,e)}function N0(n){return new Ng(n)}function io(n,o,e){return new $c(n,o,e)}function yl(n,o=null){return new rc(n.map(e=>new Rg(e.key,e.value,e.quoted)),o,null)}function dU(n,o){return new jf(n,o)}function Em(n,o,e,t,i){return new Pm(n,o,e,t,i)}function Ys(n,o,e,t){return new vu(n,o,e,t)}function Nx(n,o,e,t,i){return new Fb(n,o,e,t,i)}function mU(n,o,e,t){return new Lf(n,o,e,t)}function De(n,o,e){return new _r(n,o,e)}function pU(n,o,e,t,i){return new Ab(n,o,e,t,i)}function j5(n){let o="";if(n.tagName&&(o+=` @${n.tagName}`),n.text){if(n.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');o+=" "+n.text.replace(/@/g,"\\@")}return o}function uU(n){if(n.length===0)return"";if(n.length===1&&n[0].tagName&&!n[0].text)return`*${j5(n[0])} `;let o=`* +`;for(let e of n)o+=" *",o+=j5(e).replace(/\n/g,` + * `),o+=` +`;return o+=" ",o}var gU="_c",hU={},_U=50,Rb=class n extends Qi{resolved;original;shared=!1;constructor(o){super(o.type),this.resolved=o,this.original=o}visitExpression(o,e){return e===hU?this.original.visitExpression(o,e):this.resolved.visitExpression(o,e)}isEquivalent(o){return o instanceof n&&this.resolved.isEquivalent(o.resolved)}isConstant(){return!0}clone(){throw new Error("Not supported.")}fixup(o){this.resolved=o,this.shared=!0}},zb=class{isClosureCompilerEnabled;statements=[];literals=new Map;literalFactories=new Map;sharedConstants=new Map;_claimedNames=new Map;nextNameIndex=0;constructor(o=!1){this.isClosureCompilerEnabled=o}getConstLiteral(o,e){if(o instanceof _r&&!$5(o)||o instanceof Rb)return o;let t=Hf.INSTANCE.keyOf(o),i=this.literals.get(t),a=!1;if(i||(i=new Rb(o),this.literals.set(t,i),a=!0),!a&&!i.shared||a&&e){let s=this.freshName(),d,p;this.isClosureCompilerEnabled&&$5(o)?(d=new Pm([],[new Ia(o)]),p=di(s).callFn([])):(d=o,p=di(s)),this.statements.push(new Ga(s,d,ic,ur.Final)),i.fixup(p)}return i}getSharedConstant(o,e){let t=o.keyOf(e);if(!this.sharedConstants.has(t)){let i=this.freshName();this.sharedConstants.set(t,di(i)),this.statements.push(o.toSharedConstantDeclaration(i,e))}return this.sharedConstants.get(t)}getSharedFunctionReference(o,e,t=!0){let i=o instanceof vu;for(let s of this.statements)if(i&&s instanceof Ga&&s.value?.isEquivalent(o)||!i&&s instanceof $f&&o instanceof Pm&&o.isEquivalent(s))return di(s.name);let a=t?this.uniqueName(e):e;return this.statements.push(o instanceof Pm?o.toDeclStmt(a,ur.Final):new Ga(a,o,ic,ur.Final,o.sourceSpan)),di(a)}uniqueName(o,e=!0){let t=this._claimedNames.get(o)??0,i=t===0&&!e?`${o}`:`${o}${t}`;return this._claimedNames.set(o,t+1),i}freshName(){return this.uniqueName(gU)}},Hf=class n{static INSTANCE=new n;keyOf(o){if(o instanceof _r&&typeof o.value=="string")return`"${o.value}"`;if(o instanceof _r)return String(o.value);if(o instanceof Fg)return`/${o.body}/${o.flags??""}`;if(o instanceof $c){let e=[];for(let t of o.entries)e.push(this.keyOf(t));return`[${e.join(",")}]`}else if(o instanceof rc){let e=[];for(let t of o.entries)if(t instanceof Tm)e.push("..."+this.keyOf(t.expression));else{let i=t.key;t.quoted&&(i=`"${i}"`),e.push(i+":"+this.keyOf(t.value))}return`{${e.join(",")}}`}else{if(o instanceof ou)return`import("${o.value.moduleName}", ${o.value.name})`;if(o instanceof oc)return`read(${o.name})`;if(o instanceof Ng)return`typeof(${this.keyOf(o.expr)})`;if(o instanceof ru)return`...${this.keyOf(o.expression)}`;throw new Error(`${this.constructor.name} does not handle expressions of type ${o.constructor.name}`)}}};function $5(n){return n instanceof _r&&typeof n.value=="string"&&n.value.length>=_U}var xe="@angular/core",ge=(()=>{class n{static core={name:null,moduleName:xe};static namespaceHTML={name:"\u0275\u0275namespaceHTML",moduleName:xe};static namespaceMathML={name:"\u0275\u0275namespaceMathML",moduleName:xe};static namespaceSVG={name:"\u0275\u0275namespaceSVG",moduleName:xe};static element={name:"\u0275\u0275element",moduleName:xe};static elementStart={name:"\u0275\u0275elementStart",moduleName:xe};static elementEnd={name:"\u0275\u0275elementEnd",moduleName:xe};static domElement={name:"\u0275\u0275domElement",moduleName:xe};static domElementStart={name:"\u0275\u0275domElementStart",moduleName:xe};static domElementEnd={name:"\u0275\u0275domElementEnd",moduleName:xe};static domElementContainer={name:"\u0275\u0275domElementContainer",moduleName:xe};static domElementContainerStart={name:"\u0275\u0275domElementContainerStart",moduleName:xe};static domElementContainerEnd={name:"\u0275\u0275domElementContainerEnd",moduleName:xe};static domTemplate={name:"\u0275\u0275domTemplate",moduleName:xe};static domListener={name:"\u0275\u0275domListener",moduleName:xe};static advance={name:"\u0275\u0275advance",moduleName:xe};static syntheticHostProperty={name:"\u0275\u0275syntheticHostProperty",moduleName:xe};static syntheticHostListener={name:"\u0275\u0275syntheticHostListener",moduleName:xe};static attribute={name:"\u0275\u0275attribute",moduleName:xe};static classProp={name:"\u0275\u0275classProp",moduleName:xe};static elementContainerStart={name:"\u0275\u0275elementContainerStart",moduleName:xe};static elementContainerEnd={name:"\u0275\u0275elementContainerEnd",moduleName:xe};static elementContainer={name:"\u0275\u0275elementContainer",moduleName:xe};static styleMap={name:"\u0275\u0275styleMap",moduleName:xe};static classMap={name:"\u0275\u0275classMap",moduleName:xe};static styleProp={name:"\u0275\u0275styleProp",moduleName:xe};static interpolate={name:"\u0275\u0275interpolate",moduleName:xe};static interpolate1={name:"\u0275\u0275interpolate1",moduleName:xe};static interpolate2={name:"\u0275\u0275interpolate2",moduleName:xe};static interpolate3={name:"\u0275\u0275interpolate3",moduleName:xe};static interpolate4={name:"\u0275\u0275interpolate4",moduleName:xe};static interpolate5={name:"\u0275\u0275interpolate5",moduleName:xe};static interpolate6={name:"\u0275\u0275interpolate6",moduleName:xe};static interpolate7={name:"\u0275\u0275interpolate7",moduleName:xe};static interpolate8={name:"\u0275\u0275interpolate8",moduleName:xe};static interpolateV={name:"\u0275\u0275interpolateV",moduleName:xe};static nextContext={name:"\u0275\u0275nextContext",moduleName:xe};static resetView={name:"\u0275\u0275resetView",moduleName:xe};static templateCreate={name:"\u0275\u0275template",moduleName:xe};static defer={name:"\u0275\u0275defer",moduleName:xe};static deferWhen={name:"\u0275\u0275deferWhen",moduleName:xe};static deferOnIdle={name:"\u0275\u0275deferOnIdle",moduleName:xe};static deferOnImmediate={name:"\u0275\u0275deferOnImmediate",moduleName:xe};static deferOnTimer={name:"\u0275\u0275deferOnTimer",moduleName:xe};static deferOnHover={name:"\u0275\u0275deferOnHover",moduleName:xe};static deferOnInteraction={name:"\u0275\u0275deferOnInteraction",moduleName:xe};static deferOnViewport={name:"\u0275\u0275deferOnViewport",moduleName:xe};static deferPrefetchWhen={name:"\u0275\u0275deferPrefetchWhen",moduleName:xe};static deferPrefetchOnIdle={name:"\u0275\u0275deferPrefetchOnIdle",moduleName:xe};static deferPrefetchOnImmediate={name:"\u0275\u0275deferPrefetchOnImmediate",moduleName:xe};static deferPrefetchOnTimer={name:"\u0275\u0275deferPrefetchOnTimer",moduleName:xe};static deferPrefetchOnHover={name:"\u0275\u0275deferPrefetchOnHover",moduleName:xe};static deferPrefetchOnInteraction={name:"\u0275\u0275deferPrefetchOnInteraction",moduleName:xe};static deferPrefetchOnViewport={name:"\u0275\u0275deferPrefetchOnViewport",moduleName:xe};static deferHydrateWhen={name:"\u0275\u0275deferHydrateWhen",moduleName:xe};static deferHydrateNever={name:"\u0275\u0275deferHydrateNever",moduleName:xe};static deferHydrateOnIdle={name:"\u0275\u0275deferHydrateOnIdle",moduleName:xe};static deferHydrateOnImmediate={name:"\u0275\u0275deferHydrateOnImmediate",moduleName:xe};static deferHydrateOnTimer={name:"\u0275\u0275deferHydrateOnTimer",moduleName:xe};static deferHydrateOnHover={name:"\u0275\u0275deferHydrateOnHover",moduleName:xe};static deferHydrateOnInteraction={name:"\u0275\u0275deferHydrateOnInteraction",moduleName:xe};static deferHydrateOnViewport={name:"\u0275\u0275deferHydrateOnViewport",moduleName:xe};static deferEnableTimerScheduling={name:"\u0275\u0275deferEnableTimerScheduling",moduleName:xe};static conditionalCreate={name:"\u0275\u0275conditionalCreate",moduleName:xe};static conditionalBranchCreate={name:"\u0275\u0275conditionalBranchCreate",moduleName:xe};static conditional={name:"\u0275\u0275conditional",moduleName:xe};static repeater={name:"\u0275\u0275repeater",moduleName:xe};static repeaterCreate={name:"\u0275\u0275repeaterCreate",moduleName:xe};static repeaterTrackByIndex={name:"\u0275\u0275repeaterTrackByIndex",moduleName:xe};static repeaterTrackByIdentity={name:"\u0275\u0275repeaterTrackByIdentity",moduleName:xe};static componentInstance={name:"\u0275\u0275componentInstance",moduleName:xe};static text={name:"\u0275\u0275text",moduleName:xe};static enableBindings={name:"\u0275\u0275enableBindings",moduleName:xe};static disableBindings={name:"\u0275\u0275disableBindings",moduleName:xe};static getCurrentView={name:"\u0275\u0275getCurrentView",moduleName:xe};static textInterpolate={name:"\u0275\u0275textInterpolate",moduleName:xe};static textInterpolate1={name:"\u0275\u0275textInterpolate1",moduleName:xe};static textInterpolate2={name:"\u0275\u0275textInterpolate2",moduleName:xe};static textInterpolate3={name:"\u0275\u0275textInterpolate3",moduleName:xe};static textInterpolate4={name:"\u0275\u0275textInterpolate4",moduleName:xe};static textInterpolate5={name:"\u0275\u0275textInterpolate5",moduleName:xe};static textInterpolate6={name:"\u0275\u0275textInterpolate6",moduleName:xe};static textInterpolate7={name:"\u0275\u0275textInterpolate7",moduleName:xe};static textInterpolate8={name:"\u0275\u0275textInterpolate8",moduleName:xe};static textInterpolateV={name:"\u0275\u0275textInterpolateV",moduleName:xe};static restoreView={name:"\u0275\u0275restoreView",moduleName:xe};static pureFunction0={name:"\u0275\u0275pureFunction0",moduleName:xe};static pureFunction1={name:"\u0275\u0275pureFunction1",moduleName:xe};static pureFunction2={name:"\u0275\u0275pureFunction2",moduleName:xe};static pureFunction3={name:"\u0275\u0275pureFunction3",moduleName:xe};static pureFunction4={name:"\u0275\u0275pureFunction4",moduleName:xe};static pureFunction5={name:"\u0275\u0275pureFunction5",moduleName:xe};static pureFunction6={name:"\u0275\u0275pureFunction6",moduleName:xe};static pureFunction7={name:"\u0275\u0275pureFunction7",moduleName:xe};static pureFunction8={name:"\u0275\u0275pureFunction8",moduleName:xe};static pureFunctionV={name:"\u0275\u0275pureFunctionV",moduleName:xe};static pipeBind1={name:"\u0275\u0275pipeBind1",moduleName:xe};static pipeBind2={name:"\u0275\u0275pipeBind2",moduleName:xe};static pipeBind3={name:"\u0275\u0275pipeBind3",moduleName:xe};static pipeBind4={name:"\u0275\u0275pipeBind4",moduleName:xe};static pipeBindV={name:"\u0275\u0275pipeBindV",moduleName:xe};static domProperty={name:"\u0275\u0275domProperty",moduleName:xe};static ariaProperty={name:"\u0275\u0275ariaProperty",moduleName:xe};static property={name:"\u0275\u0275property",moduleName:xe};static control={name:"\u0275\u0275control",moduleName:xe};static controlCreate={name:"\u0275\u0275controlCreate",moduleName:xe};static animationEnterListener={name:"\u0275\u0275animateEnterListener",moduleName:xe};static animationLeaveListener={name:"\u0275\u0275animateLeaveListener",moduleName:xe};static animationEnter={name:"\u0275\u0275animateEnter",moduleName:xe};static animationLeave={name:"\u0275\u0275animateLeave",moduleName:xe};static i18n={name:"\u0275\u0275i18n",moduleName:xe};static i18nAttributes={name:"\u0275\u0275i18nAttributes",moduleName:xe};static i18nExp={name:"\u0275\u0275i18nExp",moduleName:xe};static i18nStart={name:"\u0275\u0275i18nStart",moduleName:xe};static i18nEnd={name:"\u0275\u0275i18nEnd",moduleName:xe};static i18nApply={name:"\u0275\u0275i18nApply",moduleName:xe};static i18nPostprocess={name:"\u0275\u0275i18nPostprocess",moduleName:xe};static pipe={name:"\u0275\u0275pipe",moduleName:xe};static projection={name:"\u0275\u0275projection",moduleName:xe};static projectionDef={name:"\u0275\u0275projectionDef",moduleName:xe};static reference={name:"\u0275\u0275reference",moduleName:xe};static inject={name:"\u0275\u0275inject",moduleName:xe};static injectAttribute={name:"\u0275\u0275injectAttribute",moduleName:xe};static directiveInject={name:"\u0275\u0275directiveInject",moduleName:xe};static invalidFactory={name:"\u0275\u0275invalidFactory",moduleName:xe};static invalidFactoryDep={name:"\u0275\u0275invalidFactoryDep",moduleName:xe};static templateRefExtractor={name:"\u0275\u0275templateRefExtractor",moduleName:xe};static forwardRef={name:"forwardRef",moduleName:xe};static resolveForwardRef={name:"resolveForwardRef",moduleName:xe};static replaceMetadata={name:"\u0275\u0275replaceMetadata",moduleName:xe};static getReplaceMetadataURL={name:"\u0275\u0275getReplaceMetadataURL",moduleName:xe};static \u0275\u0275defineInjectable={name:"\u0275\u0275defineInjectable",moduleName:xe};static declareInjectable={name:"\u0275\u0275ngDeclareInjectable",moduleName:xe};static InjectableDeclaration={name:"\u0275\u0275InjectableDeclaration",moduleName:xe};static resolveWindow={name:"\u0275\u0275resolveWindow",moduleName:xe};static resolveDocument={name:"\u0275\u0275resolveDocument",moduleName:xe};static resolveBody={name:"\u0275\u0275resolveBody",moduleName:xe};static getComponentDepsFactory={name:"\u0275\u0275getComponentDepsFactory",moduleName:xe};static defineComponent={name:"\u0275\u0275defineComponent",moduleName:xe};static declareComponent={name:"\u0275\u0275ngDeclareComponent",moduleName:xe};static setComponentScope={name:"\u0275\u0275setComponentScope",moduleName:xe};static ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:xe};static ViewEncapsulation={name:"ViewEncapsulation",moduleName:xe};static ComponentDeclaration={name:"\u0275\u0275ComponentDeclaration",moduleName:xe};static FactoryDeclaration={name:"\u0275\u0275FactoryDeclaration",moduleName:xe};static declareFactory={name:"\u0275\u0275ngDeclareFactory",moduleName:xe};static FactoryTarget={name:"\u0275\u0275FactoryTarget",moduleName:xe};static defineDirective={name:"\u0275\u0275defineDirective",moduleName:xe};static declareDirective={name:"\u0275\u0275ngDeclareDirective",moduleName:xe};static DirectiveDeclaration={name:"\u0275\u0275DirectiveDeclaration",moduleName:xe};static InjectorDef={name:"\u0275\u0275InjectorDef",moduleName:xe};static InjectorDeclaration={name:"\u0275\u0275InjectorDeclaration",moduleName:xe};static defineInjector={name:"\u0275\u0275defineInjector",moduleName:xe};static declareInjector={name:"\u0275\u0275ngDeclareInjector",moduleName:xe};static NgModuleDeclaration={name:"\u0275\u0275NgModuleDeclaration",moduleName:xe};static ModuleWithProviders={name:"ModuleWithProviders",moduleName:xe};static defineNgModule={name:"\u0275\u0275defineNgModule",moduleName:xe};static declareNgModule={name:"\u0275\u0275ngDeclareNgModule",moduleName:xe};static setNgModuleScope={name:"\u0275\u0275setNgModuleScope",moduleName:xe};static registerNgModuleType={name:"\u0275\u0275registerNgModuleType",moduleName:xe};static PipeDeclaration={name:"\u0275\u0275PipeDeclaration",moduleName:xe};static definePipe={name:"\u0275\u0275definePipe",moduleName:xe};static declarePipe={name:"\u0275\u0275ngDeclarePipe",moduleName:xe};static declareClassMetadata={name:"\u0275\u0275ngDeclareClassMetadata",moduleName:xe};static declareClassMetadataAsync={name:"\u0275\u0275ngDeclareClassMetadataAsync",moduleName:xe};static setClassMetadata={name:"\u0275setClassMetadata",moduleName:xe};static setClassMetadataAsync={name:"\u0275setClassMetadataAsync",moduleName:xe};static setClassDebugInfo={name:"\u0275setClassDebugInfo",moduleName:xe};static queryRefresh={name:"\u0275\u0275queryRefresh",moduleName:xe};static viewQuery={name:"\u0275\u0275viewQuery",moduleName:xe};static loadQuery={name:"\u0275\u0275loadQuery",moduleName:xe};static contentQuery={name:"\u0275\u0275contentQuery",moduleName:xe};static viewQuerySignal={name:"\u0275\u0275viewQuerySignal",moduleName:xe};static contentQuerySignal={name:"\u0275\u0275contentQuerySignal",moduleName:xe};static queryAdvance={name:"\u0275\u0275queryAdvance",moduleName:xe};static twoWayProperty={name:"\u0275\u0275twoWayProperty",moduleName:xe};static twoWayBindingSet={name:"\u0275\u0275twoWayBindingSet",moduleName:xe};static twoWayListener={name:"\u0275\u0275twoWayListener",moduleName:xe};static declareLet={name:"\u0275\u0275declareLet",moduleName:xe};static storeLet={name:"\u0275\u0275storeLet",moduleName:xe};static readContextLet={name:"\u0275\u0275readContextLet",moduleName:xe};static arrowFunction={name:"\u0275\u0275arrowFunction",moduleName:xe};static attachSourceLocations={name:"\u0275\u0275attachSourceLocations",moduleName:xe};static NgOnChangesFeature={name:"\u0275\u0275NgOnChangesFeature",moduleName:xe};static ControlFeature={name:"\u0275\u0275ControlFeature",moduleName:xe};static InheritDefinitionFeature={name:"\u0275\u0275InheritDefinitionFeature",moduleName:xe};static ProvidersFeature={name:"\u0275\u0275ProvidersFeature",moduleName:xe};static HostDirectivesFeature={name:"\u0275\u0275HostDirectivesFeature",moduleName:xe};static ExternalStylesFeature={name:"\u0275\u0275ExternalStylesFeature",moduleName:xe};static listener={name:"\u0275\u0275listener",moduleName:xe};static getInheritedFactory={name:"\u0275\u0275getInheritedFactory",moduleName:xe};static sanitizeHtml={name:"\u0275\u0275sanitizeHtml",moduleName:xe};static sanitizeStyle={name:"\u0275\u0275sanitizeStyle",moduleName:xe};static validateAttribute={name:"\u0275\u0275validateAttribute",moduleName:xe};static sanitizeResourceUrl={name:"\u0275\u0275sanitizeResourceUrl",moduleName:xe};static sanitizeScript={name:"\u0275\u0275sanitizeScript",moduleName:xe};static sanitizeUrl={name:"\u0275\u0275sanitizeUrl",moduleName:xe};static sanitizeUrlOrResourceUrl={name:"\u0275\u0275sanitizeUrlOrResourceUrl",moduleName:xe};static trustConstantHtml={name:"\u0275\u0275trustConstantHtml",moduleName:xe};static trustConstantResourceUrl={name:"\u0275\u0275trustConstantResourceUrl",moduleName:xe};static inputDecorator={name:"Input",moduleName:xe};static outputDecorator={name:"Output",moduleName:xe};static viewChildDecorator={name:"ViewChild",moduleName:xe};static viewChildrenDecorator={name:"ViewChildren",moduleName:xe};static contentChildDecorator={name:"ContentChild",moduleName:xe};static contentChildrenDecorator={name:"ContentChildren",moduleName:xe};static InputSignalBrandWriteType={name:"\u0275INPUT_SIGNAL_BRAND_WRITE_TYPE",moduleName:xe};static UnwrapDirectiveSignalInputs={name:"\u0275UnwrapDirectiveSignalInputs",moduleName:xe};static unwrapWritableSignal={name:"\u0275unwrapWritableSignal",moduleName:xe};static assertType={name:"\u0275assertType",moduleName:xe}}return n})(),fU=/-+([a-z0-9])/g;function vU(n){return n.replace(fU,(...o)=>o[1].toUpperCase())}function CU(n,o){return DN(n,":",o)}function bU(n,o){return DN(n,".",o)}function DN(n,o,e){let t=n.indexOf(o);return t==-1?e:[n.slice(0,t).trim(),n.slice(t+1).trim()]}function xU(n){let o=[];for(let e=0;e=55296&&t<=56319&&n.length>e+1){let i=n.charCodeAt(e+1);i>=56320&&i<=57343&&(e++,t=(t-55296<<10)+i-56320+65536)}t<=127?o.push(t):t<=2047?o.push(t>>6&31|192,t&63|128):t<=65535?o.push(t>>12|224,t>>6&63|128,t&63|128):t<=2097151&&o.push(t>>18&7|240,t>>12&63|128,t>>6&63|128,t&63|128)}return o}function IN(n){if(typeof n=="string")return n;if(Array.isArray(n))return`[${n.map(IN).join(", ")}]`;if(n==null)return""+n;let o=n.overriddenName||n.name;if(o)return`${o}`;if(!n.toString)return"object";let e=n.toString();if(e==null)return""+e;let t=e.indexOf(` +`);return t>=0?e.slice(0,t):e}var vP=class{full;major;minor;patch;constructor(o){this.full=o;let e=o.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}},Tf=globalThis,yU=/^([1-9]|1[0-8])\./;function AN(n){return n.startsWith("0.")?!0:!yU.test(n)}var wU=3,MU="# sourceMappingURL=data:application/json;base64,",CP=class{file;sourcesContent=new Map;lines=[];lastCol0=0;hasMappings=!1;constructor(o=null){this.file=o}addSource(o,e=null){return this.sourcesContent.has(o)||this.sourcesContent.set(o,e),this}addLine(){return this.lines.push([]),this.lastCol0=0,this}addMapping(o,e,t,i){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(e!=null&&!this.sourcesContent.has(e))throw new Error(`Unknown source file "${e}"`);if(o==null)throw new Error("The column in the generated code must be provided");if(o{o.set(u,g),e.push(u),t.push(this.sourcesContent.get(u)||null)});let i="",a=0,s=0,d=0,p=0;return this.lines.forEach(u=>{a=0,i+=u.map(g=>{let C=lb(g.col0-a);return a=g.col0,g.sourceUrl!=null&&(C+=lb(o.get(g.sourceUrl)-s),s=o.get(g.sourceUrl),C+=lb(g.sourceLine0-d),d=g.sourceLine0,C+=lb(g.sourceCol0-p),p=g.sourceCol0),C}).join(","),i+=";"}),i=i.slice(0,-1),{file:this.file||"",version:wU,sourceRoot:"",sources:e,sourcesContent:t,mappings:i}}toJsComment(){return this.hasMappings?"//"+MU+SU(JSON.stringify(this,null,0)):""}};function SU(n){let o="",e=xU(n);for(let t=0;t>2),o+=wf((i&3)<<4|(a===null?0:a>>4)),o+=a===null?"=":wf((a&15)<<2|(s===null?0:s>>6)),o+=a===null||s===null?"=":wf(s&63)}return o}function lb(n){n=n<0?(-n<<1)+1:n<<1;let o="";do{let e=n&31;n=n>>5,n>0&&(e=e|32),o+=wf(e)}while(n>0);return o}var kU="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function wf(n){if(n<0||n>=64)throw new Error("Can only encode value in the range [0, 63]");return kU[n]}var PU=/'|\\|\n|\r|\$/g,TU=/^[$A-Z_][0-9A-Z_$]*$/i,bP=" ",Lb=class{indent;partsLength=0;parts=[];srcSpans=[];constructor(o){this.indent=o}},EU=new Map([[lt.And,"&&"],[lt.Bigger,">"],[lt.BiggerEquals,">="],[lt.BitwiseOr,"|"],[lt.BitwiseAnd,"&"],[lt.Divide,"/"],[lt.Assign,"="],[lt.Equals,"=="],[lt.Identical,"==="],[lt.Lower,"<"],[lt.LowerEquals,"<="],[lt.Minus,"-"],[lt.Modulo,"%"],[lt.Exponentiation,"**"],[lt.Multiply,"*"],[lt.NotEquals,"!="],[lt.NotIdentical,"!=="],[lt.NullishCoalesce,"??"],[lt.Or,"||"],[lt.Plus,"+"],[lt.In,"in"],[lt.InstanceOf,"instanceof"],[lt.AdditionAssignment,"+="],[lt.SubtractionAssignment,"-="],[lt.MultiplicationAssignment,"*="],[lt.DivisionAssignment,"/="],[lt.RemainderAssignment,"%="],[lt.ExponentiationAssignment,"**="],[lt.AndAssignment,"&&="],[lt.OrAssignment,"||="],[lt.NullishCoalesceAssignment,"??="]]),xP=class n{_indent;static createRoot(){return new n(0)}_lines;constructor(o){this._indent=o,this._lines=[new Lb(o)]}get _currentLine(){return this._lines[this._lines.length-1]}println(o,e=""){this.print(o||null,e,!0)}lineIsEmpty(){return this._currentLine.parts.length===0}lineLength(){return this._currentLine.indent*bP.length+this._currentLine.partsLength}print(o,e,t=!1){e.length>0&&(this._currentLine.parts.push(e),this._currentLine.partsLength+=e.length,this._currentLine.srcSpans.push(o&&o.sourceSpan||null)),t&&this._lines.push(new Lb(this._indent))}removeEmptyLastLine(){this.lineIsEmpty()&&this._lines.pop()}incIndent(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}decIndent(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)}toSource(){return this.sourceLines.map(o=>o.parts.length>0?H5(o.indent)+o.parts.join(""):"").join(` +`)}toSourceMapGenerator(o,e=0){let t=new CP(o),i=!1,a=()=>{i||(t.addSource(o," ").addMapping(0,o,0,0),i=!0)};for(let s=0;s{t.addLine();let p=s.srcSpans,u=s.parts,g=s.indent*bP.length,C=0;for(;Ci)return t.srcSpans[a];i-=s.length}}return null}get sourceLines(){return this._lines.length&&this._lines[this._lines.length-1].parts.length===0?this._lines.slice(0,-1):this._lines}},yP=class{_escapeDollarInStrings;lastIfCondition=null;constructor(o){this._escapeDollarInStrings=o}printLeadingComments(o,e){if(o.leadingComments!==void 0)for(let t of o.leadingComments)t instanceof Nb?e.print(o,`/*${t.toString()}*/`,t.trailingNewline):t.multiline?e.print(o,`/* ${t.text} */`,t.trailingNewline):t.text.split(` +`).forEach(i=>{e.println(o,`// ${i}`)})}visitExpressionStmt(o,e){return this.printLeadingComments(o,e),o.expr.visitExpression(this,e),e.println(o,";"),null}visitReturnStmt(o,e){return this.printLeadingComments(o,e),e.print(o,"return "),o.value.visitExpression(this,e),e.println(o,";"),null}visitIfStmt(o,e){this.printLeadingComments(o,e),e.print(o,"if ("),this.lastIfCondition=o.condition,o.condition.visitExpression(this,e),this.lastIfCondition=null,e.print(o,") {");let t=o.falseCase!=null&&o.falseCase.length>0;return o.trueCase.length<=1&&!t?(e.print(o," "),this.visitAllStatements(o.trueCase,e),e.removeEmptyLastLine(),e.print(o," ")):(e.println(),e.incIndent(),this.visitAllStatements(o.trueCase,e),e.decIndent(),t&&(e.println(o,"} else {"),e.incIndent(),this.visitAllStatements(o.falseCase,e),e.decIndent())),e.println(o,"}"),null}visitInvokeFunctionExpr(o,e){let t=o.fn instanceof vu;return t&&e.print(o.fn,"("),o.fn.visitExpression(this,e),t&&e.print(o.fn,")"),e.print(o,"("),this.visitAllExpressions(o.args,e,","),e.print(o,")"),null}visitTaggedTemplateLiteralExpr(o,e){return o.tag.visitExpression(this,e),o.template.visitExpression(this,e),null}visitTemplateLiteralExpr(o,e){e.print(o,"`");for(let t=0;t{t instanceof Tm?(e.print(o,"..."),t.expression.visitExpression(this,e)):(e.print(o,`${Gp(t.key,this._escapeDollarInStrings,t.quoted)}:`),t.value.visitExpression(this,e))},o.entries,e,","),e.print(o,"}"),null}visitCommaExpr(o,e){return e.print(o,"("),this.visitAllExpressions(o.parts,e,","),e.print(o,")"),null}visitParenthesizedExpr(o,e){o.expr.visitExpression(this,e)}visitSpreadElementExpr(o,e){e.print(o,"..."),o.expression.visitExpression(this,e)}visitAllExpressions(o,e,t){this.visitAllObjects(i=>i.visitExpression(this,e),o,e,t)}visitAllObjects(o,e,t,i){let a=!1;for(let s=0;s0&&(t.lineLength()>80?(t.print(null,i,!0),a||(t.incIndent(),t.incIndent(),a=!0)):t.print(null,i,!1)),o(e[s]);a&&(t.decIndent(),t.decIndent())}visitAllStatements(o,e){o.forEach(t=>t.visitStatement(this,e))}};function Gp(n,o,e=!0){if(n==null)return null;let t=n.replace(PU,(...a)=>a[0]=="$"?o?"\\$":"$":a[0]==` +`?"\\n":a[0]=="\r"?"\\r":`\\${a[0]}`);return e||!TU.test(t)?`'${t}'`:t}function H5(n){let o="";for(let e=0;et.value));return o?Ys([],e):e}function G3(n,o){return{expression:n,forwardRef:o}}function AU({expression:n,forwardRef:o}){switch(o){case 0:case 1:return n;case 2:return NU(n)}}function NU(n){return Ht(ge.forwardRef).callFn([Ys([],n)])}var Vb=(function(n){return n[n.Class=0]="Class",n[n.Function=1]="Function",n})(Vb||{});function Hp(n){let o=di("__ngFactoryType__"),e=null,t=W5(n)?o:new Pi(lt.Or,o,n.type.value),i=null;n.deps!==null?n.deps!=="invalid"&&(i=new Vf(t,U5(n.deps,n.target))):(e=di(`\u0275${n.name}_BaseFactory`),i=e.callFn([t]));let a=[],s=null;function d(u){let g=di("__ngConditionalFactory__");a.push(new Ga(g.name,zg,ic));let C=i!==null?g.set(i).toStmt():Ht(ge.invalidFactory).callFn([]).toStmt();return a.push(Nx(o,[C],[g.set(u).toStmt()])),g}if(W5(n)){let u=U5(n.delegateDeps,n.target),g=new(n.delegateType===Vb.Class?Vf:Ms)(n.delegate,u);s=d(g)}else VU(n)?s=d(n.expression):s=i;if(s===null)a.push(Ht(ge.invalidFactory).callFn([]).toStmt());else if(e!==null){let u=Ht(ge.getInheritedFactory).callFn([n.type.value]),g=new Pi(lt.Or,e,e.set(u));a.push(new Ia(g.callFn([t])))}else a.push(new Ia(s));let p=Em([new Da(o.name,ws)],a,ic,void 0,`${n.name}_Factory`);return e!==null&&(p=Ys([],[new Ga(e.name),new Ia(p)]).callFn([],void 0,!0)),{expression:p,statements:[],type:FU(n)}}function FU(n){let o=n.deps!==null&&n.deps!=="invalid"?zU(n.deps):Bc;return gr(Ht(ge.FactoryDeclaration,[Fx(n.type.type,n.typeArgumentCount),o]))}function U5(n,o){return n.map((e,t)=>RU(e,o,t))}function RU(n,o,e){if(n.token===null)return Ht(ge.invalidFactoryDep).callFn([De(e)]);if(n.attributeNameType===null){let t=0|(n.self?2:0)|(n.skipSelf?4:0)|(n.host?1:0)|(n.optional?8:0)|(o===Ed.Pipe?16:0),i=t!==0||n.optional?De(t):null,a=[n.token];i&&a.push(i);let s=BU(o);return Ht(s).callFn(a)}else return Ht(ge.injectAttribute).callFn([n.token])}function zU(n){let o=!1,e=n.map(t=>{let i=LU(t);return i!==null?(o=!0,i):De(null)});return o?gr(io(e)):Bc}function LU(n){let o=[];return n.attributeNameType!==null&&o.push({key:"attribute",value:n.attributeNameType,quoted:!1}),n.optional&&o.push({key:"optional",value:De(!0),quoted:!1}),n.host&&o.push({key:"host",value:De(!0),quoted:!1}),n.self&&o.push({key:"self",value:De(!0),quoted:!1}),n.skipSelf&&o.push({key:"skipSelf",value:De(!0),quoted:!1}),o.length>0?yl(o):null}function W5(n){return n.delegateType!==void 0}function VU(n){return n.expression!==void 0}function BU(n){switch(n){case Ed.Component:case Ed.Directive:case Ed.Pipe:return ge.directiveInject;case Ed.NgModule:case Ed.Injectable:default:return ge.inject}}var lu=class{start;end;constructor(o,e){this.start=o,this.end=e}toAbsolute(o){return new qs(o+this.start,o+this.end)}},co=class{span;sourceSpan;constructor(o,e){this.span=o,this.sourceSpan=e}toString(){return"AST"}},Uf=class extends co{nameSpan;constructor(o,e,t){super(o,e),this.nameSpan=t}},Ar=class extends co{visit(o,e=null){return o.visitEmptyExpr?.(this,e)}},Hc=class extends co{visit(o,e=null){return o.visitImplicitReceiver(this,e)}},Wf=class extends co{visit(o,e=null){return o.visitThisReceiver?.(this,e)}},Lg=class extends co{expressions;constructor(o,e,t){super(o,e),this.expressions=t}visit(o,e=null){return o.visitChain(this,e)}},Bb=class extends co{condition;trueExp;falseExp;constructor(o,e,t,i,a){super(o,e),this.condition=t,this.trueExp=i,this.falseExp=a}visit(o,e=null){return o.visitConditional(this,e)}},zc=class extends Uf{receiver;name;constructor(o,e,t,i,a){super(o,e,t),this.receiver=i,this.name=a}visit(o,e=null){return o.visitPropertyRead(this,e)}},Gf=class extends Uf{receiver;name;constructor(o,e,t,i,a){super(o,e,t),this.receiver=i,this.name=a}visit(o,e=null){return o.visitSafePropertyRead(this,e)}},cu=class extends co{receiver;key;constructor(o,e,t,i){super(o,e),this.receiver=t,this.key=i}visit(o,e=null){return o.visitKeyedRead(this,e)}},qf=class extends co{receiver;key;constructor(o,e,t,i){super(o,e),this.receiver=t,this.key=i}visit(o,e=null){return o.visitSafeKeyedRead(this,e)}},yb=(function(n){return n[n.ReferencedByName=0]="ReferencedByName",n[n.ReferencedDirectly=1]="ReferencedDirectly",n})(yb||{}),jb=class extends Uf{exp;name;args;type;constructor(o,e,t,i,a,s,d){super(o,e,d),this.exp=t,this.name=i,this.args=a,this.type=s}visit(o,e=null){return o.visitPipe(this,e)}},Cs=class extends co{value;constructor(o,e,t){super(o,e),this.value=t}visit(o,e=null){return o.visitLiteralPrimitive(this,e)}},Qf=class extends co{expressions;constructor(o,e,t){super(o,e),this.expressions=t}visit(o,e=null){return o.visitLiteralArray(this,e)}},$b=class extends co{expression;constructor(o,e,t){super(o,e),this.expression=t}visit(o,e=null){return o.visitSpreadElement(this,e)}},du=class extends co{keys;values;constructor(o,e,t,i){super(o,e),this.keys=t,this.values=i}visit(o,e=null){return o.visitLiteralMap(this,e)}},F0=class extends co{strings;expressions;constructor(o,e,t,i){super(o,e),this.strings=t,this.expressions=i}visit(o,e=null){return o.visitInterpolation(this,e)}},Zr=class extends co{operation;left;right;constructor(o,e,t,i,a){super(o,e),this.operation=t,this.left=i,this.right=a}visit(o,e=null){return o.visitBinary(this,e)}static isAssignmentOperation(o){return o==="="||o==="+="||o==="-="||o==="*="||o==="/="||o==="%="||o==="**="||o==="&&="||o==="||="||o==="??="}},Dg=class n extends Zr{operator;expr;left=null;right=null;operation=null;static createMinus(o,e,t){return new n(o,e,"-",t,"-",new Cs(o,e,0),t)}static createPlus(o,e,t){return new n(o,e,"+",t,"-",t,new Cs(o,e,0))}constructor(o,e,t,i,a,s,d){super(o,e,a,s,d),this.operator=t,this.expr=i}visit(o,e=null){return o.visitUnary!==void 0?o.visitUnary(this,e):o.visitBinary(this,e)}},Kf=class extends co{expression;constructor(o,e,t){super(o,e),this.expression=t}visit(o,e=null){return o.visitPrefixNot(this,e)}},Xf=class extends co{expression;constructor(o,e,t){super(o,e),this.expression=t}visit(o,e=null){return o.visitTypeofExpression(this,e)}},Yf=class extends co{expression;constructor(o,e,t){super(o,e),this.expression=t}visit(o,e=null){return o.visitVoidExpression(this,e)}},Zf=class extends co{expression;constructor(o,e,t){super(o,e),this.expression=t}visit(o,e=null){return o.visitNonNullAssert(this,e)}},Vg=class extends co{receiver;args;argumentSpan;constructor(o,e,t,i,a){super(o,e),this.receiver=t,this.args=i,this.argumentSpan=a}visit(o,e=null){return o.visitCall(this,e)}},Hb=class extends co{receiver;args;argumentSpan;constructor(o,e,t,i,a){super(o,e),this.receiver=t,this.args=i,this.argumentSpan=a}visit(o,e=null){return o.visitSafeCall(this,e)}},Jf=class extends co{tag;template;constructor(o,e,t,i){super(o,e),this.tag=t,this.template=i}visit(o,e){return o.visitTaggedTemplateLiteral(this,e)}},e0=class extends co{elements;expressions;constructor(o,e,t,i){super(o,e),this.elements=t,this.expressions=i}visit(o,e){return o.visitTemplateLiteral(this,e)}},Ub=class extends co{text;constructor(o,e,t){super(o,e),this.text=t}visit(o,e){return o.visitTemplateLiteralElement(this,e)}},t0=class extends co{expression;constructor(o,e,t){super(o,e),this.expression=t}visit(o,e){return o.visitParenthesizedExpression(this,e)}},wP=class{name;span;sourceSpan;constructor(o,e,t){this.name=o,this.span=e,this.sourceSpan=t}},Wb=class extends co{parameters;body;constructor(o,e,t,i){super(o,e),this.parameters=t,this.body=i}visit(o,e){return o.visitArrowFunction(this,e)}},Gb=class extends co{body;flags;constructor(o,e,t,i){super(o,e),this.body=t,this.flags=i}visit(o,e){return o.visitRegularExpressionLiteral(this,e)}},qs=class{start;end;constructor(o,e){this.start=o,this.end=e}},xs=class extends co{ast;source;location;errors;constructor(o,e,t,i,a){super(new lu(0,e===null?0:e.length),new qs(i,e===null?i:i+e.length)),this.ast=o,this.source=e,this.location=t,this.errors=a}visit(o,e=null){return o.visitASTWithSource?o.visitASTWithSource(this,e):this.ast.visit(o,e)}toString(){return`${this.source} in ${this.location}`}},n0=class{sourceSpan;key;value;constructor(o,e,t){this.sourceSpan=o,this.key=e,this.value=t}},MP=class{sourceSpan;key;value;constructor(o,e,t){this.sourceSpan=o,this.key=e,this.value=t}},Bg=class{visit(o,e){o.visit(this,e)}visitUnary(o,e){this.visit(o.expr,e)}visitBinary(o,e){this.visit(o.left,e),this.visit(o.right,e)}visitChain(o,e){this.visitAll(o.expressions,e)}visitConditional(o,e){this.visit(o.condition,e),this.visit(o.trueExp,e),this.visit(o.falseExp,e)}visitPipe(o,e){this.visit(o.exp,e),this.visitAll(o.args,e)}visitImplicitReceiver(o,e){}visitThisReceiver(o,e){}visitInterpolation(o,e){this.visitAll(o.expressions,e)}visitKeyedRead(o,e){this.visit(o.receiver,e),this.visit(o.key,e)}visitLiteralArray(o,e){this.visitAll(o.expressions,e)}visitLiteralMap(o,e){this.visitAll(o.values,e)}visitLiteralPrimitive(o,e){}visitPrefixNot(o,e){this.visit(o.expression,e)}visitTypeofExpression(o,e){this.visit(o.expression,e)}visitVoidExpression(o,e){this.visit(o.expression,e)}visitNonNullAssert(o,e){this.visit(o.expression,e)}visitPropertyRead(o,e){this.visit(o.receiver,e)}visitSafePropertyRead(o,e){this.visit(o.receiver,e)}visitSafeKeyedRead(o,e){this.visit(o.receiver,e),this.visit(o.key,e)}visitCall(o,e){this.visit(o.receiver,e),this.visitAll(o.args,e)}visitSafeCall(o,e){this.visit(o.receiver,e),this.visitAll(o.args,e)}visitTemplateLiteral(o,e){for(let t=0;tt!==null);Gk(o,e)}visitTriggers(o,e,t){Gk(t,o.map(i=>e[i]))}},Zb=class extends Ss{expression;groups;unknownBlocks;exhaustiveCheck;constructor(o,e,t,i,a,s,d,p){super(p,a,s,d),this.expression=o,this.groups=e,this.unknownBlocks=t,this.exhaustiveCheck=i}visit(o){return o.visitSwitchBlock(this)}},NP=class extends Ss{expression;constructor(o,e,t,i,a){super(a,e,t,i),this.expression=o}visit(o){return o.visitSwitchBlockCase(this)}},s0=class extends Ss{cases;children;i18n;constructor(o,e,t,i,a,s,d){super(s,t,i,a),this.cases=o,this.children=e,this.i18n=d}visit(o){return o.visitSwitchBlockCaseGroup(this)}},FP=class extends Ss{constructor(o,e,t,i){super(i,o,e,t)}visit(o){return o.visitSwitchExhaustiveCheck(this)}},Hg=class extends Ss{item;expression;trackBy;trackKeywordSpan;contextVariables;children;empty;mainBlockSpan;i18n;constructor(o,e,t,i,a,s,d,p,u,g,C,M,x){super(M,p,g,C),this.item=o,this.expression=e,this.trackBy=t,this.trackKeywordSpan=i,this.contextVariables=a,this.children=s,this.empty=d,this.mainBlockSpan=u,this.i18n=x}visit(o){return o.visitForLoopBlock(this)}},l0=class extends Ss{children;i18n;constructor(o,e,t,i,a,s){super(a,e,t,i),this.children=o,this.i18n=s}visit(o){return o.visitForLoopBlockEmpty(this)}},Jb=class extends Ss{branches;constructor(o,e,t,i,a){super(a,e,t,i),this.branches=o}visit(o){return o.visitIfBlock(this)}},Yp=class extends Ss{expression;children;expressionAlias;i18n;constructor(o,e,t,i,a,s,d,p){super(d,i,a,s),this.expression=o,this.children=e,this.expressionAlias=t,this.i18n=p}visit(o){return o.visitIfBlockBranch(this)}},ex=class{name;sourceSpan;nameSpan;constructor(o,e,t){this.name=o,this.sourceSpan=e,this.nameSpan=t}visit(o){return o.visitUnknownBlock(this)}},q3=class{name;value;sourceSpan;nameSpan;valueSpan;constructor(o,e,t,i,a){this.name=o,this.value=e,this.sourceSpan=t,this.nameSpan=i,this.valueSpan=a}visit(o){return o.visitLetDeclaration(this)}},Ef=class{componentName;tagName;fullName;attributes;inputs;outputs;directives;children;references;isSelfClosing;sourceSpan;startSourceSpan;endSourceSpan;i18n;constructor(o,e,t,i,a,s,d,p,u,g,C,M,x,b){this.componentName=o,this.tagName=e,this.fullName=t,this.attributes=i,this.inputs=a,this.outputs=s,this.directives=d,this.children=p,this.references=u,this.isSelfClosing=g,this.sourceSpan=C,this.startSourceSpan=M,this.endSourceSpan=x,this.i18n=b}visit(o){return o.visitComponent(this)}},NN=class{name;attributes;inputs;outputs;references;sourceSpan;startSourceSpan;endSourceSpan;i18n;constructor(o,e,t,i,a,s,d,p,u){this.name=o,this.attributes=e,this.inputs=t,this.outputs=i,this.references=a,this.sourceSpan=s,this.startSourceSpan=d,this.endSourceSpan=p,this.i18n=u}visit(o){return o.visitDirective(this)}},Qs=class{tagName;attributes;inputs;outputs;directives;templateAttrs;children;references;variables;isSelfClosing;sourceSpan;startSourceSpan;endSourceSpan;i18n;constructor(o,e,t,i,a,s,d,p,u,g,C,M,x,b){this.tagName=o,this.attributes=e,this.inputs=t,this.outputs=i,this.directives=a,this.templateAttrs=s,this.children=d,this.references=p,this.variables=u,this.isSelfClosing=g,this.sourceSpan=C,this.startSourceSpan=M,this.endSourceSpan=x,this.i18n=b}visit(o){return o.visitTemplate(this)}},Ug=class{selector;attributes;children;isSelfClosing;sourceSpan;startSourceSpan;endSourceSpan;i18n;name="ng-content";constructor(o,e,t,i,a,s,d,p){this.selector=o,this.attributes=e,this.children=t,this.isSelfClosing=i,this.sourceSpan=a,this.startSourceSpan=s,this.endSourceSpan=d,this.i18n=p}visit(o){return o.visitContent(this)}},Om=class{name;value;sourceSpan;keySpan;valueSpan;constructor(o,e,t,i,a){this.name=o,this.value=e,this.sourceSpan=t,this.keySpan=i,this.valueSpan=a}visit(o){return o.visitVariable(this)}},c0=class{name;value;sourceSpan;keySpan;valueSpan;constructor(o,e,t,i,a){this.name=o,this.value=e,this.sourceSpan=t,this.keySpan=i,this.valueSpan=a}visit(o){return o.visitReference(this)}},FN=class{vars;placeholders;sourceSpan;i18n;constructor(o,e,t,i){this.vars=o,this.placeholders=e,this.sourceSpan=t,this.i18n=i}visit(o){return o.visitIcu(this)}},d0=class{tagNames;bindings;listeners;sourceSpan;constructor(o,e,t,i){if(this.tagNames=o,this.bindings=e,this.listeners=t,this.sourceSpan=i,o.length===0)throw new Error("HostElement must have at least one tag name.")}visit(){throw new Error("HostElement cannot be visited")}};function Gk(n,o){let e=[];if(n.visit)for(let t of o)n.visit(t);else for(let t of o){let i=t.visit(n);i&&e.push(i)}return e}var os=class{nodes;placeholders;placeholderToMessage;meaning;description;customId;sources;id;legacyIds=[];messageString;constructor(o,e,t,i,a,s){this.nodes=o,this.placeholders=e,this.placeholderToMessage=t,this.meaning=i,this.description=a,this.customId=s,this.id=this.customId,this.messageString=$U(this.nodes),o.length?this.sources=[{filePath:o[0].sourceSpan.start.file.url,startLine:o[0].sourceSpan.start.line+1,startCol:o[0].sourceSpan.start.col+1,endLine:o[o.length-1].sourceSpan.end.line+1,endCol:o[0].sourceSpan.start.col+1}]:this.sources=[]}},uf=class{value;sourceSpan;constructor(o,e){this.value=o,this.sourceSpan=e}visit(o,e){return o.visitText(this,e)}},Id=class{children;sourceSpan;constructor(o,e){this.children=o,this.sourceSpan=e}visit(o,e){return o.visitContainer(this,e)}},tx=class{expression;type;cases;sourceSpan;expressionPlaceholder;constructor(o,e,t,i,a){this.expression=o,this.type=e,this.cases=t,this.sourceSpan=i,this.expressionPlaceholder=a}visit(o,e){return o.visitIcu(this,e)}},Dm=class{tag;attrs;startName;closeName;children;isVoid;sourceSpan;startSourceSpan;endSourceSpan;constructor(o,e,t,i,a,s,d,p,u){this.tag=o,this.attrs=e,this.startName=t,this.closeName=i,this.children=a,this.isVoid=s,this.sourceSpan=d,this.startSourceSpan=p,this.endSourceSpan=u}visit(o,e){return o.visitTagPlaceholder(this,e)}},m0=class{value;name;sourceSpan;constructor(o,e,t){this.value=o,this.name=e,this.sourceSpan=t}visit(o,e){return o.visitPlaceholder(this,e)}},Wg=class{value;name;sourceSpan;previousMessage;constructor(o,e,t){this.value=o,this.name=e,this.sourceSpan=t}visit(o,e){return o.visitIcuPlaceholder(this,e)}},Im=class{name;parameters;startName;closeName;children;sourceSpan;startSourceSpan;endSourceSpan;constructor(o,e,t,i,a,s,d,p){this.name=o,this.parameters=e,this.startName=t,this.closeName=i,this.children=a,this.sourceSpan=s,this.startSourceSpan=d,this.endSourceSpan=p}visit(o,e){return o.visitBlockPlaceholder(this,e)}};function $U(n){let o=new RP;return n.map(t=>t.visit(o)).join("")}var RP=class{visitText(o){return o.value}visitContainer(o){return o.children.map(e=>e.visit(this)).join("")}visitIcu(o){let e=Object.keys(o.cases).map(t=>`${t} {${o.cases[t].visit(this)}}`);return`{${o.expressionPlaceholder}, ${o.type}, ${e.join(" ")}}`}visitTagPlaceholder(o){let e=o.children.map(t=>t.visit(this)).join("");return`{$${o.startName}}${e}{$${o.closeName}}`}visitPlaceholder(o){return`{$${o.name}}`}visitIcuPlaceholder(o){return`{$${o.name}}`}visitBlockPlaceholder(o){let e=o.children.map(t=>t.visit(this)).join("");return`{$${o.startName}}${e}{$${o.closeName}}`}};var HU=class{visitTag(o){let e=this._serializeAttributes(o.attrs);if(o.children.length==0)return`<${o.name}${e}/>`;let t=o.children.map(i=>i.visit(this));return`<${o.name}${e}>${t.join("")}`}visitText(o){return o.value}visitDeclaration(o){return``}_serializeAttributes(o){let e=Object.keys(o).map(t=>`${t}="${o[t]}"`).join(" ");return e.length>0?" "+e:""}visitDoctype(o){return``}},MHe=new HU;function UU(n){return n.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}var RN="i18n",zP="i18n-",WU="VAR_";function zN(n){return n===RN||n.startsWith(zP)}function GU(n){return n.attrs.some(o=>zN(o.name))}function LN(n){return n.nodes[0]}function Q3(n={},o){let e={};return n&&Object.keys(n).length&&Object.keys(n).forEach(t=>e[R0(t,o)]=n[t]),e}function R0(n,o=!0){let e=UU(n);if(!o)return e;let t=e.split("_");if(t.length===1)return n.toLowerCase();let i;/^\d+$/.test(t[t.length-1])&&(i=t.pop());let a=t.shift().toLowerCase();return t.length&&(a+=t.map(s=>s.charAt(0).toUpperCase()+s.slice(1).toLowerCase()).join("")),i?`${a}_${i}`:a}var qU=/[-.]/,K3="_t",Zs="ctx",Jg="rf";function VN(n,o){let e=null;return()=>(e||(n(new Ga(K3,void 0,ws)),e=di(o)),e)}function kg(n){return Array.isArray(n)?io(n.map(kg)):De(n,ic)}function q5(n,o){let e=Object.getOwnPropertyNames(n);return e.length===0?null:yl(e.map(t=>{let i=n[t],a,s,d,p;if(typeof i=="string")a=t,d=t,s=i,p=kg(s);else{d=t,a=i.classPropertyName,s=i.bindingPropertyName;let u=s!==a,g=i.transformFunction!==null,C=yf.None;if(i.isSignal&&(C|=yf.SignalBased),g&&(C|=yf.HasDecoratorInputTransform),o&&(u||g||C!==yf.None)){let M=[De(C),kg(s)];(u||g)&&(M.push(kg(a)),g&&M.push(i.transformFunction)),p=io(M)}else p=kg(s)}return{key:d,quoted:qU.test(d),value:p}}))}var Am=class{values=[];set(o,e){if(e){let t=this.values.find(i=>i.key===o);t?t.value=e:this.values.push({key:o,value:e,quoted:!1})}}toLiteralMap(){return yl(this.values)}};function QU(n){let o=n instanceof Uc?n.name:"ng-template",e=KU(n),t=new Ag,i=hr(o)[1];return t.setElement(i),Object.getOwnPropertyNames(e).forEach(a=>{let s=hr(a)[1],d=e[a];t.addAttribute(s,d),a.toLowerCase()==="class"&&d.trim().split(/\s+/).forEach(u=>t.addClassName(u))}),t}function KU(n){let o={};return n instanceof Qs&&n.tagName!=="ng-template"?n.templateAttrs.forEach(e=>o[e.name]=""):(n.attributes.forEach(e=>{zN(e.name)||(o[e.name]=e.value)}),n.inputs.forEach(e=>{(e.type===Fi.Property||e.type===Fi.TwoWay)&&(o[e.name]="")}),n.outputs.forEach(e=>{o[e.name]=""})),o}function Q5(n,o){let e=null,t={name:n.name,type:n.type,typeArgumentCount:n.typeArgumentCount,deps:[],target:Ed.Injectable};if(n.useClass!==void 0){let d=n.useClass.expression.isEquivalent(n.type.value),p;n.deps!==void 0&&(p=n.deps),p!==void 0?e=Hp(ze(q({},t),{delegate:n.useClass.expression,delegateDeps:p,delegateType:Vb.Class})):d?e=Hp(t):e={statements:[],expression:K5(n.type.value,n.useClass.expression,o)}}else n.useFactory!==void 0?n.deps!==void 0?e=Hp(ze(q({},t),{delegate:n.useFactory,delegateDeps:n.deps||[],delegateType:Vb.Function})):e={statements:[],expression:Ys([],n.useFactory.callFn([]))}:n.useValue!==void 0?e=Hp(ze(q({},t),{expression:n.useValue.expression})):n.useExisting!==void 0?e=Hp(ze(q({},t),{expression:Ht(ge.inject).callFn([n.useExisting.expression])})):e={statements:[],expression:K5(n.type.value,n.type.value,o)};let i=n.type.value,a=new Am;return a.set("token",i),a.set("factory",e.expression),n.providedIn.expression.value!==null&&a.set("providedIn",AU(n.providedIn)),{expression:Ht(ge.\u0275\u0275defineInjectable).callFn([a.toLiteralMap()],void 0,!0),type:XU(n),statements:e.statements}}function XU(n){return new xl(Ht(ge.InjectableDeclaration,[Fx(n.type.type,n.typeArgumentCount)]))}function K5(n,o,e){if(n.node===o.node)return o.prop("\u0275fac");if(!e)return X5(o);let t=Ht(ge.resolveForwardRef).callFn([o]);return X5(t)}function X5(n){let o=new Da("__ngFactoryType__",ws);return Ys([o],n.prop("\u0275fac").callFn([di(o.name)]))}var or=0,YU=8,X3=9,Zp=10,BN=11,jN=12,Y3=13,$N=32,LP=33,p0=34,HN=35,zx=36,ZU=37,nx=38,u0=39,ns=40,Ea=41,Y5=42,UN=43,Nr=44,ix=45,jp=46,gl=47,Fc=58,bs=59,Ig=60,nr=61,Ws=62,Z5=63,Z3=48,JU=55,WN=57,Vm=65,eW=69,tW=70,nW=88,eh=90,Lc=91,Jp=92,Od=93,iW=94,Bm=95,pu=97,oW=98,aW=101,J3=102,GN=110,qN=114,QN=116,KN=117,XN=118,YN=120,z0=122,fl=123,J5=124,es=125,ZN=160,fg=64,VP=96;function g0(n){return n>=X3&&n<=$N||n==ZN}function hl(n){return Z3<=n&&n<=WN}function Nm(n){return n>=pu&&n<=z0||n>=Vm&&n<=eh}function rW(n){return n>=pu&&n<=J3||n>=Vm&&n<=tW||hl(n)}function ox(n){return n===Zp||n===Y3}function e6(n){return Z3<=n&&n<=JU}function Of(n){return n===u0||n===p0||n===VP}var h0=class n{file;offset;line;col;constructor(o,e,t,i){this.file=o,this.offset=e,this.line=t,this.col=i}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(o){let e=this.file.content,t=e.length,i=this.offset,a=this.line,s=this.col;for(;i>0&&o<0;)if(i--,o++,e.charCodeAt(i)==Zp){a--;let p=e.substring(0,i-1).lastIndexOf(String.fromCharCode(Zp));s=p>0?i-p:i}else s--;for(;i0;){let d=e.charCodeAt(i);i++,o--,d==Zp?(a++,s=0):s++}return new n(this.file,i,a,s)}getContext(o,e){let t=this.file.content,i=this.offset;if(i!=null){i>t.length-1&&(i=t.length-1);let a=i,s=0,d=0;for(;s0&&(i--,s++,!(t[i]==` +`&&++d==e)););for(s=0,d=0;s]${o.after}")`:this.msg}toString(){let o=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${o}`}};function sW(n,o,e){let t=`in ${n} ${o} in ${e}`,i=new ax("",t);return new In(new h0(i,-1,-1,-1),new h0(i,-1,-1,-1))}var lW=0;function cW(n){if(!n||!n.reference)return null;let o=n.reference;if(o.__anonymousType)return o.__anonymousType;if(o.__forward_ref__)return"__forward_ref__";let e=IN(o);return e.indexOf("(")>=0?(e=`anonymous_${lW++}`,o.__anonymousType=e):e=Up(e),e}function Up(n){return n.replace(/\W/g,"_")}var t6='(this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})',BP=class extends yP{constructor(){super(!1)}visitWrappedNodeExpr(o,e){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")}visitDeclareVarStmt(o,e){return e.print(o,`var ${o.name}`),o.value&&(e.print(o," = "),o.value.visitExpression(this,e)),e.println(o,";"),null}visitTaggedTemplateLiteralExpr(o,e){let t=o.template.elements;return o.tag.visitExpression(this,e),e.print(o,`(${t6}(`),e.print(o,`[${t.map(i=>Gp(i.text,!1)).join(", ")}], `),e.print(o,`[${t.map(i=>Gp(i.rawText,!1)).join(", ")}])`),o.template.expressions.forEach(i=>{e.print(o,", "),i.visitExpression(this,e)}),e.print(o,")"),null}visitTemplateLiteralExpr(o,e){e.print(o,"`");for(let t=0;t"),Array.isArray(o.body))e.println(o,"{"),e.incIndent(),this.visitAllStatements(o.body,e),e.decIndent(),e.print(o,"}");else{let t=o.body instanceof rc;t&&e.print(o,"("),o.body.visitExpression(this,e),t&&e.print(o,")")}return null}visitDeclareFunctionStmt(o,e){return e.print(o,`function ${o.name}(`),this._visitParams(o.params,e),e.println(o,") {"),e.incIndent(),this.visitAllStatements(o.statements,e),e.decIndent(),e.println(o,"}"),null}visitLocalizedString(o,e){e.print(o,`$localize(${t6}(`);let t=[o.serializeI18nHead()];for(let i=1;iGp(i.cooked,!1)).join(", ")}], `),e.print(o,`[${t.map(i=>Gp(i.raw,!1)).join(", ")}])`),o.expressions.forEach(i=>{e.print(o,", "),i.visitExpression(this,e)}),e.print(o,")"),null}_visitParams(o,e){this.visitAllObjects(t=>e.print(null,t.name),o,e,",")}},cb;function dW(){if(cb===void 0){let n=Tf.trustedTypes;if(cb=null,n)try{cb=n.createPolicy("angular#unsafe-jit",{createScript:o=>o})}catch{}}return cb}function mW(n){return dW()?.createScript(n)||n}function n6(...n){if(!Tf.trustedTypes)return new Function(...n);let o=n.slice(0,-1).join(","),e=n[n.length-1],t=`(function anonymous(${o} +) { ${e} +})`,i=Tf.eval(mW(t));return i.bind===void 0?new Function(...n):(i.toString=()=>t,i.bind(Tf))}var jP=class{evaluateStatements(o,e,t,i){let a=new $P(t),s=xP.createRoot();return e.length>0&&!pW(e[0])&&(e=[De("use strict").toStmt(),...e]),a.visitAllStatements(e,s),a.createReturnStmt(s),this.evaluateCode(o,s,a.getArgs(),i)}evaluateCode(o,e,t,i){let a=`"use strict";${e.toSource()} +//# sourceURL=${o}`,s=[],d=[];for(let u in t)d.push(t[u]),s.push(u);if(i){let u=n6(...s.concat("return null;")).toString(),g=u.slice(0,u.indexOf("return null;")).split(` +`).length-1;a+=` +${e.toSourceMapGenerator(o,g).toJsComment()}`}let p=n6(...s.concat(a));return this.executeFunction(p,d)}executeFunction(o,e){return o(...e)}},$P=class extends BP{refResolver;_evalArgNames=[];_evalArgValues=[];_evalExportedVars=[];constructor(o){super(),this.refResolver=o}createReturnStmt(o){new Ia(new rc(this._evalExportedVars.map(t=>new Rg(t,di(t),!1)))).visitStatement(this,o)}getArgs(){let o={};for(let e=0;e0&&o.set("imports",io(n.imports));let e=Ht(ge.defineInjector).callFn([o.toLiteralMap()],void 0,!0),t=uW(n);return{expression:e,type:t,statements:[]}}function uW(n){return new xl(Ht(ge.InjectorDeclaration,[new xl(n.type.type)]))}var HP=class{context;constructor(o){this.context=o}resolveExternalReference(o){if(o.moduleName!=="@angular/core")throw new Error(`Cannot resolve external reference to ${o.moduleName}, only references to @angular/core are supported.`);if(!this.context.hasOwnProperty(o.name))throw new Error(`No value provided for @angular/core symbol '${o.name}'.`);return this.context[o.name]}},rx=(function(n){return n[n.Inline=0]="Inline",n[n.SideEffect=1]="SideEffect",n[n.Omit=2]="Omit",n})(rx||{}),km=(function(n){return n[n.Global=0]="Global",n[n.Local=1]="Local",n})(km||{});function gW(n){let o=[],e=new Am;if(e.set("type",n.type.value),n.kind===km.Global&&n.bootstrap.length>0&&e.set("bootstrap",qp(n.bootstrap,n.containsForwardDecls)),n.selectorScopeMode===rx.Inline)n.declarations.length>0&&e.set("declarations",qp(n.declarations,n.containsForwardDecls)),n.imports.length>0&&e.set("imports",qp(n.imports,n.containsForwardDecls)),n.exports.length>0&&e.set("exports",qp(n.exports,n.containsForwardDecls));else if(n.selectorScopeMode===rx.SideEffect){let a=fW(n);a!==null&&o.push(a)}n.schemas!==null&&n.schemas.length>0&&e.set("schemas",io(n.schemas.map(a=>a.value))),n.id!==null&&(e.set("id",n.id),o.push(Ht(ge.registerNgModuleType).callFn([n.type.value,n.id]).toStmt()));let t=Ht(ge.defineNgModule).callFn([e.toLiteralMap()],void 0,!0),i=_W(n);return{expression:t,type:i,statements:o}}function hW(n){let o=new Am;return o.set("type",new _i(n.type)),n.bootstrap!==void 0&&o.set("bootstrap",new _i(n.bootstrap)),n.declarations!==void 0&&o.set("declarations",new _i(n.declarations)),n.imports!==void 0&&o.set("imports",new _i(n.imports)),n.exports!==void 0&&o.set("exports",new _i(n.exports)),n.schemas!==void 0&&o.set("schemas",new _i(n.schemas)),n.id!==void 0&&o.set("id",new _i(n.id)),Ht(ge.defineNgModule).callFn([o.toLiteralMap()])}function _W(n){if(n.kind===km.Local)return new xl(n.type.value);let{type:o,declarations:e,exports:t,imports:i,includeImportTypes:a,publicDeclarationTypes:s}=n;return new xl(Ht(ge.NgModuleDeclaration,[new xl(o.type),s===null?qk(e):vW(s),a?qk(i):Bc,qk(t)]))}function fW(n){let o=new Am;if(n.kind===km.Global?n.declarations.length>0&&o.set("declarations",qp(n.declarations,n.containsForwardDecls)):n.declarationsExpression&&o.set("declarations",n.declarationsExpression),n.kind===km.Global?n.imports.length>0&&o.set("imports",qp(n.imports,n.containsForwardDecls)):n.importsExpression&&o.set("imports",n.importsExpression),n.kind===km.Global?n.exports.length>0&&o.set("exports",qp(n.exports,n.containsForwardDecls)):n.exportsExpression&&o.set("exports",n.exportsExpression),n.kind===km.Local&&n.bootstrapExpression&&o.set("bootstrap",n.bootstrapExpression),Object.keys(o.values).length===0)return null;let e=new Ms(Ht(ge.setNgModuleScope),[n.type.value,o.toLiteralMap()]),t=DU(e),i=new Pm([],[t.toStmt()]);return new Ms(i,[]).toStmt()}function qk(n){let o=n.map(e=>N0(e.type));return n.length>0?gr(io(o)):Bc}function vW(n){let o=n.map(e=>N0(e));return n.length>0?gr(io(o)):Bc}function o6(n){let o=[];o.push({key:"name",value:De(n.pipeName??n.name),quoted:!1}),o.push({key:"type",value:n.type.value,quoted:!1}),o.push({key:"pure",value:De(n.pure),quoted:!1}),n.isStandalone===!1&&o.push({key:"standalone",value:De(!1),quoted:!1});let e=Ht(ge.definePipe).callFn([yl(o)],void 0,!0),t=CW(n);return{expression:e,type:t,statements:[]}}function CW(n){return new xl(Ht(ge.PipeDeclaration,[Fx(n.type.type,n.typeArgumentCount),new xl(new _r(n.pipeName)),new xl(new _r(n.isStandalone))]))}var Gg=(function(n){return n[n.Directive=0]="Directive",n[n.Pipe=1]="Pipe",n[n.NgModule=2]="NgModule",n})(Gg||{}),bW=new Set(["inherit","initial","revert","unset","alternate","alternate-reverse","normal","reverse","backwards","both","forwards","none","paused","running","ease","ease-in","ease-in-out","ease-out","linear","step-start","step-end","end","jump-both","jump-end","jump-none","jump-start","start"]),xW=["@media","@supports","@document","@layer","@container","@scope","@starting-style"],UP=class{shimCssText(o,e,t=""){let i=[];o=o.replace(zW,d=>{if(d.match(LW))i.push(d);else{let p=d.match(RW);i.push(p?.join("")??"")}return tT}),o=this._insertDirectives(o);let a=this._scopeCssText(o,e,t),s=0;return a.replace(VW,()=>i[s++])}_insertDirectives(o){return o=this._insertPolyfillDirectivesInCssText(o),this._insertPolyfillRulesInCssText(o)}_scopeKeyframesRelatedCss(o,e){let t=new Set,i=db(o,a=>this._scopeLocalKeyframeDeclarations(a,e,t));return db(i,a=>this._scopeAnimationRule(a,e,t))}_scopeLocalKeyframeDeclarations(o,e,t){return ze(q({},o),{selector:o.selector.replace(/(^@(?:-webkit-)?keyframes(?:\s+))(['"]?)(.+)\2(\s*)$/,(i,a,s,d,p)=>(t.add(s6(d,s)),`${a}${s}${e}_${d}${s}${p}`))})}_scopeAnimationKeyframe(o,e,t){return o.replace(/^(\s*)(['"]?)(.+?)\2(\s*)$/,(i,a,s,d,p)=>(d=`${t.has(s6(d,s))?e+"_":""}${d}`,`${a}${s}${d}${s}${p}`))}_animationDeclarationKeyframesRe=/(^|\s+|,)(?:(?:(['"])((?:\\\\|\\\2|(?!\2).)+)\2)|(-?[A-Za-z][\w\-]*))(?=[,\s]|$)/g;_scopeAnimationRule(o,e,t){let i=o.content.replace(/((?:^|\s+|;)(?:-webkit-)?animation\s*:\s*),*([^;]+)/g,(a,s,d)=>s+d.replace(this._animationDeclarationKeyframesRe,(p,u,g="",C,M)=>C?`${u}${this._scopeAnimationKeyframe(`${g}${C}${g}`,e,t)}`:bW.has(M)?p:`${u}${this._scopeAnimationKeyframe(M,e,t)}`));return i=i.replace(/((?:^|\s+|;)(?:-webkit-)?animation-name(?:\s*):(?:\s*))([^;]+)/g,(a,s,d)=>`${s}${d.split(",").map(p=>this._scopeAnimationKeyframe(p,e,t)).join(",")}`),ze(q({},o),{content:i})}_insertPolyfillDirectivesInCssText(o){return o.replace(wW,function(...e){return e[2]+"{"})}_insertPolyfillRulesInCssText(o){return o.replace(MW,(...e)=>{let t=e[0].replace(e[1],"").replace(e[2],"");return e[4]+t})}_scopeCssText(o,e,t){let i=this._extractUnscopedRulesFromCssText(o);return o=this._insertPolyfillHostInCssText(o),o=this._convertColonHost(o),o=this._convertColonHostContext(o),o=this._convertShadowDOMSelectors(o),e&&(o=this._scopeKeyframesRelatedCss(o,e),o=this._scopeSelectors(o,e,t)),o=o+` +`+i,o.trim()}_extractUnscopedRulesFromCssText(o){let e="",t;for(a6.lastIndex=0;(t=a6.exec(o))!==null;){let i=t[0].replace(t[2],"").replace(t[1],t[4]);e+=i+` + +`}return e}_convertColonHost(o){return o.replace(TW,(e,t,i)=>{if(t){let a=[];for(let s of this._splitOnTopLevelCommas(t,!0)){let d=s.trim();if(!d)break;let p=ym+d.replace(sx,"")+i;a.push(p)}return a.join(",")}else return ym+i})}*_splitOnTopLevelCommas(o,e){let t=o.length,i=0,a=0;for(let s=0;s{let i=[[]],a=e.indexOf(wg);for(;a!==-1;){let s=e.substring(a+wg.length);if(!s||s[0]!=="("){e=s,a=e.indexOf(wg);continue}let d=[],p=0;for(let g of this._splitOnTopLevelCommas(s.substring(1),!0)){p=p+g.length+1;let C=g.trim();C&&d.push(C)}let u=i.length;XW(i,d.length);for(let g=0;gKW(s,e,t)).join(", ")})}_convertShadowDOMSelectors(o){return IW.reduce((e,t)=>e.replace(t," "),o)}_scopeSelectors(o,e,t){return db(o,i=>{let a=i.selector,s=i.content;return i.selector[0]!=="@"?a=this._scopeSelector({selector:a,scopeSelector:e,hostSelector:t,isParentSelector:!0}):xW.some(d=>i.selector.startsWith(d))?s=this._scopeSelectors(i.content,e,t):(i.selector.startsWith("@font-face")||i.selector.startsWith("@page"))&&(s=this._stripScopingSelectors(i.content)),new _0(a,s)})}_stripScopingSelectors(o){return db(o,e=>{let t=e.selector.replace(r6," ").replace(Qk," ");return new _0(t,e.content)})}_safeSelector;_shouldScopeIndicator;_scopeSelector({selector:o,scopeSelector:e,hostSelector:t,isParentSelector:i=!1}){let a=/ ?,(?!(?:[^)(]*(?:\([^)(]*(?:\([^)(]*(?:\([^)(]*\)[^)(]*)*\)[^)(]*)*\)[^)(]*)*\))) ?/;return o.split(a).map(s=>s.split(r6)).map(s=>{let[d,...p]=s;return[(g=>this._selectorNeedsScoping(g,e)?this._applySelectorScope({selector:g,scopeSelector:e,hostSelector:t,isParentSelector:i}):g)(d),...p].join(" ")}).join(", ")}_selectorNeedsScoping(o,e){return!this._makeScopeMatcher(e).test(o)}_makeScopeMatcher(o){let e=/\[/g,t=/\]/g;return o=o.replace(e,"\\[").replace(t,"\\]"),new RegExp("^("+o+")"+AW,"m")}_applySimpleSelectorScope(o,e,t){if(Pg.lastIndex=0,Pg.test(o)){let i=`[${t}]`,a=o;for(;a.match(Qk);)a=a.replace(Qk,(s,d)=>d.replace(/([^:\)]*)(:*)(.*)/,(p,u,g,C)=>u+i+g+C));return a.replace(Pg,i)}return e+" "+o}_applySelectorScope({selector:o,scopeSelector:e,hostSelector:t,isParentSelector:i}){let a=/\[is=([^\]]*)\]/g;e=e.replace(a,(P,...k)=>k[0]);let s=`[${e}]`,d=P=>{let k=P.trim();if(!k)return P;if(P.includes(ym)){if(k=this._applySimpleSelectorScope(P,e,t),!P.match(DW)){let[S,O,A,D]=k.match(/([^:]*)(:*)([\s\S]*)/);k=O+s+A+D}}else{let S=P.replace(Pg,"");if(S.length>0){let O=S.match(/([^:]*)(:*)([\s\S]*)/);O&&(k=O[1]+s+O[2]+O[3])}}return k},p=P=>{let k="",S=[],O;for(;(O=gf.exec(P))!==null;){let A=1,D=gf.lastIndex;for(;D{let[D]=A.match(gf)??[],F=A.slice(D?.length,-1);F.includes(ym)&&(this._shouldScopeIndicator=!0);let I=this._scopeSelector({selector:F,scopeSelector:e,hostSelector:t});return`${D}${I})`}).join(""):(this._shouldScopeIndicator=this._shouldScopeIndicator||P.includes(ym),k=this._shouldScopeIndicator?d(P):P),k};i&&(this._safeSelector=new WP(o),o=this._safeSelector.content());let u="",g=0,C,M=/( |>|\+|~(?!=))(?!([^)(]*(?:\([^)(]*(?:\([^)(]*(?:\([^)(]*\)[^)(]*)*\)[^)(]*)*\)[^)(]*)*\)))\s*/g,x=o.includes(ym);for((i||this._shouldScopeIndicator)&&(this._shouldScopeIndicator=!x);(C=M.exec(o))!==null;){let P=C[1],k=o.slice(g,C.index);if(k.match(/__esc-ph-(\d+)__/)&&o[C.index+1]?.match(/[a-fA-F\d]/))continue;let S=p(k);u+=`${S} ${P} `,g=M.lastIndex}let b=o.substring(g);return u+=p(b),this._safeSelector.restore(u)}_insertPolyfillHostInCssText(o){return o.replace(FW,wg).replace(NW,sx)}},WP=class{placeholders=[];index=0;_content;constructor(o){o=this._escapeRegexMatches(o,/(\[[^\]]*\])/g),o=o.replace(/(\\.)/g,(e,t)=>{let i=`__esc-ph-${this.index}__`;return this.placeholders.push(t),this.index++,i}),this._content=o.replace(PW,(e,t,i)=>{let a=`__ph-${this.index}__`;return this.placeholders.push(`(${i})`),this.index++,t+a})}restore(o){return o.replace(/__(?:ph|esc-ph)-(\d+)__/g,(e,t)=>this.placeholders[+t])}content(){return this._content}_escapeRegexMatches(o,e){return o.replace(e,(t,i)=>{let a=`__ph-${this.index}__`;return this.placeholders.push(i),this.index++,a})}},yW="(:(where|is)\\()?",gf=/:(where|is)\(/gi,wW=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,MW=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,a6=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,sx="-shadowcsshost",wg="-shadowcsscontext",GP="[^)(]*",SW=String.raw`(?:\(${GP}\)|${GP})+?`,kW=String.raw`(?:\(${SW}\)|${GP})+?`,eT=String.raw`(?:\((${kW})\))`,PW=new RegExp(String.raw`(:nth-[-\w]+)`+eT,"g"),TW=new RegExp(sx+eT+"?([^,{]*)","gim"),EW=wg+eT+"?([^{]*)",OW=new RegExp(`${yW}(${EW})`,"gim"),ym=sx+"-no-combinator",DW=new RegExp(`${ym}(?![^(]*\\))`,"g"),Qk=/-shadowcsshost-no-combinator([^\s,]*)/,IW=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],r6=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,AW="([>\\s~+[.,{:][\\s\\S]*)?$",Pg=/-shadowcsshost/gim,NW=/:host/gim,FW=/:host-context/gim,RW=/\r?\n/g,zW=/\/\*[\s\S]*?\*\//g,LW=/\/\*\s*#\s*source(Mapping)?URL=/g,tT="%COMMENT%",VW=new RegExp(tT,"g"),Kk="%BLOCK%",BW=new RegExp(`(\\s*(?:${tT}\\s*)*)([^;\\{\\}]+?)(\\s*)((?:{%BLOCK%}?\\s*;?)|(?:\\s*;))`,"g"),jW=new Map([["{","}"]]),JN="%COMMA_IN_PLACEHOLDER%",eF="%SEMI_IN_PLACEHOLDER%",tF="%COLON_IN_PLACEHOLDER%",$W=new RegExp(JN,"g"),HW=new RegExp(eF,"g"),UW=new RegExp(tF,"g"),_0=class{selector;content;constructor(o,e){this.selector=o,this.content=e}};function db(n,o){let e=qW(n),t=WW(e,jW,Kk),i=0,a=t.escapedString.replace(BW,(...s)=>{let d=s[2],p="",u=s[4],g="";u&&u.startsWith("{"+Kk)&&(p=t.blocks[i++],u=u.substring(Kk.length+1),g="{");let C=o(new _0(d,p));return`${s[1]}${C.selector}${s[3]}${g}${C.content}${u}`});return QW(a)}var qP=class{escapedString;blocks;constructor(o,e){this.escapedString=o,this.blocks=e}};function WW(n,o,e){let t=[],i=[],a=0,s=0,d=-1,p,u;for(let g=0;g0;){let s=a.length,d=n.pop();for(let p=0;pi?`${e}${s}${o}`:`${e}${s}${t}${o}, ${e}${s} ${t}${o}`).join(",")}function XW(n,o){let e=n.length;for(let t=1;t{class n{static nextListId=0;debugListId=n.nextListId++;head={kind:j.ListEnd,next:null,prev:null,debugListId:this.debugListId};tail={kind:j.ListEnd,next:null,prev:null,debugListId:this.debugListId};constructor(){this.head.next=this.tail,this.tail.prev=this.head}push(e){if(Array.isArray(e)){for(let i of e)this.push(i);return}n.assertIsNotEnd(e),n.assertIsUnowned(e),e.debugListId=this.debugListId;let t=this.tail.prev;e.prev=t,t.next=e,e.next=this.tail,this.tail.prev=e}prepend(e){if(e.length===0)return;for(let a of e)n.assertIsNotEnd(a),n.assertIsUnowned(a),a.debugListId=this.debugListId;let t=this.head.next,i=this.head;for(let a of e)i.next=a,a.prev=i,i=a;i.next=t,t.prev=i}*[Symbol.iterator](){let e=this.head.next;for(;e!==this.tail;){n.assertIsOwned(e,this.debugListId);let t=e.next;yield e,e=t}}*reversed(){let e=this.tail.prev;for(;e!==this.head;){n.assertIsOwned(e,this.debugListId);let t=e.prev;yield e,e=t}}static replace(e,t){n.assertIsNotEnd(e),n.assertIsNotEnd(t),n.assertIsOwned(e),n.assertIsUnowned(t),t.debugListId=e.debugListId,e.prev!==null&&(e.prev.next=t,t.prev=e.prev),e.next!==null&&(e.next.prev=t,t.next=e.next),e.debugListId=null,e.prev=null,e.next=null}static replaceWithMany(e,t){if(t.length===0){n.remove(e);return}n.assertIsNotEnd(e),n.assertIsOwned(e);let i=e.debugListId;e.debugListId=null;for(let g of t)n.assertIsNotEnd(g),n.assertIsUnowned(g);let{prev:a,next:s}=e;e.prev=null,e.next=null;let d=a;for(let g of t)n.assertIsUnowned(g),g.debugListId=i,d.next=g,g.prev=d,g.next=null,d=g;let p=t[0],u=d;a!==null&&(a.next=p,p.prev=a),s!==null&&(s.prev=u,u.next=s)}static remove(e){n.assertIsNotEnd(e),n.assertIsOwned(e),e.prev.next=e.next,e.next.prev=e.prev,e.debugListId=null,e.prev=null,e.next=null}static insertBefore(e,t){if(Array.isArray(e)){for(let i of e)n.insertBefore(i,t);return}if(n.assertIsOwned(t),t.prev===null)throw new Error("AssertionError: illegal operation on list start");n.assertIsNotEnd(e),n.assertIsUnowned(e),e.debugListId=t.debugListId,e.prev=null,t.prev.next=e,e.prev=t.prev,e.next=t,t.prev=e}static insertAfter(e,t){if(n.assertIsOwned(t),t.next===null)throw new Error("AssertionError: illegal operation on list end");n.assertIsNotEnd(e),n.assertIsUnowned(e),e.debugListId=t.debugListId,t.next.prev=e,e.next=t.next,e.prev=t,t.next=e}static assertIsUnowned(e){if(e.debugListId!==null)throw new Error(`AssertionError: illegal operation on owned node: ${j[e.kind]}`)}static assertIsOwned(e,t){if(e.debugListId===null)throw new Error(`AssertionError: illegal operation on unowned node: ${j[e.kind]}`);if(t!==void 0&&e.debugListId!==t)throw new Error(`AssertionError: node belongs to the wrong list (expected ${t}, actual ${e.debugListId})`)}static assertIsNotEnd(e){if(e.kind===j.ListEnd)throw new Error("AssertionError: illegal operation on list head or tail")}}return n})();function Js(n){return q({kind:j.Statement,statement:n},An)}function Mm(n,o,e,t){return q({kind:j.Variable,xref:n,variable:o,initializer:e,flags:t},An)}var An={debugListId:null,prev:null,next:null},nF=Symbol("ConsumesSlot"),nT=Symbol("DependsOnSlotContext"),Cu=Symbol("ConsumesVars"),L0=Symbol("UsesVarOffset"),wl={[nF]:!0,numSlotsUsed:1},ks={[nT]:!0},Ps={[Cu]:!0};function nh(n){return n[nF]===!0}function v0(n){return n[nT]===!0}function Xk(n){return n[Cu]===!0}function l6(n){return n[L0]===!0}function YW(n,o,e){return q(q(q({kind:j.InterpolateText,target:n,interpolation:o,sourceSpan:e},ks),Ps),An)}var aa=class{strings;expressions;i18nPlaceholders;constructor(o,e,t){if(this.strings=o,this.expressions=e,this.i18nPlaceholders=t,t.length!==0&&t.length!==e.length)throw new Error(`Expected ${e.length} placeholders to match interpolation expression count, but got ${t.length}`)}};function uu(n,o,e,t,i,a,s,d,p,u,g){return q({kind:j.Binding,bindingKind:o,target:n,name:e,expression:t,unit:i,securityContext:a,isTextAttribute:s,isStructuralTemplateAttribute:d,templateKind:p,i18nContext:null,i18nMessage:u,sourceSpan:g},An)}function ZW(n,o,e,t,i,a,s,d,p,u){return q(q(q({kind:j.Property,target:n,name:o,expression:e,bindingKind:t,securityContext:i,sanitizer:null,isStructuralTemplateAttribute:a,templateKind:s,i18nContext:d,i18nMessage:p,sourceSpan:u},ks),Ps),An)}function JW(n,o,e,t,i,a,s,d,p){return q(q(q({kind:j.TwoWayProperty,target:n,name:o,expression:e,securityContext:t,sanitizer:null,isStructuralTemplateAttribute:i,templateKind:a,i18nContext:s,i18nMessage:d,sourceSpan:p},ks),Ps),An)}function eG(n,o,e,t,i){return q(q(q({kind:j.StyleProp,target:n,name:o,expression:e,unit:t,sourceSpan:i},ks),Ps),An)}function tG(n,o,e,t){return q(q(q({kind:j.ClassProp,target:n,name:o,expression:e,sourceSpan:t},ks),Ps),An)}function nG(n,o,e){return q(q(q({kind:j.StyleMap,target:n,expression:o,sourceSpan:e},ks),Ps),An)}function iG(n,o,e){return q(q(q({kind:j.ClassMap,target:n,expression:o,sourceSpan:e},ks),Ps),An)}function c6(n,o,e,t,i,a,s,d,p,u){return q(q(q({kind:j.Attribute,target:n,namespace:o,name:e,expression:t,securityContext:i,sanitizer:null,isTextAttribute:a,isStructuralTemplateAttribute:s,templateKind:d,i18nContext:null,i18nMessage:p,sourceSpan:u},ks),Ps),An)}function oG(n,o){return q({kind:j.Advance,delta:n,sourceSpan:o},An)}function iF(n,o,e,t){return q(q(q({kind:j.Conditional,target:n,test:o,conditions:e,processed:null,sourceSpan:t,contextValue:null},An),ks),Ps)}function aG(n,o,e,t){return q(q({kind:j.Repeater,target:n,targetSlot:o,collection:e,sourceSpan:t},An),ks)}function d6(n,o,e,t,i,a,s){return q({kind:j.AnimationBinding,name:n,target:o,animationKind:e,expression:t,i18nMessage:null,securityContext:i,sanitizer:null,sourceSpan:a,animationBindingKind:s},An)}function rG(n,o,e,t){return q(q(q({kind:j.DeferWhen,target:n,expr:o,modifier:e,sourceSpan:t},An),ks),Ps)}function oF(n,o,e,t,i,a,s,d,p,u,g){return q(q(q({kind:j.I18nExpression,context:n,target:o,i18nOwner:e,handle:t,expression:i,icuPlaceholder:a,i18nPlaceholder:s,resolutionTime:d,usage:p,name:u,sourceSpan:g},An),Ps),ks)}function sG(n,o,e){return q({kind:j.I18nApply,owner:n,handle:o,sourceSpan:e},An)}function lG(n,o,e,t){return q(q(q({kind:j.StoreLet,target:n,declaredName:o,value:e,sourceSpan:t},ks),Ps),An)}function cG(n,o){return q(q({kind:j.Control,sourceSpan:o,target:n},ks),An)}function Gc(n){return n instanceof oo}var oo=class extends Qi{constructor(o=null){super(null,o)}},ir=class n extends oo{name;kind=Jt.LexicalRead;constructor(o){super(),this.name=o}visitExpression(o,e){}isEquivalent(o){return this.name===o.name}isConstant(){return!1}transformInternalExpressions(){}clone(){return new n(this.name)}},lx=class n extends oo{target;targetSlot;offset;kind=Jt.Reference;constructor(o,e,t){super(),this.target=o,this.targetSlot=e,this.offset=t}visitExpression(){}isEquivalent(o){return o instanceof n&&o.target===this.target}isConstant(){return!1}transformInternalExpressions(){}clone(){return new n(this.target,this.targetSlot,this.offset)}},C0=class n extends oo{target;value;sourceSpan;kind=Jt.StoreLet;[Cu]=!0;[nT]=!0;constructor(o,e,t){super(),this.target=o,this.value=e,this.sourceSpan=t}visitExpression(){}isEquivalent(o){return o instanceof n&&o.target===this.target&&o.value.isEquivalent(this.value)}isConstant(){return!1}transformInternalExpressions(o,e){this.value=Bt(this.value,o,e)}clone(){return new n(this.target,this.value,this.sourceSpan)}},b0=class n extends oo{target;targetSlot;kind=Jt.ContextLetReference;constructor(o,e){super(),this.target=o,this.targetSlot=e}visitExpression(){}isEquivalent(o){return o instanceof n&&o.target===this.target}isConstant(){return!1}transformInternalExpressions(){}clone(){return new n(this.target,this.targetSlot)}},Fm=class n extends oo{view;kind=Jt.Context;constructor(o){super(),this.view=o}visitExpression(){}isEquivalent(o){return o instanceof n&&o.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new n(this.view)}},QP=class n extends oo{view;kind=Jt.TrackContext;constructor(o){super(),this.view=o}visitExpression(){}isEquivalent(o){return o instanceof n&&o.view===this.view}isConstant(){return!1}transformInternalExpressions(){}clone(){return new n(this.view)}},cx=class n extends oo{kind=Jt.NextContext;steps=1;visitExpression(){}isEquivalent(o){return o instanceof n&&o.steps===this.steps}isConstant(){return!1}transformInternalExpressions(){}clone(){let o=new n;return o.steps=this.steps,o}},KP=class n extends oo{kind=Jt.GetCurrentView;constructor(){super()}visitExpression(){}isEquivalent(o){return o instanceof n}isConstant(){return!1}transformInternalExpressions(){}clone(){return new n}},x0=class n extends oo{view;kind=Jt.RestoreView;constructor(o){super(),this.view=o}visitExpression(o,e){typeof this.view!="number"&&this.view.visitExpression(o,e)}isEquivalent(o){return!(o instanceof n)||typeof o.view!=typeof this.view?!1:typeof this.view=="number"?this.view===o.view:this.view.isEquivalent(o.view)}isConstant(){return!1}transformInternalExpressions(o,e){typeof this.view!="number"&&(this.view=Bt(this.view,o,e))}clone(){return new n(this.view instanceof Qi?this.view.clone():this.view)}},dx=class n extends oo{expr;kind=Jt.ResetView;constructor(o){super(),this.expr=o}visitExpression(o,e){this.expr.visitExpression(o,e)}isEquivalent(o){return o instanceof n&&this.expr.isEquivalent(o.expr)}isConstant(){return!1}transformInternalExpressions(o,e){this.expr=Bt(this.expr,o,e)}clone(){return new n(this.expr.clone())}},mx=class n extends oo{target;value;kind=Jt.TwoWayBindingSet;constructor(o,e){super(),this.target=o,this.value=e}visitExpression(o,e){this.target.visitExpression(o,e),this.value.visitExpression(o,e)}isEquivalent(o){return this.target.isEquivalent(o.target)&&this.value.isEquivalent(o.value)}isConstant(){return!1}transformInternalExpressions(o,e){this.target=Bt(this.target,o,e),this.value=Bt(this.value,o,e)}clone(){return new n(this.target,this.value)}},Ad=class n extends oo{xref;kind=Jt.ReadVariable;name=null;constructor(o){super(),this.xref=o}visitExpression(){}isEquivalent(o){return o instanceof n&&o.xref===this.xref}isConstant(){return!1}transformInternalExpressions(){}clone(){let o=new n(this.xref);return o.name=this.name,o}},gu=class n extends oo{kind=Jt.PureFunctionExpr;[Cu]=!0;[L0]=!0;varOffset=null;body;args;fn=null;constructor(o,e){super(),this.body=o,this.args=e}visitExpression(o,e){this.body?.visitExpression(o,e);for(let t of this.args)t.visitExpression(o,e)}isEquivalent(o){return!(o instanceof n)||o.args.length!==this.args.length?!1:o.body!==null&&this.body!==null&&o.body.isEquivalent(this.body)&&o.args.every((e,t)=>e.isEquivalent(this.args[t]))}isConstant(){return!1}transformInternalExpressions(o,e){this.body!==null?this.body=Bt(this.body,o,e|ai.InChildOperation):this.fn!==null&&(this.fn=Bt(this.fn,o,e));for(let t=0;te.clone()));return o.fn=this.fn?.clone()??null,o.varOffset=this.varOffset,o}},Rm=class n extends oo{index;kind=Jt.PureFunctionParameterExpr;constructor(o){super(),this.index=o}visitExpression(){}isEquivalent(o){return o instanceof n&&o.index===this.index}isConstant(){return!0}transformInternalExpressions(){}clone(){return new n(this.index)}},hu=class n extends oo{target;targetSlot;name;args;kind=Jt.PipeBinding;[Cu]=!0;[L0]=!0;varOffset=null;constructor(o,e,t,i){super(),this.target=o,this.targetSlot=e,this.name=t,this.args=i}visitExpression(o,e){for(let t of this.args)t.visitExpression(o,e)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(o,e){for(let t=0;te.clone()));return o.varOffset=this.varOffset,o}},y0=class n extends oo{target;targetSlot;name;args;numArgs;kind=Jt.PipeBindingVariadic;[Cu]=!0;[L0]=!0;varOffset=null;constructor(o,e,t,i,a){super(),this.target=o,this.targetSlot=e,this.name=t,this.args=i,this.numArgs=a}visitExpression(o,e){this.args.visitExpression(o,e)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(o,e){this.args=Bt(this.args,o,e)}clone(){let o=new n(this.target,this.targetSlot,this.name,this.args.clone(),this.numArgs);return o.varOffset=this.varOffset,o}},qg=class n extends oo{receiver;name;kind=Jt.SafePropertyRead;constructor(o,e){super(),this.receiver=o,this.name=e}get index(){return this.name}visitExpression(o,e){this.receiver.visitExpression(o,e)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(o,e){this.receiver=Bt(this.receiver,o,e)}clone(){return new n(this.receiver.clone(),this.name)}},Qg=class n extends oo{receiver;index;kind=Jt.SafeKeyedRead;constructor(o,e,t){super(t),this.receiver=o,this.index=e}visitExpression(o,e){this.receiver.visitExpression(o,e),this.index.visitExpression(o,e)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(o,e){this.receiver=Bt(this.receiver,o,e),this.index=Bt(this.index,o,e)}clone(){return new n(this.receiver.clone(),this.index.clone(),this.sourceSpan)}},_u=class n extends oo{receiver;args;kind=Jt.SafeInvokeFunction;constructor(o,e){super(),this.receiver=o,this.args=e}visitExpression(o,e){this.receiver.visitExpression(o,e);for(let t of this.args)t.visitExpression(o,e)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(o,e){this.receiver=Bt(this.receiver,o,e);for(let t=0;to.clone()))}},Kg=class n extends oo{guard;expr;kind=Jt.SafeTernaryExpr;constructor(o,e){super(),this.guard=o,this.expr=e}visitExpression(o,e){this.guard.visitExpression(o,e),this.expr.visitExpression(o,e)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(o,e){this.guard=Bt(this.guard,o,e),this.expr=Bt(this.expr,o,e)}clone(){return new n(this.guard.clone(),this.expr.clone())}},w0=class n extends oo{kind=Jt.EmptyExpr;visitExpression(o,e){}isEquivalent(o){return o instanceof n}isConstant(){return!0}clone(){return new n}transformInternalExpressions(){}},qc=class n extends oo{expr;xref;kind=Jt.AssignTemporaryExpr;name=null;constructor(o,e){super(),this.expr=o,this.xref=e}visitExpression(o,e){this.expr.visitExpression(o,e)}isEquivalent(){return!1}isConstant(){return!1}transformInternalExpressions(o,e){this.expr=Bt(this.expr,o,e)}clone(){let o=new n(this.expr.clone(),this.xref);return o.name=this.name,o}},zm=class n extends oo{xref;kind=Jt.ReadTemporaryExpr;name=null;constructor(o){super(),this.xref=o}visitExpression(o,e){}isEquivalent(){return this.xref===this.xref}isConstant(){return!1}transformInternalExpressions(o,e){}clone(){let o=new n(this.xref);return o.name=this.name,o}},px=class n extends oo{slot;kind=Jt.SlotLiteralExpr;constructor(o){super(),this.slot=o}visitExpression(o,e){}isEquivalent(o){return o instanceof n&&o.slot===this.slot}isConstant(){return!0}clone(){return new n(this.slot)}transformInternalExpressions(){}},ux=class n extends oo{expr;target;targetSlot;alias;kind=Jt.ConditionalCase;constructor(o,e,t,i=null){super(),this.expr=o,this.target=e,this.targetSlot=t,this.alias=i}visitExpression(o,e){this.expr!==null&&this.expr.visitExpression(o,e)}isEquivalent(o){return o instanceof n&&o.expr===this.expr}isConstant(){return!0}clone(){return new n(this.expr,this.target,this.targetSlot)}transformInternalExpressions(o,e){this.expr!==null&&(this.expr=Bt(this.expr,o,e))}},M0=class n extends oo{expr;kind=Jt.ConstCollected;constructor(o){super(),this.expr=o}transformInternalExpressions(o,e){this.expr=o(this.expr,e)}visitExpression(o,e){this.expr.visitExpression(o,e)}isEquivalent(o){return o instanceof n?this.expr.isEquivalent(o.expr):!1}isConstant(){return this.expr.isConstant()}clone(){return new n(this.expr)}},XP=class n extends oo{parameters;body;kind=Jt.ArrowFunction;[Cu]=!0;[L0]=!0;contextName=Zs;currentViewName="view";varOffset=null;ops;constructor(o,e){super(),this.parameters=o,this.body=e,this.ops=new Je,this.ops.push([Js(new Ia(e,e.sourceSpan))])}visitExpression(o,e){for(let t of this.ops)wa(t,i=>{i.visitExpression(o,e)})}isEquivalent(o){return o instanceof n&&o.parameters.length===this.parameters.length&&o.parameters.every((e,t)=>e.isEquivalent(this.parameters[t]))&&o.body.isEquivalent(this.body)}isConstant(){return!1}transformInternalExpressions(o,e){for(let t of this.ops)ra(t,o,e|(ai.InChildOperation|ai.InArrowFunctionOperation))}clone(){let o=new n(this.parameters,this.body);return o.varOffset=this.varOffset,o.ops=this.ops,o}};function wa(n,o){ra(n,(e,t)=>(o(e,t),e),ai.None)}var ai=(function(n){return n[n.None=0]="None",n[n.InChildOperation=1]="InChildOperation",n[n.InArrowFunctionOperation=2]="InArrowFunctionOperation",n})(ai||{});function Yk(n,o,e){for(let t=0;tBt(t,o,e));else if(n instanceof vu)if(Array.isArray(n.body))for(let t=0;t{!s&&v0(d)&&d.target!==a.xref&&(s=!0)}),s)break;e=e.next}}}}function RG(n){if(!(!n.enableDebugLocations||n.relativeTemplatePath===null))for(let o of n.units){let e=[];for(let t of o.create)if(t.kind===j.ElementStart||t.kind===j.Element){let i=t.startSourceSpan.start;e.push({targetSlot:t.handle,offset:i.offset,line:i.line,column:i.col})}e.length>0&&o.create.push(TG(n.relativeTemplatePath,e))}}function gF(n){let o=new Map;for(let e of n.create)nh(e)&&(o.set(e.xref,e),e.kind===j.RepeaterCreate&&e.emptyView!==null&&o.set(e.emptyView,e));return o}function zG(n){for(let o of n.units){let e=gF(o);for(let t of o.ops())switch(t.kind){case j.Attribute:LG(o,t,e);break;case j.Property:if(t.bindingKind!==Qt.LegacyAnimation&&t.bindingKind!==Qt.Animation){let i;t.i18nMessage!==null&&t.templateKind===null?i=Qt.I18n:t.isStructuralTemplateAttribute?i=Qt.Template:i=Qt.Property,Je.insertBefore(Cl(t.target,i,null,t.name,null,null,null,t.securityContext),Mg(e,t.target))}break;case j.TwoWayProperty:Je.insertBefore(Cl(t.target,Qt.TwoWayProperty,null,t.name,null,null,null,t.securityContext),Mg(e,t.target));break;case j.StyleProp:case j.ClassProp:t.expression instanceof w0&&Je.insertBefore(Cl(t.target,Qt.Property,null,t.name,null,null,null,gi.STYLE),Mg(e,t.target));break;case j.Listener:if(!t.isLegacyAnimationListener){let i=Cl(t.target,Qt.Property,null,t.name,null,null,null,gi.NONE);if(n.kind===Dt.Host)break;Je.insertBefore(i,Mg(e,t.target))}break;case j.TwoWayListener:if(n.kind!==Dt.Host){let i=Cl(t.target,Qt.Property,null,t.name,null,null,null,gi.NONE);Je.insertBefore(i,Mg(e,t.target))}break}}}function Mg(n,o){let e=n.get(o);if(e===void 0)throw new Error("All attributes should have an element-like target.");return e}function LG(n,o,e){if(!(o.expression instanceof aa)&&o.isTextAttribute){let t=Cl(o.target,o.isStructuralTemplateAttribute?Qt.Template:Qt.Attribute,o.namespace,o.name,o.expression,o.i18nContext,o.i18nMessage,o.securityContext);if(n.job.kind===Dt.Host)n.create.push(t);else{let i=Mg(e,o.target);Je.insertBefore(t,i)}Je.remove(o)}}var m6="aria-";function hF(n){return n.startsWith(m6)&&n.length>m6.length}function VG(n,o){let e=n.get(o);if(e===void 0)throw new Error("All attributes should have an element-like target.");return e}function BG(n){let o=new Map;for(let e of n.units)for(let t of e.create)Lm(t)&&o.set(t.xref,t);for(let e of n.units)for(let t of e.ops())if(t.kind===j.Binding)switch(t.bindingKind){case Qt.Attribute:if(t.name==="ngNonBindable"){Je.remove(t);let i=VG(o,t.target);i.nonBindable=!0}else if(t.name.startsWith("animate."))Je.replace(t,d6(t.name,t.target,t.name==="animate.enter"?"enter":"leave",t.expression,t.securityContext,t.sourceSpan,0));else{let[i,a]=hr(t.name);Je.replace(t,c6(t.target,i,a,t.expression,t.securityContext,t.isTextAttribute,t.isStructuralTemplateAttribute,t.templateKind,t.i18nMessage,t.sourceSpan))}break;case Qt.Animation:Je.replace(t,d6(t.name,t.target,t.name==="animate.enter"?"enter":"leave",t.expression,t.securityContext,t.sourceSpan,1));break;case Qt.Property:case Qt.LegacyAnimation:n.mode===vs.DomOnly&&hF(t.name)?Je.replace(t,c6(t.target,null,t.name,t.expression,t.securityContext,!1,t.isStructuralTemplateAttribute,t.templateKind,t.i18nMessage,t.sourceSpan)):n.kind===Dt.Host?Je.replace(t,OG(t.name,t.expression,t.bindingKind,t.i18nContext,t.securityContext,t.sourceSpan)):Je.replace(t,ZW(t.target,t.name,t.expression,t.bindingKind,t.securityContext,t.isStructuralTemplateAttribute,t.templateKind,t.i18nContext,t.i18nMessage,t.sourceSpan));break;case Qt.TwoWayProperty:if(!(t.expression instanceof Qi))throw new Error(`Expected value of two-way property binding "${t.name}" to be an expression`);Je.replace(t,JW(t.target,t.name,t.expression,t.securityContext,t.isStructuralTemplateAttribute,t.templateKind,t.i18nContext,t.i18nMessage,t.sourceSpan));break;case Qt.I18n:case Qt.ClassName:case Qt.StyleProperty:throw new Error(`Unhandled binding of kind ${Qt[t.bindingKind]}`)}}var p6=new Map([[ge.ariaProperty,ge.ariaProperty],[ge.attribute,ge.attribute],[ge.classProp,ge.classProp],[ge.element,ge.element],[ge.elementContainer,ge.elementContainer],[ge.elementContainerEnd,ge.elementContainerEnd],[ge.elementContainerStart,ge.elementContainerStart],[ge.elementEnd,ge.elementEnd],[ge.elementStart,ge.elementStart],[ge.domProperty,ge.domProperty],[ge.i18nExp,ge.i18nExp],[ge.listener,ge.listener],[ge.listener,ge.listener],[ge.property,ge.property],[ge.styleProp,ge.styleProp],[ge.syntheticHostListener,ge.syntheticHostListener],[ge.syntheticHostProperty,ge.syntheticHostProperty],[ge.templateCreate,ge.templateCreate],[ge.twoWayProperty,ge.twoWayProperty],[ge.twoWayListener,ge.twoWayListener],[ge.declareLet,ge.declareLet],[ge.conditionalCreate,ge.conditionalBranchCreate],[ge.conditionalBranchCreate,ge.conditionalBranchCreate],[ge.domElement,ge.domElement],[ge.domElementStart,ge.domElementStart],[ge.domElementEnd,ge.domElementEnd],[ge.domElementContainer,ge.domElementContainer],[ge.domElementContainerStart,ge.domElementContainerStart],[ge.domElementContainerEnd,ge.domElementContainerEnd],[ge.domListener,ge.domListener],[ge.domTemplate,ge.domTemplate],[ge.animationEnter,ge.animationEnter],[ge.animationLeave,ge.animationLeave],[ge.animationEnterListener,ge.animationEnterListener],[ge.animationLeaveListener,ge.animationLeaveListener]]),jG=256;function $G(n){for(let o of n.units)u6(o.create),u6(o.update)}function u6(n){let o=null;for(let e of n){if(e.kind!==j.Statement||!(e.statement instanceof fr)){o=null;continue}if(!(e.statement.expr instanceof Ms)||!(e.statement.expr.fn instanceof ou)){o=null;continue}let t=e.statement.expr.fn.value;if(!p6.has(t)){o=null;continue}if(o!==null&&p6.get(o.instruction)===t&&o.lengthi==="")&&(e.expression=e.expression.expressions[0])}function UG(n){for(let o of n.units)for(let e of o.ops()){if(e.kind!==j.Conditional)continue;let t,i=e.conditions.findIndex(d=>d.expr===null);if(i>=0){let d=e.conditions.splice(i,1)[0].targetSlot;t=new px(d)}else t=De(-1);let a=e.test==null?null:new qc(e.test,n.allocateXrefId()),s=null;for(let d=e.conditions.length-1;d>=0;d--){let p=e.conditions[d];if(p.expr!==null){if(a!==null){let u=d===0?a:new zm(a.xref);p.expr=new Pi(lt.Identical,u,p.expr)}else p.alias!==null&&(s??=n.allocateXrefId(),p.expr=new qc(p.expr,s),e.contextValue=new zm(s));t=new jc(p.expr,new px(p.targetSlot),t)}}e.processed=t,e.conditions=[]}}var WG=new Map([["&&",lt.And],[">",lt.Bigger],[">=",lt.BiggerEquals],["|",lt.BitwiseOr],["&",lt.BitwiseAnd],["/",lt.Divide],["=",lt.Assign],["==",lt.Equals],["===",lt.Identical],["<",lt.Lower],["<=",lt.LowerEquals],["-",lt.Minus],["%",lt.Modulo],["**",lt.Exponentiation],["*",lt.Multiply],["!=",lt.NotEquals],["!==",lt.NotIdentical],["??",lt.NullishCoalesce],["||",lt.Or],["+",lt.Plus],["in",lt.In],["instanceof",lt.InstanceOf],["+=",lt.AdditionAssignment],["-=",lt.SubtractionAssignment],["*=",lt.MultiplicationAssignment],["/=",lt.DivisionAssignment],["%=",lt.RemainderAssignment],["**=",lt.ExponentiationAssignment],["&&=",lt.AndAssignment],["||=",lt.OrAssignment],["??=",lt.NullishCoalesceAssignment]]);function _F(n){let o=new Map([["svg",Oa.SVG],["math",Oa.Math]]);return n===null?Oa.HTML:o.get(n)??Oa.HTML}function GG(n){let o=new Map([["svg",Oa.SVG],["math",Oa.Math]]);for(let[e,t]of o.entries())if(t===n)return e;return null}function qG(n,o){return o===Oa.HTML?n:`:${GG(o)}:${n}`}function Xg(n){return Array.isArray(n)?io(n.map(Xg)):De(n)}function QG(n){let o=new Map;for(let e of n.units)for(let t of e.create)if(t.kind===j.ExtractedAttribute){let i=o.get(t.target)||new ZP;o.set(t.target,i),i.add(t.bindingKind,t.name,t.expression,t.namespace,t.trustedValueFn),Je.remove(t)}if(n instanceof S0)for(let e of n.units)for(let t of e.create)if(t.kind==j.Projection){let i=o.get(t.xref);if(i!==void 0){let a=JP(i);a.entries.length>0&&(t.attributes=n.pool.getConstLiteral(a,!0))}}else Lm(t)&&(t.attributes=g6(n,o,t.xref),t.kind===j.RepeaterCreate&&t.emptyView!==null&&(t.emptyAttributes=g6(n,o,t.emptyView)));else if(n instanceof fx)for(let[e,t]of o.entries()){if(e!==n.root.xref)throw new Error("An attribute would be const collected into the host binding's template function, but is not associated with the root xref.");let i=JP(t);i.entries.length>0&&(n.root.attributes=i)}}function g6(n,o,e){let t=o.get(e);if(t!==void 0){let i=JP(t);if(i.entries.length>0)return n.addConst(i)}return null}var vg=Object.freeze([]),ZP=class{known=new Map;byKind=new Map;propertyBindings=null;projectAs=null;get attributes(){return this.byKind.get(Qt.Attribute)??vg}get classes(){return this.byKind.get(Qt.ClassName)??vg}get styles(){return this.byKind.get(Qt.StyleProperty)??vg}get bindings(){return this.propertyBindings??vg}get template(){return this.byKind.get(Qt.Template)??vg}get i18n(){return this.byKind.get(Qt.I18n)??vg}isKnown(o,e){let t=this.known.get(o)??new Set;return this.known.set(o,t),t.has(e)?!0:(t.add(e),!1)}add(o,e,t,i,a){if(!(o===Qt.Attribute||o===Qt.ClassName||o===Qt.StyleProperty)&&this.isKnown(o,e))return;if(e==="ngProjectAs"){if(t===null||!(t instanceof _r)||t.value==null||typeof t.value?.toString()!="string")throw Error("ngProjectAs must have a string literal value");this.projectAs=t.value.toString()}let d=this.arrayFor(o);if(d.push(...KG(i,e)),o===Qt.Attribute||o===Qt.StyleProperty){if(t===null)throw Error("Attribute, i18n attribute, & style element attributes must have a value");a!==null&&aF(t)?d.push(mU(a,new Bf([new Ib(t.value)],[]),void 0,t.sourceSpan)):d.push(t)}}arrayFor(o){return o===Qt.Property||o===Qt.TwoWayProperty?(this.propertyBindings??=[],this.propertyBindings):(this.byKind.has(o)||this.byKind.set(o,[]),this.byKind.get(o))}};function KG(n,o){let e=De(o);return n?[De(0),De(n),e]:[e]}function JP({attributes:n,bindings:o,classes:e,i18n:t,projectAs:i,styles:a,template:s}){let d=[...n];if(i!==null){let p=H3(i)[0];d.push(De(5),Xg(p))}return e.length>0&&d.push(De(1),...e),a.length>0&&d.push(De(2),...a),o.length>0&&d.push(De(3),...o),s.length>0&&d.push(De(4),...s),t.length>0&&d.push(De(6),...t),io(d)}function XG(n,o){let e=n.get(o);if(e===void 0)throw new Error("All attributes should have an element-like target.");return e}function YG(n){let o=new Map;for(let e of n.units)for(let t of e.create)Lm(t)&&o.set(t.xref,t);for(let e of n.units)for(let t of e.ops())if(t.kind===j.AnimationBinding){let i=ZG(t);n.kind===Dt.Host?e.create.push(i):Je.insertAfter(i,XG(o,t.target)),Je.remove(t)}}function ZG(n){if(n.animationBindingKind===0)return _G(n.name,n.target,n.name==="animate.enter"?"enter":"leave",n.expression,n.securityContext,n.sourceSpan);{let o=n.expression;return fG(n.name,n.target,n.name==="animate.enter"?"enter":"leave",[Js(new Ia(o,o.sourceSpan))],n.securityContext,n.sourceSpan)}}function JG(n){let o=new Map;for(let e of n.units){for(let t of e.create)t.kind===j.I18nAttributes&&o.set(t.target,t);for(let t of e.update)switch(t.kind){case j.Property:case j.Attribute:if(t.i18nContext===null||!(t.expression instanceof aa))continue;let i=o.get(t.target);if(i===void 0)throw new Error("AssertionError: An i18n attribute binding instruction requires the owning element to have an I18nAttributes create instruction");if(i.target!==t.target)throw new Error("AssertionError: Expected i18nAttributes target element to match binding target element");let a=[];for(let s=0;sgq(t,{job:n}),ai.None),ra(e,hq,ai.None)}function Us(n){return n instanceof au?Us(n.expr):n instanceof Pi?Us(n.lhs)||Us(n.rhs):n instanceof jc?n.falseCase&&Us(n.falseCase)?!0:Us(n.condition)||Us(n.trueCase):n instanceof jf?Us(n.condition):n instanceof qc?Us(n.expr):n instanceof Xs?Us(n.receiver):n instanceof Fd?Us(n.receiver)||Us(n.index):n instanceof ac?Us(n.expr):n instanceof Ms||n instanceof $c||n instanceof rc||n instanceof _u||n instanceof hu}function cq(n){let o=new Set;return Bt(n,e=>(e instanceof qc&&o.add(e.xref),e),ai.None),o}function dq(n,o,e){return Bt(n,t=>{if(t instanceof qc&&o.has(t.xref)){let i=new zm(t.xref);return new qc(i,i.xref)}return t},ai.None),n}function Cg(n,o,e){let t;if(Us(n)){let i=e.job.allocateXrefId();t=[new qc(n,i),new zm(i)]}else t=[n,n.clone()],dq(t[1],cq(t[0]));return new Kg(t[0],o(t[1]))}function mq(n){return n instanceof qg||n instanceof Qg||n instanceof _u}function pq(n){return n instanceof Xs||n instanceof Fd||n instanceof Ms}function fF(n){return mq(n)||pq(n)}function uq(n){if(fF(n)&&n.receiver instanceof Kg){let o=n.receiver;for(;o.expr instanceof Kg;)o=o.expr;return o}return null}function gq(n,o){if(!fF(n))return n;let e=uq(n);if(e){if(n instanceof Ms)return e.expr=e.expr.callFn(n.args),n.receiver;if(n instanceof Xs)return e.expr=e.expr.prop(n.name),n.receiver;if(n instanceof Fd)return e.expr=e.expr.key(n.index),n.receiver;if(n instanceof _u)return e.expr=Cg(e.expr,t=>t.callFn(n.args),o),n.receiver;if(n instanceof qg)return e.expr=Cg(e.expr,t=>t.prop(n.name),o),n.receiver;if(n instanceof Qg)return e.expr=Cg(e.expr,t=>t.key(n.index),o),n.receiver}else{if(n instanceof _u)return Cg(n.receiver,t=>t.callFn(n.args),o);if(n instanceof qg)return Cg(n.receiver,t=>t.prop(n.name),o);if(n instanceof Qg)return Cg(n.receiver,t=>t.key(n.index),o)}return n}function hq(n){return n instanceof Kg?new ac(new jc(new Pi(lt.Equals,n.guard,zg),zg,n.expr)):n}var h6="\uFFFD",_q="#",fq="*",vq="/",Cq=":",bq="[",xq="]",yq="|";function wq(n){let o=new Map,e=new Map,t=new Map;for(let a of n.units)for(let s of a.create)switch(s.kind){case j.I18nContext:let d=Mq(n,s);a.create.push(d),o.set(s.xref,d),t.set(s.xref,s);break;case j.I18nStart:e.set(s.xref,s);break}let i=null;for(let a of n.units)for(let s of a.create)switch(s.kind){case j.IcuStart:i=s,Je.remove(s);let d=t.get(s.context);if(d.contextKind!==Kp.Icu)continue;let p=e.get(d.i18nBlock);if(p.context===d.xref)continue;let u=e.get(p.root),g=o.get(u.context);if(g===void 0)throw Error("AssertionError: ICU sub-message should belong to a root message.");let C=o.get(d.xref);C.messagePlaceholder=s.messagePlaceholder,g.subMessages.push(C.xref);break;case j.IcuEnd:i=null,Je.remove(s);break;case j.IcuPlaceholder:if(i===null||i.context==null)throw Error("AssertionError: Unexpected ICU placeholder outside of i18n context");o.get(i.context).postprocessingParams.set(s.name,De(Sq(s))),Je.remove(s);break}}function Mq(n,o,e){let t=_6(o.params),i=_6(o.postprocessingParams),a=[...o.params.values()].some(s=>s.length>1);return MG(n.allocateXrefId(),o.xref,o.i18nBlock,o.message,null,t,i,a)}function Sq(n){if(n.strings.length!==n.expressionPlaceholders.length+1)throw Error(`AssertionError: Invalid ICU placeholder with ${n.strings.length} strings and ${n.expressionPlaceholders.length} expressions`);let o=n.expressionPlaceholders.map(Tg);return n.strings.flatMap((e,t)=>[e,o[t]||""]).join("")}function _6(n){let o=new Map;for(let[e,t]of n){let i=kq(t);i!==null&&o.set(e,De(i))}return o}function kq(n){if(n.length===0)return null;let o=n.map(e=>Tg(e));return o.length===1?o[0]:`${bq}${o.join(yq)}${xq}`}function Tg(n){if(n.flags&go.ElementTag&&n.flags&go.TemplateTag){if(typeof n.value!="object")throw Error("AssertionError: Expected i18n param value to have an element and template slot");let i=Tg(ze(q({},n),{value:n.value.element,flags:n.flags&~go.TemplateTag})),a=Tg(ze(q({},n),{value:n.value.template,flags:n.flags&~go.ElementTag}));return n.flags&go.OpenTag&&n.flags&go.CloseTag?`${a}${i}${a}`:n.flags&go.CloseTag?`${i}${a}`:`${a}${i}`}if(n.flags&go.OpenTag&&n.flags&go.CloseTag)return`${Tg(ze(q({},n),{flags:n.flags&~go.CloseTag}))}${Tg(ze(q({},n),{flags:n.flags&~go.OpenTag}))}`;if(n.flags===go.None)return`${n.value}`;let o="",e="";n.flags&go.ElementTag?o=_q:n.flags&go.TemplateTag&&(o=fq),o!==""&&(e=n.flags&go.CloseTag?vq:"");let t=n.subTemplateIndex===null?"":`${Cq}${n.subTemplateIndex}`;return`${h6}${e}${o}${n.value}${t}${h6}`}function Pq(n){for(let o of n.units){let e=new Map;for(let i of o.create){if(nh(i)){if(i.handle.slot===null)throw new Error("AssertionError: expected slots to have been allocated before generating advance() calls")}else continue;e.set(i.xref,i.handle.slot)}let t=0;for(let i of o.update){let a=null;if(v0(i)?a=i:wa(i,d=>{a===null&&v0(d)&&(a=d)}),a===null)continue;if(!e.has(a.target))throw new Error(`AssertionError: reference to unknown slot for target ${a.target}`);let s=e.get(a.target);if(t!==s){let d=s-t;if(d<0)throw new Error("AssertionError: slot counter should never need to move backwards");Je.insertBefore(oG(d,a.sourceSpan),i),t=s}}}}function Tq(n){for(let o of n.units)for(let e of o.update){if(e.kind!==j.StoreLet)continue;let t={kind:ar.Identifier,name:null,identifier:e.declaredName,local:!0};Je.replace(e,Mm(n.allocateXrefId(),t,new C0(e.target,e.value,e.sourceSpan),vl.None))}}function Eq(n){let e=[],t=0;for(let i of n.units)for(let a of i.create)a.kind===j.Projection&&(e.push(a.selector),a.projectionSlotIndex=t++);if(e.length>0){let i=null;if(e.length>1||e[0]!=="*"){let a=e.map(s=>s==="*"?s:H3(s));i=n.pool.getConstLiteral(Xg(a),!0)}n.contentSelectors=n.pool.getConstLiteral(Xg(e),!0),n.root.create.prepend([bG(i)])}}function Oq(n){Mf(n.root,null)}function Mf(n,o){let e=f6(n,o);for(let t of n.create)switch(t.kind){case j.ConditionalCreate:case j.ConditionalBranchCreate:case j.Template:Mf(n.job.views.get(t.xref),e);break;case j.Projection:t.fallbackView!==null&&Mf(n.job.views.get(t.fallbackView),e);break;case j.RepeaterCreate:Mf(n.job.views.get(t.xref),e),t.emptyView&&Mf(n.job.views.get(t.emptyView),e),t.trackByOps!==null&&t.trackByOps.prepend(Sf(n,e,!1));break;case j.Animation:case j.AnimationListener:case j.Listener:case j.TwoWayListener:t.handlerOps.prepend(Sf(n,e,!0));break}n.update.prepend(Sf(n,e,!1));for(let t of n.functions)t.ops.prepend(Sf(n,f6(n,o),!0))}function f6(n,o){let e={view:n.xref,viewContextVariable:{kind:ar.Context,name:null,view:n.xref},contextVariables:new Map,aliases:n.aliases,references:[],letDeclarations:[],parent:o};for(let t of n.contextVariables.keys())e.contextVariables.set(t,{kind:ar.Identifier,name:null,identifier:t,local:!1});for(let t of n.create)switch(t.kind){case j.ElementStart:case j.ConditionalCreate:case j.ConditionalBranchCreate:case j.Template:if(!Array.isArray(t.localRefs))throw new Error("AssertionError: expected localRefs to be an array");for(let i=0;it instanceof M0?De(n.addConst(t.expr)):t,ai.None)}var v6="style.",C6="class.",Iq="style!",b6="class!",x6="!important";function Aq(n){for(let o of n.root.update)if(o.kind===j.Binding&&o.bindingKind===Qt.Property)if(o.name.endsWith(x6)&&(o.name=o.name.substring(0,o.name.length-x6.length)),o.name.startsWith(v6)){o.bindingKind=Qt.StyleProperty,o.name=o.name.substring(v6.length),Nq(o.name)||(o.name=Fq(o.name));let{property:e,suffix:t}=Jk(o.name);o.name=e,o.unit=t}else o.name.startsWith(Iq)?(o.bindingKind=Qt.StyleProperty,o.name="style"):o.name.startsWith(C6)?(o.bindingKind=Qt.ClassName,o.name=Jk(o.name.substring(C6.length)).property):o.name.startsWith(b6)&&(o.bindingKind=Qt.ClassName,o.name=Jk(o.name.substring(b6.length)).property)}function Nq(n){return n.startsWith("--")}function Fq(n){return n.replace(/[a-z][A-Z]/g,o=>o.charAt(0)+"-"+o.charAt(1)).toLowerCase()}function Jk(n){let o=n.indexOf("!important");o!==-1&&(n=o>0?n.substring(0,o):"");let e=null,t=n,i=n.lastIndexOf(".");return i>0&&(e=n.slice(i+1),t=n.substring(0,i)),{property:t,suffix:e}}function e3(n,o=!1){return yl(Object.keys(n).map(e=>({key:e,quoted:o,value:n[e]})))}var t3=class{visitText(o){return o.value}visitContainer(o){return o.children.map(e=>e.visit(this)).join("")}visitIcu(o){let e=Object.keys(o.cases).map(i=>`${i} {${o.cases[i].visit(this)}}`);return`{${o.expressionPlaceholder}, ${o.type}, ${e.join(" ")}}`}visitTagPlaceholder(o){return o.isVoid?this.formatPh(o.startName):`${this.formatPh(o.startName)}${o.children.map(e=>e.visit(this)).join("")}${this.formatPh(o.closeName)}`}visitPlaceholder(o){return this.formatPh(o.name)}visitBlockPlaceholder(o){return`${this.formatPh(o.startName)}${o.children.map(e=>e.visit(this)).join("")}${this.formatPh(o.closeName)}`}visitIcuPlaceholder(o,e){return this.formatPh(o.name)}formatPh(o){return`{${R0(o,!1)}}`}},Rq=new t3;function vF(n){return n.visit(Rq)}var Rd=class{sourceSpan;i18n;constructor(o,e){this.sourceSpan=o,this.i18n=e}},fu=class extends Rd{value;tokens;constructor(o,e,t,i){super(e,i),this.value=o,this.tokens=t}visit(o,e){return o.visitText(this,e)}},eu=class extends Rd{switchValue;type;cases;switchValueSourceSpan;constructor(o,e,t,i,a,s){super(i,s),this.switchValue=o,this.type=e,this.cases=t,this.switchValueSourceSpan=a}visit(o,e){return o.visitExpansion(this,e)}},vx=class{value;expression;sourceSpan;valueSourceSpan;expSourceSpan;constructor(o,e,t,i,a){this.value=o,this.expression=e,this.sourceSpan=t,this.valueSourceSpan=i,this.expSourceSpan=a}visit(o,e){return o.visitExpansionCase(this,e)}},n3=class extends Rd{name;value;keySpan;valueSpan;valueTokens;constructor(o,e,t,i,a,s,d){super(t,d),this.name=o,this.value=e,this.keySpan=i,this.valueSpan=a,this.valueTokens=s}visit(o,e){return o.visitAttribute(this,e)}},ul=class extends Rd{name;attrs;directives;children;isSelfClosing;startSourceSpan;endSourceSpan;isVoid;constructor(o,e,t,i,a,s,d,p=null,u,g){super(s,g),this.name=o,this.attrs=e,this.directives=t,this.children=i,this.isSelfClosing=a,this.startSourceSpan=d,this.endSourceSpan=p,this.isVoid=u}visit(o,e){return o.visitElement(this,e)}},k0=class{value;sourceSpan;constructor(o,e){this.value=o,this.sourceSpan=e}visit(o,e){return o.visitComment(this,e)}},_l=class extends Rd{name;parameters;children;nameSpan;startSourceSpan;endSourceSpan;constructor(o,e,t,i,a,s,d=null,p){super(i,p),this.name=o,this.parameters=e,this.children=t,this.nameSpan=a,this.startSourceSpan=s,this.endSourceSpan=d}visit(o,e){return o.visitBlock(this,e)}},Jr=class extends Rd{componentName;tagName;fullName;attrs;directives;children;isSelfClosing;startSourceSpan;endSourceSpan;constructor(o,e,t,i,a,s,d,p,u,g=null,C){super(p,C),this.componentName=o,this.tagName=e,this.fullName=t,this.attrs=i,this.directives=a,this.children=s,this.isSelfClosing=d,this.startSourceSpan=u,this.endSourceSpan=g}visit(o,e){return o.visitComponent(this,e)}},i3=class{name;attrs;sourceSpan;startSourceSpan;endSourceSpan;constructor(o,e,t,i,a=null){this.name=o,this.attrs=e,this.sourceSpan=t,this.startSourceSpan=i,this.endSourceSpan=a}visit(o,e){return o.visitDirective(this,e)}},Cx=class{expression;sourceSpan;constructor(o,e){this.expression=o,this.sourceSpan=e}visit(o,e){return o.visitBlockParameter(this,e)}},bx=class{name;value;sourceSpan;nameSpan;valueSpan;constructor(o,e,t,i,a){this.name=o,this.value=e,this.sourceSpan=t,this.nameSpan=i,this.valueSpan=a}visit(o,e){return o.visitLetDeclaration(this,e)}};function ko(n,o,e=null){let t=[],i=n.visit?a=>n.visit(a,e)||a.visit(n,e):a=>a.visit(n,e);return o.forEach(a=>{let s=i(a);s&&t.push(s)}),t}var P0={AElig:"\xC6",AMP:"&",amp:"&",Aacute:"\xC1",Abreve:"\u0102",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",af:"\u2061",Aring:"\xC5",angst:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",colone:"\u2254",coloneq:"\u2254",Atilde:"\xC3",Auml:"\xC4",Backslash:"\u2216",setminus:"\u2216",setmn:"\u2216",smallsetminus:"\u2216",ssetmn:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",doublebarwedge:"\u2306",Bcy:"\u0411",Because:"\u2235",becaus:"\u2235",because:"\u2235",Bernoullis:"\u212C",Bscr:"\u212C",bernou:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",breve:"\u02D8",Bumpeq:"\u224E",HumpDownHump:"\u224E",bump:"\u224E",CHcy:"\u0427",COPY:"\xA9",copy:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",DD:"\u2145",Cayleys:"\u212D",Cfr:"\u212D",Ccaron:"\u010C",Ccedil:"\xC7",Ccirc:"\u0108",Cconint:"\u2230",Cdot:"\u010A",Cedilla:"\xB8",cedil:"\xB8",CenterDot:"\xB7",centerdot:"\xB7",middot:"\xB7",Chi:"\u03A7",CircleDot:"\u2299",odot:"\u2299",CircleMinus:"\u2296",ominus:"\u2296",CirclePlus:"\u2295",oplus:"\u2295",CircleTimes:"\u2297",otimes:"\u2297",ClockwiseContourIntegral:"\u2232",cwconint:"\u2232",CloseCurlyDoubleQuote:"\u201D",rdquo:"\u201D",rdquor:"\u201D",CloseCurlyQuote:"\u2019",rsquo:"\u2019",rsquor:"\u2019",Colon:"\u2237",Proportion:"\u2237",Colone:"\u2A74",Congruent:"\u2261",equiv:"\u2261",Conint:"\u222F",DoubleContourIntegral:"\u222F",ContourIntegral:"\u222E",conint:"\u222E",oint:"\u222E",Copf:"\u2102",complexes:"\u2102",Coproduct:"\u2210",coprod:"\u2210",CounterClockwiseContourIntegral:"\u2233",awconint:"\u2233",Cross:"\u2A2F",Cscr:"\u{1D49E}",Cup:"\u22D3",CupCap:"\u224D",asympeq:"\u224D",DDotrahd:"\u2911",DJcy:"\u0402",DScy:"\u0405",DZcy:"\u040F",Dagger:"\u2021",ddagger:"\u2021",Darr:"\u21A1",Dashv:"\u2AE4",DoubleLeftTee:"\u2AE4",Dcaron:"\u010E",Dcy:"\u0414",Del:"\u2207",nabla:"\u2207",Delta:"\u0394",Dfr:"\u{1D507}",DiacriticalAcute:"\xB4",acute:"\xB4",DiacriticalDot:"\u02D9",dot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",dblac:"\u02DD",DiacriticalGrave:"`",grave:"`",DiacriticalTilde:"\u02DC",tilde:"\u02DC",Diamond:"\u22C4",diam:"\u22C4",diamond:"\u22C4",DifferentialD:"\u2146",dd:"\u2146",Dopf:"\u{1D53B}",Dot:"\xA8",DoubleDot:"\xA8",die:"\xA8",uml:"\xA8",DotDot:"\u20DC",DotEqual:"\u2250",doteq:"\u2250",esdot:"\u2250",DoubleDownArrow:"\u21D3",Downarrow:"\u21D3",dArr:"\u21D3",DoubleLeftArrow:"\u21D0",Leftarrow:"\u21D0",lArr:"\u21D0",DoubleLeftRightArrow:"\u21D4",Leftrightarrow:"\u21D4",hArr:"\u21D4",iff:"\u21D4",DoubleLongLeftArrow:"\u27F8",Longleftarrow:"\u27F8",xlArr:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",Longleftrightarrow:"\u27FA",xhArr:"\u27FA",DoubleLongRightArrow:"\u27F9",Longrightarrow:"\u27F9",xrArr:"\u27F9",DoubleRightArrow:"\u21D2",Implies:"\u21D2",Rightarrow:"\u21D2",rArr:"\u21D2",DoubleRightTee:"\u22A8",vDash:"\u22A8",DoubleUpArrow:"\u21D1",Uparrow:"\u21D1",uArr:"\u21D1",DoubleUpDownArrow:"\u21D5",Updownarrow:"\u21D5",vArr:"\u21D5",DoubleVerticalBar:"\u2225",par:"\u2225",parallel:"\u2225",shortparallel:"\u2225",spar:"\u2225",DownArrow:"\u2193",ShortDownArrow:"\u2193",darr:"\u2193",downarrow:"\u2193",DownArrowBar:"\u2913",DownArrowUpArrow:"\u21F5",duarr:"\u21F5",DownBreve:"\u0311",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVector:"\u21BD",leftharpoondown:"\u21BD",lhard:"\u21BD",DownLeftVectorBar:"\u2956",DownRightTeeVector:"\u295F",DownRightVector:"\u21C1",rhard:"\u21C1",rightharpoondown:"\u21C1",DownRightVectorBar:"\u2957",DownTee:"\u22A4",top:"\u22A4",DownTeeArrow:"\u21A7",mapstodown:"\u21A7",Dscr:"\u{1D49F}",Dstrok:"\u0110",ENG:"\u014A",ETH:"\xD0",Eacute:"\xC9",Ecaron:"\u011A",Ecirc:"\xCA",Ecy:"\u042D",Edot:"\u0116",Efr:"\u{1D508}",Egrave:"\xC8",Element:"\u2208",in:"\u2208",isin:"\u2208",isinv:"\u2208",Emacr:"\u0112",EmptySmallSquare:"\u25FB",EmptyVerySmallSquare:"\u25AB",Eogon:"\u0118",Eopf:"\u{1D53C}",Epsilon:"\u0395",Equal:"\u2A75",EqualTilde:"\u2242",eqsim:"\u2242",esim:"\u2242",Equilibrium:"\u21CC",rightleftharpoons:"\u21CC",rlhar:"\u21CC",Escr:"\u2130",expectation:"\u2130",Esim:"\u2A73",Eta:"\u0397",Euml:"\xCB",Exists:"\u2203",exist:"\u2203",ExponentialE:"\u2147",ee:"\u2147",exponentiale:"\u2147",Fcy:"\u0424",Ffr:"\u{1D509}",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",blacksquare:"\u25AA",squarf:"\u25AA",squf:"\u25AA",Fopf:"\u{1D53D}",ForAll:"\u2200",forall:"\u2200",Fouriertrf:"\u2131",Fscr:"\u2131",GJcy:"\u0403",GT:">",gt:">",Gamma:"\u0393",Gammad:"\u03DC",Gbreve:"\u011E",Gcedil:"\u0122",Gcirc:"\u011C",Gcy:"\u0413",Gdot:"\u0120",Gfr:"\u{1D50A}",Gg:"\u22D9",ggg:"\u22D9",Gopf:"\u{1D53E}",GreaterEqual:"\u2265",ge:"\u2265",geq:"\u2265",GreaterEqualLess:"\u22DB",gel:"\u22DB",gtreqless:"\u22DB",GreaterFullEqual:"\u2267",gE:"\u2267",geqq:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",gl:"\u2277",gtrless:"\u2277",GreaterSlantEqual:"\u2A7E",geqslant:"\u2A7E",ges:"\u2A7E",GreaterTilde:"\u2273",gsim:"\u2273",gtrsim:"\u2273",Gscr:"\u{1D4A2}",Gt:"\u226B",NestedGreaterGreater:"\u226B",gg:"\u226B",HARDcy:"\u042A",Hacek:"\u02C7",caron:"\u02C7",Hat:"^",Hcirc:"\u0124",Hfr:"\u210C",Poincareplane:"\u210C",HilbertSpace:"\u210B",Hscr:"\u210B",hamilt:"\u210B",Hopf:"\u210D",quaternions:"\u210D",HorizontalLine:"\u2500",boxh:"\u2500",Hstrok:"\u0126",HumpEqual:"\u224F",bumpe:"\u224F",bumpeq:"\u224F",IEcy:"\u0415",IJlig:"\u0132",IOcy:"\u0401",Iacute:"\xCD",Icirc:"\xCE",Icy:"\u0418",Idot:"\u0130",Ifr:"\u2111",Im:"\u2111",image:"\u2111",imagpart:"\u2111",Igrave:"\xCC",Imacr:"\u012A",ImaginaryI:"\u2148",ii:"\u2148",Int:"\u222C",Integral:"\u222B",int:"\u222B",Intersection:"\u22C2",bigcap:"\u22C2",xcap:"\u22C2",InvisibleComma:"\u2063",ic:"\u2063",InvisibleTimes:"\u2062",it:"\u2062",Iogon:"\u012E",Iopf:"\u{1D540}",Iota:"\u0399",Iscr:"\u2110",imagline:"\u2110",Itilde:"\u0128",Iukcy:"\u0406",Iuml:"\xCF",Jcirc:"\u0134",Jcy:"\u0419",Jfr:"\u{1D50D}",Jopf:"\u{1D541}",Jscr:"\u{1D4A5}",Jsercy:"\u0408",Jukcy:"\u0404",KHcy:"\u0425",KJcy:"\u040C",Kappa:"\u039A",Kcedil:"\u0136",Kcy:"\u041A",Kfr:"\u{1D50E}",Kopf:"\u{1D542}",Kscr:"\u{1D4A6}",LJcy:"\u0409",LT:"<",lt:"<",Lacute:"\u0139",Lambda:"\u039B",Lang:"\u27EA",Laplacetrf:"\u2112",Lscr:"\u2112",lagran:"\u2112",Larr:"\u219E",twoheadleftarrow:"\u219E",Lcaron:"\u013D",Lcedil:"\u013B",Lcy:"\u041B",LeftAngleBracket:"\u27E8",lang:"\u27E8",langle:"\u27E8",LeftArrow:"\u2190",ShortLeftArrow:"\u2190",larr:"\u2190",leftarrow:"\u2190",slarr:"\u2190",LeftArrowBar:"\u21E4",larrb:"\u21E4",LeftArrowRightArrow:"\u21C6",leftrightarrows:"\u21C6",lrarr:"\u21C6",LeftCeiling:"\u2308",lceil:"\u2308",LeftDoubleBracket:"\u27E6",lobrk:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVector:"\u21C3",dharl:"\u21C3",downharpoonleft:"\u21C3",LeftDownVectorBar:"\u2959",LeftFloor:"\u230A",lfloor:"\u230A",LeftRightArrow:"\u2194",harr:"\u2194",leftrightarrow:"\u2194",LeftRightVector:"\u294E",LeftTee:"\u22A3",dashv:"\u22A3",LeftTeeArrow:"\u21A4",mapstoleft:"\u21A4",LeftTeeVector:"\u295A",LeftTriangle:"\u22B2",vartriangleleft:"\u22B2",vltri:"\u22B2",LeftTriangleBar:"\u29CF",LeftTriangleEqual:"\u22B4",ltrie:"\u22B4",trianglelefteq:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVector:"\u21BF",uharl:"\u21BF",upharpoonleft:"\u21BF",LeftUpVectorBar:"\u2958",LeftVector:"\u21BC",leftharpoonup:"\u21BC",lharu:"\u21BC",LeftVectorBar:"\u2952",LessEqualGreater:"\u22DA",leg:"\u22DA",lesseqgtr:"\u22DA",LessFullEqual:"\u2266",lE:"\u2266",leqq:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",lg:"\u2276",LessLess:"\u2AA1",LessSlantEqual:"\u2A7D",leqslant:"\u2A7D",les:"\u2A7D",LessTilde:"\u2272",lesssim:"\u2272",lsim:"\u2272",Lfr:"\u{1D50F}",Ll:"\u22D8",Lleftarrow:"\u21DA",lAarr:"\u21DA",Lmidot:"\u013F",LongLeftArrow:"\u27F5",longleftarrow:"\u27F5",xlarr:"\u27F5",LongLeftRightArrow:"\u27F7",longleftrightarrow:"\u27F7",xharr:"\u27F7",LongRightArrow:"\u27F6",longrightarrow:"\u27F6",xrarr:"\u27F6",Lopf:"\u{1D543}",LowerLeftArrow:"\u2199",swarr:"\u2199",swarrow:"\u2199",LowerRightArrow:"\u2198",searr:"\u2198",searrow:"\u2198",Lsh:"\u21B0",lsh:"\u21B0",Lstrok:"\u0141",Lt:"\u226A",NestedLessLess:"\u226A",ll:"\u226A",Map:"\u2905",Mcy:"\u041C",MediumSpace:"\u205F",Mellintrf:"\u2133",Mscr:"\u2133",phmmat:"\u2133",Mfr:"\u{1D510}",MinusPlus:"\u2213",mnplus:"\u2213",mp:"\u2213",Mopf:"\u{1D544}",Mu:"\u039C",NJcy:"\u040A",Nacute:"\u0143",Ncaron:"\u0147",Ncedil:"\u0145",Ncy:"\u041D",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",ZeroWidthSpace:"\u200B",NewLine:` +`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nbsp:"\xA0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226F",ngt:"\u226F",ngtr:"\u226F",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",nGtv:"\u226B\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224E\u0338",nbump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",nbumpe:"\u224F\u0338",NotLeftTriangle:"\u22EA",nltri:"\u22EA",ntriangleleft:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",nltrie:"\u22EC",ntrianglelefteq:"\u22EC",NotLess:"\u226E",nless:"\u226E",nlt:"\u226E",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226A\u0338",nLtv:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",npre:"\u2AAF\u0338",npreceq:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",nprcue:"\u22E0",NotReverseElement:"\u220C",notni:"\u220C",notniva:"\u220C",NotRightTriangle:"\u22EB",nrtri:"\u22EB",ntriangleright:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",nrtrie:"\u22ED",ntrianglerighteq:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",nsqsube:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",nsqsupe:"\u22E3",NotSubset:"\u2282\u20D2",nsubset:"\u2282\u20D2",vnsub:"\u2282\u20D2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",nsce:"\u2AB0\u0338",nsucceq:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",nsccue:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",nsupset:"\u2283\u20D2",vnsup:"\u2283\u20D2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",ohm:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",ldquo:"\u201C",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",oline:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",tbrk:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",part:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",plusmn:"\xB1",pm:"\xB1",Popf:"\u2119",primes:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",pr:"\u227A",prec:"\u227A",PrecedesEqual:"\u2AAF",pre:"\u2AAF",preceq:"\u2AAF",PrecedesSlantEqual:"\u227C",prcue:"\u227C",preccurlyeq:"\u227C",PrecedesTilde:"\u227E",precsim:"\u227E",prsim:"\u227E",Prime:"\u2033",Product:"\u220F",prod:"\u220F",Proportional:"\u221D",prop:"\u221D",propto:"\u221D",varpropto:"\u221D",vprop:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',quot:'"',Qfr:"\u{1D514}",Qopf:"\u211A",rationals:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xAE",circledR:"\xAE",reg:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",twoheadrightarrow:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",Rfr:"\u211C",real:"\u211C",realpart:"\u211C",ReverseElement:"\u220B",SuchThat:"\u220B",ni:"\u220B",niv:"\u220B",ReverseEquilibrium:"\u21CB",leftrightharpoons:"\u21CB",lrhar:"\u21CB",ReverseUpEquilibrium:"\u296F",duhar:"\u296F",Rho:"\u03A1",RightAngleBracket:"\u27E9",rang:"\u27E9",rangle:"\u27E9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21E5",rarrb:"\u21E5",RightArrowLeftArrow:"\u21C4",rightleftarrows:"\u21C4",rlarr:"\u21C4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27E7",robrk:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",dharr:"\u21C2",downharpoonright:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rfloor:"\u230B",RightTee:"\u22A2",vdash:"\u22A2",RightTeeArrow:"\u21A6",map:"\u21A6",mapsto:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",vartriangleright:"\u22B3",vrtri:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",rtrie:"\u22B5",trianglerighteq:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",uharr:"\u21BE",upharpoonright:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",rharu:"\u21C0",rightharpoonup:"\u21C0",RightVectorBar:"\u2953",Ropf:"\u211D",reals:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",rAarr:"\u21DB",Rscr:"\u211B",realine:"\u211B",Rsh:"\u21B1",rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortUpArrow:"\u2191",UpArrow:"\u2191",uarr:"\u2191",uparrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",compfn:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",radic:"\u221A",Square:"\u25A1",squ:"\u25A1",square:"\u25A1",SquareIntersection:"\u2293",sqcap:"\u2293",SquareSubset:"\u228F",sqsub:"\u228F",sqsubset:"\u228F",SquareSubsetEqual:"\u2291",sqsube:"\u2291",sqsubseteq:"\u2291",SquareSuperset:"\u2290",sqsup:"\u2290",sqsupset:"\u2290",SquareSupersetEqual:"\u2292",sqsupe:"\u2292",sqsupseteq:"\u2292",SquareUnion:"\u2294",sqcup:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",sstarf:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",sube:"\u2286",subseteq:"\u2286",Succeeds:"\u227B",sc:"\u227B",succ:"\u227B",SucceedsEqual:"\u2AB0",sce:"\u2AB0",succeq:"\u2AB0",SucceedsSlantEqual:"\u227D",sccue:"\u227D",succcurlyeq:"\u227D",SucceedsTilde:"\u227F",scsim:"\u227F",succsim:"\u227F",Sum:"\u2211",sum:"\u2211",Sup:"\u22D1",Supset:"\u22D1",Superset:"\u2283",sup:"\u2283",supset:"\u2283",SupersetEqual:"\u2287",supe:"\u2287",supseteq:"\u2287",THORN:"\xDE",TRADE:"\u2122",trade:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",there4:"\u2234",therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",Tilde:"\u223C",sim:"\u223C",thicksim:"\u223C",thksim:"\u223C",TildeEqual:"\u2243",sime:"\u2243",simeq:"\u2243",TildeFullEqual:"\u2245",cong:"\u2245",TildeTilde:"\u2248",ap:"\u2248",approx:"\u2248",asymp:"\u2248",thickapprox:"\u2248",thkap:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",tdot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",lowbar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",bbrk:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",bigcup:"\u22C3",xcup:"\u22C3",UnionPlus:"\u228E",uplus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",udarr:"\u21C5",UpDownArrow:"\u2195",updownarrow:"\u2195",varr:"\u2195",UpEquilibrium:"\u296E",udhar:"\u296E",UpTee:"\u22A5",bot:"\u22A5",bottom:"\u22A5",perp:"\u22A5",UpTeeArrow:"\u21A5",mapstoup:"\u21A5",UpperLeftArrow:"\u2196",nwarr:"\u2196",nwarrow:"\u2196",UpperRightArrow:"\u2197",nearr:"\u2197",nearrow:"\u2197",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",Uring:"\u016E",Uscr:"\u{1D4B0}",Utilde:"\u0168",Uuml:"\xDC",VDash:"\u22AB",Vbar:"\u2AEB",Vcy:"\u0412",Vdash:"\u22A9",Vdashl:"\u2AE6",Vee:"\u22C1",bigvee:"\u22C1",xvee:"\u22C1",Verbar:"\u2016",Vert:"\u2016",VerticalBar:"\u2223",mid:"\u2223",shortmid:"\u2223",smid:"\u2223",VerticalLine:"|",verbar:"|",vert:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",wr:"\u2240",wreath:"\u2240",VeryThinSpace:"\u200A",hairsp:"\u200A",Vfr:"\u{1D519}",Vopf:"\u{1D54D}",Vscr:"\u{1D4B1}",Vvdash:"\u22AA",Wcirc:"\u0174",Wedge:"\u22C0",bigwedge:"\u22C0",xwedge:"\u22C0",Wfr:"\u{1D51A}",Wopf:"\u{1D54E}",Wscr:"\u{1D4B2}",Xfr:"\u{1D51B}",Xi:"\u039E",Xopf:"\u{1D54F}",Xscr:"\u{1D4B3}",YAcy:"\u042F",YIcy:"\u0407",YUcy:"\u042E",Yacute:"\xDD",Ycirc:"\u0176",Ycy:"\u042B",Yfr:"\u{1D51C}",Yopf:"\u{1D550}",Yscr:"\u{1D4B4}",Yuml:"\u0178",ZHcy:"\u0416",Zacute:"\u0179",Zcaron:"\u017D",Zcy:"\u0417",Zdot:"\u017B",Zeta:"\u0396",Zfr:"\u2128",zeetrf:"\u2128",Zopf:"\u2124",integers:"\u2124",Zscr:"\u{1D4B5}",aacute:"\xE1",abreve:"\u0103",ac:"\u223E",mstpos:"\u223E",acE:"\u223E\u0333",acd:"\u223F",acirc:"\xE2",acy:"\u0430",aelig:"\xE6",afr:"\u{1D51E}",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",alpha:"\u03B1",amacr:"\u0101",amalg:"\u2A3F",and:"\u2227",wedge:"\u2227",andand:"\u2A55",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",angle:"\u2220",ange:"\u29A4",angmsd:"\u2221",measuredangle:"\u2221",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angzarr:"\u237C",aogon:"\u0105",aopf:"\u{1D552}",apE:"\u2A70",apacir:"\u2A6F",ape:"\u224A",approxeq:"\u224A",apid:"\u224B",apos:"'",aring:"\xE5",ascr:"\u{1D4B6}",ast:"*",midast:"*",atilde:"\xE3",auml:"\xE4",awint:"\u2A11",bNot:"\u2AED",backcong:"\u224C",bcong:"\u224C",backepsilon:"\u03F6",bepsi:"\u03F6",backprime:"\u2035",bprime:"\u2035",backsim:"\u223D",bsim:"\u223D",backsimeq:"\u22CD",bsime:"\u22CD",barvee:"\u22BD",barwed:"\u2305",barwedge:"\u2305",bbrktbrk:"\u23B6",bcy:"\u0431",bdquo:"\u201E",ldquor:"\u201E",bemptyv:"\u29B0",beta:"\u03B2",beth:"\u2136",between:"\u226C",twixt:"\u226C",bfr:"\u{1D51F}",bigcirc:"\u25EF",xcirc:"\u25EF",bigodot:"\u2A00",xodot:"\u2A00",bigoplus:"\u2A01",xoplus:"\u2A01",bigotimes:"\u2A02",xotime:"\u2A02",bigsqcup:"\u2A06",xsqcup:"\u2A06",bigstar:"\u2605",starf:"\u2605",bigtriangledown:"\u25BD",xdtri:"\u25BD",bigtriangleup:"\u25B3",xutri:"\u25B3",biguplus:"\u2A04",xuplus:"\u2A04",bkarow:"\u290D",rbarr:"\u290D",blacklozenge:"\u29EB",lozf:"\u29EB",blacktriangle:"\u25B4",utrif:"\u25B4",blacktriangledown:"\u25BE",dtrif:"\u25BE",blacktriangleleft:"\u25C2",ltrif:"\u25C2",blacktriangleright:"\u25B8",rtrif:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bnot:"\u2310",bopf:"\u{1D553}",bowtie:"\u22C8",boxDL:"\u2557",boxDR:"\u2554",boxDl:"\u2556",boxDr:"\u2553",boxH:"\u2550",boxHD:"\u2566",boxHU:"\u2569",boxHd:"\u2564",boxHu:"\u2567",boxUL:"\u255D",boxUR:"\u255A",boxUl:"\u255C",boxUr:"\u2559",boxV:"\u2551",boxVH:"\u256C",boxVL:"\u2563",boxVR:"\u2560",boxVh:"\u256B",boxVl:"\u2562",boxVr:"\u255F",boxbox:"\u29C9",boxdL:"\u2555",boxdR:"\u2552",boxdl:"\u2510",boxdr:"\u250C",boxhD:"\u2565",boxhU:"\u2568",boxhd:"\u252C",boxhu:"\u2534",boxminus:"\u229F",minusb:"\u229F",boxplus:"\u229E",plusb:"\u229E",boxtimes:"\u22A0",timesb:"\u22A0",boxuL:"\u255B",boxuR:"\u2558",boxul:"\u2518",boxur:"\u2514",boxv:"\u2502",boxvH:"\u256A",boxvL:"\u2561",boxvR:"\u255E",boxvh:"\u253C",boxvl:"\u2524",boxvr:"\u251C",brvbar:"\xA6",bscr:"\u{1D4B7}",bsemi:"\u204F",bsol:"\\",bsolb:"\u29C5",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bumpE:"\u2AAE",cacute:"\u0107",cap:"\u2229",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",capcup:"\u2A47",capdot:"\u2A40",caps:"\u2229\uFE00",caret:"\u2041",ccaps:"\u2A4D",ccaron:"\u010D",ccedil:"\xE7",ccirc:"\u0109",ccups:"\u2A4C",ccupssm:"\u2A50",cdot:"\u010B",cemptyv:"\u29B2",cent:"\xA2",cfr:"\u{1D520}",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",chi:"\u03C7",cir:"\u25CB",cirE:"\u29C3",circ:"\u02C6",circeq:"\u2257",cire:"\u2257",circlearrowleft:"\u21BA",olarr:"\u21BA",circlearrowright:"\u21BB",orarr:"\u21BB",circledS:"\u24C8",oS:"\u24C8",circledast:"\u229B",oast:"\u229B",circledcirc:"\u229A",ocir:"\u229A",circleddash:"\u229D",odash:"\u229D",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",clubs:"\u2663",clubsuit:"\u2663",colon:":",comma:",",commat:"@",comp:"\u2201",complement:"\u2201",congdot:"\u2A6D",copf:"\u{1D554}",copysr:"\u2117",crarr:"\u21B5",cross:"\u2717",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",curlyeqprec:"\u22DE",cuesc:"\u22DF",curlyeqsucc:"\u22DF",cularr:"\u21B6",curvearrowleft:"\u21B6",cularrp:"\u293D",cup:"\u222A",cupbrcap:"\u2A48",cupcap:"\u2A46",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curvearrowright:"\u21B7",curarrm:"\u293C",curlyvee:"\u22CE",cuvee:"\u22CE",curlywedge:"\u22CF",cuwed:"\u22CF",curren:"\xA4",cwint:"\u2231",cylcty:"\u232D",dHar:"\u2965",dagger:"\u2020",daleth:"\u2138",dash:"\u2010",hyphen:"\u2010",dbkarow:"\u290F",rBarr:"\u290F",dcaron:"\u010F",dcy:"\u0434",ddarr:"\u21CA",downdownarrows:"\u21CA",ddotseq:"\u2A77",eDDot:"\u2A77",deg:"\xB0",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",dfr:"\u{1D521}",diamondsuit:"\u2666",diams:"\u2666",digamma:"\u03DD",gammad:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",djcy:"\u0452",dlcorn:"\u231E",llcorner:"\u231E",dlcrop:"\u230D",dollar:"$",dopf:"\u{1D555}",doteqdot:"\u2251",eDot:"\u2251",dotminus:"\u2238",minusd:"\u2238",dotplus:"\u2214",plusdo:"\u2214",dotsquare:"\u22A1",sdotb:"\u22A1",drcorn:"\u231F",lrcorner:"\u231F",drcrop:"\u230C",dscr:"\u{1D4B9}",dscy:"\u0455",dsol:"\u29F6",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",triangledown:"\u25BF",dwangle:"\u29A6",dzcy:"\u045F",dzigrarr:"\u27FF",eacute:"\xE9",easter:"\u2A6E",ecaron:"\u011B",ecir:"\u2256",eqcirc:"\u2256",ecirc:"\xEA",ecolon:"\u2255",eqcolon:"\u2255",ecy:"\u044D",edot:"\u0117",efDot:"\u2252",fallingdotseq:"\u2252",efr:"\u{1D522}",eg:"\u2A9A",egrave:"\xE8",egs:"\u2A96",eqslantgtr:"\u2A96",egsdot:"\u2A98",el:"\u2A99",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",eqslantless:"\u2A95",elsdot:"\u2A97",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",emptyv:"\u2205",varnothing:"\u2205",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",eng:"\u014B",ensp:"\u2002",eogon:"\u0119",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",epsilon:"\u03B5",epsiv:"\u03F5",straightepsilon:"\u03F5",varepsilon:"\u03F5",equals:"=",equest:"\u225F",questeq:"\u225F",equivDD:"\u2A78",eqvparsl:"\u29E5",erDot:"\u2253",risingdotseq:"\u2253",erarr:"\u2971",escr:"\u212F",eta:"\u03B7",eth:"\xF0",euml:"\xEB",euro:"\u20AC",excl:"!",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",ffr:"\u{1D523}",filig:"\uFB01",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",fopf:"\u{1D557}",fork:"\u22D4",pitchfork:"\u22D4",forkv:"\u2AD9",fpartint:"\u2A0D",frac12:"\xBD",half:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",sfrown:"\u2322",fscr:"\u{1D4BB}",gEl:"\u2A8C",gtreqqless:"\u2A8C",gacute:"\u01F5",gamma:"\u03B3",gap:"\u2A86",gtrapprox:"\u2A86",gbreve:"\u011F",gcirc:"\u011D",gcy:"\u0433",gdot:"\u0121",gescc:"\u2AA9",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",gfr:"\u{1D524}",gimel:"\u2137",gjcy:"\u0453",glE:"\u2A92",gla:"\u2AA5",glj:"\u2AA4",gnE:"\u2269",gneqq:"\u2269",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gneq:"\u2A88",gnsim:"\u22E7",gopf:"\u{1D558}",gscr:"\u210A",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gtdot:"\u22D7",gtrdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrarr:"\u2978",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",hardcy:"\u044A",harrcir:"\u2948",harrw:"\u21AD",leftrightsquigarrow:"\u21AD",hbar:"\u210F",hslash:"\u210F",planck:"\u210F",plankv:"\u210F",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",mldr:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",hksearow:"\u2925",searhk:"\u2925",hkswarow:"\u2926",swarhk:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",larrhk:"\u21A9",hookrightarrow:"\u21AA",rarrhk:"\u21AA",hopf:"\u{1D559}",horbar:"\u2015",hscr:"\u{1D4BD}",hstrok:"\u0127",hybull:"\u2043",iacute:"\xED",icirc:"\xEE",icy:"\u0438",iecy:"\u0435",iexcl:"\xA1",ifr:"\u{1D526}",igrave:"\xEC",iiiint:"\u2A0C",qint:"\u2A0C",iiint:"\u222D",tint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",ijlig:"\u0133",imacr:"\u012B",imath:"\u0131",inodot:"\u0131",imof:"\u22B7",imped:"\u01B5",incare:"\u2105",infin:"\u221E",infintie:"\u29DD",intcal:"\u22BA",intercal:"\u22BA",intlarhk:"\u2A17",intprod:"\u2A3C",iprod:"\u2A3C",iocy:"\u0451",iogon:"\u012F",iopf:"\u{1D55A}",iota:"\u03B9",iquest:"\xBF",iscr:"\u{1D4BE}",isinE:"\u22F9",isindot:"\u22F5",isins:"\u22F4",isinsv:"\u22F3",itilde:"\u0129",iukcy:"\u0456",iuml:"\xEF",jcirc:"\u0135",jcy:"\u0439",jfr:"\u{1D527}",jmath:"\u0237",jopf:"\u{1D55B}",jscr:"\u{1D4BF}",jsercy:"\u0458",jukcy:"\u0454",kappa:"\u03BA",kappav:"\u03F0",varkappa:"\u03F0",kcedil:"\u0137",kcy:"\u043A",kfr:"\u{1D528}",kgreen:"\u0138",khcy:"\u0445",kjcy:"\u045C",kopf:"\u{1D55C}",kscr:"\u{1D4C0}",lAtail:"\u291B",lBarr:"\u290E",lEg:"\u2A8B",lesseqqgtr:"\u2A8B",lHar:"\u2962",lacute:"\u013A",laemptyv:"\u29B4",lambda:"\u03BB",langd:"\u2991",lap:"\u2A85",lessapprox:"\u2A85",laquo:"\xAB",larrbfs:"\u291F",larrfs:"\u291D",larrlp:"\u21AB",looparrowleft:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",leftarrowtail:"\u21A2",lat:"\u2AAB",latail:"\u2919",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lbbrk:"\u2772",lbrace:"{",lcub:"{",lbrack:"[",lsqb:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",lcaron:"\u013E",lcedil:"\u013C",lcy:"\u043B",ldca:"\u2936",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",leq:"\u2264",leftleftarrows:"\u21C7",llarr:"\u21C7",leftthreetimes:"\u22CB",lthree:"\u22CB",lescc:"\u2AA8",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessdot:"\u22D6",ltdot:"\u22D6",lfisht:"\u297C",lfr:"\u{1D529}",lgE:"\u2A91",lharul:"\u296A",lhblk:"\u2584",ljcy:"\u0459",llhard:"\u296B",lltri:"\u25FA",lmidot:"\u0140",lmoust:"\u23B0",lmoustache:"\u23B0",lnE:"\u2268",lneqq:"\u2268",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lneq:"\u2A87",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",longmapsto:"\u27FC",xmap:"\u27FC",looparrowright:"\u21AC",rarrlp:"\u21AC",lopar:"\u2985",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",loz:"\u25CA",lozenge:"\u25CA",lpar:"(",lparlt:"\u2993",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",lsime:"\u2A8D",lsimg:"\u2A8F",lsquor:"\u201A",sbquo:"\u201A",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltrPar:"\u2996",ltri:"\u25C3",triangleleft:"\u25C3",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",mDDot:"\u223A",macr:"\xAF",strns:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",marker:"\u25AE",mcomma:"\u2A29",mcy:"\u043C",mdash:"\u2014",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midcir:"\u2AF0",minus:"\u2212",minusdu:"\u2A2A",mlcp:"\u2ADB",models:"\u22A7",mopf:"\u{1D55E}",mscr:"\u{1D4C2}",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nGg:"\u22D9\u0338",nGt:"\u226B\u20D2",nLeftarrow:"\u21CD",nlArr:"\u21CD",nLeftrightarrow:"\u21CE",nhArr:"\u21CE",nLl:"\u22D8\u0338",nLt:"\u226A\u20D2",nRightarrow:"\u21CF",nrArr:"\u21CF",nVDash:"\u22AF",nVdash:"\u22AE",nacute:"\u0144",nang:"\u2220\u20D2",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",natur:"\u266E",natural:"\u266E",ncap:"\u2A43",ncaron:"\u0148",ncedil:"\u0146",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",ncy:"\u043D",ndash:"\u2013",neArr:"\u21D7",nearhk:"\u2924",nedot:"\u2250\u0338",nesear:"\u2928",toea:"\u2928",nfr:"\u{1D52B}",nharr:"\u21AE",nleftrightarrow:"\u21AE",nhpar:"\u2AF2",nis:"\u22FC",nisd:"\u22FA",njcy:"\u045A",nlE:"\u2266\u0338",nleqq:"\u2266\u0338",nlarr:"\u219A",nleftarrow:"\u219A",nldr:"\u2025",nopf:"\u{1D55F}",not:"\xAC",notinE:"\u22F9\u0338",notindot:"\u22F5\u0338",notinvb:"\u22F7",notinvc:"\u22F6",notnivb:"\u22FE",notnivc:"\u22FD",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",nrarr:"\u219B",nrightarrow:"\u219B",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nscr:"\u{1D4C3}",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsubseteqq:"\u2AC5\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupseteqq:"\u2AC6\u0338",ntilde:"\xF1",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvDash:"\u22AD",nvHarr:"\u2904",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwArr:"\u21D6",nwarhk:"\u2923",nwnear:"\u2927",oacute:"\xF3",ocirc:"\xF4",ocy:"\u043E",odblac:"\u0151",odiv:"\u2A38",odsold:"\u29BC",oelig:"\u0153",ofcir:"\u29BF",ofr:"\u{1D52C}",ogon:"\u02DB",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",olcir:"\u29BE",olcross:"\u29BB",olt:"\u29C0",omacr:"\u014D",omega:"\u03C9",omicron:"\u03BF",omid:"\u29B6",oopf:"\u{1D560}",opar:"\u29B7",operp:"\u29B9",or:"\u2228",vee:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",oscr:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oslash:"\xF8",osol:"\u2298",otilde:"\xF5",otimesas:"\u2A36",ouml:"\xF6",ovbar:"\u233D",para:"\xB6",parsim:"\u2AF3",parsl:"\u2AFD",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",pertenk:"\u2031",pfr:"\u{1D52D}",phi:"\u03C6",phiv:"\u03D5",straightphi:"\u03D5",varphi:"\u03D5",phone:"\u260E",pi:"\u03C0",piv:"\u03D6",varpi:"\u03D6",planckh:"\u210E",plus:"+",plusacir:"\u2A23",pluscir:"\u2A22",plusdu:"\u2A25",pluse:"\u2A72",plussim:"\u2A26",plustwo:"\u2A27",pointint:"\u2A15",popf:"\u{1D561}",pound:"\xA3",prE:"\u2AB3",prap:"\u2AB7",precapprox:"\u2AB7",precnapprox:"\u2AB9",prnap:"\u2AB9",precneqq:"\u2AB5",prnE:"\u2AB5",precnsim:"\u22E8",prnsim:"\u22E8",prime:"\u2032",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prurel:"\u22B0",pscr:"\u{1D4C5}",psi:"\u03C8",puncsp:"\u2008",qfr:"\u{1D52E}",qopf:"\u{1D562}",qprime:"\u2057",qscr:"\u{1D4C6}",quatint:"\u2A16",quest:"?",rAtail:"\u291C",rHar:"\u2964",race:"\u223D\u0331",racute:"\u0155",raemptyv:"\u29B3",rangd:"\u2992",range:"\u29A5",raquo:"\xBB",rarrap:"\u2975",rarrbfs:"\u2920",rarrc:"\u2933",rarrfs:"\u291E",rarrpl:"\u2945",rarrsim:"\u2974",rarrtl:"\u21A3",rightarrowtail:"\u21A3",rarrw:"\u219D",rightsquigarrow:"\u219D",ratail:"\u291A",ratio:"\u2236",rbbrk:"\u2773",rbrace:"}",rcub:"}",rbrack:"]",rsqb:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",rcaron:"\u0159",rcedil:"\u0157",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdsh:"\u21B3",rect:"\u25AD",rfisht:"\u297D",rfr:"\u{1D52F}",rharul:"\u296C",rho:"\u03C1",rhov:"\u03F1",varrho:"\u03F1",rightrightarrows:"\u21C9",rrarr:"\u21C9",rightthreetimes:"\u22CC",rthree:"\u22CC",ring:"\u02DA",rlm:"\u200F",rmoust:"\u23B1",rmoustache:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",ropar:"\u2986",ropf:"\u{1D563}",roplus:"\u2A2E",rotimes:"\u2A35",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rsaquo:"\u203A",rscr:"\u{1D4C7}",rtimes:"\u22CA",rtri:"\u25B9",triangleright:"\u25B9",rtriltri:"\u29CE",ruluhar:"\u2968",rx:"\u211E",sacute:"\u015B",scE:"\u2AB4",scap:"\u2AB8",succapprox:"\u2AB8",scaron:"\u0161",scedil:"\u015F",scirc:"\u015D",scnE:"\u2AB6",succneqq:"\u2AB6",scnap:"\u2ABA",succnapprox:"\u2ABA",scnsim:"\u22E9",succnsim:"\u22E9",scpolint:"\u2A13",scy:"\u0441",sdot:"\u22C5",sdote:"\u2A66",seArr:"\u21D8",sect:"\xA7",semi:";",seswar:"\u2929",tosa:"\u2929",sext:"\u2736",sfr:"\u{1D530}",sharp:"\u266F",shchcy:"\u0449",shcy:"\u0448",shy:"\xAD",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",varsigma:"\u03C2",simdot:"\u2A6A",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",smashp:"\u2A33",smeparsl:"\u29E4",smile:"\u2323",ssmile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",softcy:"\u044C",sol:"/",solb:"\u29C4",solbar:"\u233F",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",sqcaps:"\u2293\uFE00",sqcups:"\u2294\uFE00",sscr:"\u{1D4C8}",star:"\u2606",sub:"\u2282",subset:"\u2282",subE:"\u2AC5",subseteqq:"\u2AC5",subdot:"\u2ABD",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subsetneqq:"\u2ACB",subne:"\u228A",subsetneq:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",supE:"\u2AC6",supseteqq:"\u2AC6",supdot:"\u2ABE",supdsub:"\u2AD8",supedot:"\u2AC4",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supsetneqq:"\u2ACC",supne:"\u228B",supsetneq:"\u228B",supplus:"\u2AC0",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swArr:"\u21D9",swnwar:"\u292A",szlig:"\xDF",target:"\u2316",tau:"\u03C4",tcaron:"\u0165",tcedil:"\u0163",tcy:"\u0442",telrec:"\u2315",tfr:"\u{1D531}",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",vartheta:"\u03D1",thorn:"\xFE",times:"\xD7",timesbar:"\u2A31",timesd:"\u2A30",topbot:"\u2336",topcir:"\u2AF1",topf:"\u{1D565}",topfork:"\u2ADA",tprime:"\u2034",triangle:"\u25B5",utri:"\u25B5",triangleq:"\u225C",trie:"\u225C",tridot:"\u25EC",triminus:"\u2A3A",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",tscr:"\u{1D4C9}",tscy:"\u0446",tshcy:"\u045B",tstrok:"\u0167",uHar:"\u2963",uacute:"\xFA",ubrcy:"\u045E",ubreve:"\u016D",ucirc:"\xFB",ucy:"\u0443",udblac:"\u0171",ufisht:"\u297E",ufr:"\u{1D532}",ugrave:"\xF9",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",umacr:"\u016B",uogon:"\u0173",uopf:"\u{1D566}",upsi:"\u03C5",upsilon:"\u03C5",upuparrows:"\u21C8",uuarr:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",uring:"\u016F",urtri:"\u25F9",uscr:"\u{1D4CA}",utdot:"\u22F0",utilde:"\u0169",uuml:"\xFC",uwangle:"\u29A7",vBar:"\u2AE8",vBarv:"\u2AE9",vangrt:"\u299C",varsubsetneq:"\u228A\uFE00",vsubne:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",vsubnE:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",vsupne:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vsupnE:"\u2ACC\uFE00",vcy:"\u0432",veebar:"\u22BB",veeeq:"\u225A",vellip:"\u22EE",vfr:"\u{1D533}",vopf:"\u{1D567}",vscr:"\u{1D4CB}",vzigzag:"\u299A",wcirc:"\u0175",wedbar:"\u2A5F",wedgeq:"\u2259",weierp:"\u2118",wp:"\u2118",wfr:"\u{1D534}",wopf:"\u{1D568}",wscr:"\u{1D4CC}",xfr:"\u{1D535}",xi:"\u03BE",xnis:"\u22FB",xopf:"\u{1D569}",xscr:"\u{1D4CD}",yacute:"\xFD",yacy:"\u044F",ycirc:"\u0177",ycy:"\u044B",yen:"\xA5",yfr:"\u{1D536}",yicy:"\u0457",yopf:"\u{1D56A}",yscr:"\u{1D4CE}",yucy:"\u044E",yuml:"\xFF",zacute:"\u017A",zcaron:"\u017E",zcy:"\u0437",zdot:"\u017C",zeta:"\u03B6",zfr:"\u{1D537}",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"},CF="\uE500";P0.ngsp=CF;var o3=class{tokens;errors;nonNormalizedIcuExpressions;constructor(o,e,t){this.tokens=o,this.errors=e,this.nonNormalizedIcuExpressions=t}};function zq(n,o,e,t={}){let i=new r3(new ax(n,o),e,t);return i.tokenize(),new o3(qq(i.tokens),i.errors,i.nonNormalizedIcuExpressions)}var Lq=/\r\n?/g;function bg(n){return`Unexpected character "${n===or?"EOF":String.fromCharCode(n)}"`}function y6(n){return`Unknown entity "${n}" - use the "&#;" or "&#x;" syntax`}function Vq(n,o){return`Unable to parse entity "${o}" - ${n} character reference entities must end with ";"`}var a3=(function(n){return n.HEX="hexadecimal",n.DEC="decimal",n})(a3||{}),Bq=["@if","@else","@for","@switch","@case","@default","@empty","@defer","@placeholder","@loading","@error"],hf={start:"{{",end:"}}"},r3=class{_getTagDefinition;_cursor;_tokenizeIcu;_leadingTriviaCodePoints;_currentTokenStart=null;_currentTokenType=null;_expansionCaseStack=[];_openDirectiveCount=0;_inInterpolation=!1;_preserveLineEndings;_i18nNormalizeLineEndingsInICUs;_tokenizeBlocks;_tokenizeLet;_selectorlessEnabled;tokens=[];errors=[];nonNormalizedIcuExpressions=[];constructor(o,e,t){this._getTagDefinition=e,this._tokenizeIcu=t.tokenizeExpansionForms||!1,this._leadingTriviaCodePoints=t.leadingTriviaChars&&t.leadingTriviaChars.map(a=>a.codePointAt(0)||0);let i=t.range||{endPos:o.content.length,startPos:0,startLine:0,startCol:0};this._cursor=t.escapedString?new s3(o,i):new xx(o,i),this._preserveLineEndings=t.preserveLineEndings||!1,this._i18nNormalizeLineEndingsInICUs=t.i18nNormalizeLineEndingsInICUs||!1,this._tokenizeBlocks=t.tokenizeBlocks??!0,this._tokenizeLet=t.tokenizeLet??!0,this._selectorlessEnabled=t.selectorlessEnabled??!1;try{this._cursor.init()}catch(a){this.handleError(a)}}_processCarriageReturns(o){return this._preserveLineEndings?o:o.replace(Lq,` +`)}tokenize(){for(;this._cursor.peek()!==or;){let o=this._cursor.clone();try{this._attemptCharCode(Ig)?this._attemptCharCode(LP)?this._attemptCharCode(Lc)?this._consumeCdata(o):this._attemptCharCode(ix)?this._consumeComment(o):this._consumeDocType(o):this._attemptCharCode(gl)?this._consumeTagClose(o):this._consumeTagOpen(o):this._tokenizeLet&&this._cursor.peek()===fg&&!this._inInterpolation&&this._isLetStart()?this._consumeLetDeclaration(o):this._tokenizeBlocks&&this._isBlockStart()?this._consumeBlockStart(o):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(es)?this._consumeBlockEnd(o):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(e){this.handleError(e)}}this._beginToken(41),this._endToken([])}_getBlockName(){let o=!1,e=this._cursor.clone();return this._attemptCharCodeUntilFn(t=>g0(t)?!o:Gq(t)?(o=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeBlockStart(o){this._requireCharCode(fg),this._beginToken(24,o);let e=this._endToken([this._getBlockName()]);if(e.parts[0]==="default never"&&this._attemptCharCode(bs)){this._beginToken(25),this._endToken([]),this._beginToken(26),this._endToken([]);return}if(this._cursor.peek()===ns)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(Uo),this._attemptCharCode(Ea))this._attemptCharCodeUntilFn(Uo);else{e.type=28;return}this._attemptCharCode(fl)?(this._beginToken(25),this._endToken([])):this._isBlockStart()&&(e.parts[0]==="case"||e.parts[0]==="default")?(this._beginToken(25),this._endToken([]),this._beginToken(26),this._endToken([])):e.type=28}_consumeBlockEnd(o){this._beginToken(26,o),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(M6);this._cursor.peek()!==Ea&&this._cursor.peek()!==or;){this._beginToken(27);let o=this._cursor.clone(),e=null,t=0;for(;this._cursor.peek()!==bs&&this._cursor.peek()!==or||e!==null;){let i=this._cursor.peek();if(i===Jp)this._cursor.advance();else if(i===e)e=null;else if(e===null&&Of(i))e=i;else if(i===ns&&e===null)t++;else if(i===Ea&&e===null){if(t===0)break;t>0&&t--}this._cursor.advance()}this._endToken([this._cursor.getChars(o)]),this._attemptCharCodeUntilFn(M6)}}_consumeLetDeclaration(o){if(this._requireStr("@let"),this._beginToken(29,o),g0(this._cursor.peek()))this._attemptCharCodeUntilFn(Uo);else{let i=this._endToken([this._cursor.getChars(o)]);i.type=32;return}let e=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(Uo),!this._attemptCharCode(nr)){e.type=32;return}this._attemptCharCodeUntilFn(i=>Uo(i)&&!ox(i)),this._consumeLetDeclarationValue(),this._cursor.peek()===bs?(this._beginToken(31),this._cursor.advance(),this._endToken([])):(e.type=32,e.sourceSpan=this._cursor.getSpan(o))}_getLetDeclarationName(){let o=this._cursor.clone(),e=!1;return this._attemptCharCodeUntilFn(t=>Nm(t)||t===zx||t===Bm||e&&hl(t)?(e=!0,!1):!0),this._cursor.getChars(o).trim()}_consumeLetDeclarationValue(){let o=this._cursor.clone();for(this._beginToken(30,o);this._cursor.peek()!==or;){let e=this._cursor.peek();if(e===bs)break;Of(e)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(t=>t===Jp?(this._cursor.advance(),!1):t===e)),this._cursor.advance()}this._endToken([this._cursor.getChars(o)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(Uq(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===es){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(o,e=this._cursor.clone()){this._currentTokenStart=e,this._currentTokenType=o}_endToken(o,e){if(this._currentTokenStart===null)throw new dn(this._cursor.getSpan(e),"Programming error - attempted to end a token when there was no start to the token");if(this._currentTokenType===null)throw new dn(this._cursor.getSpan(this._currentTokenStart),"Programming error - attempted to end a token which has no token type");let t={type:this._currentTokenType,parts:o,sourceSpan:(e??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(t),this._currentTokenStart=null,this._currentTokenType=null,t}_createError(o,e){this._isInExpansionForm()&&(o+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let t=new dn(e,o);return this._currentTokenStart=null,this._currentTokenType=null,t}handleError(o){if(o instanceof T0&&(o=this._createError(o.msg,this._cursor.getSpan(o.cursor))),o instanceof dn)this.errors.push(o);else throw o}_attemptCharCode(o){return this._cursor.peek()===o?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(o){return Wq(this._cursor.peek(),o)?(this._cursor.advance(),!0):!1}_requireCharCode(o){let e=this._cursor.clone();if(!this._attemptCharCode(o))throw this._createError(bg(this._cursor.peek()),this._cursor.getSpan(e))}_attemptStr(o){let e=o.length;if(this._cursor.charsLeft()this._peekStr(o))}_isLetStart(){return this._cursor.peek()===fg&&this._peekStr("@let")}_consumeEntity(o){this._beginToken(9);let e=this._cursor.clone();if(this._cursor.advance(),this._attemptCharCode(HN)){let t=this._attemptCharCode(YN)||this._attemptCharCode(nW),i=this._cursor.clone();if(this._attemptCharCodeUntilFn($q),this._cursor.peek()!=bs){this._cursor.advance();let s=t?a3.HEX:a3.DEC;throw this._createError(Vq(s,this._cursor.getChars(e)),this._cursor.getSpan())}let a=this._cursor.getChars(i);this._cursor.advance();try{let s=parseInt(a,t?16:10);this._endToken([String.fromCodePoint(s),this._cursor.getChars(e)])}catch{throw this._createError(y6(this._cursor.getChars(e)),this._cursor.getSpan())}}else{let t=this._cursor.clone();if(this._attemptCharCodeUntilFn(Hq),this._cursor.peek()!=bs)this._beginToken(o,e),this._cursor=t,this._endToken(["&"]);else{let i=this._cursor.getChars(t);this._cursor.advance();let a=P0.hasOwnProperty(i)&&P0[i];if(!a)throw this._createError(y6(i),this._cursor.getSpan(e));this._endToken([a,`&${i};`])}}}_consumeRawText(o,e){this._beginToken(o?6:7);let t=[];for(;;){let i=this._cursor.clone(),a=e();if(this._cursor=i,a)break;o&&this._cursor.peek()===nx?(this._endToken([this._processCarriageReturns(t.join(""))]),t.length=0,this._consumeEntity(6),this._beginToken(6)):t.push(this._readChar())}this._endToken([this._processCarriageReturns(t.join(""))])}_consumeComment(o){this._beginToken(10,o),this._requireCharCode(ix),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("-->")),this._beginToken(11),this._requireStr("-->"),this._endToken([])}_consumeCdata(o){this._beginToken(12,o),this._requireStr("CDATA["),this._endToken([]),this._consumeRawText(!1,()=>this._attemptStr("]]>")),this._beginToken(13),this._requireStr("]]>"),this._endToken([])}_consumeDocType(o){this._beginToken(18,o);let e=this._cursor.clone();this._attemptUntilChar(Ws);let t=this._cursor.getChars(e);this._cursor.advance(),this._endToken([t])}_consumePrefixAndName(o){let e=this._cursor.clone(),t="";for(;this._cursor.peek()!==Fc&&!jq(this._cursor.peek());)this._cursor.advance();let i;this._cursor.peek()===Fc?(t=this._cursor.getChars(e),this._cursor.advance(),i=this._cursor.clone()):i=e,this._requireCharCodeUntilFn(o,t===""?0:1);let a=this._cursor.getChars(i);return[t,a]}_consumeTagOpen(o){let e,t,i,a;try{if(this._selectorlessEnabled&&mb(this._cursor.peek()))a=this._consumeComponentOpenStart(o),[i,t,e]=a.parts,t&&(i+=`:${t}`),e&&(i+=`:${e}`),this._attemptCharCodeUntilFn(Uo);else{if(!Nm(this._cursor.peek()))throw this._createError(bg(this._cursor.peek()),this._cursor.getSpan(o));a=this._consumeTagOpenStart(o),t=a.parts[0],e=i=a.parts[1],this._attemptCharCodeUntilFn(Uo)}for(;!k6(this._cursor.peek());)if(this._selectorlessEnabled&&this._cursor.peek()===fg){let d=this._cursor.clone(),p=d.clone();p.advance(),mb(p.peek())&&this._consumeDirective(d,p)}else this._consumeAttribute();a.type===33?this._consumeComponentOpenEnd():this._consumeTagOpenEnd()}catch(d){if(d instanceof dn){a?a.type=a.type===33?37:4:(this._beginToken(5,o),this._endToken(["<"]));return}throw d}let s=this._getTagDefinition(e).getContentType(t);s===Nc.RAW_TEXT?this._consumeRawTextWithTagClose(a,i,!1):s===Nc.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(a,i,!0)}_consumeRawTextWithTagClose(o,e,t){this._consumeRawText(t,()=>!this._attemptCharCode(Ig)||!this._attemptCharCode(gl)||(this._attemptCharCodeUntilFn(Uo),!this._attemptStrCaseInsensitive(e))?!1:(this._attemptCharCodeUntilFn(Uo),this._attemptCharCode(Ws))),this._beginToken(o.type===33?36:3),this._requireCharCodeUntilFn(i=>i===Ws,3),this._cursor.advance(),this._endToken(o.parts)}_consumeTagOpenStart(o){this._beginToken(0,o);let e=this._consumePrefixAndName(Bp);return this._endToken(e)}_consumeComponentOpenStart(o){this._beginToken(33,o);let e=this._consumeComponentName();return this._endToken(e)}_consumeComponentName(){let o=this._cursor.clone();for(;S6(this._cursor.peek());)this._cursor.advance();let e=this._cursor.getChars(o),t="",i="";return this._cursor.peek()===Fc&&(this._cursor.advance(),[t,i]=this._consumePrefixAndName(Bp)),[e,t,i]}_consumeAttribute(){this._consumeAttributeName(),this._attemptCharCodeUntilFn(Uo),this._attemptCharCode(nr)&&(this._attemptCharCodeUntilFn(Uo),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Uo)}_consumeAttributeName(){let o=this._cursor.peek();if(o===u0||o===p0)throw this._createError(bg(o),this._cursor.getSpan());this._beginToken(14);let e;if(this._openDirectiveCount>0){let i=0;e=a=>{if(this._openDirectiveCount>0){if(a===ns)i++;else if(a===Ea){if(i===0)return!0;i--}}return Bp(a)}}else if(o===Lc){let i=0;e=a=>(a===Lc?i++:a===Od&&i--,i<=0?Bp(a):ox(a))}else e=Bp;let t=this._consumePrefixAndName(e);this._endToken(t)}_consumeAttributeValue(){if(this._cursor.peek()===u0||this._cursor.peek()===p0){let o=this._cursor.peek();this._consumeQuote(o);let e=()=>this._cursor.peek()===o;this._consumeWithInterpolation(16,17,e,e),this._consumeQuote(o)}else{let o=()=>Bp(this._cursor.peek());this._consumeWithInterpolation(16,17,o,o)}}_consumeQuote(o){this._beginToken(15),this._requireCharCode(o),this._endToken([String.fromCodePoint(o)])}_consumeTagOpenEnd(){let o=this._attemptCharCode(gl)?2:1;this._beginToken(o),this._requireCharCode(Ws),this._endToken([])}_consumeComponentOpenEnd(){let o=this._attemptCharCode(gl)?35:34;this._beginToken(o),this._requireCharCode(Ws),this._endToken([])}_consumeTagClose(o){if(this._selectorlessEnabled){let t=o.clone();for(;t.peek()!==Ws&&!mb(t.peek());)t.advance();if(mb(t.peek())){this._beginToken(36,o);let i=this._consumeComponentName();this._attemptCharCodeUntilFn(Uo),this._requireCharCode(Ws),this._endToken(i);return}}this._beginToken(3,o),this._attemptCharCodeUntilFn(Uo);let e=this._consumePrefixAndName(Bp);this._attemptCharCodeUntilFn(Uo),this._requireCharCode(Ws),this._endToken(e)}_consumeExpansionFormStart(){this._beginToken(19),this._requireCharCode(fl),this._endToken([]),this._expansionCaseStack.push(19),this._beginToken(7);let o=this._readUntil(Nr),e=this._processCarriageReturns(o);if(this._i18nNormalizeLineEndingsInICUs)this._endToken([e]);else{let i=this._endToken([o]);e!==o&&this.nonNormalizedIcuExpressions.push(i)}this._requireCharCode(Nr),this._attemptCharCodeUntilFn(Uo),this._beginToken(7);let t=this._readUntil(Nr);this._endToken([t]),this._requireCharCode(Nr),this._attemptCharCodeUntilFn(Uo)}_consumeExpansionCaseStart(){this._beginToken(20);let o=this._readUntil(fl).trim();this._endToken([o]),this._attemptCharCodeUntilFn(Uo),this._beginToken(21),this._requireCharCode(fl),this._endToken([]),this._attemptCharCodeUntilFn(Uo),this._expansionCaseStack.push(21)}_consumeExpansionCaseEnd(){this._beginToken(22),this._requireCharCode(es),this._endToken([]),this._attemptCharCodeUntilFn(Uo),this._expansionCaseStack.pop()}_consumeExpansionFormEnd(){this._beginToken(23),this._requireCharCode(es),this._endToken([]),this._expansionCaseStack.pop()}_consumeWithInterpolation(o,e,t,i){this._beginToken(o);let a=[];for(;!t();){let s=this._cursor.clone();this._attemptStr(hf.start)?(this._endToken([this._processCarriageReturns(a.join(""))],s),a.length=0,this._consumeInterpolation(e,s,i),this._beginToken(o)):this._cursor.peek()===nx?(this._endToken([this._processCarriageReturns(a.join(""))]),a.length=0,this._consumeEntity(o),this._beginToken(o)):a.push(this._readChar())}this._inInterpolation=!1,this._endToken([this._processCarriageReturns(a.join(""))])}_consumeInterpolation(o,e,t){let i=[];this._beginToken(o,e),i.push(hf.start);let a=this._cursor.clone(),s=null,d=!1;for(;this._cursor.peek()!==or&&(t===null||!t());){let p=this._cursor.clone();if(this._isTagStart()){this._cursor=p,i.push(this._getProcessedChars(a,p)),this._endToken(i);return}if(s===null)if(this._attemptStr(hf.end)){i.push(this._getProcessedChars(a,p)),i.push(hf.end),this._endToken(i);return}else this._attemptStr("//")&&(d=!0);let u=this._cursor.peek();this._cursor.advance(),u===Jp?this._cursor.advance():u===s?s=null:!d&&s===null&&Of(u)&&(s=u)}i.push(this._getProcessedChars(a,this._cursor)),this._endToken(i)}_consumeDirective(o,e){for(this._requireCharCode(fg),this._cursor.advance();S6(this._cursor.peek());)this._cursor.advance();this._beginToken(38,o);let t=this._cursor.getChars(e);if(this._endToken([t]),this._attemptCharCodeUntilFn(Uo),this._cursor.peek()===ns){for(this._openDirectiveCount++,this._beginToken(39),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(Uo);!k6(this._cursor.peek())&&this._cursor.peek()!==Ea;)this._consumeAttribute();if(this._attemptCharCodeUntilFn(Uo),this._openDirectiveCount--,this._cursor.peek()!==Ea){if(this._cursor.peek()===Ws||this._cursor.peek()===gl)return;throw this._createError(bg(this._cursor.peek()),this._cursor.getSpan(o))}this._beginToken(40),this._cursor.advance(),this._endToken([]),this._attemptCharCodeUntilFn(Uo)}}_getProcessedChars(o,e){return this._processCarriageReturns(e.getChars(o))}_isTextEnd(){return!!(this._isTagStart()||this._cursor.peek()===or||this._tokenizeIcu&&!this._inInterpolation&&(this.isExpansionFormStart()||this._cursor.peek()===es&&this._isInExpansionCase())||this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansion()&&(this._isBlockStart()||this._isLetStart()||this._cursor.peek()===es))}_isTagStart(){if(this._cursor.peek()===Ig){let o=this._cursor.clone();o.advance();let e=o.peek();if(pu<=e&&e<=z0||Vm<=e&&e<=eh||e===gl||e===LP)return!0}return!1}_readUntil(o){let e=this._cursor.clone();return this._attemptUntilChar(o),this._cursor.getChars(e)}_isInExpansion(){return this._isInExpansionCase()||this._isInExpansionForm()}_isInExpansionCase(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===21}_isInExpansionForm(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===19}isExpansionFormStart(){if(this._cursor.peek()!==fl)return!1;let o=this._cursor.clone(),e=this._attemptStr(hf.start);return this._cursor=o,!e}};function Uo(n){return!g0(n)||n===or}function Bp(n){return g0(n)||n===Ws||n===Ig||n===gl||n===u0||n===p0||n===nr||n===or}function jq(n){return(nWN)}function $q(n){return n===bs||n===or||!rW(n)}function Hq(n){return n===bs||n===or||!(Nm(n)||hl(n))}function Uq(n){return n!==es}function Wq(n,o){return w6(n)===w6(o)}function w6(n){return n>=pu&&n<=z0?n-pu+Vm:n}function Gq(n){return Nm(n)||hl(n)||n===Bm}function M6(n){return n!==bs&&Uo(n)}function mb(n){return n===Bm||n>=Vm&&n<=eh}function S6(n){return Nm(n)||hl(n)||n===Bm}function k6(n){return n===gl||n===Ws||n===Ig||n===or}function qq(n){let o=[],e;for(let t=0;t0&&e.indexOf(o.peek())!==-1;)t===o&&(o=o.clone()),o.advance();let i=this.locationFromCursor(o),a=this.locationFromCursor(this),s=t!==o?this.locationFromCursor(t):i;return new In(i,a,s)}getChars(o){return this.input.substring(o.state.offset,this.state.offset)}charAt(o){return this.input.charCodeAt(o)}advanceState(o){if(o.offset>=this.end)throw this.state=o,new T0('Unexpected character "EOF"',this);let e=this.charAt(o.offset);e===Zp?(o.line++,o.column=0):ox(e)||o.column++,o.offset++,this.updatePeek(o)}updatePeek(o){o.peek=o.offset>=this.end?or:this.charAt(o.offset)}locationFromCursor(o){return new h0(o.file,o.state.offset,o.state.line,o.state.column)}},s3=class n extends xx{internalState;constructor(o,e){o instanceof n?(super(o),this.internalState=q({},o.internalState)):(super(o,e),this.internalState=this.state)}advance(){this.state=this.internalState,super.advance(),this.processEscapeSequence()}init(){super.init(),this.processEscapeSequence()}clone(){return new n(this)}getChars(o){let e=o.clone(),t="";for(;e.internalState.offsetthis.internalState.peek;if(o()===Jp)if(this.internalState=q({},this.state),this.advanceState(this.internalState),o()===GN)this.state.peek=Zp;else if(o()===qN)this.state.peek=Y3;else if(o()===XN)this.state.peek=BN;else if(o()===QN)this.state.peek=X3;else if(o()===oW)this.state.peek=YU;else if(o()===J3)this.state.peek=jN;else if(o()===KN)if(this.advanceState(this.internalState),o()===fl){this.advanceState(this.internalState);let e=this.clone(),t=0;for(;o()!==es;)this.advanceState(this.internalState),t++;this.state.peek=this.decodeHexDigits(e,t)}else{let e=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(e,4)}else if(o()===YN){this.advanceState(this.internalState);let e=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(e,2)}else if(e6(o())){let e="",t=0,i=this.clone();for(;e6(o())&&t<3;)i=this.clone(),e+=String.fromCodePoint(o()),this.advanceState(this.internalState),t++;this.state.peek=parseInt(e,8),this.internalState=i.internalState}else ox(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek}decodeHexDigits(o,e){let t=this.input.slice(o.internalState.offset,o.internalState.offset+e),i=parseInt(t,16);if(isNaN(i))throw o.state=o.internalState,new T0("Invalid hexadecimal escape sequence",o);return i}},T0=class extends Error{msg;cursor;constructor(o,e){super(o),this.msg=o,this.cursor=e,Object.setPrototypeOf(this,new.target.prototype)}},ya=class n extends dn{elementName;static create(o,e,t){return new n(o,e,t)}constructor(o,e,t){super(e,t),this.elementName=o}},yx=class{rootNodes;errors;constructor(o,e){this.rootNodes=o,this.errors=e}},Qq=class{getTagDefinition;constructor(o){this.getTagDefinition=o}parse(o,e,t){let i=zq(o,e,this.getTagDefinition,t),a=new l3(i.tokens,this.getTagDefinition);return a.build(),new yx(a.rootNodes,[...i.errors,...a.errors])}},l3=class n{tokens;tagDefinitionResolver;_index=-1;_peek;_containerStack=[];rootNodes=[];errors=[];constructor(o,e){this.tokens=o,this.tagDefinitionResolver=e,this._advance()}build(){for(;this._peek.type!==41;)this._peek.type===0||this._peek.type===4?this._consumeElementStartTag(this._advance()):this._peek.type===3?this._consumeElementEndTag(this._advance()):this._peek.type===12?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===10?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===5||this._peek.type===7||this._peek.type===6?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===19?this._consumeExpansion(this._advance()):this._peek.type===24?(this._closeVoidElement(),this._consumeBlockOpen(this._advance())):this._peek.type===26?(this._closeVoidElement(),this._consumeBlockClose(this._advance())):this._peek.type===28?(this._closeVoidElement(),this._consumeIncompleteBlock(this._advance())):this._peek.type===29?(this._closeVoidElement(),this._consumeLet(this._advance())):this._peek.type===32?(this._closeVoidElement(),this._consumeIncompleteLet(this._advance())):this._peek.type===33||this._peek.type===37?this._consumeComponentStartTag(this._advance()):this._peek.type===36?this._consumeComponentEndTag(this._advance()):this._advance();for(let o of this._containerStack)o instanceof _l&&this.errors.push(ya.create(o.name,o.sourceSpan,`Unclosed block "${o.name}"`))}_advance(){let o=this._peek;return this._index0)return this.errors=this.errors.concat(a.errors),null;let s=new In(o.sourceSpan.start,i.sourceSpan.end,o.sourceSpan.fullStart),d=new In(e.sourceSpan.start,i.sourceSpan.end,e.sourceSpan.fullStart);return new vx(o.parts[0],a.rootNodes,s,o.sourceSpan,d)}_collectExpansionExpTokens(o){let e=[],t=[21];for(;;){if((this._peek.type===19||this._peek.type===21)&&t.push(this._peek.type),this._peek.type===22)if(P6(t,21)){if(t.pop(),t.length===0)return e}else return this.errors.push(ya.create(null,o.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===23)if(P6(t,19))t.pop();else return this.errors.push(ya.create(null,o.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(this._peek.type===41)return this.errors.push(ya.create(null,o.sourceSpan,"Invalid ICU message. Missing '}'.")),null;e.push(this._advance())}}_consumeText(o){let e=[o],t=o.sourceSpan,i=o.parts[0];if(i.length>0&&i[0]===` +`){let a=this._getContainer();a!=null&&a.children.length===0&&this._getTagDefinition(a)?.ignoreFirstLf&&(i=i.substring(1),e[0]={type:o.type,sourceSpan:o.sourceSpan,parts:[i]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)o=this._advance(),e.push(o),o.type===8?i+=o.parts.join("").replace(/&([^;]+);/g,T6):o.type===9?i+=o.parts[0]:i+=o.parts.join("");if(i.length>0){let a=o.sourceSpan;this._addToParent(new fu(i,new In(t.start,a.end,t.fullStart,t.details),e))}}_closeVoidElement(){let o=this._getContainer();o!==null&&this._getTagDefinition(o)?.isVoid&&this._containerStack.pop()}_consumeElementStartTag(o){let e=[],t=[];this._consumeAttributesAndDirectives(e,t);let i=this._getElementFullName(o,this._getClosestElementLikeParent()),a=this._getTagDefinition(i),s=!1;this._peek.type===2?(this._advance(),s=!0,a?.canSelfClose||PP(i)!==null||a?.isVoid||this.errors.push(ya.create(i,o.sourceSpan,`Only void, custom and foreign elements can be self closed "${o.parts[1]}"`))):this._peek.type===1&&(this._advance(),s=!1);let d=this._peek.sourceSpan.fullStart,p=new In(o.sourceSpan.start,d,o.sourceSpan.fullStart),u=new In(o.sourceSpan.start,d,o.sourceSpan.fullStart),g=new ul(i,e,t,[],s,p,u,void 0,a?.isVoid??!1),C=this._getContainer(),M=C!==null&&!!this._getTagDefinition(C)?.isClosedByChild(g.name);this._pushContainer(g,M),s?this._popContainer(i,ul,p):o.type===4&&(this._popContainer(i,ul,null),this.errors.push(ya.create(i,p,`Opening tag "${i}" not terminated.`)))}_consumeComponentStartTag(o){let e=o.parts[0],t=[],i=[];this._consumeAttributesAndDirectives(t,i);let a=this._getClosestElementLikeParent(),s=this._getComponentTagName(o,a),d=this._getComponentFullName(o,a),p=this._peek.type===35;this._advance();let u=this._peek.sourceSpan.fullStart,g=new In(o.sourceSpan.start,u,o.sourceSpan.fullStart),C=new In(o.sourceSpan.start,u,o.sourceSpan.fullStart),M=new Jr(e,s,d,t,i,[],p,g,C,void 0),x=this._getContainer(),b=x!==null&&M.tagName!==null&&!!this._getTagDefinition(x)?.isClosedByChild(M.tagName);this._pushContainer(M,b),p?this._popContainer(d,Jr,g):o.type===37&&(this._popContainer(d,Jr,null),this.errors.push(ya.create(d,g,`Opening tag "${d}" not terminated.`)))}_consumeAttributesAndDirectives(o,e){for(;this._peek.type===14||this._peek.type===38;)this._peek.type===38?e.push(this._consumeDirective(this._peek)):o.push(this._consumeAttr(this._advance()))}_consumeComponentEndTag(o){let e=this._getComponentFullName(o,this._getClosestElementLikeParent());if(!this._popContainer(e,Jr,o.sourceSpan)){let t=this._containerStack[this._containerStack.length-1],i;t instanceof Jr&&t.componentName===o.parts[0]?i=`, did you mean "${t.fullName}"?`:i=". It may happen when the tag has already been closed by another tag.";let a=`Unexpected closing tag "${e}"${i}`;this.errors.push(ya.create(e,o.sourceSpan,a))}}_getTagDefinition(o){return typeof o=="string"?this.tagDefinitionResolver(o):o instanceof ul?this.tagDefinitionResolver(o.name):o instanceof Jr&&o.tagName!==null?this.tagDefinitionResolver(o.tagName):null}_pushContainer(o,e){e&&this._containerStack.pop(),this._addToParent(o),this._containerStack.push(o)}_consumeElementEndTag(o){let e=this._getElementFullName(o,this._getClosestElementLikeParent());if(this._getTagDefinition(e)?.isVoid)this.errors.push(ya.create(e,o.sourceSpan,`Void elements do not have end tags "${o.parts[1]}"`));else if(!this._popContainer(e,ul,o.sourceSpan)){let t=`Unexpected closing tag "${e}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(ya.create(e,o.sourceSpan,t))}}_popContainer(o,e,t){let i=!1;for(let a=this._containerStack.length-1;a>=0;a--){let s=this._containerStack[a];if(((s instanceof Jr?s.fullName:s.name)===o||o===null)&&s instanceof e)return s.endSourceSpan=t,s.sourceSpan.end=t!==null?t.end:s.sourceSpan.end,this._containerStack.splice(a,this._containerStack.length-a),!i;(s instanceof _l||!this._getTagDefinition(s)?.closedByParent)&&(i=!0)}return!1}_consumeAttr(o){let e=wb(o.parts[0],o.parts[1]),t=o.sourceSpan.end;this._peek.type===15&&this._advance();let i="",a=[],s,d;if(this._peek.type===16)for(s=this._peek.sourceSpan,d=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let g=this._advance();a.push(g),g.type===17?i+=g.parts.join("").replace(/&([^;]+);/g,T6):g.type===9?i+=g.parts[0]:i+=g.parts.join(""),d=t=g.sourceSpan.end}this._peek.type===15&&(t=this._advance().sourceSpan.end);let u=s&&d&&new In(s.start,d,s.fullStart);return new n3(e,i,new In(o.sourceSpan.start,t,o.sourceSpan.fullStart),o.sourceSpan,u,a.length>0?a:void 0,void 0)}_consumeDirective(o){let e=[],t=o.sourceSpan.end,i=null;if(this._advance(),this._peek.type===39){for(t=this._peek.sourceSpan.end,this._advance();this._peek.type===14;)e.push(this._consumeAttr(this._advance()));this._peek.type===40?(i=this._peek.sourceSpan,this._advance()):this.errors.push(ya.create(null,o.sourceSpan,"Unterminated directive definition"))}let a=new In(o.sourceSpan.start,t,o.sourceSpan.fullStart),s=new In(a.start,i===null?o.sourceSpan.end:i.end,a.fullStart);return new i3(o.parts[0],e,s,a,i)}_consumeBlockOpen(o){let e=[];for(;this._peek.type===27;){let d=this._advance();e.push(new Cx(d.parts[0],d.sourceSpan))}this._peek.type===25&&this._advance();let t=this._peek.sourceSpan.fullStart,i=new In(o.sourceSpan.start,t,o.sourceSpan.fullStart),a=new In(o.sourceSpan.start,t,o.sourceSpan.fullStart),s=new _l(o.parts[0],e,[],i,o.sourceSpan,a);this._pushContainer(s,!1)}_consumeBlockClose(o){let e=this._containerStack.length,t=this._containerStack[e-1];if(!this._popContainer(null,_l,o.sourceSpan)){if(this._containerStack.length element? If you meant to write the \`}\` character, you should use the "}" HTML entity instead.`));return}this.errors.push(ya.create(null,o.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the `}` character, you should use the "}" HTML entity instead.'))}}_consumeIncompleteBlock(o){let e=[];for(;this._peek.type===27;){let d=this._advance();e.push(new Cx(d.parts[0],d.sourceSpan))}let t=this._peek.sourceSpan.fullStart,i=new In(o.sourceSpan.start,t,o.sourceSpan.fullStart),a=new In(o.sourceSpan.start,t,o.sourceSpan.fullStart),s=new _l(o.parts[0],e,[],i,o.sourceSpan,a);this._pushContainer(s,!1),this._popContainer(null,_l,null),this.errors.push(ya.create(o.parts[0],i,`Incomplete block "${o.parts[0]}". If you meant to write the @ character, you should use the "@" HTML entity instead.`))}_consumeLet(o){let e=o.parts[0],t,i;if(this._peek.type!==30){this.errors.push(ya.create(o.parts[0],o.sourceSpan,`Invalid @let declaration "${e}". Declaration must have a value.`));return}else t=this._advance();if(this._peek.type!==31){this.errors.push(ya.create(o.parts[0],o.sourceSpan,`Unterminated @let declaration "${e}". Declaration must be terminated with a semicolon.`));return}else i=this._advance();let a=i.sourceSpan.end,s=new In(o.sourceSpan.start,a,o.sourceSpan.fullStart),d=o.sourceSpan.toString().lastIndexOf(e),p=o.sourceSpan.start.moveBy(d),u=new In(p,o.sourceSpan.end),g=new bx(e,t.parts[0],s,u,t.sourceSpan);this._addToParent(g)}_consumeIncompleteLet(o){let e=o.parts[0]??"",t=e?` "${e}"`:"";if(e.length>0){let i=o.sourceSpan.toString().lastIndexOf(e),a=o.sourceSpan.start.moveBy(i),s=new In(a,o.sourceSpan.end),d=new In(o.sourceSpan.start,o.sourceSpan.start.moveBy(0)),p=new bx(e,"",o.sourceSpan,s,d);this._addToParent(p)}this.errors.push(ya.create(o.parts[0],o.sourceSpan,`Incomplete @let declaration${t}. @let declarations must be written as \`@let = ;\``))}_getContainer(){return this._containerStack.length>0?this._containerStack[this._containerStack.length-1]:null}_getClosestElementLikeParent(){for(let o=this._containerStack.length-1;o>-1;o--){let e=this._containerStack[o];if(e instanceof ul||e instanceof Jr)return e}return null}_addToParent(o){let e=this._getContainer();e===null?this.rootNodes.push(o):e.children.push(o)}_getElementFullName(o,e){let t=this._getPrefix(o,e);return wb(t,o.parts[1])}_getComponentFullName(o,e){let t=o.parts[0],i=this._getComponentTagName(o,e);return i===null?t:i.startsWith(":")?t+i:`${t}:${i}`}_getComponentTagName(o,e){let t=this._getPrefix(o,e),i=o.parts[2];return!t&&!i?null:!t&&i?i:wb(t,i||"ng-component")}_getPrefix(o,e){let t,i;if(o.type===33||o.type===37||o.type===36?(t=o.parts[1],i=o.parts[2]):(t=o.parts[0],i=o.parts[1]),t=t||this._getTagDefinition(i)?.implicitNamespacePrefix||"",!t&&e){let a=e instanceof ul?e.name:e.tagName;if(a!==null){let s=hr(a)[1],d=this._getTagDefinition(s);d!==null&&!d.preventNamespaceInheritance&&(t=PP(a))}}return t}};function P6(n,o){return n.length>0&&n[n.length-1]===o}function T6(n,o){return P0[o]!==void 0?P0[o]||n:/^#x[a-f0-9]+$/i.test(o)?String.fromCodePoint(parseInt(o.slice(2),16)):/^#\d+$/.test(o)?String.fromCodePoint(parseInt(o.slice(1),10)):n}var bF="ngPreserveWhitespaces",E6=new Set(["pre","template","textarea","script","style"]),xF=` \f +\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,Kq=new RegExp(`[^${xF}]`),Xq=new RegExp(`[${xF}]{2,}`,"g");function O6(n){return n.some(o=>o.name===bF)}function yF(n){return n.replace(new RegExp(CF,"g")," ")}var wx=class{preserveSignificantWhitespace;originalNodeMap;requireContext;icuExpansionDepth=0;constructor(o,e,t=!0){this.preserveSignificantWhitespace=o,this.originalNodeMap=e,this.requireContext=t}visitElement(o,e){if(E6.has(o.name)||O6(o.attrs)){let i=new ul(o.name,Dc(this,o.attrs),Dc(this,o.directives),o.children,o.isSelfClosing,o.sourceSpan,o.startSourceSpan,o.endSourceSpan,o.isVoid,o.i18n);return this.originalNodeMap?.set(i,o),i}let t=new ul(o.name,o.attrs,o.directives,Dc(this,o.children),o.isSelfClosing,o.sourceSpan,o.startSourceSpan,o.endSourceSpan,o.isVoid,o.i18n);return this.originalNodeMap?.set(t,o),t}visitAttribute(o,e){return o.name!==bF?o:null}visitText(o,e){let t=o.value.match(Kq),i=e&&(e.prev instanceof eu||e.next instanceof eu);if(this.icuExpansionDepth>0&&this.preserveSignificantWhitespace)return o;if(t||i){let s=o.tokens.map(g=>g.type===5?eQ(g):g);if(!this.preserveSignificantWhitespace&&s.length>0){let g=s[0];s.splice(0,1,Yq(g,e));let C=s[s.length-1];s.splice(s.length-1,1,Zq(C,e))}let d=MF(o.value),p=this.preserveSignificantWhitespace?d:Jq(d,e),u=new fu(p,o.sourceSpan,s,o.i18n);return this.originalNodeMap?.set(u,o),u}return null}visitComment(o,e){return o}visitExpansion(o,e){this.icuExpansionDepth++;let t;try{t=new eu(o.switchValue,o.type,Dc(this,o.cases),o.sourceSpan,o.switchValueSourceSpan,o.i18n)}finally{this.icuExpansionDepth--}return this.originalNodeMap?.set(t,o),t}visitExpansionCase(o,e){let t=new vx(o.value,Dc(this,o.expression),o.sourceSpan,o.valueSourceSpan,o.expSourceSpan);return this.originalNodeMap?.set(t,o),t}visitBlock(o,e){let t=new _l(o.name,o.parameters,Dc(this,o.children),o.sourceSpan,o.nameSpan,o.startSourceSpan,o.endSourceSpan);return this.originalNodeMap?.set(t,o),t}visitBlockParameter(o,e){return o}visitLetDeclaration(o,e){return o}visitComponent(o,e){if(o.tagName&&E6.has(o.tagName)||O6(o.attrs)){let i=new Jr(o.componentName,o.tagName,o.fullName,Dc(this,o.attrs),Dc(this,o.directives),o.children,o.isSelfClosing,o.sourceSpan,o.startSourceSpan,o.endSourceSpan,o.i18n);return this.originalNodeMap?.set(i,o),i}let t=new Jr(o.componentName,o.tagName,o.fullName,o.attrs,o.directives,Dc(this,o.children),o.isSelfClosing,o.sourceSpan,o.startSourceSpan,o.endSourceSpan,o.i18n);return this.originalNodeMap?.set(t,o),t}visitDirective(o,e){return o}visit(o,e){if(this.requireContext&&!e)throw new Error("WhitespaceVisitor requires context. Visit via `visitAllWithSiblings` to get this context.");return!1}};function Yq(n,o){return n.type!==5||!!o?.prev?n:wF(n,t=>t.trimStart())}function Zq(n,o){return n.type!==5||!!o?.next?n:wF(n,t=>t.trimEnd())}function Jq(n,o){let e=!o?.prev,t=!o?.next,i=e?n.trimStart():n;return t?i.trimEnd():i}function eQ({type:n,parts:o,sourceSpan:e}){return{type:n,parts:[MF(o[0])],sourceSpan:e}}function wF({type:n,parts:o,sourceSpan:e},t){return{type:n,parts:[t(o[0])],sourceSpan:e}}function MF(n){return yF(n).replace(Xq," ")}function Dc(n,o){let e=[];return o.forEach((t,i)=>{let a={prev:o[i-1],next:o[i+1]},s=t.visit(n,a);s&&e.push(s)}),e}var Cn=(function(n){return n[n.Character=0]="Character",n[n.Identifier=1]="Identifier",n[n.PrivateIdentifier=2]="PrivateIdentifier",n[n.Keyword=3]="Keyword",n[n.String=4]="String",n[n.Operator=5]="Operator",n[n.Number=6]="Number",n[n.RegExpBody=7]="RegExpBody",n[n.RegExpFlags=8]="RegExpFlags",n[n.Error=9]="Error",n})(Cn||{}),tu=(function(n){return n[n.Plain=0]="Plain",n[n.TemplateLiteralPart=1]="TemplateLiteralPart",n[n.TemplateLiteralEnd=2]="TemplateLiteralEnd",n})(tu||{}),tQ=["var","let","as","null","undefined","true","false","if","else","this","typeof","void","in","instanceof"],E0=class{tokenize(o){return new c3(o).scan()}},el=class{index;end;type;numValue;strValue;constructor(o,e,t,i,a){this.index=o,this.end=e,this.type=t,this.numValue=i,this.strValue=a}isCharacter(o){return this.type===Cn.Character&&this.numValue===o}isNumber(){return this.type===Cn.Number}isString(){return this.type===Cn.String}isOperator(o){return this.type===Cn.Operator&&this.strValue===o}isIdentifier(){return this.type===Cn.Identifier}isPrivateIdentifier(){return this.type===Cn.PrivateIdentifier}isKeyword(){return this.type===Cn.Keyword}isKeywordLet(){return this.type===Cn.Keyword&&this.strValue==="let"}isKeywordAs(){return this.type===Cn.Keyword&&this.strValue==="as"}isKeywordNull(){return this.type===Cn.Keyword&&this.strValue==="null"}isKeywordUndefined(){return this.type===Cn.Keyword&&this.strValue==="undefined"}isKeywordTrue(){return this.type===Cn.Keyword&&this.strValue==="true"}isKeywordFalse(){return this.type===Cn.Keyword&&this.strValue==="false"}isKeywordThis(){return this.type===Cn.Keyword&&this.strValue==="this"}isKeywordTypeof(){return this.type===Cn.Keyword&&this.strValue==="typeof"}isKeywordVoid(){return this.type===Cn.Keyword&&this.strValue==="void"}isKeywordIn(){return this.type===Cn.Keyword&&this.strValue==="in"}isKeywordInstanceOf(){return this.type===Cn.Keyword&&this.strValue==="instanceof"}isError(){return this.type===Cn.Error}isRegExpBody(){return this.type===Cn.RegExpBody}isRegExpFlags(){return this.type===Cn.RegExpFlags}toNumber(){return this.type===Cn.Number?this.numValue:-1}isTemplateLiteralPart(){return this.isString()&&this.kind===tu.TemplateLiteralPart}isTemplateLiteralEnd(){return this.isString()&&this.kind===tu.TemplateLiteralEnd}isTemplateLiteralInterpolationStart(){return this.isOperator("${")}toString(){switch(this.type){case Cn.Character:case Cn.Identifier:case Cn.Keyword:case Cn.Operator:case Cn.PrivateIdentifier:case Cn.String:case Cn.Error:case Cn.RegExpBody:case Cn.RegExpFlags:return this.strValue;case Cn.Number:return this.numValue.toString();default:return null}}},Df=class extends el{kind;constructor(o,e,t,i){super(o,e,Cn.String,0,t),this.kind=i}};function _f(n,o,e){return new el(n,o,Cn.Character,e,String.fromCharCode(e))}function nQ(n,o,e){return new el(n,o,Cn.Identifier,0,e)}function iQ(n,o,e){return new el(n,o,Cn.PrivateIdentifier,0,e)}function oQ(n,o,e){return new el(n,o,Cn.Keyword,0,e)}function vm(n,o,e){return new el(n,o,Cn.Operator,0,e)}function aQ(n,o,e){return new el(n,o,Cn.Number,e,"")}function rQ(n,o,e){return new el(n,o,Cn.Error,0,e)}function sQ(n,o,e){return new el(n,o,Cn.RegExpBody,0,e)}function lQ(n,o,e){return new el(n,o,Cn.RegExpFlags,0,e)}var ff=new el(-1,-1,Cn.Character,0,""),c3=class{input;tokens=[];length;peek=0;index=-1;braceStack=[];constructor(o){this.input=o,this.length=o.length,this.advance()}scan(){let o=this.scanToken();for(;o!==null;)this.tokens.push(o),o=this.scanToken();return this.tokens}advance(){this.peek=++this.index>=this.length?or:this.input.charCodeAt(this.index)}scanToken(){let o=this.input,e=this.length,t=this.peek,i=this.index;for(;t<=$N;)if(++i>=e){t=or;break}else t=o.charCodeAt(i);if(this.peek=t,this.index=i,i>=e)return null;if(D6(t))return this.scanIdentifier();if(hl(t))return this.scanNumber(i);let a=i;switch(t){case jp:return this.advance(),hl(this.peek)?this.scanNumber(a):this.peek!==jp?_f(a,this.index,jp):(this.advance(),this.peek===jp?(this.advance(),vm(a,this.index,"...")):this.error(`Unexpected character [${String.fromCharCode(t)}]`,0));case ns:case Ea:case Lc:case Od:case Nr:case Fc:case bs:return this.scanCharacter(a,t);case fl:return this.scanOpenBrace(a,t);case es:return this.scanCloseBrace(a,t);case u0:case p0:return this.scanString();case VP:return this.advance(),this.scanTemplateLiteralPart(a);case HN:return this.scanPrivateIdentifier();case UN:return this.scanComplexOperator(a,"+",nr,"=");case ix:return this.scanComplexOperator(a,"-",nr,"=");case gl:return this.isStartOfRegex()?this.scanRegex(i):this.scanComplexOperator(a,"/",nr,"=");case ZU:return this.scanComplexOperator(a,"%",nr,"=");case iW:return this.scanOperator(a,"^");case Y5:return this.scanStar(a);case Z5:return this.scanQuestion(a);case Ig:case Ws:return this.scanComplexOperator(a,String.fromCharCode(t),nr,"=");case LP:return this.scanComplexOperator(a,"!",nr,"=",nr,"=");case nr:return this.scanEquals(a);case nx:return this.scanComplexOperator(a,"&",nx,"&",nr,"=");case J5:return this.scanComplexOperator(a,"|",J5,"|",nr,"=");case ZN:for(;g0(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(t)}]`,0)}scanCharacter(o,e){return this.advance(),_f(o,this.index,e)}scanOperator(o,e){return this.advance(),vm(o,this.index,e)}scanOpenBrace(o,e){return this.braceStack.push("expression"),this.advance(),_f(o,this.index,e)}scanCloseBrace(o,e){return this.advance(),this.braceStack.pop()==="interpolation"?(this.tokens.push(_f(o,this.index,es)),this.scanTemplateLiteralPart(this.index)):_f(o,this.index,e)}scanComplexOperator(o,e,t,i,a,s){this.advance();let d=e;return this.peek==t&&(this.advance(),d+=i),a!=null&&this.peek==a&&(this.advance(),d+=s),vm(o,this.index,d)}scanEquals(o){this.advance();let e="=";if(this.peek===nr)this.advance(),e+="=";else if(this.peek===Ws)return this.advance(),e+=">",vm(o,this.index,e);return this.peek===nr&&(this.advance(),e+="="),vm(o,this.index,e)}scanIdentifier(){let o=this.index;for(this.advance();I6(this.peek);)this.advance();let e=this.input.substring(o,this.index);return tQ.indexOf(e)>-1?oQ(o,this.index,e):nQ(o,this.index,e)}scanPrivateIdentifier(){let o=this.index;if(this.advance(),!D6(this.peek))return this.error("Invalid character [#]",-1);for(;I6(this.peek);)this.advance();let e=this.input.substring(o,this.index);return iQ(o,this.index,e)}scanNumber(o){let e=this.index===o,t=!1;for(this.advance();;){if(!hl(this.peek))if(this.peek===Bm){if(!hl(this.input.charCodeAt(this.index-1))||!hl(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);t=!0}else if(this.peek===jp)e=!1;else if(cQ(this.peek)){if(this.advance(),dQ(this.peek)&&this.advance(),!hl(this.peek))return this.error("Invalid exponent",-1);e=!1}else break;this.advance()}let i=this.input.substring(o,this.index);t&&(i=i.replace(/_/g,""));let a=e?pQ(i):parseFloat(i);return aQ(o,this.index,a)}scanString(){let o=this.index,e=this.peek;this.advance();let t="",i=this.index,a=this.input;for(;this.peek!=e;)if(this.peek==Jp){let d=this.scanStringBackslash(t,i);if(typeof d!="string")return d;t=d,i=this.index}else{if(this.peek==or)return this.error("Unterminated quote",0);this.advance()}let s=a.substring(i,this.index);return this.advance(),new Df(o,this.index,t+s,tu.Plain)}scanQuestion(o){this.advance();let e="?";return this.peek===Z5?(e+="?",this.advance(),this.peek===nr&&(e+="=",this.advance())):this.peek===jp&&(e+=".",this.advance()),vm(o,this.index,e)}scanTemplateLiteralPart(o){let e="",t=this.index;for(;this.peek!==VP;)if(this.peek===Jp){let a=this.scanStringBackslash(e,t);if(typeof a!="string")return a;e=a,t=this.index}else if(this.peek===zx){let a=this.index;if(this.advance(),this.peek===fl)return this.braceStack.push("interpolation"),this.tokens.push(new Df(o,a,e+this.input.substring(t,a),tu.TemplateLiteralPart)),this.advance(),vm(a,this.index,this.input.substring(a,this.index))}else{if(this.peek===or)return this.error("Unterminated template literal",0);this.advance()}let i=this.input.substring(t,this.index);return this.advance(),new Df(o,this.index,e+i,tu.TemplateLiteralEnd)}error(o,e){let t=this.index+e;return rQ(t,this.index,`Lexer Error: ${o} at column ${t} in expression [${this.input}]`)}scanStringBackslash(o,e){o+=this.input.substring(e,this.index);let t;if(this.advance(),this.peek===KN){let i=this.input.substring(this.index+1,this.index+5);if(/^[0-9a-f]+$/i.test(i))t=parseInt(i,16);else return this.error(`Invalid unicode escape [\\u${i}]`,0);for(let a=0;a<5;a++)this.advance()}else t=mQ(this.peek),this.advance();return o+=String.fromCharCode(t),o}scanStar(o){this.advance();let e="*";return this.peek===Y5?(e+="*",this.advance(),this.peek===nr&&(e+="=",this.advance())):this.peek===nr&&(e+="=",this.advance()),vm(o,this.index,e)}isStartOfRegex(){if(this.tokens.length===0)return!0;let o=this.tokens[this.tokens.length-1];if(o.isOperator("!")){let e=this.tokens.length>1?this.tokens[this.tokens.length-2]:null;return e===null||e.type!==Cn.Identifier&&!e.isCharacter(Ea)&&!e.isCharacter(Od)}return o.type===Cn.Operator||o.isCharacter(ns)||o.isCharacter(Lc)||o.isCharacter(Nr)||o.isCharacter(Fc)}scanRegex(o){this.advance();let e=this.index,t=!1,i=!1;for(;;){let p=this.peek;if(p===or)return this.error("Unterminated regular expression",0);if(t)t=!1;else if(p===Jp)t=!0;else if(p===Lc)i=!0;else if(p===Od)i=!1;else if(p===gl&&!i)break;this.advance()}let a=this.input.substring(e,this.index);this.advance();let s=sQ(o,this.index,a),d=this.scanRegexFlags(this.index);return d!==null?(this.tokens.push(s),d):s}scanRegexFlags(o){if(!Nm(this.peek))return null;for(;Nm(this.peek);)this.advance();return lQ(o,this.index,this.input.substring(o,this.index))}};function D6(n){return pu<=n&&n<=z0||Vm<=n&&n<=eh||n==Bm||n==zx}function I6(n){return Nm(n)||hl(n)||n==Bm||n==zx}function cQ(n){return n==aW||n==eW}function dQ(n){return n==ix||n==UN}function mQ(n){switch(n){case GN:return Zp;case J3:return jN;case qN:return Y3;case QN:return X3;case XN:return BN;default:return n}}function pQ(n){let o=parseInt(n);if(isNaN(o))throw new Error("Invalid integer literal when parsing "+n);return o}var d3=class{strings;expressions;offsets;constructor(o,e,t){this.strings=o,this.expressions=e,this.offsets=t}},m3=class{templateBindings;warnings;errors;constructor(o,e,t){this.templateBindings=o,this.warnings=e,this.errors=t}};function wm(n){return n.start.toString()||"(unknown)"}var Mx=class{_lexer;_supportsDirectPipeReferences;constructor(o,e=!1){this._lexer=o,this._supportsDirectPipeReferences=e}parseAction(o,e,t){let i=[];this._checkNoInterpolation(i,o,e);let{stripped:a}=this._stripComments(o),s=this._lexer.tokenize(a),d=new Wp(o,e,t,s,1,i,0,this._supportsDirectPipeReferences).parseChain();return new xs(d,o,wm(e),t,i)}parseBinding(o,e,t){let i=[],a=this._parseBindingAst(o,e,t,i);return new xs(a,o,wm(e),t,i)}checkSimpleExpression(o){let e=new p3;return o.visit(e),e.errors}parseSimpleBinding(o,e,t){let i=[],a=this._parseBindingAst(o,e,t,i),s=this.checkSimpleExpression(a);return s.length>0&&i.push(Eg(`Host binding expression cannot contain ${s.join(" ")}`,o,"",e)),new xs(a,o,wm(e),t,i)}_parseBindingAst(o,e,t,i){this._checkNoInterpolation(i,o,e);let{stripped:a}=this._stripComments(o),s=this._lexer.tokenize(a);return new Wp(o,e,t,s,0,i,0,this._supportsDirectPipeReferences).parseChain()}parseTemplateBindings(o,e,t,i,a){let s=this._lexer.tokenize(e),d=[];return new Wp(e,t,a,s,0,d,0,this._supportsDirectPipeReferences).parseTemplateBindings({source:o,span:new qs(i,i+o.length)})}parseInterpolation(o,e,t,i){let a=[],{strings:s,expressions:d,offsets:p}=this.splitInterpolation(o,e,a,i);if(d.length===0)return null;let u=[];for(let g=0;gg.text),u,o,wm(e),t,a)}parseInterpolationExpression(o,e,t){let{stripped:i}=this._stripComments(o),a=this._lexer.tokenize(i),s=[],d=new Wp(o,e,t,a,0,s,0,this._supportsDirectPipeReferences).parseChain(),p=["",""];return this.createInterpolationAst(p,[d],o,wm(e),t,s)}createInterpolationAst(o,e,t,i,a,s){let d=new lu(0,t.length),p=new F0(d,d.toAbsolute(a),o,e);return new xs(p,t,i,a,s)}splitInterpolation(o,e,t,i){let a=[],s=[],d=[],p=i?uQ(i):null,u=0,g=!1,C=!1,M="{{",x="}}";for(;u-1)break;i>-1&&a>-1&&o.push(Eg("Got interpolation ({{}}) where expression was expected",e,`at column ${i} in`,t))}_getInterpolationEndIndex(o,e,t){for(let i of this._forEachUnquotedChar(o,t)){if(o.startsWith(e,i))return i;if(o.startsWith("//",i))return o.indexOf(e,i)}return-1}*_forEachUnquotedChar(o,e){let t=null,i=0;for(let a=e;a=this.tokens.length}get inputIndex(){return this.atEOF?this.currentEndIndex:this.next.index+this.offset}get currentEndIndex(){return this.index>0?this.peek(-1).end+this.offset:this.tokens.length===0?this.input.length+this.offset:this.next.index+this.offset}get currentAbsoluteOffset(){return this.absoluteOffset+this.inputIndex}span(o,e){let t=this.currentEndIndex;if(e!==void 0&&e>this.currentEndIndex&&(t=e),o>t){let i=t;t=o,o=i}return new lu(o,t)}sourceSpan(o,e){let t=`${o}@${this.inputIndex}:${e}`;return this.sourceSpanCache.has(t)||this.sourceSpanCache.set(t,this.span(o,e).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(t)}advance(){this.index++}withContext(o,e){this.context|=o;let t=e();return this.context^=o,t}consumeOptionalCharacter(o){return this.next.isCharacter(o)?(this.advance(),!0):!1}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(o){this.consumeOptionalCharacter(o)||this.error(`Missing expected ${String.fromCharCode(o)}`)}consumeOptionalOperator(o){return this.next.isOperator(o)?(this.advance(),!0):!1}isAssignmentOperator(o){return o.type===Cn.Operator&&Zr.isAssignmentOperation(o.strValue)}expectOperator(o){this.consumeOptionalOperator(o)||this.error(`Missing expected operator ${o}`)}prettyPrintToken(o){return o===ff?"end of input":`token ${o}`}expectIdentifierOrKeyword(){let o=this.next;return!o.isIdentifier()&&!o.isKeyword()?(o.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(o,"expected identifier or keyword"):this.error(`Unexpected ${this.prettyPrintToken(o)}, expected identifier or keyword`),null):(this.advance(),o.toString())}expectIdentifierOrKeywordOrString(){let o=this.next;return!o.isIdentifier()&&!o.isKeyword()&&!o.isString()?(o.isPrivateIdentifier()?this._reportErrorForPrivateIdentifier(o,"expected identifier, keyword or string"):this.error(`Unexpected ${this.prettyPrintToken(o)}, expected identifier, keyword, or string`),""):(this.advance(),o.toString())}parseChain(){let o=[],e=this.inputIndex;for(;this.index=Vm&&u<=eh?yb.ReferencedDirectly:yb.ReferencedByName}else p=yb.ReferencedByName;e=new jb(this.span(o),this.sourceSpan(o,s),e,i,d,p,a)}while(this.consumeOptionalOperator("|"))}return e}parseExpression(){return this.parseConditional()}parseConditional(){let o=this.inputIndex,e=this.parseLogicalOr();if(this.consumeOptionalOperator("?")){let t=this.parsePipe(),i;if(this.consumeOptionalCharacter(Fc))i=this.parsePipe();else{let a=this.inputIndex,s=this.input.substring(o,a);this.error(`Conditional expression ${s} requires all 3 expressions`),i=new Ar(this.span(o),this.sourceSpan(o))}return new Bb(this.span(o),this.sourceSpan(o),e,t,i)}else return e}parseLogicalOr(){let o=this.inputIndex,e=this.parseLogicalAnd();for(;this.consumeOptionalOperator("||");){let t=this.parseLogicalAnd();e=new Zr(this.span(o),this.sourceSpan(o),"||",e,t)}return e}parseLogicalAnd(){let o=this.inputIndex,e=this.parseNullishCoalescing();for(;this.consumeOptionalOperator("&&");){let t=this.parseNullishCoalescing();e=new Zr(this.span(o),this.sourceSpan(o),"&&",e,t)}return e}parseNullishCoalescing(){let o=this.inputIndex,e=this.parseEquality();for(;this.consumeOptionalOperator("??");){let t=this.parseEquality();e=new Zr(this.span(o),this.sourceSpan(o),"??",e,t)}return e}parseEquality(){let o=this.inputIndex,e=this.parseRelational();for(;this.next.type==Cn.Operator;){let t=this.next.strValue;switch(t){case"==":case"===":case"!=":case"!==":this.advance();let i=this.parseRelational();e=new Zr(this.span(o),this.sourceSpan(o),t,e,i);continue}break}return e}parseRelational(){let o=this.inputIndex,e=this.parseAdditive();for(;this.next.type==Cn.Operator||this.next.isKeywordIn()||this.next.isKeywordInstanceOf();){let t=this.next.strValue;switch(t){case"<":case">":case"<=":case">=":case"in":case"instanceof":this.advance();let i=this.parseAdditive();e=new Zr(this.span(o),this.sourceSpan(o),t,e,i);continue}break}return e}parseAdditive(){let o=this.inputIndex,e=this.parseMultiplicative();for(;this.next.type==Cn.Operator;){let t=this.next.strValue;switch(t){case"+":case"-":this.advance();let i=this.parseMultiplicative();e=new Zr(this.span(o),this.sourceSpan(o),t,e,i);continue}break}return e}parseMultiplicative(){let o=this.inputIndex,e=this.parseExponentiation();for(;this.next.type==Cn.Operator;){let t=this.next.strValue;switch(t){case"*":case"%":case"/":this.advance();let i=this.parseExponentiation();e=new Zr(this.span(o),this.sourceSpan(o),t,e,i);continue}break}return e}parseExponentiation(){let o=this.inputIndex,e=this.parsePrefix();for(;this.next.type==Cn.Operator&&this.next.strValue==="**";){(e instanceof Dg||e instanceof Kf||e instanceof Xf||e instanceof Yf)&&this.error("Unary operator used immediately before exponentiation expression. Parenthesis must be used to disambiguate operator precedence"),this.advance();let t=this.parseExponentiation();e=new Zr(this.span(o),this.sourceSpan(o),"**",e,t)}return e}parsePrefix(){if(this.next.type==Cn.Operator){let o=this.inputIndex,e=this.next.strValue,t;switch(e){case"+":return this.advance(),t=this.parsePrefix(),Dg.createPlus(this.span(o),this.sourceSpan(o),t);case"-":return this.advance(),t=this.parsePrefix(),Dg.createMinus(this.span(o),this.sourceSpan(o),t);case"!":return this.advance(),t=this.parsePrefix(),new Kf(this.span(o),this.sourceSpan(o),t)}}else if(this.next.isKeywordTypeof()){let o=this.inputIndex;this.advance();let e=this.parsePrefix();return new Xf(this.span(o),this.sourceSpan(o),e)}else if(this.next.isKeywordVoid()){let o=this.inputIndex;this.advance();let e=this.parsePrefix();return new Yf(this.span(o),this.sourceSpan(o),e)}return this.parseCallChain()}parseCallChain(){let o=this.inputIndex,e=this.parsePrimary();for(;;)if(this.consumeOptionalCharacter(jp))e=this.parseAccessMember(e,o,!1);else if(this.consumeOptionalOperator("?."))this.consumeOptionalCharacter(ns)?e=this.parseCall(e,o,!0):e=this.consumeOptionalCharacter(Lc)?this.parseKeyedReadOrWrite(e,o,!0):this.parseAccessMember(e,o,!0);else if(this.consumeOptionalCharacter(Lc))e=this.parseKeyedReadOrWrite(e,o,!1);else if(this.consumeOptionalCharacter(ns))e=this.parseCall(e,o,!1);else if(this.consumeOptionalOperator("!"))e=new Zf(this.span(o),this.sourceSpan(o),e);else if(this.next.isTemplateLiteralEnd())e=this.parseNoInterpolationTaggedTemplateLiteral(e,o);else if(this.next.isTemplateLiteralPart())e=this.parseTaggedTemplateLiteral(e,o);else return e}parsePrimary(){let o=this.inputIndex;if(this.isArrowFunction())return this.parseArrowFunction(o);if(this.consumeOptionalCharacter(ns)){this.rparensExpected++;let e=this.parsePipe();return this.consumeOptionalCharacter(Ea)||(this.error("Missing closing parentheses"),this.consumeOptionalCharacter(Ea)),this.rparensExpected--,new t0(this.span(o),this.sourceSpan(o),e)}else{if(this.next.isKeywordNull())return this.advance(),new Cs(this.span(o),this.sourceSpan(o),null);if(this.next.isKeywordUndefined())return this.advance(),new Cs(this.span(o),this.sourceSpan(o),void 0);if(this.next.isKeywordTrue())return this.advance(),new Cs(this.span(o),this.sourceSpan(o),!0);if(this.next.isKeywordFalse())return this.advance(),new Cs(this.span(o),this.sourceSpan(o),!1);if(this.next.isKeywordIn())return this.advance(),new Cs(this.span(o),this.sourceSpan(o),"in");if(this.next.isKeywordThis())return this.advance(),new Wf(this.span(o),this.sourceSpan(o));if(this.consumeOptionalCharacter(Lc))return this.parseLiteralArray(o);if(this.next.isCharacter(fl))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMember(new Hc(this.span(o),this.sourceSpan(o)),o,!1);if(this.next.isNumber()){let e=this.next.toNumber();return this.advance(),new Cs(this.span(o),this.sourceSpan(o),e)}else{if(this.next.isTemplateLiteralEnd())return this.parseNoInterpolationTemplateLiteral();if(this.next.isTemplateLiteralPart())return this.parseTemplateLiteral();if(this.next.isString()&&this.next.kind===tu.Plain){let e=this.next.toString();return this.advance(),new Cs(this.span(o),this.sourceSpan(o),e)}else return this.next.isPrivateIdentifier()?(this._reportErrorForPrivateIdentifier(this.next,null),new Ar(this.span(o),this.sourceSpan(o))):this.next.isRegExpBody()?this.parseRegularExpressionLiteral():this.index>=this.tokens.length?(this.error(`Unexpected end of expression: ${this.input}`),new Ar(this.span(o),this.sourceSpan(o))):(this.error(`Unexpected token ${this.next}`),new Ar(this.span(o),this.sourceSpan(o)))}}}parseLiteralArray(o){this.rbracketsExpected++;let e=[];do if(this.next.isOperator("..."))e.push(this.parseSpreadElement());else if(!this.next.isCharacter(Od))e.push(this.parsePipe());else break;while(this.consumeOptionalCharacter(Nr));return this.rbracketsExpected--,this.expectCharacter(Od),new Qf(this.span(o),this.sourceSpan(o),e)}parseLiteralMap(){let o=[],e=[],t=this.inputIndex;if(this.expectCharacter(fl),!this.consumeOptionalCharacter(es)){this.rbracesExpected++;do{let i=this.inputIndex;if(this.next.isOperator("...")){this.advance(),o.push({kind:"spread",span:this.span(i),sourceSpan:this.sourceSpan(i)}),e.push(this.parsePipe());continue}let a=this.next.isString(),s=this.expectIdentifierOrKeywordOrString(),d=this.span(i),p=this.sourceSpan(i),u={kind:"property",key:s,quoted:a,span:d,sourceSpan:p};o.push(u),a?(this.expectCharacter(Fc),e.push(this.parsePipe())):this.consumeOptionalCharacter(Fc)?e.push(this.parsePipe()):(u.isShorthandInitialized=!0,e.push(new zc(d,p,p,new Hc(d,p),s)))}while(this.consumeOptionalCharacter(Nr)&&!this.next.isCharacter(es));this.rbracesExpected--,this.expectCharacter(es)}return new du(this.span(t),this.sourceSpan(t),o,e)}parseAccessMember(o,e,t){let i=this.inputIndex,a=this.withContext(kf.Writable,()=>{let d=this.expectIdentifierOrKeyword()??"";return d.length===0&&this.error("Expected identifier for property access",o.span.end),d}),s=this.sourceSpan(i);if(t)return this.isAssignmentOperator(this.next)?(this.advance(),this.error("The '?.' operator cannot be used in the assignment"),new Ar(this.span(e),this.sourceSpan(e))):new Gf(this.span(e),this.sourceSpan(e),s,o,a);if(this.isAssignmentOperator(this.next)){let d=this.next.strValue;if(!(this.parseFlags&1))return this.advance(),this.error("Bindings cannot contain assignments"),new Ar(this.span(e),this.sourceSpan(e));let p=new zc(this.span(e),this.sourceSpan(e),s,o,a);this.advance();let u=this.parseConditional();return new Zr(this.span(e),this.sourceSpan(e),d,p,u)}else return new zc(this.span(e),this.sourceSpan(e),s,o,a)}parseCall(o,e,t){let i=this.inputIndex;this.rparensExpected++;let a=this.parseCallArguments(),s=this.span(i,this.inputIndex).toAbsolute(this.absoluteOffset);this.expectCharacter(Ea),this.rparensExpected--;let d=this.span(e),p=this.sourceSpan(e);return t?new Hb(d,p,o,a,s):new Vg(d,p,o,a,s)}parseCallArguments(){if(this.next.isCharacter(Ea))return[];let o=[];do o.push(this.next.isOperator("...")?this.parseSpreadElement():this.parsePipe());while(this.consumeOptionalCharacter(Nr));return o}parseSpreadElement(){this.next.isOperator("...")||this.error("Spread element must start with '...' operator");let o=this.inputIndex;this.advance();let e=this.parsePipe(),t=this.span(o),i=this.sourceSpan(o);return new $b(t,i,e)}expectTemplateBindingKey(){let o="",e=!1,t=this.currentAbsoluteOffset;do o+=this.expectIdentifierOrKeywordOrString(),e=this.consumeOptionalOperator("-"),e&&(o+="-");while(e);return{source:o,span:new qs(t,t+o.length)}}parseTemplateBindings(o){let e=[];for(e.push(...this.parseDirectiveKeywordBindings(o));this.index{this.rbracketsExpected++;let i=this.parsePipe();if(i instanceof Ar&&this.error("Key access cannot be empty"),this.rbracketsExpected--,this.expectCharacter(Od),this.isAssignmentOperator(this.next)){let a=this.next.strValue;if(t)this.advance(),this.error("The '?.' operator cannot be used in the assignment");else{let s=new cu(this.span(e),this.sourceSpan(e),o,i);this.advance();let d=this.parseConditional();return new Zr(this.span(e),this.sourceSpan(e),a,s,d)}}else return t?new qf(this.span(e),this.sourceSpan(e),o,i):new cu(this.span(e),this.sourceSpan(e),o,i);return new Ar(this.span(e),this.sourceSpan(e))})}parseDirectiveKeywordBindings(o){let e=[];this.consumeOptionalCharacter(Fc);let t=this.getDirectiveBoundTarget(),i=this.currentAbsoluteOffset,a=this.parseAsBinding(o);a||(this.consumeStatementTerminator(),i=this.currentAbsoluteOffset);let s=new qs(o.span.start,i);return e.push(new MP(s,o,t)),a&&e.push(a),e}getDirectiveBoundTarget(){if(this.next===ff||this.peekKeywordAs()||this.peekKeywordLet())return null;let o=this.parsePipe(),{start:e,end:t}=o.span,i=this.input.substring(e,t);return new xs(o,i,wm(this.parseSourceSpan),this.absoluteOffset+e,this.errors)}parseAsBinding(o){if(!this.peekKeywordAs())return null;this.advance();let e=this.expectTemplateBindingKey();this.consumeStatementTerminator();let t=new qs(o.span.start,this.currentAbsoluteOffset);return new n0(t,e,o)}parseLetBinding(){if(!this.peekKeywordLet())return null;let o=this.currentAbsoluteOffset;this.advance();let e=this.expectTemplateBindingKey(),t=null;this.consumeOptionalOperator("=")&&(t=this.expectTemplateBindingKey()),this.consumeStatementTerminator();let i=new qs(o,this.currentAbsoluteOffset);return new n0(i,e,t)}parseNoInterpolationTaggedTemplateLiteral(o,e){let t=this.parseNoInterpolationTemplateLiteral();return new Jf(this.span(e),this.sourceSpan(e),o,t)}parseNoInterpolationTemplateLiteral(){let o=this.next.strValue,e=this.inputIndex;this.advance();let t=this.span(e),i=this.sourceSpan(e);return new e0(t,i,[new Ub(t,i,o)],[])}parseTaggedTemplateLiteral(o,e){let t=this.parseTemplateLiteral();return new Jf(this.span(e),this.sourceSpan(e),o,t)}parseTemplateLiteral(){let o=[],e=[],t=this.inputIndex;for(;this.next!==ff;){let i=this.next;if(i.isTemplateLiteralPart()||i.isTemplateLiteralEnd()){let a=this.inputIndex;if(this.advance(),o.push(new Ub(this.span(a),this.sourceSpan(a),i.strValue)),i.isTemplateLiteralEnd())break}else if(i.isTemplateLiteralInterpolationStart()){this.advance(),this.rbracesExpected++;let a=this.parsePipe();a instanceof Ar?this.error("Template literal interpolation cannot be empty"):e.push(a),this.rbracesExpected--}else this.advance()}return new e0(this.span(t),this.sourceSpan(t),o,e)}parseRegularExpressionLiteral(){let o=this.next;if(this.advance(),!o.isRegExpBody())return new Ar(this.span(this.inputIndex),this.sourceSpan(this.inputIndex));let e=null;if(this.next.isRegExpFlags()){e=this.next,this.advance();let a=new Set;for(let s=0;s`"${p}"`).join(", "),e.index+s)}}let t=o.index,i=e?e.end:o.end;return new Gb(this.span(t,i),this.sourceSpan(t,i),o.strValue,e?e.strValue:null)}parseArrowFunction(o){let e;if(this.next.isIdentifier()){let i=this.next;this.advance(),e=[this.getArrowFunctionIdentifierArg(i)]}else this.next.isCharacter(ns)?(this.rparensExpected++,this.advance(),e=this.parseArrowFunctionParameters(),this.rparensExpected--):(e=[],this.error(`Unexpected token ${this.next}`));this.expectOperator("=>");let t;if(this.next.isCharacter(fl))this.error("Multi-line arrow functions are not supported. If you meant to return an object literal, wrap it with parentheses."),t=new Ar(this.span(o),this.sourceSpan(o));else{let i=this.parseFlags;this.parseFlags=1,t=this.parseExpression(),this.parseFlags=i}return new Wb(this.span(o),this.sourceSpan(o),e,t)}parseArrowFunctionParameters(){let o=[];if(!this.consumeOptionalCharacter(Ea))for(;this.next!==ff;)if(this.next.isIdentifier()){let e=this.next;if(this.advance(),o.push(this.getArrowFunctionIdentifierArg(e)),this.consumeOptionalCharacter(Ea))break;this.expectCharacter(Nr)}else{this.error(`Unexpected token ${this.next}`);break}return o}getArrowFunctionIdentifierArg(o){return new wP(o.strValue,this.span(o.index),this.sourceSpan(o.index))}isArrowFunction(){let o=this.index,e=this.tokens;if(o>e.length-2)return!1;if(e[o].isIdentifier()&&e[o+1].isOperator("=>"))return!0;if(e[o].isCharacter(ns)){let t=o+1;for(t;t")}return!1}consumeStatementTerminator(){this.consumeOptionalCharacter(bs)||this.consumeOptionalCharacter(Nr)}error(o,e=this.index){this.errors.push(Eg(o,this.input,this.getErrorLocationText(e),this.parseSourceSpan)),this.skip()}getErrorLocationText(o){return o0&&(e=` ${e} `);let i=wm(t),a=`Parser Error: ${n}${e}[${o}] in ${i}`;return new dn(t,a)}var p3=class extends Bg{errors=[];visitPipe(){this.errors.push("pipes")}};function uQ(n){let o=new Map,e=0,t=0,i=0;for(;id+p.length,0);t+=s,e+=s}o.set(t,e),i++}return o}function gQ(n){return n.visit(new u3)}var u3=class{visitUnary(o,e){return`${o.operator}${o.expr.visit(this,e)}`}visitBinary(o,e){return`${o.left.visit(this,e)} ${o.operation} ${o.right.visit(this,e)}`}visitChain(o,e){return o.expressions.map(t=>t.visit(this,e)).join("; ")}visitConditional(o,e){return`${o.condition.visit(this,e)} ? ${o.trueExp.visit(this,e)} : ${o.falseExp.visit(this,e)}`}visitThisReceiver(){return"this"}visitImplicitReceiver(){return""}visitInterpolation(o,e){return _Q(o.strings,o.expressions.map(t=>t.visit(this,e))).join("")}visitKeyedRead(o,e){return`${o.receiver.visit(this,e)}[${o.key.visit(this,e)}]`}visitLiteralArray(o,e){return`[${o.expressions.map(t=>t.visit(this,e)).join(", ")}]`}visitLiteralMap(o,e){return`{${hQ(o.keys.map(t=>t.kind==="spread"?"...":t.quoted?`'${t.key}'`:t.key),o.values.map(t=>t.visit(this,e))).map(([t,i])=>`${t}: ${i}`).join(", ")}}`}visitLiteralPrimitive(o){if(o.value===null)return"null";switch(typeof o.value){case"number":case"boolean":return o.value.toString();case"undefined":return"undefined";case"string":return`'${o.value.replace(/'/g,"\\'")}'`;default:throw new Error(`Unsupported primitive type: ${o.value}`)}}visitPipe(o,e){return`${o.exp.visit(this,e)} | ${o.name}`}visitPrefixNot(o,e){return`!${o.expression.visit(this,e)}`}visitNonNullAssert(o,e){return`${o.expression.visit(this,e)}!`}visitPropertyRead(o,e){return o.receiver instanceof Hc||o.receiver instanceof Wf?o.name:`${o.receiver.visit(this,e)}.${o.name}`}visitSafePropertyRead(o,e){return`${o.receiver.visit(this,e)}?.${o.name}`}visitSafeKeyedRead(o,e){return`${o.receiver.visit(this,e)}?.[${o.key.visit(this,e)}]`}visitCall(o,e){return`${o.receiver.visit(this,e)}(${o.args.map(t=>t.visit(this,e)).join(", ")})`}visitSafeCall(o,e){return`${o.receiver.visit(this,e)}?.(${o.args.map(t=>t.visit(this,e)).join(", ")})`}visitTypeofExpression(o,e){return`typeof ${o.expression.visit(this,e)}`}visitVoidExpression(o,e){return`void ${o.expression.visit(this,e)}`}visitRegularExpressionLiteral(o,e){return`/${o.body}/${o.flags||""}`}visitArrowFunction(o,e){let t;return o.parameters.length===1?t=o.parameters[0].name:t=`(${o.parameters.map(i=>i.name).join(", ")})`,`${t} => ${o.body.visit(this,e)}`}visitASTWithSource(o,e){return o.ast.visit(this,e)}visitTemplateLiteral(o,e){let t="";for(let i=0;i[e,o[t]])}function _Q(n,o){let e=[];for(let t=0;t(n.set(o,e),n),new Map),Yg=class extends g3{_schema=new Map;_eventSchema=new Map;constructor(){super(),xQ.forEach(o=>{let e=new Map,t=new Set,[i,a]=o.split("|"),s=a.split(","),[d,p]=i.split("^");d.split(",").forEach(g=>{this._schema.set(g.toLowerCase(),e),this._eventSchema.set(g.toLowerCase(),t)});let u=p&&this._schema.get(p.toLowerCase());if(u){for(let[g,C]of u)e.set(g,C);for(let g of this._eventSchema.get(p.toLowerCase()))t.add(g)}s.forEach(g=>{if(g.length>0)switch(g[0]){case"*":t.add(g.substring(1));break;case"!":e.set(g.substring(1),fQ);break;case"#":e.set(g.substring(1),vQ);break;case"%":e.set(g.substring(1),bQ);break;default:e.set(g,CQ)}})})}hasProperty(o,e,t){if(t.some(s=>s.name===N5.name))return!0;let i=vf(o);if(i.includes("-")){if(G5(i)||kP(i))return!1;if(t.some(s=>s.name===A5.name))return!0}return(this._schema.get(i)||this._schema.get("unknown")).has(e)}hasElement(o,e){if(e.some(i=>i.name===N5.name))return!0;let t=vf(o);return t.includes("-")&&(G5(t)||kP(t)||e.some(i=>i.name===A5.name))?!0:this._schema.has(t)}securityContext(o,e,t){t&&(e=this.getMappedPropName(e));let i=vf(o);e=e.toLowerCase();let[a]=hr(i,!1),s=HH();return s[i+"|"+e]??(a?s[`:${a}:*|${e}`]:void 0)??s["*|"+e]??gi.NONE}getMappedPropName(o){return SF.get(o)??o}getDefaultComponentElementName(){return"ng-component"}validateProperty(o){return o.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event property '${o}' is disallowed for security reasons, please use (${o.slice(2)})=... +If '${o}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(o){return o.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${o}' is disallowed for security reasons, please use (${o.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(o){let e=vf(o),t=this._schema.get(e)||this._schema.get("unknown");return Array.from(t.keys()).map(i=>yQ.get(i)??i)}allKnownEventsOfElement(o){let e=vf(o);return Array.from(this._eventSchema.get(e)??[])}normalizeAnimationStyleProperty(o){return vU(o)}normalizeAnimationStyleValue(o,e,t){let i="",a=t.toString().trim(),s=null;if(wQ(o)&&t!==0&&t!=="0")if(typeof t=="number")i="px";else{let d=t.match(/^[+-]?[\d\.]+([a-z]*)$/);d&&d[1].length==0&&(s=`Please provide a CSS unit value for ${e}:${t}`)}return{error:s,value:a+i}}};function wQ(n){switch(n){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var ci=class{closedByChildren={};contentType;closedByParent=!1;implicitNamespacePrefix;isVoid;ignoreFirstLf;canSelfClose;preventNamespaceInheritance;constructor({closedByChildren:o,implicitNamespacePrefix:e,contentType:t=Nc.PARSABLE_DATA,closedByParent:i=!1,isVoid:a=!1,ignoreFirstLf:s=!1,preventNamespaceInheritance:d=!1,canSelfClose:p=!1}={}){o&&o.length>0&&o.forEach(u=>this.closedByChildren[u]=!0),this.isVoid=a,this.closedByParent=i||a,this.implicitNamespacePrefix=e||null,this.contentType=t,this.ignoreFirstLf=s,this.preventNamespaceInheritance=d,this.canSelfClose=p??a}isClosedByChild(o){return this.isVoid||o.toLowerCase()in this.closedByChildren}getContentType(o){return typeof this.contentType=="object"?(o===void 0?void 0:this.contentType[o])??this.contentType.default:this.contentType}},N6,xg;function h3(n){return xg||(N6=new ci({canSelfClose:!0}),xg=Object.assign(Object.create(null),{base:new ci({isVoid:!0}),meta:new ci({isVoid:!0}),area:new ci({isVoid:!0}),embed:new ci({isVoid:!0}),link:new ci({isVoid:!0}),img:new ci({isVoid:!0}),input:new ci({isVoid:!0}),param:new ci({isVoid:!0}),hr:new ci({isVoid:!0}),br:new ci({isVoid:!0}),source:new ci({isVoid:!0}),track:new ci({isVoid:!0}),wbr:new ci({isVoid:!0}),p:new ci({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new ci({closedByChildren:["tbody","tfoot"]}),tbody:new ci({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new ci({closedByChildren:["tbody"],closedByParent:!0}),tr:new ci({closedByChildren:["tr"],closedByParent:!0}),td:new ci({closedByChildren:["td","th"],closedByParent:!0}),th:new ci({closedByChildren:["td","th"],closedByParent:!0}),col:new ci({isVoid:!0}),svg:new ci({implicitNamespacePrefix:"svg"}),foreignObject:new ci({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new ci({implicitNamespacePrefix:"math"}),li:new ci({closedByChildren:["li"],closedByParent:!0}),dt:new ci({closedByChildren:["dt","dd"]}),dd:new ci({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new ci({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new ci({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new ci({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new ci({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new ci({closedByChildren:["optgroup"],closedByParent:!0}),option:new ci({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new ci({ignoreFirstLf:!0}),listing:new ci({ignoreFirstLf:!0}),style:new ci({contentType:Nc.RAW_TEXT}),script:new ci({contentType:Nc.RAW_TEXT}),title:new ci({contentType:{default:Nc.ESCAPABLE_RAW_TEXT,svg:Nc.PARSABLE_DATA}}),textarea:new ci({contentType:Nc.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new Yg().allKnownElementNames().forEach(o=>{!xg[o]&&PP(o)===null&&(xg[o]=new ci({canSelfClose:!1}))})),xg[n]??xg[n.toLowerCase()]??N6}var F6={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},_3=class{_placeHolderNameCounts={};_signatureToName={};getStartTagPlaceholderName(o,e,t){let i=this._hashTag(o,e,t);if(this._signatureToName[i])return this._signatureToName[i];let a=o.toUpperCase(),s=F6[a]||`TAG_${a}`,d=this._generateUniqueName(t?s:`START_${s}`);return this._signatureToName[i]=d,d}getCloseTagPlaceholderName(o){let e=this._hashClosingTag(o);if(this._signatureToName[e])return this._signatureToName[e];let t=o.toUpperCase(),i=F6[t]||`TAG_${t}`,a=this._generateUniqueName(`CLOSE_${i}`);return this._signatureToName[e]=a,a}getPlaceholderName(o,e){let t=o.toUpperCase(),i=`PH: ${t}=${e}`;if(this._signatureToName[i])return this._signatureToName[i];let a=this._generateUniqueName(t);return this._signatureToName[i]=a,a}getUniquePlaceholder(o){return this._generateUniqueName(o.toUpperCase())}getStartBlockPlaceholderName(o,e){let t=this._hashBlock(o,e);if(this._signatureToName[t])return this._signatureToName[t];let i=this._generateUniqueName(`START_BLOCK_${this._toSnakeCase(o)}`);return this._signatureToName[t]=i,i}getCloseBlockPlaceholderName(o){let e=this._hashClosingBlock(o);if(this._signatureToName[e])return this._signatureToName[e];let t=this._generateUniqueName(`CLOSE_BLOCK_${this._toSnakeCase(o)}`);return this._signatureToName[e]=t,t}_hashTag(o,e,t){let i=`<${o}`,a=Object.keys(e).sort().map(d=>` ${d}=${e[d]}`).join(""),s=t?"/>":`>`;return i+a+s}_hashClosingTag(o){return this._hashTag(`/${o}`,{},!1)}_hashBlock(o,e){let t=e.length===0?"":` (${e.sort().join("; ")})`;return`@${o}${t} {}`}_hashClosingBlock(o){return this._hashBlock(`close_${o}`,[])}_toSnakeCase(o){return o.toUpperCase().replace(/[^A-Z0-9]/g,"_")}_generateUniqueName(o){if(!this._placeHolderNameCounts.hasOwnProperty(o))return this._placeHolderNameCounts[o]=1,o;let t=this._placeHolderNameCounts[o];return this._placeHolderNameCounts[o]=t+1,`${o}_${t}`}},MQ=new Mx(new E0);function SQ(n,o){let e=new f3(MQ,n,o);return(t,i,a,s,d)=>e.toI18nMessage(t,i,a,s,d)}function kQ(n,o){return o}var f3=class{_expressionParser;_retainEmptyTokens;_preserveExpressionWhitespace;constructor(o,e,t){this._expressionParser=o,this._retainEmptyTokens=e,this._preserveExpressionWhitespace=t}toI18nMessage(o,e="",t="",i="",a){let s={isIcu:o.length==1&&o[0]instanceof eu,icuDepth:0,placeholderRegistry:new _3,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:a||kQ},d=ko(this,o,s);return new os(d,s.placeholderToContent,s.placeholderToMessage,e,t,i)}visitElement(o,e){return this._visitElementLike(o,e)}visitComponent(o,e){return this._visitElementLike(o,e)}visitDirective(o,e){throw new Error("Unreachable code")}visitAttribute(o,e){let t=o.valueTokens===void 0||o.valueTokens.length===1?new uf(o.value,o.valueSpan||o.sourceSpan):this._visitTextWithInterpolation(o.valueTokens,o.valueSpan||o.sourceSpan,e,o.i18n);return e.visitNodeFn(o,t)}visitText(o,e){let t=o.tokens.length===1?new uf(o.value,o.sourceSpan):this._visitTextWithInterpolation(o.tokens,o.sourceSpan,e,o.i18n);return e.visitNodeFn(o,t)}visitComment(o,e){return null}visitExpansion(o,e){e.icuDepth++;let t={},i=new tx(o.switchValue,o.type,t,o.sourceSpan);if(o.cases.forEach(d=>{t[d.value]=new Id(d.expression.map(p=>p.visit(this,e)),d.expSourceSpan)}),e.icuDepth--,e.isIcu||e.icuDepth>0){let d=e.placeholderRegistry.getUniquePlaceholder(`VAR_${o.type}`);return i.expressionPlaceholder=d,e.placeholderToContent[d]={text:o.switchValue,sourceSpan:o.switchValueSourceSpan},e.visitNodeFn(o,i)}let a=e.placeholderRegistry.getPlaceholderName("ICU",o.sourceSpan.toString());e.placeholderToMessage[a]=this.toI18nMessage([o],"","","",void 0);let s=new Wg(i,a,o.sourceSpan);return e.visitNodeFn(o,s)}visitExpansionCase(o,e){throw new Error("Unreachable code")}visitBlock(o,e){let t=ko(this,o.children,e);if(o.name==="switch")return new Id(t,o.sourceSpan);let i=o.parameters.map(p=>p.expression),a=e.placeholderRegistry.getStartBlockPlaceholderName(o.name,i),s=e.placeholderRegistry.getCloseBlockPlaceholderName(o.name);e.placeholderToContent[a]={text:o.startSourceSpan.toString(),sourceSpan:o.startSourceSpan},e.placeholderToContent[s]={text:o.endSourceSpan?o.endSourceSpan.toString():"}",sourceSpan:o.endSourceSpan??o.sourceSpan};let d=new Im(o.name,i,a,s,t,o.sourceSpan,o.startSourceSpan,o.endSourceSpan);return e.visitNodeFn(o,d)}visitBlockParameter(o,e){throw new Error("Unreachable code")}visitLetDeclaration(o,e){return null}_visitElementLike(o,e){let t=ko(this,o.children,e),i={},a=C=>{i[C.name]=C.value},s,d;o instanceof ul?(s=o.name,d=h3(o.name).isVoid):(s=o.fullName,d=o.tagName?h3(o.tagName).isVoid:!1),o.attrs.forEach(a),o.directives.forEach(C=>C.attrs.forEach(a));let p=e.placeholderRegistry.getStartTagPlaceholderName(s,i,d);e.placeholderToContent[p]={text:o.startSourceSpan.toString(),sourceSpan:o.startSourceSpan};let u="";d||(u=e.placeholderRegistry.getCloseTagPlaceholderName(s),e.placeholderToContent[u]={text:``,sourceSpan:o.endSourceSpan??o.sourceSpan});let g=new Dm(s,i,p,u,t,d,o.sourceSpan,o.startSourceSpan,o.endSourceSpan);return e.visitNodeFn(o,g)}_visitTextWithInterpolation(o,e,t,i){let a=[],s=!1;for(let d of o)switch(d.type){case 8:case 17:s=!0;let[p,u,g]=d.parts,C=DQ(u)||"INTERPOLATION",M=t.placeholderRegistry.getPlaceholderName(C,u);if(this._preserveExpressionWhitespace)t.placeholderToContent[M]={text:d.parts.join(""),sourceSpan:d.sourceSpan},a.push(new m0(u,M,d.sourceSpan));else{let x=this.normalizeExpression(d);t.placeholderToContent[M]={text:`${p}${x}${g}`,sourceSpan:d.sourceSpan},a.push(new m0(x,M,d.sourceSpan))}break;default:if(d.parts[0].length>0||this._retainEmptyTokens){let x=a[a.length-1];x instanceof uf?(x.value+=d.parts[0],x.sourceSpan=new In(x.sourceSpan.start,d.sourceSpan.end,x.sourceSpan.fullStart,x.sourceSpan.details)):a.push(new uf(d.parts[0],d.sourceSpan))}else this._retainEmptyTokens&&a.push(new uf(d.parts[0],d.sourceSpan));break}return s?(PQ(a,i),new Id(a,e)):a[0]}normalizeExpression(o){let e=o.parts[1],t=this._expressionParser.parseBinding(e,o.sourceSpan,o.sourceSpan.start.offset);return gQ(t)}};function PQ(n,o){if(o instanceof os&&(TQ(o),o=o.nodes[0]),o instanceof Id){EQ(o.children,n);for(let e=0;e`"${e.sourceSpan.toString()}"`).join(` +`)} + +Second pass (${o.length} tokens): +${o.map(e=>`"${e.sourceSpan.toString()}"`).join(` +`)} + `.trim());if(n.some((e,t)=>o[t].constructor!==e.constructor))throw new Error("The types of the i18n message children changed between first and second pass.")}var OQ=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/g;function DQ(n){return n.split(OQ)[2]}var R6=new Set(["iframe|srcdoc","*|innerhtml","*|outerhtml","embed|src","iframe|src","object|codebase","object|data"]);function z6(n,o){return n=n.toLowerCase(),o=o.toLowerCase(),R6.has(n+"|"+o)||R6.has("*|"+o)}var IQ=n=>(o,e)=>{let t=n.get(o)??o;return t instanceof Rd&&(e instanceof Wg&&t.i18n instanceof os&&(e.previousMessage=t.i18n),t.i18n=e),e},Sx=class{keepI18nAttrs;enableI18nLegacyMessageIdFormat;preserveSignificantWhitespace;retainEmptyTokens;hasI18nMeta=!1;_errors=[];constructor(o=!1,e=!1,t=!0,i=!t){this.keepI18nAttrs=o,this.enableI18nLegacyMessageIdFormat=e,this.preserveSignificantWhitespace=t,this.retainEmptyTokens=i}_generateI18nMessage(o,e="",t){let{meaning:i,description:a,customId:s}=this._parseMetadata(e),p=SQ(this.retainEmptyTokens,this.preserveSignificantWhitespace)(o,i,a,s,t);return this._setMessageId(p,e),this._setLegacyIds(p,e),p}visitAllWithErrors(o){let e=o.map(t=>t.visit(this,null));return new yx(e,this._errors)}visitElement(o){return this._visitElementLike(o),o}visitComponent(o,e){return this._visitElementLike(o),o}visitExpansion(o,e){let t,i=o.i18n;if(this.hasI18nMeta=!0,i instanceof Wg){let a=i.name;t=this._generateI18nMessage([o],i);let s=LN(t);s.name=a,e!==null&&(e.placeholderToMessage[a]=t)}else t=this._generateI18nMessage([o],e||i);return o.i18n=t,o}visitText(o){return o}visitAttribute(o){return o}visitComment(o){return o}visitExpansionCase(o){return o}visitBlock(o,e){return ko(this,o.children,e),o}visitBlockParameter(o,e){return o}visitLetDeclaration(o,e){return o}visitDirective(o,e){return o}_visitElementLike(o){let e;if(GU(o)){this.hasI18nMeta=!0;let t=[],i={};for(let a of o.attrs)if(a.name===RN){let s=o.i18n||a.value,d=new Map,p=this.preserveSignificantWhitespace?o.children:Dc(new wx(!1,d),o.children);e=this._generateI18nMessage(p,s,IQ(d)),e.nodes.length===0&&(e=void 0),o.i18n=e}else if(a.name.startsWith(zP)){let s=a.name.slice(zP.length),d;o instanceof Jr?d=o.tagName===null?!1:z6(o.tagName,s):d=z6(o.name,s),d||zQ(s)?this._reportError(a,`Translating attribute '${s}' is disallowed for security reasons.`):i[s]=a.value}else t.push(a);if(Object.keys(i).length)for(let a of t){let s=i[a.name];s!==void 0&&a.value&&(a.i18n=this._generateI18nMessage([a],a.i18n||s))}this.keepI18nAttrs||(o.attrs=t)}ko(this,o.children,e)}_parseMetadata(o){return typeof o=="string"?FQ(o):o instanceof os?o:{}}_setMessageId(o,e){o.id||(o.id=e instanceof os&&e.id||QH(o))}_setLegacyIds(o,e){if(this.enableI18nLegacyMessageIdFormat)o.legacyIds=[qH(o),PN(o)];else if(typeof e!="string"){let t=e instanceof os?e:e instanceof Wg?e.previousMessage:void 0;o.legacyIds=t?t.legacyIds:[]}}_reportError(o,e){this._errors.push(new dn(o.sourceSpan,e))}},AQ="|",NQ="@@";function FQ(n=""){let o,e,t;if(n=n.trim(),n){let i=n.indexOf(NQ),a=n.indexOf(AQ),s;[s,o]=i>-1?[n.slice(0,i),n.slice(i+2)]:[n,""],[e,t]=a>-1?[s.slice(0,a),s.slice(a+1)]:["",s]}return{customId:o,meaning:e,description:t}}function RQ(n){let o=[];return n.description?o.push({tagName:"desc",text:n.description}):o.push({tagName:"suppress",text:"{msgDescriptions}"}),n.meaning&&o.push({tagName:"meaning",text:n.meaning}),cU(o)}function zQ(n){let o=n.toLowerCase();return o.length>2&&o!=="only"&&o.startsWith("on")}var LQ="goog.getMsg";function VQ(n,o,e,t){let i=jQ(o),a=[De(i)];Object.keys(t).length&&(a.push(e3(Q3(t,!0),!0)),a.push(e3({original_code:yl(Object.keys(t).map(p=>({key:R0(p),quoted:!0,value:o.placeholders[p]?De(o.placeholders[p].sourceSpan.toString()):De(o.placeholderToMessage[p].nodes.map(u=>u.sourceSpan.toString()).join(""))})))})));let s=new Ga(e.name,di(LQ).callFn(a),ic,ur.Final);s.addLeadingComment(RQ(o));let d=new fr(n.set(e));return[s,d]}var v3=class{formatPh(o){return`{$${R0(o)}}`}visitText(o){return o.value}visitContainer(o){return o.children.map(e=>e.visit(this)).join("")}visitIcu(o){return vF(o)}visitTagPlaceholder(o){return o.isVoid?this.formatPh(o.startName):`${this.formatPh(o.startName)}${o.children.map(e=>e.visit(this)).join("")}${this.formatPh(o.closeName)}`}visitPlaceholder(o){return this.formatPh(o.name)}visitBlockPlaceholder(o){return`${this.formatPh(o.startName)}${o.children.map(e=>e.visit(this)).join("")}${this.formatPh(o.closeName)}`}visitIcuPlaceholder(o,e){return this.formatPh(o.name)}},BQ=new v3;function jQ(n){return n.nodes.map(o=>o.visit(BQ,null)).join("")}function $Q(n,o,e){let{messageParts:t,placeHolders:i}=HQ(o),a=UQ(o),s=i.map(u=>e[u.text]),d=pU(o,t,i,s,a),p=n.set(d);return[new fr(p)]}var C3=class{placeholderToMessage;pieces;constructor(o,e){this.placeholderToMessage=o,this.pieces=e}visitText(o){if(this.pieces[this.pieces.length-1]instanceof Xp)this.pieces[this.pieces.length-1].text+=o.value;else{let e=new In(o.sourceSpan.fullStart,o.sourceSpan.end,o.sourceSpan.fullStart,o.sourceSpan.details);this.pieces.push(new Xp(o.value,e))}}visitContainer(o){o.children.forEach(e=>e.visit(this))}visitIcu(o){this.pieces.push(new Xp(vF(o),o.sourceSpan))}visitTagPlaceholder(o){this.pieces.push(this.createPlaceholderPiece(o.startName,o.startSourceSpan??o.sourceSpan)),o.isVoid||(o.children.forEach(e=>e.visit(this)),this.pieces.push(this.createPlaceholderPiece(o.closeName,o.endSourceSpan??o.sourceSpan)))}visitPlaceholder(o){this.pieces.push(this.createPlaceholderPiece(o.name,o.sourceSpan))}visitBlockPlaceholder(o){this.pieces.push(this.createPlaceholderPiece(o.startName,o.startSourceSpan??o.sourceSpan)),o.children.forEach(e=>e.visit(this)),this.pieces.push(this.createPlaceholderPiece(o.closeName,o.endSourceSpan??o.sourceSpan))}visitIcuPlaceholder(o){this.pieces.push(this.createPlaceholderPiece(o.name,o.sourceSpan,this.placeholderToMessage[o.name]))}createPlaceholderPiece(o,e,t){return new Og(R0(o,!1),e,t)}};function HQ(n){let o=[],e=new C3(n.placeholderToMessage,o);return n.nodes.forEach(t=>t.visit(e)),WQ(o)}function UQ(n){let o=n.nodes[0],e=n.nodes[n.nodes.length-1];return new In(o.sourceSpan.fullStart,e.sourceSpan.end,o.sourceSpan.fullStart,o.sourceSpan.details)}function WQ(n){let o=[],e=[];n[0]instanceof Og&&o.push(eP(n[0].sourceSpan.start));for(let t=0;t{let P=M.has(b.name);return M.add(b.name),!P});let x=C.flatMap(b=>{let P=s.get(b.context);if(P===void 0)throw new Error("AssertionError: Could not find i18n expression's value");return[De(b.name),P]});g.i18nAttributesConfig=n.addConst(new $c(x))}for(let p of n.units)for(let u of p.create)if(u.kind===j.I18nStart){let g=d.get(u.root);if(g===void 0)throw new Error("AssertionError: Could not find corresponding i18n block index for an i18n message op; was an i18n message incorrectly assumed to correspond to an attribute?");u.messageIndex=g}}function kF(n,o,e,t){let i=[],a=new Map;for(let u of t.subMessages){let g=e.get(u),{mainVar:C,statements:M}=kF(n,o,e,g);i.push(...M);let x=a.get(g.messagePlaceholder)??[];x.push(C),a.set(g.messagePlaceholder,x)}YQ(t,a),t.params=new Map([...t.params.entries()].sort());let s=di(n.pool.uniqueName(GQ)),d=eK(n.pool,t.message.id,o,n.i18nUseExternalIds),p;if(t.needsPostprocessing||t.postprocessingParams.size>0){let u=Object.fromEntries([...t.postprocessingParams.entries()].sort()),g=Q3(u,!1),C=[];t.postprocessingParams.size>0&&C.push(e3(g,!0)),p=M=>Ht(ge.i18nPostprocess).callFn([M,...C])}return i.push(...ZQ(t.message,s,d,t.params,p)),{mainVar:s,statements:i}}function YQ(n,o){for(let[e,t]of o)t.length===1?n.params.set(e,t[0]):(n.params.set(e,De(`${V6}${qQ}${e}${V6}`)),n.postprocessingParams.set(e,io(t)))}function ZQ(n,o,e,t,i){let a=Object.fromEntries(t),s=[KQ(o),Nx(JQ(),VQ(o,n,e,a),$Q(o,n,Q3(a,!1)))];return i&&s.push(new fr(o.set(i(o)))),s}function JQ(){return N0(di(L6)).notIdentical(De("undefined",W3)).and(di(L6))}function eK(n,o,e,t){let i,a=e;if(t){let s=B6("EXTERNAL_"),d=n.uniqueName(a);i=`${s}${Up(o)}$$${d}`}else{let s=B6(a);i=n.uniqueName(s)}return di(i)}function tK(n){for(let o of n.units){let e=null,t=null,i=new Map,a=new Map,s=new Map;for(let d of o.create)switch(d.kind){case j.I18nStart:if(d.context===null)throw Error("I18n op should have its context set.");e=d;break;case j.I18nEnd:e=null;break;case j.IcuStart:if(d.context===null)throw Error("Icu op should have its context set.");t=d;break;case j.IcuEnd:t=null;break;case j.Text:if(e!==null)if(i.set(d.xref,e),a.set(d.xref,t),d.icuPlaceholder!==null){let p=PG(n.allocateXrefId(),d.icuPlaceholder,[d.initialValue]);Je.replace(d,p),s.set(d.xref,p)}else Je.remove(d);break}for(let d of o.update)switch(d.kind){case j.InterpolateText:if(!i.has(d.target))continue;let p=i.get(d.target),u=a.get(d.target),g=s.get(d.target),C=u?u.context:p.context,M=u?f0.Postproccessing:f0.Creation,x=[];for(let b=0;b0){let t=iK(e.localRefs);e.localRefs=n.addConst(t)}else e.localRefs=null;break}}function iK(n){let o=[];for(let e of n)o.push(De(e.name),De(e.target));return io(o)}function oK(n){for(let o of n.units){let e=Oa.HTML;for(let t of o.create)t.kind===j.ElementStart&&t.namespace!==e&&(Je.insertBefore(CG(t.namespace),t),e=t.namespace)}}function aK(n){let o=[],e=0,t=0,i=0,a=0,s=0,d=null;for(;e0&&t===0&&i===0){let u=n.substring(a,e-1).trim();o.push(d,u),s=e,a=0,d=null}break}if(d&&a){let p=n.slice(a).trim();o.push(d,p)}return o}function PF(n){return n.replace(/[a-z][A-Z]/g,o=>o.charAt(0)+"-"+o.charAt(1)).toLowerCase()}function rK(n){let o=new Map;for(let e of n.units)for(let t of e.create)Lm(t)&&o.set(t.xref,t);for(let e of n.units)for(let t of e.create)if(t.kind===j.ExtractedAttribute&&t.bindingKind===Qt.Attribute&&aF(t.expression)){let i=o.get(t.target);if(i!==void 0&&(i.kind===j.Template||i.kind===j.ConditionalCreate||i.kind===j.ConditionalBranchCreate)&&i.templateKind===ys.Structural)continue;if(t.name==="style"){let a=aK(t.expression.value);for(let s=0;s{if(!(!(a instanceof Ad)||a.name!==null)){if(!t.has(a.xref))throw new Error(`Variable ${a.xref} not yet named`);a.name=t.get(a.xref)}})}function lK(n,o){if(n.name===null)switch(n.kind){case ar.Context:n.name=`ctx_r${o.index++}`;break;case ar.Identifier:let e=n.identifier===Zs?"i":"";n.name=`${n.identifier}_${e}r${++o.index}`;break;default:n.name=`_r${++o.index}`;break}return n.name}function cK(n){return n.startsWith("--")?n:PF(n)}function j6(n){let o=n.indexOf("!important");return o>-1?n.substring(0,o):n}function dK(n){for(let o of n.units){for(let e of o.functions)tP(e.ops);for(let e of o.create)(e.kind===j.Listener||e.kind===j.Animation||e.kind===j.AnimationListener||e.kind===j.TwoWayListener)&&tP(e.handlerOps);tP(o.update)}}function tP(n){for(let o of n){if(o.kind!==j.Statement||!(o.statement instanceof fr)||!(o.statement.expr instanceof cx))continue;let e=o.statement.expr.steps,t=!0;for(let i=o.next;i.kind!==j.ListEnd&&t;i=i.next)wa(i,(a,s)=>{if(!Gc(a))return a;if(t&&!(s&ai.InChildOperation))switch(a.kind){case Jt.NextContext:a.steps+=e,Je.remove(o),t=!1;break;case Jt.GetCurrentView:case Jt.Reference:case Jt.ContextLetReference:t=!1;break}})}}var mK="ng-container";function pK(n){for(let o of n.units){let e=new Set;for(let t of o.create)t.kind===j.ElementStart&&t.tag===mK&&(t.kind=j.ContainerStart,e.add(t.xref)),t.kind===j.ElementEnd&&e.has(t.xref)&&(t.kind=j.ContainerEnd)}}function uK(n,o){let e=n.get(o);if(e===void 0)throw new Error("All attributes should have an element-like target.");return e}function gK(n){let o=new Map;for(let e of n.units)for(let t of e.create)Lm(t)&&o.set(t.xref,t);for(let e of n.units)for(let t of e.create)(t.kind===j.ElementStart||t.kind===j.ContainerStart)&&t.nonBindable&&Je.insertAfter(gG(t.xref),t),(t.kind===j.ElementEnd||t.kind===j.ContainerEnd)&&uK(o,t.xref).nonBindable&&Je.insertBefore(hG(t.xref),t)}function Rc(n){return o=>o.kind===n}function If(n,o){return e=>e.kind===n&&o===e.expression instanceof aa}function hK(n){return n.kind===j.Listener&&!(n.hostListener&&n.isLegacyAnimationListener)||n.kind===j.TwoWayListener||n.kind===j.Animation||n.kind===j.AnimationListener}function _K(n){return(n.kind===j.Property||n.kind===j.TwoWayProperty)&&!(n.expression instanceof aa)}var fK=[{test:n=>n.kind===j.Listener&&n.hostListener&&n.isLegacyAnimationListener},{test:hK}],vK=[{test:Rc(j.StyleMap),transform:kx},{test:Rc(j.ClassMap),transform:kx},{test:Rc(j.StyleProp)},{test:Rc(j.ClassProp)},{test:If(j.Attribute,!0)},{test:If(j.Property,!0)},{test:_K},{test:If(j.Attribute,!1)},{test:Rc(j.Control)}],CK=[{test:If(j.DomProperty,!0)},{test:If(j.DomProperty,!1)},{test:Rc(j.Attribute)},{test:Rc(j.StyleMap),transform:kx},{test:Rc(j.ClassMap),transform:kx},{test:Rc(j.StyleProp)},{test:Rc(j.ClassProp)}],$6=new Set([j.Listener,j.TwoWayListener,j.AnimationListener,j.StyleMap,j.ClassMap,j.StyleProp,j.ClassProp,j.Property,j.TwoWayProperty,j.DomProperty,j.Attribute,j.Animation,j.Control]);function bK(n){for(let o of n.units){H6(o.create,fK);let e=o.job.kind===Dt.Host?CK:vK;H6(o.update,e)}}function H6(n,o){let e=[],t=null;for(let i of n){let a=v0(i)?i.target:null;(!$6.has(i.kind)||a!==t&&t!==null&&a!==null)&&(Je.insertBefore(U6(e,o),i),e=[],t=null),$6.has(i.kind)&&(e.push(i),Je.remove(i),t=a??t)}n.push(U6(e,o))}function U6(n,o){let e=Array.from(o,()=>new Array);for(let t of n){let i=o.findIndex(a=>a.test(t));e[i].push(t)}return e.flatMap((t,i)=>{let a=o[i].transform;return a?a(t):t})}function kx(n){return n.slice(n.length-1)}function xK(n){for(let o of n.units){let e=gF(o);for(let t of o.ops())if(t.kind===j.Binding){let i=wK(e,t.target);yK(t.name)&&i.kind===j.Projection&&Je.remove(t)}}}function yK(n){return n.toLowerCase()==="select"}function wK(n,o){let e=n.get(o);if(e===void 0)throw new Error("All attributes should have an slottable target.");return e}function MK(n){for(let o of n.units)SK(o)}function SK(n){for(let o of n.update)wa(o,(e,t)=>{if(!Gc(e)||e.kind!==Jt.PipeBinding)return;if(t&ai.InChildOperation)throw new Error("AssertionError: pipe bindings should not appear in child expressions");if(o.target==null)throw new Error("AssertionError: expected slot handle to be assigned for pipe creation");kK(n,o.target,e)})}function kK(n,o,e){for(let t=n.create.head.next;t.kind!==j.ListEnd;t=t.next){if(!nh(t)||t.xref!==o)continue;for(;t.next.kind===j.Pipe;)t=t.next;let i=vG(e.target,e.targetSlot,e.name);Je.insertBefore(i,t.next);return}throw new Error(`AssertionError: unable to find insertion point for pipe ${e.name}`)}function PK(n){for(let o of n.units)for(let e of o.update)ra(e,t=>!(t instanceof hu)||t.args.length<=4?t:new y0(t.target,t.targetSlot,t.name,io(t.args),t.args.length),ai.None)}function TK(n){TF(n.root,0)}function TF(n,o){let e=null;for(let t of n.create)switch(t.kind){case j.I18nStart:t.subTemplateIndex=o===0?null:o,e=t;break;case j.I18nEnd:e.subTemplateIndex===null&&(o=0),e=null;break;case j.ConditionalCreate:case j.ConditionalBranchCreate:case j.Template:o=pb(n.job.views.get(t.xref),e,t.i18nPlaceholder,o);break;case j.RepeaterCreate:let i=n.job.views.get(t.xref);o=pb(i,e,t.i18nPlaceholder,o),t.emptyView!==null&&(o=pb(n.job.views.get(t.emptyView),e,t.emptyI18nPlaceholder,o));break;case j.Projection:t.fallbackView!==null&&(o=pb(n.job.views.get(t.fallbackView),e,t.fallbackViewI18nPlaceholder,o));break}return o}function pb(n,o,e,t){if(e!==void 0){if(o===null)throw Error("Expected template with i18n placeholder to be in an i18n block.");t++,EK(n,o)}return TF(n,t)}function EK(n,o){if(n.create.head.next?.kind!==j.I18nStart){let e=n.job.allocateXrefId();Je.insertAfter(Lx(e,o.message,o.root,null),n.create.head),Je.insertBefore(Vx(e,null),n.create.tail)}}function OK(n){for(let o of n.units)for(let e of o.ops())wa(e,t=>{if(!(t instanceof gu)||t.body===null)return;let i=new b3(t.args.length);t.fn=n.pool.getSharedConstant(i,t.body),t.body=null})}var b3=class extends Hf{numArgs;constructor(o){super(),this.numArgs=o}keyOf(o){return o instanceof Rm?`param(${o.index})`:super.keyOf(o)}toSharedConstantDeclaration(o,e){let t=[];for(let a=0;aa instanceof Rm?di("a"+a.index):a,ai.None);return new Ga(o,new vu(t,i),void 0,ur.Final)}};function DK(n){for(let o of n.units)for(let e of o.update)ra(e,(t,i)=>i&ai.InChildOperation?t:t instanceof $c?IK(t):t instanceof rc?AK(t):t,ai.None)}function IK(n){let o=[],e=[];for(let t of n.entries){if(t instanceof ru){if(t.expression.isConstant())o.push(t);else{let i=e.length;e.push(t.expression),o.push(new ru(new Rm(i)))}continue}if(t.isConstant())o.push(t);else{let i=e.length;e.push(t),o.push(new Rm(i))}}return new gu(io(o),e)}function AK(n){let o=[],e=[];for(let t of n.entries){if(t instanceof Tm){if(t.expression.isConstant())o.push(t);else{let i=e.length;e.push(t.expression),o.push(new Tm(new Rm(i)))}continue}if(t.value.isConstant())o.push(t);else{let i=e.length;e.push(t.value),o.push(new Rg(t.key,new Rm(i),t.quoted))}}return new gu(new rc(o),e)}function NK(n){for(let o of n.units)for(let e of o.ops())ra(e,t=>t instanceof Fg&&(t.flags===null||!t.flags.includes("g"))?n.pool.getSharedConstant(new x3,t):t,ai.None)}var x3=class extends Hf{toSharedConstantDeclaration(o,e){return new Ga(o,e,void 0,ur.Final)}};function FK(n,o,e,t,i){return jm(ge.element,n,o,e,t,i)}function RK(n,o,e,t,i){return jm(ge.elementStart,n,o,e,t,i)}function jm(n,o,e,t,i,a){let s=[De(o)];return e!==null&&s.push(De(e)),i!==null?s.push(De(t),De(i)):t!==null&&s.push(De(t)),$n(n,s,a)}function EF(n,o,e,t,i,a,s,d,p){let u=[De(o),e,De(t),De(i),De(a),De(s)];for(d!==null&&(u.push(De(d)),u.push(Ht(ge.templateRefExtractor)));u[u.length-1].isEquivalent(zg);)u.pop();return $n(n,u,p)}function oT(n,o,e,t,i){let a=[De(o)];return e instanceof aa?a.push(ih(e,i)):a.push(e),t!==null&&a.push(t),$n(n,a,i)}function zK(n){return $n(ge.elementEnd,[],n)}function LK(n,o,e,t){return jm(ge.elementContainerStart,n,null,o,e,t)}function VK(n,o,e,t){return jm(ge.elementContainer,n,null,o,e,t)}function BK(){return $n(ge.elementContainerEnd,[],null)}function jK(n,o,e,t,i,a,s,d){return EF(ge.templateCreate,n,o,e,t,i,a,s,d)}function $K(){return $n(ge.disableBindings,[],null)}function HK(){return $n(ge.enableBindings,[],null)}function UK(n,o,e,t,i){let a=[De(n),o];return e!==null&&a.push(Ht(e)),$n(t?ge.syntheticHostListener:ge.listener,a,i)}function W6(n,o){return Ht(ge.twoWayBindingSet).callFn([n,o])}function WK(n,o,e){return $n(ge.twoWayListener,[De(n),o],e)}function GK(n,o){return $n(ge.pipe,[De(n),De(o)],null)}function qK(){return $n(ge.namespaceHTML,[],null)}function QK(){return $n(ge.namespaceSVG,[],null)}function KK(){return $n(ge.namespaceMathML,[],null)}function XK(n,o){return $n(ge.advance,n>1?[De(n)]:[],o)}function YK(n){return Ht(ge.reference).callFn([De(n)])}function ZK(n){return Ht(ge.nextContext).callFn(n===1?[]:[De(n)])}function JK(){return Ht(ge.getCurrentView).callFn([])}function eX(n){return Ht(ge.restoreView).callFn([n])}function tX(n){return Ht(ge.resetView).callFn([n])}function nX(n,o,e){let t=[De(n,null)];return o!==""&&t.push(De(o)),$n(ge.text,t,e)}function iX(n,o,e,t,i,a,s,d,p,u,g){let C=[De(n),De(o),e??De(null),De(t),De(i),De(a),s??De(null),d??De(null),p?Ht(ge.deferEnableTimerScheduling):De(null),De(g)],M;for(;(M=C[C.length-1])!==null&&M instanceof _r&&M.value===null;)C.pop();return $n(ge.defer,C,u)}var oX=new Map([[lo.Idle,{none:ge.deferOnIdle,prefetch:ge.deferPrefetchOnIdle,hydrate:ge.deferHydrateOnIdle}],[lo.Immediate,{none:ge.deferOnImmediate,prefetch:ge.deferPrefetchOnImmediate,hydrate:ge.deferHydrateOnImmediate}],[lo.Timer,{none:ge.deferOnTimer,prefetch:ge.deferPrefetchOnTimer,hydrate:ge.deferHydrateOnTimer}],[lo.Hover,{none:ge.deferOnHover,prefetch:ge.deferPrefetchOnHover,hydrate:ge.deferHydrateOnHover}],[lo.Interaction,{none:ge.deferOnInteraction,prefetch:ge.deferPrefetchOnInteraction,hydrate:ge.deferHydrateOnInteraction}],[lo.Viewport,{none:ge.deferOnViewport,prefetch:ge.deferPrefetchOnViewport,hydrate:ge.deferHydrateOnViewport}],[lo.Never,{none:ge.deferHydrateNever,prefetch:ge.deferHydrateNever,hydrate:ge.deferHydrateNever}]]);function aX(n,o,e,t){let i=oX.get(n)?.[e];if(i===void 0)throw new Error(`Unable to determine instruction for trigger ${n}`);return $n(i,o,t)}function rX(n){return $n(ge.projectionDef,n?[n]:[],null)}function sX(n,o,e,t,i,a,s){let d=[De(n)];return(o!==0||e!==null||t!==null)&&(d.push(De(o)),e!==null&&d.push(e),t!==null&&(e===null&&d.push(De(null)),d.push(di(t),De(i),De(a)))),$n(ge.projection,d,s)}function lX(n,o,e,t){let i=[De(n),De(o)];return e!==null&&i.push(De(e)),$n(ge.i18nStart,i,t)}function cX(n,o,e,t,i,a,s,d){let p=[De(n),o,De(e),De(t),De(i),De(a)];for(s!==null&&(p.push(De(s)),p.push(Ht(ge.templateRefExtractor)));p[p.length-1].isEquivalent(zg);)p.pop();return $n(ge.conditionalCreate,p,d)}function dX(n,o,e,t,i,a,s,d){let p=[De(n),o,De(e),De(t),De(i),De(a)];for(s!==null&&(p.push(De(s)),p.push(Ht(ge.templateRefExtractor)));p[p.length-1].isEquivalent(zg);)p.pop();return $n(ge.conditionalBranchCreate,p,d)}function mX(n,o,e,t,i,a,s,d,p,u,g,C,M,x){let b=[De(n),di(o),De(e),De(t),De(i),De(a),s];return(d||p!==null)&&(b.push(De(d)),p!==null&&(b.push(di(p),De(u),De(g)),(C!==null||M!==null)&&b.push(De(C)),M!==null&&b.push(De(M)))),$n(ge.repeaterCreate,b,x)}function pX(n,o){return $n(ge.repeater,[n],o)}function uX(n,o,e){return n==="prefetch"?$n(ge.deferPrefetchWhen,[o],e):n==="hydrate"?$n(ge.deferHydrateWhen,[o],e):$n(ge.deferWhen,[o],e)}function gX(n,o){return $n(ge.declareLet,[De(n)],o)}function hX(n,o){return Ht(ge.storeLet).callFn([n],o)}function _X(n){return Ht(ge.readContextLet).callFn([De(n)])}function fX(n,o,e,t){let i=[De(n),De(o)];return e&&i.push(De(e)),$n(ge.i18n,i,t)}function vX(n){return $n(ge.i18nEnd,[],n)}function CX(n,o){let e=[De(n),De(o)];return $n(ge.i18nAttributes,e,null)}function bX(n,o,e){return oT(ge.ariaProperty,n,o,null,e)}function xX(n,o,e,t){return oT(ge.property,n,o,e,t)}function yX(n){return $n(ge.control,[],n)}function wX(n){return $n(ge.controlCreate,[],n)}function MX(n,o,e,t){let i=[De(n),o];return e!==null&&i.push(e),$n(ge.twoWayProperty,i,t)}function SX(n,o,e,t,i){let a=[De(n)];return o instanceof aa?a.push(ih(o,i)):a.push(o),(e!==null||t!==null)&&a.push(e??De(null)),t!==null&&a.push(De(t)),$n(ge.attribute,a,null)}function kX(n,o,e,t){let i=[De(n)];return o instanceof aa?i.push(ih(o,t)):i.push(o),e!==null&&i.push(De(e)),$n(ge.styleProp,i,t)}function PX(n,o,e){return $n(ge.classProp,[De(n),o],e)}function TX(n,o){let e=n instanceof aa?ih(n,o):n;return $n(ge.styleMap,[e],o)}function EX(n,o){let e=n instanceof aa?ih(n,o):n;return $n(ge.classMap,[e],o)}function OX(n,o,e,t,i){return jm(ge.domElement,n,o,e,t,i)}function DX(n,o,e,t,i){return jm(ge.domElementStart,n,o,e,t,i)}function IX(n){return $n(ge.domElementEnd,[],n)}function AX(n,o,e,t){return jm(ge.domElementContainerStart,n,null,o,e,t)}function NX(n,o,e,t){return jm(ge.domElementContainer,n,null,o,e,t)}function FX(){return $n(ge.domElementContainerEnd,[],null)}function RX(n,o,e,t){let i=[De(n),o];return e!==null&&i.push(Ht(e)),$n(ge.domListener,i,t)}function zX(n,o,e,t,i,a,s,d){return EF(ge.domTemplate,n,o,e,t,i,a,s,d)}var G6=[ge.pipeBind1,ge.pipeBind2,ge.pipeBind3,ge.pipeBind4];function LX(n,o,e){if(e.length<1||e.length>G6.length)throw new Error("pipeBind() argument count out of bounds");let t=G6[e.length-1];return Ht(t).callFn([De(n),De(o),...e])}function VX(n,o,e){return Ht(ge.pipeBindV).callFn([De(n),De(o),e])}function BX(n,o,e){let t=OF(n,o);return tY(ZX,[],t,e)}function jX(n,o){return $n(ge.i18nExp,[n],o)}function $X(n,o){return $n(ge.i18nApply,[De(n)],o)}function HX(n,o,e,t){return oT(ge.domProperty,n,o,e,t)}function UX(n,o,e,t){let i=[o];e!==null&&i.push(e);let a=n==="enter"?ge.animationEnter:ge.animationLeave;return $n(a,i,t)}function WX(n,o,e,t){let a=[o instanceof aa?ih(o,t):o];e!==null&&a.push(e);let s=n==="enter"?ge.animationEnter:ge.animationLeave;return $n(s,a,t)}function GX(n,o,e,t){let i=[o],a=n==="enter"?ge.animationEnterListener:ge.animationLeaveListener;return $n(a,i,t)}function qX(n,o,e){return $n(ge.syntheticHostProperty,[De(n),o],e)}function QX(n,o,e){return aT(eY,[De(n),o],e,null)}function KX(n,o){return $n(ge.attachSourceLocations,[De(n),o],null)}function XX(n,o,e){return Ht(ge.arrowFunction).callFn([De(n),o,e])}function OF(n,o){if(n.length<1||o.length!==n.length-1)throw new Error("AssertionError: expected specific shape of args for strings/expressions in interpolation");let e=[];if(o.length===1&&n[0]===""&&n[1]==="")e.push(o[0]);else{let t;for(t=0;t{if(n%2===0)throw new Error("Expected odd number of arguments");return(n-1)/2}},JX={constant:[ge.interpolate,ge.interpolate1,ge.interpolate2,ge.interpolate3,ge.interpolate4,ge.interpolate5,ge.interpolate6,ge.interpolate7,ge.interpolate8],variable:ge.interpolateV,mapping:n=>{if(n%2===0)throw new Error("Expected odd number of arguments");return(n-1)/2}},eY={constant:[ge.pureFunction0,ge.pureFunction1,ge.pureFunction2,ge.pureFunction3,ge.pureFunction4,ge.pureFunction5,ge.pureFunction6,ge.pureFunction7,ge.pureFunction8],variable:ge.pureFunctionV,mapping:n=>n};function aT(n,o,e,t){let i=n.mapping(e.length),a=e.at(-1);if(e.length>1&&a instanceof _r&&a.value===""&&e.pop(),iDF(n,t),ai.None),e.kind){case j.Text:Je.replace(e,nX(e.handle.slot,e.initialValue,e.sourceSpan));break;case j.ElementStart:Je.replace(e,n.job.mode===vs.DomOnly?DX(e.handle.slot,e.tag,e.attributes,e.localRefs,e.startSourceSpan):RK(e.handle.slot,e.tag,e.attributes,e.localRefs,e.startSourceSpan));break;case j.Element:Je.replace(e,n.job.mode===vs.DomOnly?OX(e.handle.slot,e.tag,e.attributes,e.localRefs,e.wholeSourceSpan):FK(e.handle.slot,e.tag,e.attributes,e.localRefs,e.wholeSourceSpan));break;case j.ElementEnd:Je.replace(e,n.job.mode===vs.DomOnly?IX(e.sourceSpan):zK(e.sourceSpan));break;case j.ContainerStart:Je.replace(e,n.job.mode===vs.DomOnly?AX(e.handle.slot,e.attributes,e.localRefs,e.startSourceSpan):LK(e.handle.slot,e.attributes,e.localRefs,e.startSourceSpan));break;case j.Container:Je.replace(e,n.job.mode===vs.DomOnly?NX(e.handle.slot,e.attributes,e.localRefs,e.wholeSourceSpan):VK(e.handle.slot,e.attributes,e.localRefs,e.wholeSourceSpan));break;case j.ContainerEnd:Je.replace(e,n.job.mode===vs.DomOnly?FX():BK());break;case j.I18nStart:Je.replace(e,lX(e.handle.slot,e.messageIndex,e.subTemplateIndex,e.sourceSpan));break;case j.I18nEnd:Je.replace(e,vX(e.sourceSpan));break;case j.I18n:Je.replace(e,fX(e.handle.slot,e.messageIndex,e.subTemplateIndex,e.sourceSpan));break;case j.I18nAttributes:if(e.i18nAttributesConfig===null)throw new Error("AssertionError: i18nAttributesConfig was not set");Je.replace(e,CX(e.handle.slot,e.i18nAttributesConfig));break;case j.Template:if(!(n instanceof bl))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(e.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let t=n.job.views.get(e.xref);Je.replace(e,e.templateKind===ys.Block||n.job.mode===vs.DomOnly?zX(e.handle.slot,di(t.fnName),t.decls,t.vars,e.tag,e.attributes,e.localRefs,e.startSourceSpan):jK(e.handle.slot,di(t.fnName),t.decls,t.vars,e.tag,e.attributes,e.localRefs,e.startSourceSpan));break;case j.DisableBindings:Je.replace(e,$K());break;case j.EnableBindings:Je.replace(e,HK());break;case j.Pipe:Je.replace(e,GK(e.handle.slot,e.name));break;case j.DeclareLet:Je.replace(e,gX(e.handle.slot,e.sourceSpan));break;case j.AnimationString:Je.replace(e,WX(e.animationKind,e.expression,e.sanitizer,e.sourceSpan));break;case j.Animation:let i=ub(n,e.handlerFnName,e.handlerOps,!1);Je.replace(e,UX(e.animationKind,i,e.sanitizer,e.sourceSpan));break;case j.AnimationListener:let a=ub(n,e.handlerFnName,e.handlerOps,e.consumesDollarEvent);Je.replace(e,GX(e.animationKind,a,null,e.sourceSpan));break;case j.Listener:let s=ub(n,e.handlerFnName,e.handlerOps,e.consumesDollarEvent),d=e.eventTarget?nY.get(e.eventTarget):null;if(d===void 0)throw new Error(`Unexpected global target '${e.eventTarget}' defined for '${e.name}' event. Supported list of global targets: window,document,body.`);Je.replace(e,n.job.mode===vs.DomOnly&&!e.hostListener&&!e.isLegacyAnimationListener?RX(e.name,s,d,e.sourceSpan):UK(e.name,s,d,e.hostListener&&e.isLegacyAnimationListener,e.sourceSpan));break;case j.TwoWayListener:Je.replace(e,WK(e.name,ub(n,e.handlerFnName,e.handlerOps,!0),e.sourceSpan));break;case j.Variable:if(e.variable.name===null)throw new Error(`AssertionError: unnamed variable ${e.xref}`);Je.replace(e,Js(new Ga(e.variable.name,e.initializer,void 0,ur.Final)));break;case j.Namespace:switch(e.active){case Oa.HTML:Je.replace(e,qK());break;case Oa.SVG:Je.replace(e,QK());break;case Oa.Math:Je.replace(e,KK());break}break;case j.Defer:let p=!!e.loadingMinimumTime||!!e.loadingAfterTime||!!e.placeholderMinimumTime;Je.replace(e,iX(e.handle.slot,e.mainSlot.slot,e.resolverFn,e.loadingSlot?.slot??null,e.placeholderSlot?.slot??null,e.errorSlot?.slot??null,e.loadingConfig,e.placeholderConfig,p,e.sourceSpan,e.flags));break;case j.DeferOn:let u=[];switch(e.trigger.kind){case lo.Never:case lo.Idle:case lo.Immediate:break;case lo.Timer:u=[De(e.trigger.delay)];break;case lo.Viewport:e.modifier==="hydrate"?u=e.trigger.options?[e.trigger.options]:[]:(u=[De(e.trigger.targetSlot?.slot??null)],e.trigger.targetSlotViewSteps!==0?u.push(De(e.trigger.targetSlotViewSteps)):e.trigger.options&&u.push(De(null)),e.trigger.options&&u.push(e.trigger.options));break;case lo.Interaction:case lo.Hover:e.modifier==="hydrate"?u=[]:(u=[De(e.trigger.targetSlot?.slot??null)],e.trigger.targetSlotViewSteps!==0&&u.push(De(e.trigger.targetSlotViewSteps)));break;default:throw new Error(`AssertionError: Unsupported reification of defer trigger kind ${e.trigger.kind}`)}Je.replace(e,aX(e.trigger.kind,u,e.modifier,e.sourceSpan));break;case j.ProjectionDef:Je.replace(e,rX(e.def));break;case j.Projection:if(e.handle.slot===null)throw new Error("No slot was assigned for project instruction");let g=null,C=null,M=null;if(e.fallbackView!==null){if(!(n instanceof bl))throw new Error("AssertionError: must be compiling a component");let D=n.job.views.get(e.fallbackView);if(D===void 0)throw new Error("AssertionError: projection had fallback view xref, but fallback view was not found");if(D.fnName===null||D.decls===null||D.vars===null)throw new Error("AssertionError: expected projection fallback view to have been named and counted");g=D.fnName,C=D.decls,M=D.vars}Je.replace(e,sX(e.handle.slot,e.projectionSlotIndex,e.attributes,g,C,M,e.sourceSpan));break;case j.ConditionalCreate:if(!(n instanceof bl))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(e.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let x=n.job.views.get(e.xref);Je.replace(e,cX(e.handle.slot,di(x.fnName),x.decls,x.vars,e.tag,e.attributes,e.localRefs,e.startSourceSpan));break;case j.ConditionalBranchCreate:if(!(n instanceof bl))throw new Error("AssertionError: must be compiling a component");if(Array.isArray(e.localRefs))throw new Error("AssertionError: local refs array should have been extracted into a constant");let b=n.job.views.get(e.xref);Je.replace(e,dX(e.handle.slot,di(b.fnName),b.decls,b.vars,e.tag,e.attributes,e.localRefs,e.startSourceSpan));break;case j.RepeaterCreate:if(e.handle.slot===null)throw new Error("No slot was assigned for repeater instruction");if(!(n instanceof bl))throw new Error("AssertionError: must be compiling a component");let P=n.job.views.get(e.xref);if(P.fnName===null)throw new Error("AssertionError: expected repeater primary view to have been named");let k=null,S=null,O=null;if(e.emptyView!==null){let D=n.job.views.get(e.emptyView);if(D===void 0)throw new Error("AssertionError: repeater had empty view xref, but empty view was not found");if(D.fnName===null||D.decls===null||D.vars===null)throw new Error("AssertionError: expected repeater empty view to have been named and counted");k=D.fnName,S=D.decls,O=D.vars}Je.replace(e,mX(e.handle.slot,P.fnName,e.decls,e.vars,e.tag,e.attributes,lY(n,e),e.usesComponentInstance,k,S,O,e.emptyTag,e.emptyAttributes,e.wholeSourceSpan));break;case j.SourceLocation:let A=io(e.locations.map(({targetSlot:D,offset:F,line:I,column:B})=>{if(D.slot===null)throw new Error("No slot was assigned for source location");return io([De(D.slot),De(F),De(I),De(B)])}));Je.replace(e,KX(e.templatePath,A));break;case j.ControlCreate:Je.replace(e,wX(e.sourceSpan));break;case j.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of create op ${j[e.kind]}`)}}function $x(n,o){for(let e of o)switch(ra(e,t=>DF(n,t),ai.None),e.kind){case j.Advance:Je.replace(e,XK(e.delta,e.sourceSpan));break;case j.Property:Je.replace(e,n.job.mode===vs.DomOnly&&e.bindingKind!==Qt.LegacyAnimation&&e.bindingKind!==Qt.Animation?q6(e):rY(e));break;case j.Control:Je.replace(e,sY(e));break;case j.TwoWayProperty:Je.replace(e,MX(e.name,e.expression,e.sanitizer,e.sourceSpan));break;case j.StyleProp:Je.replace(e,kX(e.name,e.expression,e.unit,e.sourceSpan));break;case j.ClassProp:Je.replace(e,PX(e.name,e.expression,e.sourceSpan));break;case j.StyleMap:Je.replace(e,TX(e.expression,e.sourceSpan));break;case j.ClassMap:Je.replace(e,EX(e.expression,e.sourceSpan));break;case j.I18nExpression:Je.replace(e,jX(e.expression,e.sourceSpan));break;case j.I18nApply:Je.replace(e,$X(e.handle.slot,e.sourceSpan));break;case j.InterpolateText:Je.replace(e,BX(e.interpolation.strings,e.interpolation.expressions,e.sourceSpan));break;case j.Attribute:Je.replace(e,SX(e.name,e.expression,e.sanitizer,e.namespace,e.sourceSpan));break;case j.DomProperty:if(e.expression instanceof aa)throw new Error("not yet handled");e.bindingKind===Qt.LegacyAnimation||e.bindingKind===Qt.Animation?Je.replace(e,qX(e.name,e.expression,e.sourceSpan)):Je.replace(e,q6(e));break;case j.Variable:if(e.variable.name===null)throw new Error(`AssertionError: unnamed variable ${e.xref}`);Je.replace(e,Js(new Ga(e.variable.name,e.initializer,void 0,ur.Final)));break;case j.Conditional:if(e.processed===null)throw new Error("Conditional test was not set.");Je.replace(e,YX(e.processed,e.contextValue,e.sourceSpan));break;case j.Repeater:Je.replace(e,pX(e.collection,e.sourceSpan));break;case j.DeferWhen:Je.replace(e,uX(e.modifier,e.expr,e.sourceSpan));break;case j.StoreLet:throw new Error(`AssertionError: unexpected storeLet ${e.declaredName}`);case j.Statement:break;default:throw new Error(`AssertionError: Unsupported reification of update op ${j[e.kind]}`)}}function q6(n){return HX(iY.get(n.name)??n.name,n.expression,n.sanitizer,n.sourceSpan)}function rY(n){return hF(n.name)?bX(n.name,n.expression,n.sourceSpan):xX(n.name,n.expression,n.sanitizer,n.sourceSpan)}function sY(n){return yX(n.sourceSpan)}function DF(n,o){if(!Gc(o))return o;switch(o.kind){case Jt.NextContext:return ZK(o.steps);case Jt.Reference:return YK(o.targetSlot.slot+1+o.offset);case Jt.LexicalRead:throw new Error(`AssertionError: unresolved LexicalRead of ${o.name}`);case Jt.TwoWayBindingSet:throw new Error("AssertionError: unresolved TwoWayBindingSet");case Jt.RestoreView:if(typeof o.view=="number")throw new Error("AssertionError: unresolved RestoreView");return eX(o.view);case Jt.ResetView:return tX(o.expr);case Jt.GetCurrentView:return JK();case Jt.ReadVariable:if(o.name===null)throw new Error(`Read of unnamed variable ${o.xref}`);return di(o.name);case Jt.ReadTemporaryExpr:if(o.name===null)throw new Error(`Read of unnamed temporary ${o.xref}`);return di(o.name);case Jt.AssignTemporaryExpr:if(o.name===null)throw new Error(`Assign of unnamed temporary ${o.xref}`);return di(o.name).set(o.expr);case Jt.PureFunctionExpr:if(o.fn===null)throw new Error("AssertionError: expected PureFunctions to have been extracted");return QX(o.varOffset,o.fn,o.args);case Jt.PureFunctionParameterExpr:throw new Error("AssertionError: expected PureFunctionParameterExpr to have been extracted");case Jt.PipeBinding:return LX(o.targetSlot.slot,o.varOffset,o.args);case Jt.PipeBindingVariadic:return VX(o.targetSlot.slot,o.varOffset,o.args);case Jt.SlotLiteralExpr:return De(o.slot.slot);case Jt.ContextLetReference:return _X(o.targetSlot.slot);case Jt.StoreLet:return hX(o.value,o.sourceSpan);case Jt.TrackContext:return di("this");case Jt.ArrowFunction:if(o.varOffset===null)throw new Error("AssertionError: variable offset was not assigned to arrow function");return XX(o.varOffset,n.job.pool.getSharedFunctionReference(cY(n,o),"arrowFn"),di(Zs));default:throw new Error(`AssertionError: Unsupported reification of ir.Expression kind: ${Jt[o.kind]}`)}}function ub(n,o,e,t){$x(n,e);let i=[];for(let s of e){if(s.kind!==j.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${j[s.kind]}`);i.push(s.statement)}let a=[];return t&&a.push(new Da("$event",ws)),Em(a,i,void 0,void 0,o)}function lY(n,o){if(o.trackByFn!==null)return o.trackByFn;let e=[new Da("$index",iu),new Da("$item",ws)],t;if(o.trackByOps===null)t=o.usesComponentInstance?Em(e,[new Ia(o.track)]):Ys(e,o.track);else{$x(n,o.trackByOps);let i=[];for(let a of o.trackByOps){if(a.kind!==j.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${j[a.kind]}`);i.push(a.statement)}t=o.usesComponentInstance||i.length!==1||!(i[0]instanceof Ia)?Em(e,i):Ys(e,i[0].value)}return o.trackByFn=n.job.pool.getSharedFunctionReference(t,"_forTrack"),o.trackByFn}function cY(n,o){$x(n,o.ops);let e=[];for(let i of o.ops){if(i.kind!==j.Statement)throw new Error(`AssertionError: expected reified statements, but found op ${j[i.kind]}`);e.push(i.statement)}let t=e.length===1&&e[0]instanceof Ia?e[0].value:e;return Ys([new Da(o.contextName,ws),new Da(o.currentViewName,ws)],Ys(o.parameters,t))}function dY(n){for(let o of n.units)for(let e of o.update)switch(e.kind){case j.Attribute:case j.Binding:case j.ClassProp:case j.ClassMap:case j.Property:case j.StyleProp:case j.StyleMap:e.expression instanceof w0&&Je.remove(e);break}}function mY(n){for(let o of n.units)for(let e of o.create)switch(e.kind){case j.I18nContext:Je.remove(e);break;case j.I18nStart:e.context=null;break}}function pY(n){for(let o of n.units)for(let e of o.update){if(e.kind!==j.Variable||e.variable.kind!==ar.Identifier||!(e.initializer instanceof C0))continue;let t=e.variable.identifier,i=e;for(;i&&i.kind!==j.ListEnd;)ra(i,a=>a instanceof ir&&a.name===t?De(void 0):a,ai.None),i=i.prev}}function uY(n){for(let o of n.units){let e=new Set;for(let t of o.update)t.kind===j.I18nExpression&&e.add(t.i18nOwner);for(let t of o.create)switch(t.kind){case j.I18nAttributes:if(e.has(t.xref))continue;Je.remove(t)}}}function gY(n){for(let o of n.units){for(let e of o.functions)Af(o,e.ops);Af(o,o.create),Af(o,o.update)}}function Af(n,o){let e=new Map;e.set(n.xref,di(Zs));for(let t of o)switch(t.kind){case j.Variable:t.variable.kind===ar.Context&&e.set(t.variable.view,new Ad(t.xref));break;case j.Animation:case j.AnimationListener:case j.Listener:case j.TwoWayListener:Af(n,t.handlerOps);break;case j.RepeaterCreate:t.trackByOps!==null&&Af(n,t.trackByOps);break}n===n.job.root&&e.set(n.xref,di(Zs));for(let t of o)ra(t,i=>{if(i instanceof Fm){if(!e.has(i.view))throw new Error(`No context found for reference to view ${i.view} from view ${n.xref}`);return e.get(i.view)}else return i},ai.None)}function hY(n){for(let o of n.units)for(let e of o.create)if(e.kind===j.Defer){if(e.resolverFn!==null)continue;if(e.ownResolverFn!==null){if(e.handle.slot===null)throw new Error("AssertionError: slot must be assigned before extracting defer deps functions");let t=o.fnName?.replace("_Template","");e.resolverFn=n.pool.getSharedFunctionReference(e.ownResolverFn,`${t}_Defer_${e.handle.slot}_DepsFn`,!1)}}}function _Y(n){for(let o of n.units)Q6(o.create),Q6(o.update)}function Q6(n){for(let o of n)(o.kind===j.Listener||o.kind===j.TwoWayListener||o.kind===j.AnimationListener)&&ra(o,e=>e instanceof ir&&e.name==="$event"?((o.kind===j.Listener||o.kind===j.AnimationListener)&&(o.consumesDollarEvent=!0),new oc(e.name)):e,ai.InChildOperation)}function fY(n){let o=new Map,e=new Map;for(let t of n.units)for(let i of t.create)switch(i.kind){case j.I18nContext:o.set(i.xref,i);break;case j.ElementStart:e.set(i.xref,i);break}Ic(n,n.root,o,e)}function Ic(n,o,e,t,i){let a=null,s=new Map;for(let d of o.create)switch(d.kind){case j.I18nStart:if(!d.context)throw Error("Could not find i18n context for i18n op");a={i18nBlock:d,i18nContext:e.get(d.context)};break;case j.I18nEnd:a=null;break;case j.ElementStart:if(d.i18nPlaceholder!==void 0){if(a===null)throw Error("i18n tag placeholder should only occur inside an i18n block");K6(d,a.i18nContext,a.i18nBlock,i),i&&d.i18nPlaceholder.closeName&&s.set(d.xref,i),i=void 0}break;case j.ElementEnd:let p=t.get(d.xref);if(p&&p.i18nPlaceholder!==void 0){if(a===null)throw Error("AssertionError: i18n tag placeholder should only occur inside an i18n block");X6(p,a.i18nContext,a.i18nBlock,s.get(d.xref)),s.delete(d.xref)}break;case j.Projection:if(d.i18nPlaceholder!==void 0){if(a===null)throw Error("i18n tag placeholder should only occur inside an i18n block");K6(d,a.i18nContext,a.i18nBlock,i),X6(d,a.i18nContext,a.i18nBlock,i),i=void 0}if(d.fallbackView!==null){let M=n.views.get(d.fallbackView);if(d.fallbackViewI18nPlaceholder===void 0)Ic(n,M,e,t);else{if(a===null)throw Error("i18n tag placeholder should only occur inside an i18n block");gb(n,M,d.handle.slot,d.fallbackViewI18nPlaceholder,a.i18nContext,a.i18nBlock,i),Ic(n,M,e,t),hb(n,M,d.handle.slot,d.fallbackViewI18nPlaceholder,a.i18nContext,a.i18nBlock,i),i=void 0}}break;case j.ConditionalCreate:case j.ConditionalBranchCreate:case j.Template:let u=n.views.get(d.xref);if(d.i18nPlaceholder===void 0)Ic(n,u,e,t);else{if(a===null)throw Error("i18n tag placeholder should only occur inside an i18n block");d.templateKind===ys.Structural?Ic(n,u,e,t,d):(gb(n,u,d.handle.slot,d.i18nPlaceholder,a.i18nContext,a.i18nBlock,i),Ic(n,u,e,t),hb(n,u,d.handle.slot,d.i18nPlaceholder,a.i18nContext,a.i18nBlock,i),i=void 0)}break;case j.RepeaterCreate:if(i!==void 0)throw Error("AssertionError: Unexpected structural directive associated with @for block");let g=d.handle.slot+1,C=n.views.get(d.xref);if(d.i18nPlaceholder===void 0)Ic(n,C,e,t);else{if(a===null)throw Error("i18n tag placeholder should only occur inside an i18n block");gb(n,C,g,d.i18nPlaceholder,a.i18nContext,a.i18nBlock,i),Ic(n,C,e,t),hb(n,C,g,d.i18nPlaceholder,a.i18nContext,a.i18nBlock,i),i=void 0}if(d.emptyView!==null){let M=d.handle.slot+2,x=n.views.get(d.emptyView);if(d.emptyI18nPlaceholder===void 0)Ic(n,x,e,t);else{if(a===null)throw Error("i18n tag placeholder should only occur inside an i18n block");gb(n,x,M,d.emptyI18nPlaceholder,a.i18nContext,a.i18nBlock,i),Ic(n,x,e,t),hb(n,x,M,d.emptyI18nPlaceholder,a.i18nContext,a.i18nBlock,i),i=void 0}}break}}function K6(n,o,e,t){let{startName:i,closeName:a}=n.i18nPlaceholder,s=go.ElementTag|go.OpenTag,d=n.handle.slot;t!==void 0&&(s|=go.TemplateTag,d={element:d,template:t.handle.slot}),a||(s|=go.CloseTag),Zg(o.params,i,d,e.subTemplateIndex,s)}function X6(n,o,e,t){let{closeName:i}=n.i18nPlaceholder;if(i){let a=go.ElementTag|go.CloseTag,s=n.handle.slot;t!==void 0&&(a|=go.TemplateTag,s={element:s,template:t.handle.slot}),Zg(o.params,i,s,e.subTemplateIndex,a)}}function gb(n,o,e,t,i,a,s){let{startName:d,closeName:p}=t,u=go.TemplateTag|go.OpenTag;p||(u|=go.CloseTag),s!==void 0&&Zg(i.params,d,s.handle.slot,a.subTemplateIndex,u),Zg(i.params,d,e,IF(n,a,o),u)}function hb(n,o,e,t,i,a,s){let{closeName:d}=t,p=go.TemplateTag|go.CloseTag;d&&(Zg(i.params,d,e,IF(n,a,o),p),s!==void 0&&Zg(i.params,d,s.handle.slot,a.subTemplateIndex,p))}function IF(n,o,e){for(let t of e.create)if(t.kind===j.I18nStart)return t.subTemplateIndex;return o.subTemplateIndex}function Zg(n,o,e,t,i){let a=n.get(o)??[];a.push({value:e,subTemplateIndex:t,flags:i}),n.set(o,a)}function vY(n){let o=new Map,e=new Map,t=new Map;for(let s of n.units)for(let d of s.create)switch(d.kind){case j.I18nStart:o.set(d.xref,d.subTemplateIndex);break;case j.I18nContext:e.set(d.xref,d);break;case j.IcuPlaceholder:t.set(d.xref,d);break}let i=new Map,a=s=>s.usage===th.I18nText?s.i18nOwner:s.context;for(let s of n.units)for(let d of s.update)if(d.kind===j.I18nExpression){let p=i.get(a(d))||0,u=o.get(d.i18nOwner)??null,g={value:p,subTemplateIndex:u,flags:go.ExpressionIndex};CY(d,g,e,t),i.set(a(d),p+1)}}function CY(n,o,e,t){if(n.i18nPlaceholder!==null){let i=e.get(n.context),a=n.resolutionTime===f0.Creation?i.params:i.postprocessingParams,s=a.get(n.i18nPlaceholder)||[];s.push(o),a.set(n.i18nPlaceholder,s)}n.icuPlaceholder!==null&&t.get(n.icuPlaceholder)?.expressionPlaceholders.push(o)}function bY(n){let o=new Map;for(let e of n.units)for(let t of e.ops())if(t.kind===j.ElementStart||t.kind===j.Template){let i=t.tag??"";switch(t.namespace){case Oa.SVG:i=`:${Bx}:${i}`;break;case Oa.Math:i=`:${jx}:${i}`;break}o.set(t.xref,i)}for(let e of n.units)for(let t of e.create)if(t.kind===j.ExtractedAttribute&&t.i18nContext!==null&&t.expression!==null){let i=o.get(t.target)??"",a=t.expression;switch(t.securityContext){case gi.HTML:a=Ht(ge.sanitizeHtml).callFn([a]);break;case gi.STYLE:a=Ht(ge.sanitizeStyle).callFn([a]);break;case gi.SCRIPT:a=Ht(ge.sanitizeScript).callFn([a]);break;case gi.URL:a=Ht(ge.sanitizeUrl).callFn([a]);break;case gi.RESOURCE_URL:a=Ht(ge.sanitizeResourceUrl).callFn([a]);break;case gi.ATTRIBUTE_NO_BINDING:a=Ht(ge.validateAttribute).callFn([a,De(i),De(t.name)]);break}t.expression=a}}function xY(n){for(let o of n.units){for(let e of o.functions)Nf(o,e.ops,null);Nf(o,o.create,null),Nf(o,o.update,null)}}function Nf(n,o,e){let t=new Map,i=new Map;for(let a of o)switch(a.kind){case j.Variable:switch(a.variable.kind){case ar.Identifier:if(a.variable.local){if(i.has(a.variable.identifier))continue;i.set(a.variable.identifier,a.xref)}else if(t.has(a.variable.identifier))continue;t.set(a.variable.identifier,a.xref);break;case ar.Alias:if(t.has(a.variable.identifier))continue;t.set(a.variable.identifier,a.xref);break;case ar.SavedView:e={view:a.variable.view,variable:a.xref};break}break;case j.Animation:case j.AnimationListener:case j.Listener:case j.TwoWayListener:Nf(n,a.handlerOps,e);break;case j.RepeaterCreate:a.trackByOps!==null&&Nf(n,a.trackByOps,e);break}for(let a of o)a.kind===j.Listener||a.kind===j.TwoWayListener||a.kind===j.Animation||a.kind===j.AnimationListener||ra(a,s=>{if(s instanceof ir)return i.has(s.name)?new Ad(i.get(s.name)):t.has(s.name)?new Ad(t.get(s.name)):new Xs(new Fm(n.job.root.xref),s.name);if(s instanceof x0&&typeof s.view=="number"){if(e===null||e.view!==s.view)throw new Error(`AssertionError: no saved view ${s.view} from view ${n.xref}`);return s.view=new Ad(e.variable),s}else return s},ai.None);for(let a of o)wa(a,s=>{if(s instanceof ir)throw new Error(`AssertionError: no lexical reads should remain, but found read of ${s.name}`)})}var yY=new Map([[gi.HTML,ge.sanitizeHtml],[gi.RESOURCE_URL,ge.sanitizeResourceUrl],[gi.SCRIPT,ge.sanitizeScript],[gi.STYLE,ge.sanitizeStyle],[gi.URL,ge.sanitizeUrl],[gi.ATTRIBUTE_NO_BINDING,ge.validateAttribute]]),wY=new Map([[gi.HTML,ge.trustConstantHtml],[gi.RESOURCE_URL,ge.trustConstantResourceUrl]]);function MY(n){for(let o of n.units){if(n.kind!==Dt.Host){for(let e of o.create)if(e.kind===j.ExtractedAttribute){let t=wY.get(Y6(e.securityContext))??null;e.trustedValueFn=t!==null?Ht(t):null}}for(let e of o.update)switch(e.kind){case j.Property:case j.Attribute:case j.DomProperty:case j.TwoWayProperty:let t=null;Array.isArray(e.securityContext)&&SY(e.securityContext)?t=ge.sanitizeUrlOrResourceUrl:t=yY.get(Y6(e.securityContext))??null,e.sanitizer=t!==null?Ht(t):null;break}}}function SY(n){let o=!1,e=!1,t=!1;for(let i of n)switch(i){case gi.URL:o=!0;break;case gi.RESOURCE_URL:e=!0;break;case gi.NONE:t=!0;break;default:return!1}return(o||e)&&t||o&&e}function Y6(n){if(!Array.isArray(n))return n;if(n.length<2)return n[0]??gi.NONE;let o=n.filter(e=>e!==gi.NONE);if(o.length>1)throw Error("AssertionError: Ambiguous security context");return o[0]??gi.NONE}function kY(n){for(let o of n.units){for(let e of o.functions)Z6(n,o,e.ops)&&J6(o,e.ops,di(e.currentViewName));o.create.prepend([Mm(o.job.allocateXrefId(),{kind:ar.SavedView,name:null,view:o.xref},new KP,vl.None)]);for(let e of o.create)(e.kind===j.Listener||e.kind===j.TwoWayListener||e.kind===j.Animation||e.kind===j.AnimationListener)&&Z6(n,o,e.handlerOps)&&J6(o,e.handlerOps,o.xref)}}function Z6(n,o,e){let t=o!==n.root;if(!t)for(let i of e)wa(i,a=>{(a instanceof lx||a instanceof b0)&&(t=!0)});return t}function J6(n,o,e){o.prepend([Mm(n.job.allocateXrefId(),{kind:ar.Context,name:null,view:n.xref},new x0(e),vl.None)]);for(let t of o)t.kind===j.Statement&&t.statement instanceof Ia&&(t.statement.value=new dx(t.statement.value))}function PY(n){let o=new Map;for(let e of n.units){let t=0;for(let i of e.create)nh(i)&&(i.handle.slot=t,o.set(i.xref,i.handle.slot),t+=i.numSlotsUsed);e.decls=t}for(let e of n.units)for(let t of e.ops())if(t.kind===j.Template||t.kind===j.ConditionalCreate||t.kind===j.ConditionalBranchCreate||t.kind===j.RepeaterCreate){let i=n.views.get(t.xref);t.decls=i.decls}}function TY(n){let o=new Set,e=new Map;for(let t of n.units)for(let i of t.ops())i.kind===j.DeclareLet&&e.set(i.xref,i),wa(i,a=>{a instanceof b0&&o.add(a.target)});for(let t of n.units)for(let i of t.update)ra(i,a=>a instanceof C0&&!o.has(a.target)?(EY(a)||Je.remove(e.get(a.target)),a.value):a,ai.None)}function EY(n){let o=!1;return Bt(n,e=>((e instanceof hu||e instanceof y0)&&(o=!0),e),ai.None),o}function OY(n){let o=new Set;for(let e of n.units)for(let t of e.ops())wa(t,i=>{if(i instanceof Pi)switch(i.operator){case lt.Exponentiation:DY(i,o);break;case lt.NullishCoalesce:IY(i,o);break;case lt.And:case lt.Or:AY(i,o)}});for(let e of n.units)for(let t of e.ops())ra(t,i=>i instanceof ac?o.has(i)?i:i.expr:i,ai.None)}function DY(n,o){n.lhs instanceof ac&&n.lhs.expr instanceof au&&o.add(n.lhs)}function IY(n,o){n.lhs instanceof ac&&(eN(n.lhs.expr)||n.lhs.expr instanceof jc)&&o.add(n.lhs),n.rhs instanceof ac&&(eN(n.rhs.expr)||n.rhs.expr instanceof jc)&&o.add(n.rhs)}function AY(n,o){n.lhs instanceof ac&&n.lhs.expr instanceof Pi&&n.lhs.expr.operator===lt.NullishCoalesce&&o.add(n.lhs)}function eN(n){return n instanceof Pi&&(n.operator===lt.And||n.operator===lt.Or)}function NY(n){for(let o of n.units)for(let e of o.update)if(e.kind===j.Binding)switch(e.bindingKind){case Qt.ClassName:if(e.expression instanceof aa)throw new Error("Unexpected interpolation in ClassName binding");Je.replace(e,tG(e.target,e.name,e.expression,e.sourceSpan));break;case Qt.StyleProperty:Je.replace(e,eG(e.target,e.name,e.expression,e.unit,e.sourceSpan));break;case Qt.Property:case Qt.Template:e.name==="style"?Je.replace(e,nG(e.target,e.expression,e.sourceSpan)):e.name==="class"&&Je.replace(e,iG(e.target,e.expression,e.sourceSpan));break}}function FY(n){for(let o of n.units){o.create.prepend(Ff(o.create)),o.update.prepend(Ff(o.update));for(let e of o.functions)e.ops.prepend(Ff(e.ops))}}function Ff(n){let o=0,e=[];for(let t of n){let i=new Map;wa(t,(u,g)=>{g&ai.InChildOperation||u instanceof zm&&i.set(u.xref,u)});let a=0,s=new Set,d=new Set,p=new Map;wa(t,(u,g)=>{g&ai.InChildOperation||(u instanceof qc?(s.has(u.xref)||(s.add(u.xref),p.set(u.xref,`tmp_${o}_${a++}`)),tN(p,u)):u instanceof zm&&(i.get(u.xref)===u&&(d.add(u.xref),a--),tN(p,u)))}),e.push(...Array.from(new Set(p.values())).map(u=>Js(new Ga(u)))),o++,t.kind===j.Listener||t.kind===j.Animation||t.kind===j.AnimationListener||t.kind===j.TwoWayListener?t.handlerOps.prepend(Ff(t.handlerOps)):t.kind===j.RepeaterCreate&&t.trackByOps!==null&&t.trackByOps.prepend(Ff(t.trackByOps))}return e}function tN(n,o){let e=n.get(o.xref);if(e===void 0)throw new Error(`Found xref with unassigned name: ${o.xref}`);o.name=e}function RY(n){for(let o of n.units)for(let e of o.create)if(e.kind===j.RepeaterCreate)if(e.track instanceof oc&&e.track.name==="$index")e.trackByFn=Ht(ge.repeaterTrackByIndex);else if(e.track instanceof oc&&e.track.name==="$item")e.trackByFn=Ht(ge.repeaterTrackByIdentity);else if(zY(n.root.xref,e.track))e.usesComponentInstance=!0,e.track.receiver.receiver.view===o.xref?e.trackByFn=e.track.receiver:(e.trackByFn=Ht(ge.componentInstance).callFn([]).prop(e.track.receiver.name),e.track=e.trackByFn);else{e.track=Bt(e.track,i=>{if(i instanceof hu||i instanceof y0)throw new Error("Illegal State: Pipes are not allowed in this context");return i instanceof Fm?(e.usesComponentInstance=!0,new QP(i.view)):i},ai.None);let t=new Je;t.push(Js(new Ia(e.track,e.track.sourceSpan))),e.trackByOps=t}}function zY(n,o){if(!(o instanceof Ms)||o.args.length===0||o.args.length>2||!(o.receiver instanceof Xs&&o.receiver.receiver instanceof Fm)||o.receiver.receiver.view!==n)return!1;let[e,t]=o.args;return!(e instanceof oc)||e.name!=="$index"?!1:o.args.length===1?!0:!(!(t instanceof oc)||t.name!=="$item")}function LY(n){for(let o of n.units)for(let e of o.create)e.kind===j.RepeaterCreate&&(e.track=Bt(e.track,t=>{if(t instanceof ir){if(e.varNames.$index.has(t.name))return di("$index");if(t.name===e.varNames.$implicit)return di("$item")}return t},ai.None))}function VY(n){for(let o of n.units)for(let e of o.create)e.kind===j.TwoWayListener&&ra(e,t=>{if(!(t instanceof mx))return t;let{target:i,value:a}=t;if(i instanceof Xs||i instanceof Fd)return W6(i,a).or(i.set(a));if(i instanceof Ad)return W6(i,a);throw new Error("Unsupported expression in two-way action binding.")},ai.InChildOperation)}function BY(n){for(let o of n.units){let e=0;for(let a of o.ops())Xk(a)&&(e+=jY(a));let t=a=>{Gc(a)&&(a instanceof gu||(l6(a)&&(a.varOffset=e),Xk(a)&&(e+=nN(a))))},i=a=>{!Gc(a)||!(a instanceof gu)||(l6(a)&&(a.varOffset=e),Xk(a)&&(e+=nN(a)))};for(let a of o.create)wa(a,t);for(let a of o.update)wa(a,t);for(let a of o.create)wa(a,i);for(let a of o.update)wa(a,i);o.vars=e}if(n instanceof S0)for(let o of n.units)for(let e of o.create){if(e.kind!==j.Template&&e.kind!==j.RepeaterCreate&&e.kind!==j.ConditionalCreate&&e.kind!==j.ConditionalBranchCreate)continue;let t=n.views.get(e.xref);e.vars=t.vars}}function jY(n){let o;switch(n.kind){case j.Attribute:return o=1,n.expression instanceof aa&&!$Y(n.expression)&&(o+=n.expression.expressions.length),o;case j.Property:case j.DomProperty:return o=1,n.expression instanceof aa&&(o+=n.expression.expressions.length),o;case j.Control:return 2;case j.TwoWayProperty:return 1;case j.StyleProp:case j.ClassProp:case j.StyleMap:case j.ClassMap:return o=2,n.expression instanceof aa&&(o+=n.expression.expressions.length),o;case j.InterpolateText:return n.interpolation.expressions.length;case j.I18nExpression:case j.Conditional:case j.DeferWhen:case j.StoreLet:return 1;case j.RepeaterCreate:return n.emptyView?1:0;default:throw new Error(`Unhandled op: ${j[n.kind]}`)}}function nN(n){switch(n.kind){case Jt.PureFunctionExpr:return 1+n.args.length;case Jt.PipeBinding:return 1+n.args.length;case Jt.PipeBindingVariadic:return 1+n.numArgs;case Jt.StoreLet:case Jt.ArrowFunction:return 1;default:throw new Error(`AssertionError: unhandled ConsumesVarsTrait expression ${n.constructor.name}`)}}function $Y(n){return!(n.expressions.length!==1||n.strings.length!==2||n.strings[0]!==""||n.strings[1]!=="")}function HY(n){for(let o of n.units){for(let e of o.functions)Cf(e.ops);Cf(o.create),Cf(o.update);for(let e of o.create)e.kind===j.Listener||e.kind===j.Animation||e.kind===j.AnimationListener||e.kind===j.TwoWayListener?Cf(e.handlerOps):e.kind===j.RepeaterCreate&&e.trackByOps!==null&&Cf(e.trackByOps);for(let e of o.functions)bf(e.ops,null),iN(e.ops);for(let e of o.create)e.kind===j.Listener||e.kind===j.Animation||e.kind===j.AnimationListener||e.kind===j.TwoWayListener?(bf(e.handlerOps,_b),iN(e.handlerOps)):e.kind===j.RepeaterCreate&&e.trackByOps!==null&&bf(e.trackByOps,_b);bf(o.create,_b),bf(o.update,_b)}}var Wa=(function(n){return n[n.None=0]="None",n[n.ViewContextRead=1]="ViewContextRead",n[n.ViewContextWrite=2]="ViewContextWrite",n[n.SideEffectful=4]="SideEffectful",n})(Wa||{});function _b(n){return!(n&ai.InArrowFunctionOperation)}function Cf(n){let o=new Map;for(let e of n)e.kind===j.Variable&&e.flags&vl.AlwaysInline&&(wa(e,t=>{if(Gc(t)&&rT(t)!==Wa.None)throw new Error("AssertionError: A context-sensitive variable was marked AlwaysInline")}),o.set(e.xref,e)),ra(e,t=>t instanceof Ad&&o.has(t.xref)?o.get(t.xref).initializer.clone():t,ai.None);for(let e of o.values())Je.remove(e)}function bf(n,o){let e=new Map,t=new Map,i=new Set,a=new Map;for(let u of n){if(u.kind===j.Variable){if(e.has(u.xref)||t.has(u.xref))throw new Error(`Should not see two declarations of the same variable: ${u.xref}`);e.set(u.xref,u),t.set(u.xref,0)}a.set(u,UY(u,o)),WY(u,t,i,o)}let s=!1;for(let u of n.reversed()){let g=a.get(u);if(u.kind===j.Variable&&t.get(u.xref)===0){if(s&&g.fences&Wa.ViewContextWrite||g.fences&Wa.SideEffectful){let C=Js(u.initializer.toStmt());a.set(C,g),Je.replace(u,C)}else GY(u,t),Je.remove(u);a.delete(u),e.delete(u.xref),t.delete(u.xref);continue}g.fences&Wa.ViewContextRead&&(s=!0)}let d=[];for(let[u,g]of t){let M=!!(e.get(u).flags&vl.AlwaysInline);g!==1||M||i.has(u)||d.push(u)}let p;for(;p=d.pop();){let u=e.get(p),g=a.get(u);if(!!(u.flags&vl.AlwaysInline))throw new Error("AssertionError: Found an 'AlwaysInline' variable after the always inlining pass.");for(let M=u.next;M.kind!==j.ListEnd;M=M.next){let x=a.get(M);if(x.variablesUsed.has(p)){if(!QY(u,M))break;if(qY(p,u.initializer,M,g.fences)){x.variablesUsed.delete(p);for(let b of g.variablesUsed)x.variablesUsed.add(b);x.fences|=g.fences,e.delete(p),t.delete(p),a.delete(u),Je.remove(u)}break}if(!AF(x.fences,g.fences))break}}}function rT(n){switch(n.kind){case Jt.NextContext:return Wa.ViewContextRead|Wa.ViewContextWrite;case Jt.RestoreView:return Wa.ViewContextRead|Wa.ViewContextWrite|Wa.SideEffectful;case Jt.StoreLet:return Wa.SideEffectful;case Jt.Reference:case Jt.ContextLetReference:return Wa.ViewContextRead;default:return Wa.None}}function UY(n,o){let e=Wa.None,t=new Set;return wa(n,(i,a)=>{!Gc(i)||o!==null&&!o(a)||(i.kind===Jt.ReadVariable?t.add(i.xref):e|=rT(i))}),{fences:e,variablesUsed:t}}function WY(n,o,e,t){wa(n,(i,a)=>{if(!Gc(i)||t!==null&&!t(a)||i.kind!==Jt.ReadVariable)return;let s=o.get(i.xref);s!==void 0&&(o.set(i.xref,s+1),a&ai.InChildOperation&&e.add(i.xref))})}function GY(n,o){wa(n,e=>{if(!Gc(e)||e.kind!==Jt.ReadVariable)return;let t=o.get(e.xref);if(t!==void 0){if(t===0)throw new Error(`Inaccurate variable count: ${e.xref} - found another read but count is already 0`);o.set(e.xref,t-1)}})}function AF(n,o){if(n&Wa.ViewContextWrite){if(o&Wa.ViewContextRead)return!1}else if(n&Wa.ViewContextRead&&o&Wa.ViewContextWrite)return!1;return!0}function qY(n,o,e,t){let i=!1,a=!0;return ra(e,(s,d)=>{if(!Gc(s)||i||!a)return s;if(d&ai.InChildOperation&&t&Wa.ViewContextRead)return s;switch(s.kind){case Jt.ReadVariable:if(s.xref===n)return i=!0,o;break;default:let p=rT(s);a=a&&AF(p,t);break}return s},ai.None),i}function QY(n,o){switch(n.variable.kind){case ar.Identifier:return n.initializer instanceof oc&&n.initializer.name===Zs;case ar.Context:return o.kind===j.Variable;default:return!0}}function iN(n){let o=n.head.next,e=n.tail.prev;o!==null&&e!==null&&o.next===e&&o.kind===j.Statement&&o.statement instanceof fr&&o.statement.expr instanceof x0&&e.kind===j.Statement&&e.statement instanceof Ia&&e.statement.value instanceof dx&&(Je.remove(o),e.statement.value=e.statement.value.expr)}function KY(n){for(let o of n.units){let e=null,t=null;for(let i of o.create)switch(i.kind){case j.I18nStart:e=i;break;case j.I18nEnd:e=null;break;case j.IcuStart:e===null&&(t=n.allocateXrefId(),Je.insertBefore(Lx(t,i.message,void 0,null),i));break;case j.IcuEnd:t!==null&&(Je.insertAfter(Vx(t,null),i),t=null);break}}}function XY(n){for(let o of n.units){for(let e of o.create)e.kind!==j.Animation&&e.kind!==j.AnimationListener&&e.kind!==j.Listener&&e.kind!==j.TwoWayListener&&oN(o,e);for(let e of o.update)oN(o,e)}}function oN(n,o){ra(o,(e,t)=>{if(!(e instanceof vu)||t&ai.InChildOperation)return e;if(Array.isArray(e.body))throw new Error("AssertionError: unexpected multi-line arrow function");let i=new XP(e.params,e.body);return n.functions.add(i),i},ai.None)}var YY=new Set(["formField"]);function ZY(n){for(let o of n.units)JY(o)}function JY(n){for(let o of n.update)o.kind===j.Property&&YY.has(o.name)&&iZ(n,o)}var eZ=new Set([j.Container,j.ContainerStart,j.ContainerEnd,j.Element,j.ElementStart,j.ElementEnd,j.Template]);function tZ(n){return eZ.has(n.kind)}function nZ(n,o){let e=null;for(let t of n.create)!tZ(t)||t.xref!==o||(e=t);return e}function iZ(n,o){let e=nZ(n,o.target);if(e===null)throw new Error(`No create instruction found for control target ${o.target}`);let t=EG(o.sourceSpan);Je.insertAfter(t,e),Je.insertAfter(cG(o.target,o.sourceSpan),o)}var oZ=[{kind:Dt.Tmpl,fn:xK},{kind:Dt.Both,fn:NK},{kind:Dt.Host,fn:Aq},{kind:Dt.Tmpl,fn:oK},{kind:Dt.Tmpl,fn:TK},{kind:Dt.Tmpl,fn:KY},{kind:Dt.Both,fn:tq},{kind:Dt.Both,fn:NY},{kind:Dt.Both,fn:BG},{kind:Dt.Tmpl,fn:ZY},{kind:Dt.Both,fn:YG},{kind:Dt.Both,fn:zG},{kind:Dt.Tmpl,fn:eq},{kind:Dt.Both,fn:rK},{kind:Dt.Tmpl,fn:dY},{kind:Dt.Both,fn:HG},{kind:Dt.Both,fn:bK},{kind:Dt.Tmpl,fn:UG},{kind:Dt.Tmpl,fn:MK},{kind:Dt.Tmpl,fn:nq},{kind:Dt.Tmpl,fn:PK},{kind:Dt.Both,fn:XY},{kind:Dt.Both,fn:DK},{kind:Dt.Tmpl,fn:Eq},{kind:Dt.Tmpl,fn:Tq},{kind:Dt.Tmpl,fn:Oq},{kind:Dt.Tmpl,fn:kY},{kind:Dt.Both,fn:DG},{kind:Dt.Both,fn:_Y},{kind:Dt.Tmpl,fn:LY},{kind:Dt.Tmpl,fn:pY},{kind:Dt.Both,fn:xY},{kind:Dt.Tmpl,fn:iq},{kind:Dt.Tmpl,fn:VY},{kind:Dt.Tmpl,fn:RY},{kind:Dt.Both,fn:gY},{kind:Dt.Both,fn:MY},{kind:Dt.Tmpl,fn:nK},{kind:Dt.Both,fn:lq},{kind:Dt.Both,fn:OY},{kind:Dt.Both,fn:FY},{kind:Dt.Both,fn:HY},{kind:Dt.Both,fn:TY},{kind:Dt.Tmpl,fn:tK},{kind:Dt.Tmpl,fn:JG},{kind:Dt.Tmpl,fn:uY},{kind:Dt.Tmpl,fn:FG},{kind:Dt.Tmpl,fn:AG},{kind:Dt.Tmpl,fn:PY},{kind:Dt.Tmpl,fn:fY},{kind:Dt.Tmpl,fn:vY},{kind:Dt.Tmpl,fn:wq},{kind:Dt.Tmpl,fn:XQ},{kind:Dt.Tmpl,fn:bY},{kind:Dt.Tmpl,fn:Dq},{kind:Dt.Both,fn:QG},{kind:Dt.Tmpl,fn:mY},{kind:Dt.Both,fn:BY},{kind:Dt.Tmpl,fn:Pq},{kind:Dt.Both,fn:sK},{kind:Dt.Tmpl,fn:hY},{kind:Dt.Tmpl,fn:dK},{kind:Dt.Tmpl,fn:pK},{kind:Dt.Tmpl,fn:sq},{kind:Dt.Tmpl,fn:RG},{kind:Dt.Tmpl,fn:gK},{kind:Dt.Both,fn:OK},{kind:Dt.Both,fn:oY},{kind:Dt.Both,fn:$G}];function NF(n,o){for(let e of oZ)(e.kind===o||e.kind===Dt.Both)&&e.fn(n)}function aZ(n,o){let e=RF(n.root);return FF(n.root,o),e}function FF(n,o){for(let e of n.job.units){if(e.parent!==n.xref)continue;FF(e,o);let t=RF(e);o.statements.push(t.toDeclStmt(t.name))}}function RF(n){if(n.fnName===null)throw new Error(`AssertionError: view ${n.xref} is unnamed`);let o=[];for(let a of n.create){if(a.kind!==j.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${j[a.kind]}`);o.push(a.statement)}let e=[];for(let a of n.update){if(a.kind!==j.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${j[a.kind]}`);e.push(a.statement)}let t=Px(1,o),i=Px(2,e);return Em([new Da(Jg,iu),new Da(Zs,ws)],[...t,...i],void 0,void 0,n.fnName)}function Px(n,o){return o.length===0?[]:[Nx(new Pi(lt.BitwiseAnd,di(Jg),De(n)),o)]}function rZ(n){if(n.root.fnName===null)throw new Error("AssertionError: host binding function is unnamed");let o=[];for(let a of n.root.create){if(a.kind!==j.Statement)throw new Error(`AssertionError: expected all create ops to have been compiled, but got ${j[a.kind]}`);o.push(a.statement)}let e=[];for(let a of n.root.update){if(a.kind!==j.Statement)throw new Error(`AssertionError: expected all update ops to have been compiled, but got ${j[a.kind]}`);e.push(a.statement)}if(o.length===0&&e.length===0)return null;let t=Px(1,o),i=Px(2,e);return Em([new Da(Jg,iu),new Da(Zs,ws)],[...t,...i],void 0,void 0,n.root.fnName)}var fb=".",sZ="attr",nP="animate",lZ="class",cZ="style",dZ="*",iP="animate-",y3=class{_exprParser;_schemaRegistry;errors;constructor(o,e,t){this._exprParser=o,this._schemaRegistry=e,this.errors=t}createBoundHostProperties(o,e){let t=[];for(let i of Object.keys(o)){let a=o[i];typeof a=="string"?this.parsePropertyBinding(i,a,!0,!1,e,e.start.offset,void 0,[],t,e):this._reportError(`Value of the host property binding "${i}" needs to be a string representing an expression but got "${a}" (${typeof a})`,e)}return t}createDirectiveHostEventAsts(o,e){let t=[];for(let i of Object.keys(o)){let a=o[i];typeof a=="string"?this.parseEvent(i,a,!1,e,e,[],t,e):this._reportError(`Value of the host listener "${i}" needs to be a string representing an expression but got "${a}" (${typeof a})`,e)}return t}parseInterpolation(o,e,t){let i=e.fullStart.offset;try{let a=this._exprParser.parseInterpolation(o,e,i,t);return a&&this.errors.push(...a.errors),a}catch(a){return this._reportError(`${a}`,e),this._exprParser.wrapLiteralPrimitive("ERROR",e,i)}}parseInterpolationExpression(o,e){let t=e.start.offset;try{let i=this._exprParser.parseInterpolationExpression(o,e,t);return i&&this.errors.push(...i.errors),i}catch(i){return this._reportError(`${i}`,e),this._exprParser.wrapLiteralPrimitive("ERROR",e,t)}}parseInlineTemplateBinding(o,e,t,i,a,s,d,p){let u=t.start.offset+dZ.length,g=this._parseTemplateBindings(o,e,t,u,i);for(let C of g){let M=Cm(t,C.sourceSpan),x=C.key.source,b=Cm(t,C.key.span);if(C instanceof n0){let P=C.value?C.value.source:"$implicit",k=C.value?Cm(t,C.value.span):void 0;d.push(new SP(x,P,M,b,k))}else if(C.value){let P=p?M:t,k=Cm(t,C.value.ast.sourceSpan);this._parsePropertyAst(x,C.value,!1,P,b,k,a,s)}else a.push([x,""]),this.parseLiteralAttr(x,null,b,i,void 0,a,s,b)}}_parseTemplateBindings(o,e,t,i,a){try{let s=this._exprParser.parseTemplateBindings(o,e,t,i,a);return s.errors.forEach(d=>this.errors.push(d)),s.warnings.forEach(d=>{this._reportError(d,t,Sm.WARNING)}),s.templateBindings}catch(s){return this._reportError(`${s}`,t),[]}}parseLiteralAttr(o,e,t,i,a,s,d,p){oP(o)?(o=o.substring(1),p!==void 0&&(p=Cm(p,new qs(p.start.offset+1,p.end.offset))),e&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',t,Sm.ERROR),this._parseLegacyAnimation(o,e,t,i,p,a,s,d)):d.push(new Sg(o,this._exprParser.wrapLiteralPrimitive(e,"",i),Ac.LITERAL_ATTR,t,p,a))}parsePropertyBinding(o,e,t,i,a,s,d,p,u,g){o.length===0&&this._reportError("Property name is missing in binding",a);let C=!1;o.startsWith(iP)?(C=!0,o=o.substring(iP.length),g!==void 0&&(g=Cm(g,new qs(g.start.offset+iP.length,g.end.offset)))):oP(o)&&(C=!0,o=o.substring(1),g!==void 0&&(g=Cm(g,new qs(g.start.offset+1,g.end.offset)))),C?this._parseLegacyAnimation(o,e,a,s,g,d,p,u):o.startsWith(`${nP}${fb}`)?this._parseAnimation(o,this.parseBinding(e,t,d||a,s),a,g,d,p,u):this._parsePropertyAst(o,this.parseBinding(e,t,d||a,s),i,a,g,d,p,u)}parsePropertyInterpolation(o,e,t,i,a,s,d,p){let u=this.parseInterpolation(e,i||t,p);return u?(this._parsePropertyAst(o,u,!1,t,d,i,a,s),!0):!1}_parsePropertyAst(o,e,t,i,a,s,d,p){d.push([o,e.source]),p.push(new Sg(o,e,t?Ac.TWO_WAY:Ac.DEFAULT,i,a,s))}_parseAnimation(o,e,t,i,a,s,d){s.push([o,e.source]),d.push(new Sg(o,e,Ac.ANIMATION,t,i,a))}_parseLegacyAnimation(o,e,t,i,a,s,d,p){o.length===0&&this._reportError("Animation trigger is missing",t);let u=this.parseBinding(e||"undefined",!1,s||t,i);d.push([o,u.source]),p.push(new Sg(o,u,Ac.LEGACY_ANIMATION,t,a,s))}parseBinding(o,e,t,i){try{let a=e?this._exprParser.parseSimpleBinding(o,t,i):this._exprParser.parseBinding(o,t,i);return a&&this.errors.push(...a.errors),a}catch(a){return this._reportError(`${a}`,t),this._exprParser.wrapLiteralPrimitive("ERROR",t,i)}}createBoundElementProperty(o,e,t=!1,i=!0){if(e.isLegacyAnimation)return new Qb(e.name,Fi.LegacyAnimation,gi.NONE,e.expression,null,e.sourceSpan,e.keySpan,e.valueSpan);let a=null,s,d=null,p=e.name.split(fb),u;if(p.length>1)if(p[0]==sZ){d=p.slice(1).join(fb),t||this._validatePropertyOrAttributeName(d,e.sourceSpan,!0),u=Mb(this._schemaRegistry,o,d,!0);let g=d.indexOf(":");if(g>-1){let C=d.substring(0,g),M=d.substring(g+1);d=wb(C,M)}s=Fi.Attribute}else p[0]==lZ?(d=p[1],s=Fi.Class,u=[gi.NONE]):p[0]==cZ?(a=p.length>2?p[2]:null,d=p[1],s=Fi.Style,u=[gi.STYLE]):p[0]==nP&&(d=e.name,s=Fi.Animation,u=[gi.NONE]);if(d===null){let g=this._schemaRegistry.getMappedPropName(e.name);d=i?g:e.name,u=Mb(this._schemaRegistry,o,g,!1),s=e.type===Ac.TWO_WAY?Fi.TwoWay:Fi.Property,t||this._validatePropertyOrAttributeName(g,e.sourceSpan,!1)}return new Qb(d,s,u[0],e.expression,a,e.sourceSpan,e.keySpan,e.valueSpan)}parseEvent(o,e,t,i,a,s,d,p){o.length===0&&this._reportError("Event name is missing in binding",i),oP(o)?(o=o.slice(1),p!==void 0&&(p=Cm(p,new qs(p.start.offset+1,p.end.offset))),this._parseLegacyAnimationEvent(o,e,i,a,d,p)):this._parseRegularEvent(o,e,t,i,a,s,d,p)}calcPossibleSecurityContexts(o,e,t){let i=this._schemaRegistry.getMappedPropName(e);return Mb(this._schemaRegistry,o,i,t)}parseEventListenerName(o){let[e,t]=CU(o,[null,o]);return{eventName:t,target:e}}parseLegacyAnimationEventName(o){let e=bU(o,[o,null]);return{eventName:e[0],phase:e[1]===null?null:e[1].toLowerCase()}}_parseLegacyAnimationEvent(o,e,t,i,a,s){let{eventName:d,phase:p}=this.parseLegacyAnimationEventName(o),u=this._parseAction(e,i);a.push(new qb(d,p,is.LegacyAnimation,u,t,i,s)),d.length===0&&this._reportError("Animation event name is missing in binding",t),p?p!=="start"&&p!=="done"&&this._reportError(`The provided animation output phase value "${p}" for "@${d}" is not supported (use start or done)`,t):this._reportError(`The animation trigger output event (@${d}) is missing its phase value name (start or done are currently supported)`,t)}_parseRegularEvent(o,e,t,i,a,s,d,p){let{eventName:u,target:g}=this.parseEventListenerName(o),C=this.errors.length,M=this._parseAction(e,a),x=this.errors.length===C;s.push([o,M.source]),t&&x&&!this._isAllowedAssignmentEvent(M)&&this._reportError("Unsupported expression in a two-way binding",i);let b=is.Regular;t&&(b=is.TwoWay),o.startsWith(`${nP}${fb}`)&&(b=is.Animation),d.push(new qb(u,g,b,M,i,a,p))}_parseAction(o,e){let t=e&&e.start?e.start.offset:0;try{let i=this._exprParser.parseAction(o,e,t);return i&&this.errors.push(...i.errors),!i||i.ast instanceof Ar?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",e,t)):i}catch(i){return this._reportError(`${i}`,e),this._exprParser.wrapLiteralPrimitive("ERROR",e,t)}}_reportError(o,e,t=Sm.ERROR){this.errors.push(new dn(e,o,t))}_validatePropertyOrAttributeName(o,e,t){let i=t?this._schemaRegistry.validateAttribute(o):this._schemaRegistry.validateProperty(o);i.error&&this._reportError(i.msg,e,Sm.ERROR)}_isAllowedAssignmentEvent(o){return o instanceof xs?this._isAllowedAssignmentEvent(o.ast):o instanceof Zf?this._isAllowedAssignmentEvent(o.expression):o instanceof Vg&&o.args.length===1&&o.receiver instanceof zc&&o.receiver.name==="$any"&&o.receiver.receiver instanceof Hc?this._isAllowedAssignmentEvent(o.args[0]):(o instanceof zc||o instanceof cu)&&!w3(o)}};function w3(n){return n instanceof Gf||n instanceof qf?!0:n instanceof t0?w3(n.expression):n instanceof zc||n instanceof cu||n instanceof Vg?w3(n.receiver):!1}function oP(n){return n[0]=="@"}function Mb(n,o,e,t){let i,[a,s]=o?hr(o,!1):[null,o],d=u=>{let[g,C]=hr(u,!1),M=g??a,x=M?`:${M}:${C}`:C;return n.securityContext(x,e,t)},p=n.allKnownElementNames();return s===null?i=p.map(d):(i=[],Ag.parse(s).forEach(u=>{let g=u.element?[u.element]:p;if(u.element&&!n.hasElement(u.element,[])){let x=`:${Bx}:${u.element}`,b=`:${jx}:${u.element}`;n.hasElement(x,[])?g=[x]:n.hasElement(b,[])&&(g=[b])}let C=new Set(u.notSelectors.filter(x=>x.isElementSelector()).map(x=>x.element?.toLowerCase())),M=g.filter(x=>{let b=x.toLowerCase();return!C.has(b)&&!C.has(hr(b)[1])});i.push(...M.map(d))})),i.length===0?[gi.NONE]:Array.from(new Set(i)).sort()}function Cm(n,o){let e=o.start-n.start.offset,t=o.end-n.end.offset;return new In(n.start.moveBy(e),n.end.moveBy(t),n.fullStart.moveBy(e),n.details)}var Nd=new Yg,nu="ng-template",mZ="animate.";function Sb(n){return n instanceof os}function pZ(n){return Sb(n)&&n.nodes.length===1&&n.nodes[0]instanceof tx}function uZ(n,o,e,t,i,a,s,d,p,u){let g=new S0(n,e,t,i,a,s,d,p,u);return zd(g.root,o),g}function gZ(n,o,e){let t=new fx(n.componentName,e,vs.DomOnly);for(let i of n.properties??[]){let a=Qt.Property;i.name.startsWith("attr.")&&(i.name=i.name.substring(5),a=Qt.Attribute),i.isLegacyAnimation&&(a=Qt.LegacyAnimation),i.isAnimation&&(a=Qt.Animation);let s=aN(o,n.componentSelector,i.name,a===Qt.Attribute);hZ(t,i,a,s)}for(let[i,a]of Object.entries(n.attributes)??[]){let s=aN(o,n.componentSelector,i,!0);_Z(t,i,a,s)}for(let i of n.events??[])fZ(t,i);return t}function aN(n,o,e,t){let i=n.calcPossibleSecurityContexts(o,e,t),a=Mb(Nd,null,Nd.getMappedPropName(e),t),s=a.filter(u=>u!==gi.NONE),d=s.length;return d!==a.length&&d>0||s.some(u=>!i.includes(u))?a:i.filter(u=>u!==gi.NONE)}function hZ(n,o,e,t){let i,a=o.expression.ast;a instanceof F0?i=new aa(a.strings,a.expressions.map(s=>Yn(s,n,o.sourceSpan)),[]):i=Yn(a,n,o.sourceSpan),n.root.update.push(uu(n.root.xref,e,o.name,i,null,t,!1,!1,null,null,o.sourceSpan))}function _Z(n,o,e,t){let i=uu(n.root.xref,Qt.Attribute,o,e,null,t,!0,!1,null,null,e.sourceSpan);n.root.update.push(i)}function fZ(n,o){let e;if(o.type===is.Animation)e=dF(n.root.xref,new vr,o.name,null,O0(n.root,o.handler,o.handlerSpan),o.name.endsWith("enter")?"enter":"leave",o.targetOrPhase,!0,o.sourceSpan);else{let[t,i]=o.type!==is.LegacyAnimation?[null,o.targetOrPhase]:[o.targetOrPhase,null];e=iT(n.root.xref,new vr,o.name,null,O0(n.root,o.handler,o.handlerSpan),t,i,!0,o.sourceSpan)}n.root.create.push(e)}function zd(n,o){for(let e of o)if(e instanceof Uc)vZ(n,e);else if(e instanceof Qs)CZ(n,e);else if(e instanceof Ug)bZ(n,e);else if(e instanceof Qp)zF(n,e,null);else if(e instanceof jg)LF(n,e,null);else if(e instanceof Jb)xZ(n,e);else if(e instanceof Zb)yZ(n,e);else if(e instanceof mu)wZ(n,e);else if(e instanceof FN)SZ(n,e);else if(e instanceof Hg)kZ(n,e);else if(e instanceof q3)TZ(n,e);else if(!(e instanceof Ef))throw new Error(`Unsupported template node: ${e.constructor.name}`)}function vZ(n,o){if(o.i18n!==void 0&&!(o.i18n instanceof os||o.i18n instanceof Dm))throw Error(`Unhandled i18n metadata type for element: ${o.i18n.constructor.name}`);let e=n.job.allocateXrefId(),[t,i]=hr(o.name),a=mG(i,e,_F(t),o.i18n instanceof Dm?o.i18n:void 0,o.startSourceSpan,o.sourceSpan);n.create.push(a),OZ(n,a,o),jF(a,o);let s=null;o.i18n instanceof os&&(s=n.job.allocateXrefId(),n.create.push(Lx(s,o.i18n,void 0,o.startSourceSpan))),zd(n,o.children);let d=uG(e,o.endSourceSpan??o.startSourceSpan);n.create.push(d),s!==null&&Je.insertBefore(Vx(s,o.endSourceSpan??o.startSourceSpan),d)}function CZ(n,o){if(o.i18n!==void 0&&!(o.i18n instanceof os||o.i18n instanceof Dm))throw Error(`Unhandled i18n metadata type for template: ${o.i18n.constructor.name}`);let e=n.job.allocateView(n.xref),t=o.tagName,i="";o.tagName&&([i,t]=hr(o.tagName));let a=o.i18n instanceof Dm?o.i18n:void 0,s=_F(i),d=t===null?"":qG(t,s),p=EZ(o)?ys.NgTemplate:ys.Structural,u=rF(e.xref,p,t,d,s,a,o.startSourceSpan,o.sourceSpan);n.create.push(u),DZ(n,u,o,p),jF(u,o),zd(e,o.children);for(let{name:g,value:C}of o.variables)e.contextVariables.set(g,C!==""?C:"$implicit");if(p===ys.NgTemplate&&o.i18n instanceof os){let g=n.job.allocateXrefId();Je.insertAfter(Lx(g,o.i18n,void 0,o.startSourceSpan),e.create.head),Je.insertBefore(Vx(g,o.endSourceSpan??o.startSourceSpan),e.create.tail)}}function bZ(n,o){if(o.i18n!==void 0&&!(o.i18n instanceof Dm))throw Error(`Unhandled i18n metadata type for element: ${o.i18n.constructor.name}`);let e=null;o.children.some(a=>!(a instanceof Rx)&&(!(a instanceof Qp)||a.value.trim().length>0))&&(e=n.job.allocateView(n.xref),zd(e,o.children));let t=n.job.allocateXrefId(),i=xG(t,o.selector,o.i18n,e?.xref??null,o.sourceSpan);for(let a of o.attributes){let s=Nd.securityContext(o.name,a.name,!0);n.update.push(uu(i.xref,Qt.Attribute,a.name,De(a.value),null,s,!0,!1,null,Dd(a.i18n),a.sourceSpan))}n.create.push(i)}function zF(n,o,e){n.create.push(cF(n.job.allocateXrefId(),o.value,e,o.sourceSpan))}function LF(n,o,e){let t=o.value;if(t instanceof xs&&(t=t.ast),!(t instanceof F0))throw new Error(`AssertionError: expected Interpolation for BoundText node, got ${t.constructor.name}`);if(o.i18n!==void 0&&!(o.i18n instanceof Id))throw Error(`Unhandled i18n metadata type for text interpolation: ${o.i18n?.constructor.name}`);let i=o.i18n instanceof Id?o.i18n.children.filter(s=>s instanceof m0).map(s=>s.name):[];if(i.length>0&&i.length!==t.expressions.length)throw Error(`Unexpected number of i18n placeholders (${t.expressions.length}) for BoundText with ${t.expressions.length} expressions`);let a=n.job.allocateXrefId();n.create.push(cF(a,"",e,o.sourceSpan)),n.update.push(YW(a,new aa(t.strings,t.expressions.map(s=>Yn(s,n.job,null)),i),o.sourceSpan))}function xZ(n,o){let e=null,t=[];for(let i=0;iM.modifier==="none")||g.some(M=>M.modifier==="none")||u.push(xm(d,{kind:lo.Idle},"none",null)),n.create.push(u),n.update.push(g)}function MZ(n){return Object.keys(n.hydrateTriggers).length>0?1:null}function aP(n,o,e,t,i,a){if(o.idle!==void 0){let s=xm(a,{kind:lo.Idle},n,o.idle.sourceSpan);e.push(s)}if(o.immediate!==void 0){let s=xm(a,{kind:lo.Immediate},n,o.immediate.sourceSpan);e.push(s)}if(o.timer!==void 0){let s=xm(a,{kind:lo.Timer,delay:o.timer.delay},n,o.timer.sourceSpan);e.push(s)}if(o.hover!==void 0){let s=xm(a,{kind:lo.Hover,targetName:o.hover.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},n,o.hover.sourceSpan);e.push(s)}if(o.interaction!==void 0){let s=xm(a,{kind:lo.Interaction,targetName:o.interaction.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null},n,o.interaction.sourceSpan);e.push(s)}if(o.viewport!==void 0){let s=xm(a,{kind:lo.Viewport,targetName:o.viewport.reference,targetXref:null,targetSlot:null,targetView:null,targetSlotViewSteps:null,options:o.viewport.options?Yn(o.viewport.options,i.job,o.viewport.sourceSpan):null},n,o.viewport.sourceSpan);e.push(s)}if(o.never!==void 0){let s=xm(a,{kind:lo.Never},n,o.never.sourceSpan);e.push(s)}if(o.when!==void 0){if(o.when.value instanceof F0)throw new Error("Unexpected interpolation in defer block when trigger");let s=rG(a,Yn(o.when.value,i.job,o.when.sourceSpan),n,o.when.sourceSpan);t.push(s)}}function SZ(n,o){if(o.i18n instanceof os&&pZ(o.i18n)){let e=n.job.allocateXrefId();n.create.push(SG(e,o.i18n,LN(o.i18n).name,null));for(let[t,i]of Object.entries(q(q({},o.vars),o.placeholders)))i instanceof jg?LF(n,i,t):zF(n,i,t);n.create.push(kG(e))}else throw Error(`Unhandled i18n metadata type for ICU: ${o.i18n?.constructor.name}`)}function kZ(n,o){let e=n.job.allocateView(n.xref),t=`\u0275$index_${e.xref}`,i=`\u0275$count_${e.xref}`,a=new Set;e.contextVariables.set(o.item.name,o.item.value);for(let S of o.contextVariables)S.value==="$index"&&a.add(S.name),S.name==="$index"?e.contextVariables.set("$index",S.value).set(t,S.value):S.name==="$count"?e.contextVariables.set("$count",S.value).set(i,S.value):e.aliases.add({kind:ar.Alias,name:null,identifier:S.name,expression:PZ(S,t,i)});let s=Ha(o.trackBy.span,o.sourceSpan),d=Yn(o.trackBy,n.job,s);zd(e,o.children);let p=null,u=null;o.empty!==null&&(p=n.job.allocateView(n.xref),zd(p,o.empty.children),u=Tx(n,p.xref,o.empty));let g={$index:a,$implicit:o.item.name};if(o.i18n!==void 0&&!(o.i18n instanceof Im))throw Error("AssertionError: Unhandled i18n metadata type or @for");if(o.empty?.i18n!==void 0&&!(o.empty.i18n instanceof Im))throw Error("AssertionError: Unhandled i18n metadata type or @empty");let C=o.i18n,M=o.empty?.i18n,x=Tx(n,e.xref,o),b=pG(e.xref,p?.xref??null,x,d,g,u,C,M,o.startSourceSpan,o.sourceSpan);n.create.push(b);let P=Yn(o.expression,n.job,Ha(o.expression.span,o.sourceSpan)),k=aG(b.xref,b.handle,P,o.sourceSpan);n.update.push(k)}function PZ(n,o,e){switch(n.value){case"$index":return new ir(o);case"$count":return new ir(e);case"$first":return new ir(o).identical(De(0));case"$last":return new ir(o).identical(new ir(e).minus(De(1)));case"$even":return new ir(o).modulo(De(2)).identical(De(0));case"$odd":return new ir(o).modulo(De(2)).notIdentical(De(0));default:throw new Error(`AssertionError: unknown @for loop variable ${n.value}`)}}function TZ(n,o){let e=n.job.allocateXrefId();n.create.push(wG(e,o.name,o.sourceSpan)),n.update.push(lG(e,o.name,Yn(o.value,n.job,o.valueSpan),o.sourceSpan))}function Yn(n,o,e){if(n instanceof xs)return Yn(n.ast,o,e);if(n instanceof zc)return n.receiver instanceof Hc?new ir(n.name):new Xs(Yn(n.receiver,o,e),n.name,null,Ha(n.span,e));if(n instanceof Vg){if(n.receiver instanceof Hc)throw new Error("Unexpected ImplicitReceiver");return new Ms(Yn(n.receiver,o,e),n.args.map(t=>Yn(t,o,e)),void 0,Ha(n.span,e))}else{if(n instanceof Cs)return De(n.value,void 0,Ha(n.span,e));if(n instanceof Dg)switch(n.operator){case"+":return new au(zf.Plus,Yn(n.expr,o,e),void 0,Ha(n.span,e));case"-":return new au(zf.Minus,Yn(n.expr,o,e),void 0,Ha(n.span,e));default:throw new Error(`AssertionError: unknown unary operator ${n.operator}`)}else if(n instanceof Zr){let t=WG.get(n.operation);if(t===void 0)throw new Error(`AssertionError: unknown binary operator ${n.operation}`);return new Pi(t,Yn(n.left,o,e),Yn(n.right,o,e),void 0,Ha(n.span,e))}else{if(n instanceof Wf)return new Fm(o.root.xref);if(n instanceof cu)return new Fd(Yn(n.receiver,o,e),Yn(n.key,o,e),void 0,Ha(n.span,e));if(n instanceof Lg)throw new Error("AssertionError: Chain in unknown context");if(n instanceof du){let t=n.keys.map((i,a)=>{let s=Yn(n.values[a],o,e);return i.kind==="spread"?new Tm(s):new Rg(i.key,s,i.quoted)});return new rc(t,void 0,Ha(n.span,e))}else{if(n instanceof Qf)return new $c(n.expressions.map(t=>Yn(t,o,e)));if(n instanceof Bb)return new jc(Yn(n.condition,o,e),Yn(n.trueExp,o,e),Yn(n.falseExp,o,e),void 0,Ha(n.span,e));if(n instanceof Zf)return Yn(n.expression,o,e);if(n instanceof jb)return new hu(o.allocateXrefId(),new vr,n.name,[Yn(n.exp,o,e),...n.args.map(t=>Yn(t,o,e))]);if(n instanceof qf)return new Qg(Yn(n.receiver,o,e),Yn(n.key,o,e),Ha(n.span,e));if(n instanceof Gf)return new qg(Yn(n.receiver,o,e),n.name);if(n instanceof Hb)return new _u(Yn(n.receiver,o,e),n.args.map(t=>Yn(t,o,e)));if(n instanceof Ar)return new w0(Ha(n.span,e));if(n instanceof Kf)return dU(Yn(n.expression,o,e),Ha(n.span,e));if(n instanceof Xf)return N0(Yn(n.expression,o,e));if(n instanceof Yf)return new Db(Yn(n.expression,o,e),void 0,Ha(n.span,e));if(n instanceof e0)return rN(n,o,e);if(n instanceof Jf)return new Lf(Yn(n.tag,o,e),rN(n.template,o,e),void 0,Ha(n.span,e));if(n instanceof t0)return new ac(Yn(n.expression,o,e),void 0,Ha(n.span,e));if(n instanceof Gb)return new Fg(n.body,n.flags,e);if(n instanceof $b)return new ru(Yn(n.expression,o,e));if(n instanceof Wb)return AZ(Ys(n.parameters.map(t=>new Da(t.name,ws)),Yn(n.body,o,e)));throw new Error(`Unhandled expression type "${n.constructor.name}" in file "${e?.start.file.url}"`)}}}}function rN(n,o,e){return new Bf(n.elements.map(t=>new Ib(t.text,Ha(t.span,e))),n.expressions.map(t=>Yn(t,o,e)),Ha(n.span,e))}function M3(n,o,e,t){let i;return o instanceof F0?i=new aa(o.strings,o.expressions.map(a=>Yn(a,n,null)),Object.keys(Dd(e)?.placeholders??{})):o instanceof co?i=Yn(o,n,null):i=De(o),i}var VF=new Map([[Fi.Property,Qt.Property],[Fi.TwoWay,Qt.TwoWayProperty],[Fi.Attribute,Qt.Attribute],[Fi.Class,Qt.ClassName],[Fi.Style,Qt.StyleProperty],[Fi.LegacyAnimation,Qt.LegacyAnimation],[Fi.Animation,Qt.Animation]]);function EZ(n){return hr(n.tagName??"")[1]===nu}function Dd(n){if(n==null)return null;if(!(n instanceof os))throw Error(`Expected i18n meta to be a Message, but got: ${n.constructor.name}`);return n}function OZ(n,o,e){let t=new Array,i=new Set;for(let a of e.attributes){let[s,d]=hr(e.name),p=s;if(!s)switch(o.namespace){case Oa.SVG:p=Bx;break;case Oa.Math:p=jx;break}let u=Nd.securityContext(p?`:${p}:${d}`:d,a.name,!0);t.push(uu(o.xref,Qt.Attribute,a.name,M3(n.job,a.value,a.i18n),null,u,!0,!1,null,Dd(a.i18n),a.sourceSpan)),a.i18n&&i.add(a.name)}for(let a of e.inputs)i.has(a.name)&&console.error(`On component ${n.job.componentName}, the binding ${a.name} is both an i18n attribute and a property. You may want to remove the property binding. This will become a compilation error in future versions of Angular.`),t.push(uu(o.xref,VF.get(a.type),a.name,M3(n.job,D0(a.value),a.i18n),a.unit,a.securityContext,!1,!1,null,Dd(a.i18n)??null,a.sourceSpan));n.create.push(t.filter(a=>a?.kind===j.ExtractedAttribute)),n.update.push(t.filter(a=>a?.kind===j.Binding));for(let a of e.outputs){if(a.type===is.LegacyAnimation&&a.phase===null)throw Error("Animation listener should have a phase");a.type===is.TwoWay?n.create.push(mF(o.xref,o.handle,a.name,o.tag,BF(n,a.handler,a.handlerSpan),a.sourceSpan)):a.type===is.Animation?n.create.push(dF(o.xref,o.handle,a.name,o.tag,O0(n,a.handler,a.handlerSpan),a.name.endsWith("enter")?"enter":"leave",a.target,!1,a.sourceSpan)):n.create.push(iT(o.xref,o.handle,a.name,o.tag,O0(n,a.handler,a.handlerSpan),a.phase,a.target,!1,a.sourceSpan))}t.some(a=>a?.i18nMessage)!==null&&n.create.push(pF(n.job.allocateXrefId(),new vr,o.xref))}function DZ(n,o,e,t){let i=new Array;for(let a of e.templateAttrs)if(a instanceof $g){let s=Nd.securityContext(nu,a.name,!0);i.push(Cb(n,o.xref,Fi.Attribute,a.name,a.value,null,s,!0,t,Dd(a.i18n),a.sourceSpan))}else i.push(Cb(n,o.xref,a.type,a.name,D0(a.value),a.unit,a.securityContext,!0,t,Dd(a.i18n),a.sourceSpan));for(let a of e.attributes){let s=Nd.securityContext(nu,a.name,!0);i.push(Cb(n,o.xref,Fi.Attribute,a.name,a.value,null,s,!1,t,Dd(a.i18n),a.sourceSpan))}for(let a of e.inputs)i.push(Cb(n,o.xref,a.type,a.name,D0(a.value),a.unit,a.securityContext,!1,t,Dd(a.i18n),a.sourceSpan));n.create.push(i.filter(a=>a?.kind===j.ExtractedAttribute)),n.update.push(i.filter(a=>a?.kind===j.Binding));for(let a of e.outputs){if(a.type===is.LegacyAnimation&&a.phase===null)throw Error("Animation listener should have a phase");if(t===ys.NgTemplate&&(a.type===is.TwoWay?n.create.push(mF(o.xref,o.handle,a.name,o.tag,BF(n,a.handler,a.handlerSpan),a.sourceSpan)):n.create.push(iT(o.xref,o.handle,a.name,o.tag,O0(n,a.handler,a.handlerSpan),a.phase,a.target,!1,a.sourceSpan))),t===ys.Structural&&a.type!==is.LegacyAnimation){let s=Nd.securityContext(nu,a.name,!1);n.create.push(Cl(o.xref,Qt.Property,null,a.name,null,null,null,s))}}i.some(a=>a?.i18nMessage)!==null&&n.create.push(pF(n.job.allocateXrefId(),new vr,o.xref))}function Cb(n,o,e,t,i,a,s,d,p,u,g){let C=typeof i=="string";if(p===ys.Structural){if(!d)switch(e){case Fi.Property:case Fi.Class:case Fi.Style:return Cl(o,Qt.Property,null,t,null,null,u,s);case Fi.TwoWay:return Cl(o,Qt.TwoWayProperty,null,t,null,null,u,s)}if(!C&&(e===Fi.Attribute||e===Fi.LegacyAnimation||e===Fi.Animation))return null}let M=VF.get(e);return p===ys.NgTemplate&&(e===Fi.Class||e===Fi.Style||e===Fi.Attribute&&!C)&&(M=Qt.Property),uu(o,M,t,M3(n.job,i,u),a,s,C,d,p,u,g)}function O0(n,o,e){o=D0(o);let t=new Array,i=o instanceof Lg?o.expressions:[o];if(i.length===0)throw new Error("Expected listener to have non-empty expression list.");let a=i.map(d=>Yn(d,n.job,e)),s=a.pop();return t.push(...a.map(d=>Js(new fr(d,d.sourceSpan)))),t.push(Js(new Ia(s,s.sourceSpan))),t}function BF(n,o,e){o=D0(o);let t=new Array;if(o instanceof Lg)if(o.expressions.length===1)o=o.expressions[0];else throw new Error("Expected two-way listener to have a single expression.");let i=Yn(o,n.job,e),a=new ir("$event"),s=new mx(i,a);return t.push(Js(new fr(s))),t.push(Js(new Ia(a))),t}function D0(n){return n instanceof xs?n.ast:n}function jF(n,o){IZ(n.localRefs);for(let{name:e,value:t}of o.references)n.localRefs.push({name:e,target:t})}function IZ(n){if(!Array.isArray(n))throw new Error("AssertionError: expected an array")}function Ha(n,o){if(o===null)return null;let e=o.start.moveBy(n.start),t=o.start.moveBy(n.end),i=o.fullStart.moveBy(n.start);return new In(e,t,i)}function Tx(n,o,e){let t=null;for(let i of e.children)if(!(i instanceof Rx||i instanceof q3)){if(t!==null)return null;if(i instanceof Uc||i instanceof Qs&&i.tagName!==null)t=i;else return null}if(t!==null){for(let a of t.attributes)if(!a.name.startsWith(mZ)){let s=Nd.securityContext(nu,a.name,!0);n.update.push(uu(o,Qt.Attribute,a.name,De(a.value),null,s,!0,!1,null,Dd(a.i18n),a.sourceSpan))}for(let a of t.inputs)if(a.type!==Fi.LegacyAnimation&&a.type!==Fi.Animation&&a.type!==Fi.Attribute){let s=Nd.securityContext(nu,a.name,!0);n.create.push(Cl(o,Qt.Property,null,a.name,null,null,null,s))}let i=t instanceof Uc?t.name:t.tagName;return i===nu?null:i}return null}function AZ(n){let o=new Set(n.params.map(e=>e.name));return Bt(n,e=>{if(e instanceof vu)for(let t of e.params)o.add(t.name);else if(e instanceof ir&&o.has(e.name))return di(e.name);return e},ai.None)}var NZ=!1;function FZ(){return NZ}function Ex(n,o){return Nx(di(Jg).bitwiseAnd(De(n),null),o)}function RZ(n){return(n.descendants?1:0)|(n.static?2:0)|(n.emitDistinctChangesOnly?4:0)}function zZ(n,o){if(Array.isArray(n.predicate)){let e=[];return n.predicate.forEach(t=>{let i=t.split(",").map(a=>De(a.trim()));e.push(...i)}),o.getConstLiteral(io(e),!0)}else switch(n.predicate.forwardRef){case 0:case 2:return n.predicate.expression;case 1:return Ht(ge.resolveForwardRef).callFn([n.predicate.expression])}}function $F(n,o,e){let t=[];return e!==void 0&&t.push(...e),n.isSignal&&t.push(new Xs(di(Zs),n.propertyName)),t.push(zZ(n,o),De(RZ(n))),n.read&&t.push(n.read),t}var sT=Symbol("queryAdvancePlaceholder");function HF(n){let o=[],e=0,t=()=>{e>0&&(o.unshift(Ht(ge.queryAdvance).callFn(e===1?[]:[De(e)]).toStmt()),e=0)};for(let i=n.length-1;i>=0;i--){let a=n[i];a===sT?e++:(t(),o.unshift(a))}return t(),o}function LZ(n,o,e){let t=[],i=[],a=VN(u=>i.push(u),K3),s=null,d=null;n.forEach(u=>{let g=$F(u,o);if(u.isSignal?(s??=Ht(ge.viewQuerySignal),s=s.callFn(g)):(d??=Ht(ge.viewQuery),d=d.callFn(g)),u.isSignal){i.push(sT);return}let C=a(),M=Ht(ge.loadQuery).callFn([]),x=Ht(ge.queryRefresh).callFn([C.set(M)]),b=di(Zs).prop(u.propertyName).set(u.first?C.prop("first"):C);i.push(x.and(b).toStmt())}),s!==null&&t.push(new fr(s)),d!==null&&t.push(new fr(d));let p=e?`${e}_Query`:null;return Em([new Da(Jg,iu),new Da(Zs,ws)],[Ex(1,t),Ex(2,HF(i))],ic,null,p)}function VZ(n,o,e){let t=[],i=[],a=VN(u=>i.push(u),K3),s=null,d=null;for(let u of n){let g=$F(u,o,[di("dirIndex")]);if(u.isSignal?(s??=Ht(ge.contentQuerySignal),s=s.callFn(g)):(d??=Ht(ge.contentQuery),d=d.callFn(g)),u.isSignal){i.push(sT);continue}let C=a(),M=Ht(ge.loadQuery).callFn([]),x=Ht(ge.queryRefresh).callFn([C.set(M)]),b=di(Zs).prop(u.propertyName).set(u.first?C.prop("first"):C);i.push(x.and(b).toStmt())}s!==null&&t.push(new fr(s)),d!==null&&t.push(new fr(d));let p=e?`${e}_ContentQueries`:null;return Em([new Da(Jg,iu),new Da(Zs,ws),new Da("dirIndex",iu)],[Ex(1,t),Ex(2,HF(i))],ic,null,p)}var S3=class extends Qq{constructor(){super(h3)}parse(o,e,t){return super.parse(o,e,t)}};function BZ(n){if(n==null||n.length===0||n[0]=="/")return!1;let o=n.match(jZ);return o===null||o[1]=="package"||o[1]=="asset"}var jZ=/^([^:/?#]+):/,$Z="select",HZ="link",UZ="rel",WZ="href",GZ="stylesheet",qZ="style",QZ=new Set([":svg:script","script"]),KZ="ngNonBindable",XZ="ngProjectAs";function UF(n){let o=null,e=null,t=null,i=!1,a="";for(let p of n.attrs){let u=p.name.toLowerCase();u==$Z?o=p.value:u==WZ?e=p.value:u==UZ?t=p.value:p.name==KZ?i=!0:p.name==XZ&&p.value.length>0&&(a=p.value)}o||="*";let s=n.name.toLowerCase(),d=Gs.OTHER;return kP(s)?d=Gs.NG_CONTENT:qZ===s?d=Gs.STYLE:QZ.has(s)?d=Gs.SCRIPT:s==HZ&&t==GZ&&(d=Gs.STYLESHEET),new k3(d,o,e,i,a)}var Gs=(function(n){return n[n.NG_CONTENT=0]="NG_CONTENT",n[n.STYLE=1]="STYLE",n[n.STYLESHEET=2]="STYLESHEET",n[n.SCRIPT=3]="SCRIPT",n[n.OTHER=4]="OTHER",n})(Gs||{}),k3=class{type;selectAttr;hrefAttr;nonBindable;projectAs;constructor(o,e,t,i,a){this.type=o,this.selectAttr=e,this.hrefAttr=t,this.nonBindable=i,this.projectAs=a}},YZ=/^\s*([0-9A-Za-z_$]*)\s+of\s+([\S\s]*)/,ZZ=/^track\s+([\S\s]*)/,JZ=/^(as\s+)(.*)/,Hx=/^else[^\S\r\n]+if/,eJ=/^let\s+([\S\s]*)/,tJ=/^[$A-Z_][0-9A-Z_$]*$/i,sN=/(\s*)(\S+)(\s*)/,Rf=new Set(["$index","$first","$last","$even","$odd","$count"]);function lN(n){return n==="empty"}function cN(n){return n==="else"||Hx.test(n)}function nJ(n,o,e,t){let i=lJ(o),a=[],s=dN(n,i,t);s!==null&&a.push(new Yp(s.expression,ko(e,n.children,n.children),s.expressionAlias,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.nameSpan,n.i18n));for(let C of o)if(Hx.test(C.name)){let M=dN(C,i,t);if(M!==null){let x=ko(e,C.children,C.children);a.push(new Yp(M.expression,x,M.expressionAlias,C.sourceSpan,C.startSourceSpan,C.endSourceSpan,C.nameSpan,C.i18n))}}else if(C.name==="else"){let M=ko(e,C.children,C.children);a.push(new Yp(null,M,null,C.sourceSpan,C.startSourceSpan,C.endSourceSpan,C.nameSpan,C.i18n))}let d=a.length>0?a[0].startSourceSpan:n.startSourceSpan,p=a.length>0?a[a.length-1].endSourceSpan:n.endSourceSpan,u=n.sourceSpan,g=a[a.length-1];return g!==void 0&&(u=new In(d.start,g.sourceSpan.end)),{node:new Jb(a,u,n.startSourceSpan,p,n.nameSpan),errors:i}}function iJ(n,o,e,t){let i=[],a=aJ(n,i,t),s=null,d=null;for(let p of o)p.name==="empty"?d!==null?i.push(new dn(p.sourceSpan,"@for loop can only have one @empty block")):p.parameters.length>0?i.push(new dn(p.sourceSpan,"@empty block cannot have parameters")):d=new l0(ko(e,p.children,p.children),p.sourceSpan,p.startSourceSpan,p.endSourceSpan,p.nameSpan,p.i18n):i.push(new dn(p.sourceSpan,`Unrecognized @for loop block "${p.name}"`));if(a!==null)if(a.trackBy===null)i.push(new dn(n.startSourceSpan,'@for loop must have a "track" expression'));else{let p=d?.endSourceSpan??n.endSourceSpan,u=new In(n.sourceSpan.start,p?.end??n.sourceSpan.end);rJ(a.trackBy.expression,a.trackBy.keywordSpan,i),s=new Hg(a.itemName,a.expression,a.trackBy.expression,a.trackBy.keywordSpan,a.context,ko(e,n.children,n.children),d,u,n.sourceSpan,n.startSourceSpan,p,n.nameSpan,n.i18n)}return{node:s,errors:i}}function oJ(n,o,e){let t=cJ(n),i=n.parameters.length>0?I0(n.parameters[0],e):e.parseBinding("",!1,n.sourceSpan,0),a=[],s=[],d=[],p=null,u=null;for(let C of n.children){if(!(C instanceof _l))continue;if((C.name!=="case"||C.parameters.length===0)&&C.name!=="default"&&C.name!=="default never"){s.push(new ex(C.name,C.sourceSpan,C.nameSpan));continue}u!==null&&t.push(new dn(C.sourceSpan,'@default block with "never" parameter must be the last case in a switch'));let M=C.name==="case",x=null;if(M)x=I0(C.parameters[0],e);else if(C.name==="default never"){(C.children.length>0||C.endSourceSpan!==null&&C.endSourceSpan.start.offset!==C.endSourceSpan.end.offset)&&t.push(new dn(C.sourceSpan,'@default block with "never" parameter cannot have a body')),d.length>0&&t.push(new dn(C.sourceSpan,'A @case block with no body cannot be followed by a @default block with "never" parameter')),u=new FP(C.sourceSpan,C.startSourceSpan,C.endSourceSpan,C.nameSpan);continue}let b=new NP(x,C.sourceSpan,C.startSourceSpan,C.endSourceSpan,C.nameSpan);if(d.push(b),C.children.length===0&&C.endSourceSpan!==null&&C.endSourceSpan.start.offset===C.endSourceSpan.end.offset){p===null&&(p=C.sourceSpan);continue}let k=C.sourceSpan,S=C.startSourceSpan;p!==null&&(k=new In(p.start,C.sourceSpan.end),S=new In(p.start,C.startSourceSpan.end),p=null);let O=new s0(d,ko(o,C.children,C.children),k,S,C.endSourceSpan,C.nameSpan,C.i18n);a.push(O),d=[]}return{node:new Zb(i,a,s,u,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.nameSpan),errors:t}}function aJ(n,o,e){if(n.parameters.length===0)return o.push(new dn(n.startSourceSpan,"@for loop does not have an expression")),null;let[t,...i]=n.parameters,a=dJ(t,o)?.match(YZ);if(!a||a[2].trim().length===0)return o.push(new dn(t.sourceSpan,'Cannot parse expression. @for loop expression must match the pattern " of "')),null;let[,s,d]=a;Rf.has(s)&&o.push(new dn(t.sourceSpan,`@for loop item name cannot be one of ${Array.from(Rf).join(", ")}.`));let p=t.expression.split(" ")[0],u=new In(t.sourceSpan.start,t.sourceSpan.start.moveBy(p.length)),g={itemName:new Om(s,"$implicit",u,u),trackBy:null,expression:I0(t,e,d),context:Array.from(Rf,C=>{let M=new In(n.startSourceSpan.end,n.startSourceSpan.end);return new Om(C,C,M,M)})};for(let C of i){let M=C.expression.match(eJ);if(M!==null){let b=new In(C.sourceSpan.start.moveBy(M[0].length-M[1].length),C.sourceSpan.end);sJ(C.sourceSpan,M[1],b,s,g.context,o);continue}let x=C.expression.match(ZZ);if(x!==null){if(g.trackBy!==null)o.push(new dn(C.sourceSpan,'@for loop can only have one "track" expression'));else{let b=I0(C,e,x[1]);b.ast instanceof Ar&&o.push(new dn(n.startSourceSpan,'@for loop must have a "track" expression'));let P=new In(C.sourceSpan.start,C.sourceSpan.start.moveBy(5));g.trackBy={expression:b,keywordSpan:P}}continue}o.push(new dn(C.sourceSpan,`Unrecognized @for loop parameter "${C.expression}"`))}return g}function rJ(n,o,e){let t=new P3;n.ast.visit(t),t.hasPipe&&e.push(new dn(o,"Cannot use pipes in track expressions"))}function sJ(n,o,e,t,i,a){let s=o.split(","),d=e.start;for(let p of s){let u=p.split("="),g=u.length===2?u[0].trim():"",C=u.length===2?u[1].trim():"";if(g.length===0||C.length===0)a.push(new dn(n,'Invalid @for loop "let" parameter. Parameter should match the pattern " = "'));else if(!Rf.has(C))a.push(new dn(n,`Unknown "let" parameter variable "${C}". The allowed variables are: ${Array.from(Rf).join(", ")}`));else if(g===t)a.push(new dn(n,`Invalid @for loop "let" parameter. Variable cannot be called "${t}"`));else if(i.some(M=>M.name===g))a.push(new dn(n,`Duplicate "let" parameter variable "${C}"`));else{let[,M,x]=u[0].match(sN)??[],b=M!==void 0&&u.length===2?new In(d.moveBy(M.length),d.moveBy(M.length+x.length)):e,P;if(u.length===2){let[,S,O]=u[1].match(sN)??[];P=S!==void 0?new In(d.moveBy(u[0].length+1+S.length),d.moveBy(u[0].length+1+S.length+O.length)):void 0}let k=new In(b.start,P?.end??b.end);i.push(new Om(g,C,k,b,P))}d=d.moveBy(p.length+1)}}function lJ(n){let o=[],e=!1;for(let t=0;t1&&t0&&o.push(new dn(i.startSourceSpan,"@else block cannot have parameters")),e=!0):Hx.test(i.name)||o.push(new dn(i.startSourceSpan,`Unrecognized conditional block @${i.name}`))}return o}function cJ(n){let o=[],e=!1;if(n.parameters.length!==1)return o.push(new dn(n.startSourceSpan,"@switch block must have exactly one parameter")),o;for(let t of n.children)if(!(t instanceof k0||t instanceof fu&&t.value.trim().length===0)){if(!(t instanceof _l)||t.name!=="case"&&t.name!=="default"&&t.name!=="default never"){o.push(new dn(t.sourceSpan,"@switch block can only contain @case and @default blocks"));continue}t.name==="default never"?(e&&o.push(new dn(t.startSourceSpan,"@switch block can only have one @default block")),e=!0):t.name==="default"?(e?o.push(new dn(t.startSourceSpan,"@switch block can only have one @default block")):t.parameters.length>0&&o.push(new dn(t.startSourceSpan,"@default block cannot have parameters")),e=!0):t.name==="case"&&t.parameters.length!==1&&o.push(new dn(t.startSourceSpan,"@case block must have exactly one parameter"))}return o}function I0(n,o,e){let t,i;return typeof e=="string"?(t=Math.max(0,n.expression.lastIndexOf(e)),i=t+e.length):(t=0,i=n.expression.length),o.parseBinding(n.expression.slice(t,i),!1,n.sourceSpan,n.sourceSpan.start.offset+t)}function dN(n,o,e){if(n.parameters.length===0)return o.push(new dn(n.startSourceSpan,"Conditional block does not have an expression")),null;let t=I0(n.parameters[0],e),i=null;for(let a=1;a-1;d--){let p=e[d];if(p===")"){if(s=d,i--,i===0)break}else{if(t.test(p))continue;break}}return i!==0?(o.push(new dn(n.sourceSpan,"Unclosed parentheses in expression")),null):e.slice(a,s)}var P3=class extends Bg{hasPipe=!1;visitPipe(){this.hasPipe=!0}},mJ=/^\d+\.?\d*(ms|s)?$/,pJ=/^\s$/,mN=new Map([[fl,es],[Lc,Od],[ns,Ea]]),ts=(function(n){return n.IDLE="idle",n.TIMER="timer",n.INTERACTION="interaction",n.IMMEDIATE="immediate",n.HOVER="hover",n.VIEWPORT="viewport",n.NEVER="never",n})(ts||{});function uJ({expression:n,sourceSpan:o},e,t){let i=n.indexOf("never"),a=new In(o.start.moveBy(i),o.start.moveBy(i+5)),s=lT(n,o),d=cT(n,o);i===-1?t.push(new dn(o,'Could not find "never" keyword in expression')):dT("never",e,t,new OP(a,o,s,null,d))}function rP({expression:n,sourceSpan:o},e,t,i){let a=n.indexOf("when"),s=new In(o.start.moveBy(a),o.start.moveBy(a+4)),d=lT(n,o),p=cT(n,o);if(a===-1)i.push(new dn(o,'Could not find "when" keyword in expression'));else{let u=A0(n,a+1),g=e.parseBinding(n.slice(u),!1,o,o.start.offset+u);dT("when",t,i,new Kb(g,o,d,s,p))}}function sP({expression:n,sourceSpan:o},e,t,i,a){let s=n.indexOf("on"),d=new In(o.start.moveBy(s),o.start.moveBy(s+2)),p=lT(n,o),u=cT(n,o);if(s===-1)i.push(new dn(o,'Could not find "on" keyword in expression'));else{let g=A0(n,s+1),C=n.startsWith("hydrate");new T3(n,e,g,o,t,i,C?xJ:bJ,C,p,d,u).parse()}}function lT(n,o){return n.startsWith("prefetch")?new In(o.start,o.start.moveBy(8)):null}function cT(n,o){return n.startsWith("hydrate")?new In(o.start,o.start.moveBy(7)):null}var T3=class{expression;bindingParser;start;span;triggers;errors;validator;isHydrationTrigger;prefetchSpan;onSourceSpan;hydrateSpan;index=0;tokens;constructor(o,e,t,i,a,s,d,p,u,g,C){this.expression=o,this.bindingParser=e,this.start=t,this.span=i,this.triggers=a,this.errors=s,this.validator=d,this.isHydrationTrigger=p,this.prefetchSpan=u,this.onSourceSpan=g,this.hydrateSpan=C,this.tokens=new E0().tokenize(o.slice(t))}parse(){for(;this.tokens.length>0&&this.index0&&i.isCharacter(e[e.length-1])&&e.pop(),e.length===0&&i.isCharacter(Nr)&&t.length>0){o.push({expression:this.tokenRangeText(t),start:t[0].index}),this.advance(),t=[];continue}t.push(i),this.advance()}return(!this.token().isCharacter(Ea)||e.length>0)&&this.error(this.token(),"Unexpected end of expression"),this.index0)throw new Error(`"${ts.IDLE}" trigger cannot have parameters`);return new DP(o,e,t,i,a)}function hJ(n,o,e,t,i,a){if(n.length!==1)throw new Error(`"${ts.TIMER}" trigger must have exactly one parameter`);let s=Ox(n[0].expression);if(s===null)throw new Error(`Could not parse time value of trigger "${ts.TIMER}"`);return new AP(s,o,e,t,i,a)}function _J(n,o,e,t,i,a){if(n.length>0)throw new Error(`"${ts.IMMEDIATE}" trigger cannot have parameters`);return new IP(o,e,t,i,a)}function fJ(n,o,e,t,i,a,s){return s(ts.HOVER,n),new Xb(n[0]?.expression??null,o,e,t,i,a)}function vJ(n,o,e,t,i,a,s){return s(ts.INTERACTION,n),new Yb(n[0]?.expression??null,o,e,t,i,a)}function CJ(n,o,e,t,i,a,s,d,p,u){u(ts.VIEWPORT,t);let g,C;if(t.length===0)g=C=null;else if(!t[0].expression.startsWith("{"))g=t[0].expression,C=null;else{let M=e.parseBinding(t[0].expression,!1,a,a.start.offset+n+t[0].start);if(M.ast instanceof du){if(M.ast.keys.some(b=>b.kind==="spread"))throw new Error("Spread operator are not allowed in this context");if(M.ast.keys.some(b=>b.kind==="property"&&b.key==="root"))throw new Error('The "root" option is not supported in the options parameter of the "viewport" trigger')}else throw new Error('Options parameter of the "viewport" trigger must be an object literal');let x=M.ast.keys.findIndex(b=>b.kind==="property"&&b.key==="trigger");if(x===-1)g=null,C=M.ast;else{let b=M.ast.values[x],P=(k,S)=>S!==x;if(!(b instanceof zc)||!(b.receiver instanceof Hc))throw new Error('"trigger" option of the "viewport" trigger must be an identifier');g=b.name,C=new du(M.ast.span,M.ast.sourceSpan,M.ast.keys.filter(P),M.ast.values.filter(P))}}if(o&&g!==null)throw new Error('"viewport" hydration trigger cannot have a "trigger"');if(C){let M=E3.findDynamicNode(C);if(M!==null)throw new Error(`Options of the "viewport" trigger must be an object literal containing only literal values, but "${M.constructor.name}" was found`)}return new i0(g,C,i,a,s,d,p)}function bJ(n,o){if(o.length>1)throw new Error(`"${n}" trigger can only have zero or one parameters`)}function xJ(n,o){if(n===ts.VIEWPORT){if(o.length>1)throw new Error(`Hydration trigger "${n}" cannot have more than one parameter`);return}if(o.length>0)throw new Error(`Hydration trigger "${n}" cannot have parameters`)}function A0(n,o=0){let e=!1;for(let t=o;t0){let P=o[o.length-1];C=P.endSourceSpan,M=P.sourceSpan.end}let x=new In(n.sourceSpan.start,M);return{node:new mu(ko(e,n.children,n.children),p,u,g,a,s,d,n.nameSpan,x,n.sourceSpan,n.startSourceSpan,C,n.i18n),errors:i}}function DJ(n,o,e){let t=null,i=null,a=null;for(let s of n)try{if(!O3(s.name)){o.push(new dn(s.startSourceSpan,`Unrecognized block "@${s.name}"`));break}switch(s.name){case"placeholder":t!==null?o.push(new dn(s.startSourceSpan,"@defer block can only have one @placeholder block")):t=IJ(s,e);break;case"loading":i!==null?o.push(new dn(s.startSourceSpan,"@defer block can only have one @loading block")):i=AJ(s,e);break;case"error":a!==null?o.push(new dn(s.startSourceSpan,"@defer block can only have one @error block")):a=NJ(s,e);break}}catch(d){o.push(new dn(s.startSourceSpan,d.message))}return{placeholder:t,loading:i,error:a}}function IJ(n,o){let e=null;for(let t of n.parameters)if(WF.test(t.expression)){if(e!=null)throw new Error('@placeholder block can only have one "minimum" parameter');let i=Ox(t.expression.slice(A0(t.expression)));if(i===null)throw new Error('Could not parse time value of parameter "minimum"');e=i}else throw new Error(`Unrecognized parameter in @placeholder block: "${t.expression}"`);return new o0(ko(o,n.children,n.children),e,n.nameSpan,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.i18n)}function AJ(n,o){let e=null,t=null;for(let i of n.parameters)if(PJ.test(i.expression)){if(e!=null)throw new Error('@loading block can only have one "after" parameter');let a=Ox(i.expression.slice(A0(i.expression)));if(a===null)throw new Error('Could not parse time value of parameter "after"');e=a}else if(WF.test(i.expression)){if(t!=null)throw new Error('@loading block can only have one "minimum" parameter');let a=Ox(i.expression.slice(A0(i.expression)));if(a===null)throw new Error('Could not parse time value of parameter "minimum"');t=a}else throw new Error(`Unrecognized parameter in @loading block: "${i.expression}"`);return new a0(ko(o,n.children,n.children),e,t,n.nameSpan,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.i18n)}function NJ(n,o){if(n.parameters.length>0)throw new Error("@error block cannot have parameters");return new r0(ko(o,n.children,n.children),n.nameSpan,n.sourceSpan,n.startSourceSpan,n.endSourceSpan,n.i18n)}function FJ(n,o,e,t){let i={},a={},s={};for(let d of n.parameters)TJ.test(d.expression)?rP(d,o,i,e):EJ.test(d.expression)?sP(d,o,i,e):yJ.test(d.expression)?rP(d,o,a,e):wJ.test(d.expression)?sP(d,o,a,e):MJ.test(d.expression)?rP(d,o,s,e):SJ.test(d.expression)?sP(d,o,s,e):kJ.test(d.expression)?uJ(d,s,e):e.push(new dn(d.sourceSpan,"Unrecognized trigger"));return s.never&&Object.keys(s).length>1&&e.push(new dn(n.startSourceSpan,"Cannot specify additional `hydrate` triggers if `hydrate never` is present")),{triggers:i,prefetchTriggers:a,hydrateTriggers:s}}var RJ=/^(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*)$/,pN=1,uN=2,gN=3,hN=4,_N=5,zJ=6,xf=7,bm={BANANA_BOX:{start:"[(",end:")]"},PROPERTY:{start:"[",end:"]"},EVENT:{start:"(",end:")"}},lP="*",LJ=new Set(["link","style","script","ng-template","ng-container","ng-content"]),VJ=new Set(["ngProjectAs","ngNonBindable"]);function BJ(n,o,e){let t=new D3(o,e),i=ko(t,n,n),a=o.errors.concat(t.errors),s={nodes:i,errors:a,styleUrls:t.styleUrls,styles:t.styles,ngContentSelectors:t.ngContentSelectors};return e.collectCommentNodes&&(s.commentNodes=t.commentNodes),s}var D3=class{bindingParser;options;errors=[];styles=[];styleUrls=[];ngContentSelectors=[];commentNodes=[];inI18nBlock=!1;processedNodes=new Set;constructor(o,e){this.bindingParser=o,this.options=e}visitElement(o){let e=Sb(o.i18n);e&&(this.inI18nBlock&&this.reportError("Cannot mark an element as translatable inside of a translatable section. Please remove the nested i18n marker.",o.sourceSpan),this.inI18nBlock=!0);let t=UF(o);if(t.type===Gs.SCRIPT)return null;if(t.type===Gs.STYLE){let S=jJ(o);return S!==null&&this.styles.push(S),null}else if(t.type===Gs.STYLESHEET&&BZ(t.hrefAttr))return this.styleUrls.push(t.hrefAttr),null;let i=jU(o.name),{attributes:a,boundEvents:s,references:d,variables:p,templateVariables:u,elementHasInlineTemplate:g,parsedProperties:C,templateParsedProperties:M,i18nAttrsMeta:x}=this.prepareAttributes(o.attrs,i),b=this.extractDirectives(o),P;t.nonBindable?P=ko(fN,o.children).flat(1/0):P=ko(this,o.children,o.children);let k;if(t.type===Gs.NG_CONTENT){let S=t.selectAttr,O=o.attrs.map(A=>this.visitAttribute(A));k=new Ug(S,O,P,o.isSelfClosing,o.sourceSpan,o.startSourceSpan,o.endSourceSpan,o.i18n),this.ngContentSelectors.push(S)}else if(i){let S=this.categorizePropertyAttributes(o.name,C,x);k=new Qs(o.name,a,S.bound,s,b,[],P,d,p,o.isSelfClosing,o.sourceSpan,o.startSourceSpan,o.endSourceSpan,o.i18n)}else{let S=this.categorizePropertyAttributes(o.name,C,x);if(o.name==="ng-container")for(let O of S.bound)O.type===Fi.Attribute&&this.reportError("Attribute bindings are not supported on ng-container. Use property bindings instead.",O.sourceSpan);k=new Uc(o.name,a,S.bound,s,b,P,d,o.isSelfClosing,o.sourceSpan,o.startSourceSpan,o.endSourceSpan,o.isVoid,o.i18n)}return g&&(k=this.wrapInTemplate(k,M,u,x,i,e)),e&&(this.inI18nBlock=!1),k}visitAttribute(o){return new $g(o.name,o.value,o.sourceSpan,o.keySpan,o.valueSpan,o.i18n)}visitText(o){return this.processedNodes.has(o)?null:this._visitTextWithInterpolation(o.value,o.sourceSpan,o.tokens,o.i18n)}visitExpansion(o){if(!o.i18n)return null;if(!Sb(o.i18n))throw new Error(`Invalid type "${o.i18n.constructor}" for "i18n" property of ${o.sourceSpan.toString()}. Expected a "Message"`);let e=o.i18n,t={},i={};return Object.keys(e.placeholders).forEach(a=>{let s=e.placeholders[a];if(a.startsWith(WU)){let d=a.trim(),p=this.bindingParser.parseInterpolationExpression(s.text,s.sourceSpan);t[d]=new jg(p,s.sourceSpan)}else i[a]=this._visitTextWithInterpolation(s.text,s.sourceSpan,null)}),new FN(t,i,o.sourceSpan,e)}visitExpansionCase(o){return null}visitComment(o){return this.options.collectCommentNodes&&this.commentNodes.push(new Rx(o.value||"",o.sourceSpan)),null}visitLetDeclaration(o,e){let t=this.bindingParser.parseBinding(o.value,!1,o.valueSpan,o.valueSpan.start.offset);return t.errors.length===0&&t.ast instanceof Ar&&this.reportError("@let declaration value cannot be empty",o.valueSpan),new q3(o.name,t,o.sourceSpan,o.nameSpan,o.valueSpan)}visitComponent(o){let e=Sb(o.i18n);if(e&&(this.inI18nBlock&&this.reportError("Cannot mark a component as translatable inside of a translatable section. Please remove the nested i18n marker.",o.sourceSpan),this.inI18nBlock=!0),o.tagName!==null&&LJ.has(o.tagName))return this.reportError(`Tag name "${o.tagName}" cannot be used as a component tag`,o.startSourceSpan),null;let{attributes:t,boundEvents:i,references:a,templateVariables:s,elementHasInlineTemplate:d,parsedProperties:p,templateParsedProperties:u,i18nAttrsMeta:g}=this.prepareAttributes(o.attrs,!1);this.validateSelectorlessReferences(a);let C=this.extractDirectives(o),M;o.attrs.find(P=>P.name==="ngNonBindable")?M=ko(fN,o.children).flat(1/0):M=ko(this,o.children,o.children);let x=this.categorizePropertyAttributes(o.tagName,p,g),b=new Ef(o.componentName,o.tagName,o.fullName,t,x.bound,i,C,M,a,o.isSelfClosing,o.sourceSpan,o.startSourceSpan,o.endSourceSpan,o.i18n);return d&&(b=this.wrapInTemplate(b,u,s,g,!1,e)),e&&(this.inI18nBlock=!1),b}visitDirective(){return null}visitBlockParameter(){return null}visitBlock(o,e){let t=Array.isArray(e)?e.indexOf(o):-1;if(t===-1)throw new Error("Visitor invoked incorrectly. Expecting visitBlock to be invoked siblings array as its context");if(this.processedNodes.has(o))return null;let i=null;switch(o.name){case"defer":i=OJ(o,this.findConnectedBlocks(t,e,O3),this,this.bindingParser);break;case"switch":i=oJ(o,this,this.bindingParser);break;case"for":i=iJ(o,this.findConnectedBlocks(t,e,lN),this,this.bindingParser);break;case"if":i=nJ(o,this.findConnectedBlocks(t,e,cN),this,this.bindingParser);break;default:let a;O3(o.name)?(a=`@${o.name} block can only be used after an @defer block.`,this.processedNodes.add(o)):lN(o.name)?(a=`@${o.name} block can only be used after an @for block.`,this.processedNodes.add(o)):cN(o.name)?(a=`@${o.name} block can only be used after an @if or @else if block.`,this.processedNodes.add(o)):a=`Unrecognized block @${o.name}.`,i={node:new ex(o.name,o.sourceSpan,o.nameSpan),errors:[new dn(o.sourceSpan,a)]};break}return this.errors.push(...i.errors),i.node}findConnectedBlocks(o,e,t){let i=[];for(let a=o+1;a{let d=t[s.name];if(s.isLiteral)a.push(new $g(s.name,s.expression.source||"",s.sourceSpan,s.keySpan,s.valueSpan,d));else{let p=s.name.toLowerCase().startsWith("attr.on"),u=this.bindingParser.createBoundElementProperty(o,s,!p,!1);i.push(TP.fromBoundElementProperty(u,d))}}),{bound:i,literal:a}}prepareAttributes(o,e){let t=[],i=[],a=[],s=[],d=[],p={},u=[],g=[],C=!1;for(let M of o){let x=!1,b=vN(M.name),P=!1;if(M.i18n&&(p[M.name]=M.i18n),b.startsWith(lP)){C&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",M.sourceSpan),P=!0,C=!0;let k=M.value,S=b.substring(lP.length),O=[],A=M.valueSpan?M.valueSpan.fullStart.offset:M.sourceSpan.fullStart.offset+M.name.length;this.bindingParser.parseInlineTemplateBinding(S,k,M.sourceSpan,A,[],u,O,!0),g.push(...O.map(D=>new Om(D.name,D.value,D.sourceSpan,D.keySpan,D.valueSpan)))}else x=this.parseAttribute(e,M,[],t,i,a,s);!x&&!P&&d.push(this.visitAttribute(M))}return{attributes:d,boundEvents:i,references:s,variables:a,templateVariables:g,elementHasInlineTemplate:C,parsedProperties:t,templateParsedProperties:u,i18nAttrsMeta:p}}parseAttribute(o,e,t,i,a,s,d){let p=vN(e.name),u=e.value,g=e.sourceSpan,C=e.valueSpan?e.valueSpan.fullStart.offset:g.fullStart.offset;function M(S,O,A){let D=e.name.length-p.length,F=S.start.moveBy(O.length+D),I=F.moveBy(A.length);return new In(F,I,F,A)}let x=p.match(RJ);if(x){if(x[pN]!=null){let S=x[xf],O=M(g,x[pN],S);this.bindingParser.parsePropertyBinding(S,u,!1,!1,g,C,e.valueSpan,t,i,O)}else if(x[uN])if(o){let S=x[xf],O=M(g,x[uN],S);this.parseVariable(S,u,g,O,e.valueSpan,s)}else this.reportError('"let-" is only supported on ng-template elements.',g);else if(x[gN]){let S=x[xf],O=M(g,x[gN],S);this.parseReference(S,u,g,O,e.valueSpan,d)}else if(x[hN]){let S=[],O=x[xf],A=M(g,x[hN],O);this.bindingParser.parseEvent(O,u,!1,g,e.valueSpan||g,t,S,A),cP(S,a)}else if(x[_N]){let S=x[xf],O=M(g,x[_N],S);this.bindingParser.parsePropertyBinding(S,u,!1,!0,g,C,e.valueSpan,t,i,O),this.parseAssignmentEvent(S,u,g,e.valueSpan,t,a,O,C)}else if(x[zJ]){let S=M(g,"",p);this.bindingParser.parseLiteralAttr(p,u,g,C,e.valueSpan,t,i,S)}return!0}let b=null;if(p.startsWith(bm.BANANA_BOX.start)?b=bm.BANANA_BOX:p.startsWith(bm.PROPERTY.start)?b=bm.PROPERTY:p.startsWith(bm.EVENT.start)&&(b=bm.EVENT),b!==null&&p.endsWith(b.end)&&p.length>b.start.length+b.end.length){let S=p.substring(b.start.length,p.length-b.end.length),O=M(g,b.start,S);if(b.start===bm.BANANA_BOX.start)this.bindingParser.parsePropertyBinding(S,u,!1,!0,g,C,e.valueSpan,t,i,O),this.parseAssignmentEvent(S,u,g,e.valueSpan,t,a,O,C);else if(b.start===bm.PROPERTY.start)this.bindingParser.parsePropertyBinding(S,u,!1,!1,g,C,e.valueSpan,t,i,O);else{let A=[];this.bindingParser.parseEvent(S,u,!1,g,e.valueSpan||g,t,A,O),cP(A,a)}return!0}let P=M(g,"",p);return this.bindingParser.parsePropertyInterpolation(p,u,g,e.valueSpan,t,i,P,e.valueTokens??null)}extractDirectives(o){let e=o instanceof Jr?o.tagName:o.name,t=[],i=new Set;for(let a of o.directives){let s=!1;for(let x of a.attrs)x.name.startsWith(lP)?(s=!0,this.reportError(`Shorthand template syntax "${x.name}" is not supported inside a directive context`,x.sourceSpan)):VJ.has(x.name)&&(s=!0,this.reportError(`Attribute "${x.name}" is not supported in a directive context`,x.sourceSpan));if(!s&&i.has(a.name)&&(s=!0,this.reportError(`Cannot apply directive "${a.name}" multiple times on the same element`,a.sourceSpan)),s)continue;let{attributes:d,parsedProperties:p,boundEvents:u,references:g,i18nAttrsMeta:C}=this.prepareAttributes(a.attrs,!1);this.validateSelectorlessReferences(g);let{bound:M}=this.categorizePropertyAttributes(e,p,C);for(let x of M)x.type!==Fi.Property&&x.type!==Fi.TwoWay&&(s=!0,this.reportError("Binding is not supported in a directive context",x.sourceSpan));s||(i.add(a.name),t.push(new NN(a.name,d,M,u,g,a.sourceSpan,a.startSourceSpan,a.endSourceSpan,void 0)))}return t}filterAnimationAttributes(o){return o.filter(e=>!e.name.startsWith("animate."))}filterAnimationInputs(o){return o.filter(e=>e.type!==Fi.Animation)}wrapInTemplate(o,e,t,i,a,s){let d=this.categorizePropertyAttributes("ng-template",e,i),p=[];d.literal.forEach(M=>p.push(M)),d.bound.forEach(M=>p.push(M));let u={attributes:[],inputs:[],outputs:[]};(o instanceof Uc||o instanceof Ef)&&(u.attributes.push(...this.filterAnimationAttributes(o.attributes)),u.inputs.push(...this.filterAnimationInputs(o.inputs)),u.outputs.push(...o.outputs));let g=a&&s?void 0:o.i18n,C;return o instanceof Ef?C=o.tagName:o instanceof Qs?C=null:C=o.name,new Qs(C,u.attributes,u.inputs,u.outputs,[],p,[o],[],t,!1,o.sourceSpan,o.startSourceSpan,o.endSourceSpan,g)}_visitTextWithInterpolation(o,e,t,i){let a=yF(o),s=this.bindingParser.parseInterpolation(a,e,t);return s?new jg(s,e,i):new Qp(a,e)}parseVariable(o,e,t,i,a,s){o.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',t):o.length===0&&this.reportError("Variable does not have a name",t),s.push(new Om(o,e,t,i,a))}parseReference(o,e,t,i,a,s){o.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',t):o.length===0?this.reportError("Reference does not have a name",t):s.some(d=>d.name===o)&&this.reportError(`Reference "#${o}" is defined more than once`,t),s.push(new c0(o,e,t,i,a))}parseAssignmentEvent(o,e,t,i,a,s,d,p){let u=[];this.bindingParser.parseEvent(`${o}Change`,e,!0,t,i||t,a,u,d),cP(u,s)}validateSelectorlessReferences(o){if(o.length===0)return;let e=new Set;for(let t of o)t.value.length>0?this.reportError("Cannot specify a value for a local reference in this context",t.valueSpan||t.sourceSpan):e.has(t.name)?this.reportError("Duplicate reference names are not allowed",t.sourceSpan):e.add(t.name)}reportError(o,e,t=Sm.ERROR){this.errors.push(new dn(e,o,t))}},I3=class{visitElement(o){let e=UF(o);if(e.type===Gs.SCRIPT||e.type===Gs.STYLE||e.type===Gs.STYLESHEET)return null;let t=ko(this,o.children,null);return new Uc(o.name,ko(this,o.attrs),[],[],[],t,[],o.isSelfClosing,o.sourceSpan,o.startSourceSpan,o.endSourceSpan,o.isVoid)}visitComment(o){return null}visitAttribute(o){return new $g(o.name,o.value,o.sourceSpan,o.keySpan,o.valueSpan,o.i18n)}visitText(o){return new Qp(o.value,o.sourceSpan)}visitExpansion(o){return null}visitExpansionCase(o){return null}visitBlock(o,e){let t=[new Qp(o.startSourceSpan.toString(),o.startSourceSpan),...ko(this,o.children)];return o.endSourceSpan!==null&&t.push(new Qp(o.endSourceSpan.toString(),o.endSourceSpan)),t}visitBlockParameter(o,e){return null}visitLetDeclaration(o,e){return new Qp(`@let ${o.name} = ${o.value};`,o.sourceSpan)}visitComponent(o,e){let t=ko(this,o.children,null);return new Uc(o.fullName,ko(this,o.attrs),[],[],[],t,[],o.isSelfClosing,o.sourceSpan,o.startSourceSpan,o.endSourceSpan,!1)}visitDirective(o,e){return null}},fN=new I3;function vN(n){return/^data-/i.test(n)?n.substring(5):n}function cP(n,o){o.push(...n.map(e=>EP.fromParsedEvent(e)))}function jJ(n){return n.children.length!==1||!(n.children[0]instanceof fu)?null:n.children[0].value}var $J=[" ",` +`,"\r"," "];function HJ(n,o,e={}){let{preserveWhitespaces:t,enableI18nLegacyMessageIdFormat:i}=e,a=e.enableSelectorless??!1,s=Dx(a),p=new S3().parse(n,o,ze(q({leadingTriviaChars:$J},e),{tokenizeExpansionForms:!0,tokenizeBlocks:e.enableBlockSyntax??!0,tokenizeLet:e.enableLetSyntax??!0,selectorlessEnabled:a}));if(!e.alwaysAttemptHtmlToR3AstConversion&&p.errors&&p.errors.length>0){let D={preserveWhitespaces:t,errors:p.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return e.collectCommentNodes&&(D.commentNodes=[]),D}let u=p.rootNodes,g=!(e.preserveSignificantWhitespace??!0),C=new Sx(!t,i,e.preserveSignificantWhitespace,g),M=C.visitAllWithErrors(u);if(!e.alwaysAttemptHtmlToR3AstConversion&&M.errors&&M.errors.length>0){let D={preserveWhitespaces:t,errors:M.errors,nodes:[],styleUrls:[],styles:[],ngContentSelectors:[]};return e.collectCommentNodes&&(D.commentNodes=[]),D}u=M.rootNodes,t||(u=ko(new wx(!0,void 0,!1),u),C.hasI18nMeta&&(u=ko(new Sx(!1,void 0,!0,g),u)));let{nodes:x,errors:b,styleUrls:P,styles:k,ngContentSelectors:S,commentNodes:O}=BJ(u,s,{collectCommentNodes:!!e.collectCommentNodes});b.push(...p.errors,...M.errors);let A={preserveWhitespaces:t,errors:b.length>0?b:null,nodes:x,styleUrls:P,styles:k,ngContentSelectors:S};return e.collectCommentNodes&&(A.commentNodes=O),A}var UJ=new Yg;function Dx(n=!1){return new y3(new Mx(new E0,n),UJ,[])}var GF="%COMP%",WJ=`_nghost-${GF}`,GJ=`_ngcontent-${GF}`;function qF(n,o,e){let t=new Am,i=H3(n.selector);return t.set("type",n.type.value),i.length>0&&t.set("selectors",kg(i)),n.queries.length>0&&t.set("contentQueries",VZ(n.queries,o,n.name)),n.viewQueries.length&&t.set("viewQuery",LZ(n.viewQueries,o,n.name)),t.set("hostBindings",eee(n.host,n.typeSourceSpan,e,o,n.selector||"",n.name,t)),t.set("inputs",q5(n.inputs,!0)),t.set("outputs",q5(n.outputs)),n.exportAs!==null&&t.set("exportAs",io(n.exportAs.map(a=>De(a)))),n.isStandalone===!1&&t.set("standalone",De(!1)),n.isSignal&&t.set("signals",De(!0)),t}function QF(n,o){let e=[],t=o.providers,i=o.viewProviders;if(t||i){let a=[t||new $c([])];i&&a.push(i),e.push(Ht(ge.ProvidersFeature).callFn(a))}if(o.hostDirectives?.length&&e.push(Ht(ge.HostDirectivesFeature).callFn([aee(o.hostDirectives)])),o.usesInheritance&&e.push(Ht(ge.InheritDefinitionFeature)),o.lifecycle.usesOnChanges&&e.push(Ht(ge.NgOnChangesFeature)),o.controlCreate!==null&&e.push(Ht(ge.ControlFeature).callFn([De(o.controlCreate.passThroughInput)])),"externalStyles"in o&&o.externalStyles?.length){let a=o.externalStyles.map(s=>De(s));e.push(Ht(ge.ExternalStylesFeature).callFn([io(a)]))}e.length&&n.set("features",io(e))}function qJ(n,o,e){let t=qF(n,o,e);QF(t,n);let i=Ht(ge.defineDirective).callFn([t.toLiteralMap()],void 0,!0),a=JJ(n);return{expression:i,type:a,statements:[]}}function QJ(n,o,e){let t=qF(n,o,e);QF(t,n);let i=n.selector&&Ag.parse(n.selector),a=i&&i[0];if(a){let b=a.getAttrs();b.length&&t.set("attrs",o.getConstLiteral(io(b.map(P=>P!=null?De(P):De(void 0))),!0))}let s=n.name,d=null;if(n.defer.mode===1&&n.defer.dependenciesFn!==null){let b=`${s}_DeferFn`;o.statements.push(new Ga(b,n.defer.dependenciesFn,void 0,ur.Final)),d=di(b)}let p=n.isStandalone&&!n.hasDirectiveDependencies?vs.DomOnly:vs.Full,u=uZ(n.name,n.template.nodes,o,p,n.relativeContextFilePath,n.i18nUseExternalIds,n.defer,d,n.relativeTemplatePath,FZ());NF(u,Dt.Tmpl);let g=aZ(u,o);if(u.contentSelectors!==null&&t.set("ngContentSelectors",u.contentSelectors),t.set("decls",De(u.root.decls)),t.set("vars",De(u.root.vars)),u.consts.length>0&&(u.constsInitializers.length>0?t.set("consts",Ys([],[...u.constsInitializers,new Ia(io(u.consts))])):t.set("consts",io(u.consts))),t.set("template",g),n.declarationListEmitMode!==3&&n.declarations.length>0)t.set("dependencies",XJ(io(n.declarations.map(b=>b.type)),n.declarationListEmitMode));else if(n.declarationListEmitMode===3){let b=[n.type.value];n.rawImports&&b.push(n.rawImports),t.set("dependencies",Ht(ge.getComponentDepsFactory).callFn(b))}n.encapsulation===null&&(n.encapsulation=$p.Emulated);let C=!!n.externalStyles?.length;if(n.styles&&n.styles.length){let P=(n.encapsulation==$p.Emulated?oee(n.styles,GJ,WJ):n.styles).reduce((k,S)=>(S.trim().length>0&&k.push(o.getConstLiteral(De(S))),k),[]);P.length>0&&(C=!0,t.set("styles",io(P)))}!C&&n.encapsulation===$p.Emulated&&(n.encapsulation=$p.None),n.encapsulation!==$p.Emulated&&t.set("encapsulation",De(n.encapsulation)),n.animations!==null&&t.set("data",yl([{key:"animation",value:n.animations,quoted:!1}])),n.changeDetection!==null&&(typeof n.changeDetection=="number"&&n.changeDetection!==$3.Default?t.set("changeDetection",De(n.changeDetection)):typeof n.changeDetection=="object"&&t.set("changeDetection",n.changeDetection));let M=Ht(ge.defineComponent).callFn([t.toLiteralMap()],void 0,!0),x=KJ(n);return{expression:M,type:x,statements:[]}}function KJ(n){let o=KF(n);return o.push(N3(n.template.ngContentSelectors)),o.push(gr(De(n.isStandalone))),o.push(XF(n)),n.isSignal&&o.push(gr(De(n.isSignal))),gr(Ht(ge.ComponentDeclaration,o))}function XJ(n,o){switch(o){case 0:return n;case 1:return Ys([],n);case 2:let e=n.prop("map").callFn([Ht(ge.resolveForwardRef)]);return Ys([],e);case 3:throw new Error("Unsupported with an array of pre-resolved dependencies")}}function YJ(n){return gr(De(n))}function A3(n){let o=Object.keys(n).map(e=>{let t=Array.isArray(n[e])?n[e][0]:n[e];return{key:e,value:De(t),quoted:!0}});return yl(o)}function N3(n){return n.length>0?gr(io(n.map(o=>De(o)))):Bc}function KF(n){let o=n.selector!==null?n.selector.replace(/\n/g,""):null;return[Fx(n.type.type,n.typeArgumentCount),o!==null?YJ(o):Bc,n.exportAs!==null?N3(n.exportAs):Bc,gr(ZJ(n)),gr(A3(n.outputs)),N3(n.queries.map(e=>e.propertyName))]}function ZJ(n){return yl(Object.keys(n.inputs).map(o=>{let e=n.inputs[o],t=[{key:"alias",value:De(e.bindingPropertyName),quoted:!0},{key:"required",value:De(e.required),quoted:!0}];return e.isSignal&&t.push({key:"isSignal",value:De(e.isSignal),quoted:!0}),{key:o,value:yl(t),quoted:!0}}))}function JJ(n){let o=KF(n);return o.push(Bc),o.push(gr(De(n.isStandalone))),o.push(XF(n)),n.isSignal&&o.push(gr(De(n.isSignal))),gr(Ht(ge.DirectiveDeclaration,o))}function eee(n,o,e,t,i,a,s){let d=e.createBoundHostProperties(n.properties,o),p=e.createDirectiveHostEventAsts(n.listeners,o);n.specialAttributes.styleAttr&&(n.attributes.style=De(n.specialAttributes.styleAttr)),n.specialAttributes.classAttr&&(n.attributes.class=De(n.specialAttributes.classAttr));let u=gZ({componentName:a,componentSelector:i,properties:d,events:p,attributes:n.attributes},e,t);NF(u,Dt.Host),s.set("hostAttrs",u.root.attributes);let g=u.root.vars;return g!==null&&g>0&&s.set("hostVars",De(g)),rZ(u)}function tee(n){let o={},e={},t={},i={};for(let a of Object.keys(n)){let s=n[a];if(a.startsWith("(")&&a.endsWith(")")){if(typeof s!="string")throw new Error("Event binding must be string");e[a.slice(1,-1)]=s}else if(a.startsWith("[")&&a.endsWith("]")){if(typeof s!="string")throw new Error("Property binding must be string");t[a.slice(1,-1)]=s}else switch(a){case"class":if(typeof s!="string")throw new Error("Class binding must be string");i.classAttr=s;break;case"style":if(typeof s!="string")throw new Error("Style binding must be string");i.styleAttr=s;break;default:typeof s=="string"?o[a]=De(s):o[a]=s}}return{attributes:o,listeners:e,properties:t,specialAttributes:i}}function nee(n,o){let e=Dx();return e.createDirectiveHostEventAsts(n.listeners,o),e.createBoundHostProperties(n.properties,o),iee(n,e,o),e.errors}function iee(n,o,e){for(let t in n.properties){let i=t.startsWith("attr."),a=i?t.slice(5):t;if(a.toLowerCase().startsWith("on")){let s=i?"attribute":"property",d=`(${a.slice(2)})=...`,p=`Binding to event ${s} '${a}' is disallowed for security reasons, please use ${d}`;i||(p+=` +If '${t}' is a directive input, make sure the directive is imported by the current module.`),o.errors.push(new dn(e,p))}}}function oee(n,o,e){let t=new UP;return n.map(i=>t.shimCssText(i,o,e))}function XF(n){return n.hostDirectives?.length?gr(io(n.hostDirectives.map(o=>yl([{key:"directive",value:N0(o.directive.type),quoted:!1},{key:"inputs",value:A3(o.inputs||{}),quoted:!1},{key:"outputs",value:A3(o.outputs||{}),quoted:!1}])))):Bc}function aee(n){let o=[],e=!1;for(let t of n){if(!t.inputs&&!t.outputs)o.push(t.directive.type);else{let i=[{key:"directive",value:t.directive.type,quoted:!1}];if(t.inputs){let a=CN(t.inputs);a&&i.push({key:"inputs",value:a,quoted:!1})}if(t.outputs){let a=CN(t.outputs);a&&i.push({key:"outputs",value:a,quoted:!1})}o.push(yl(i))}t.isForwardReference&&(e=!0)}return e?new Pm([],[new Ia(io(o))]):io(o)}function CN(n){let o=[];for(let e in n)n.hasOwnProperty(e)&&o.push(De(e),De(n[e]));return o.length>0?io(o):null}var F3=class extends Bg{visit(o){o instanceof xs?this.visit(o.ast):o.visit(this)}visitElement(o){this.visitAllTemplateNodes(o.attributes),this.visitAllTemplateNodes(o.inputs),this.visitAllTemplateNodes(o.outputs),this.visitAllTemplateNodes(o.directives),this.visitAllTemplateNodes(o.references),this.visitAllTemplateNodes(o.children)}visitTemplate(o){this.visitAllTemplateNodes(o.attributes),this.visitAllTemplateNodes(o.inputs),this.visitAllTemplateNodes(o.outputs),this.visitAllTemplateNodes(o.directives),this.visitAllTemplateNodes(o.templateAttrs),this.visitAllTemplateNodes(o.variables),this.visitAllTemplateNodes(o.references),this.visitAllTemplateNodes(o.children)}visitContent(o){this.visitAllTemplateNodes(o.children)}visitBoundAttribute(o){this.visit(o.value)}visitBoundEvent(o){this.visit(o.handler)}visitBoundText(o){this.visit(o.value)}visitIcu(o){Object.keys(o.vars).forEach(e=>this.visit(o.vars[e])),Object.keys(o.placeholders).forEach(e=>this.visit(o.placeholders[e]))}visitDeferredBlock(o){o.visitAll(this)}visitDeferredTrigger(o){o instanceof Kb?this.visit(o.value):o instanceof i0&&o.options!==null&&this.visit(o.options)}visitDeferredBlockPlaceholder(o){this.visitAllTemplateNodes(o.children)}visitDeferredBlockError(o){this.visitAllTemplateNodes(o.children)}visitDeferredBlockLoading(o){this.visitAllTemplateNodes(o.children)}visitSwitchBlock(o){this.visit(o.expression),this.visitAllTemplateNodes(o.groups)}visitSwitchBlockCase(o){o.expression&&this.visit(o.expression)}visitSwitchBlockCaseGroup(o){this.visitAllTemplateNodes(o.cases),this.visitAllTemplateNodes(o.children)}visitSwitchExhaustiveCheck(o){}visitForLoopBlock(o){o.item.visit(this),this.visitAllTemplateNodes(o.contextVariables),this.visit(o.expression),this.visitAllTemplateNodes(o.children),o.empty?.visit(this)}visitForLoopBlockEmpty(o){this.visitAllTemplateNodes(o.children)}visitIfBlock(o){this.visitAllTemplateNodes(o.branches)}visitIfBlockBranch(o){o.expression&&this.visit(o.expression),o.expressionAlias?.visit(this),this.visitAllTemplateNodes(o.children)}visitLetDeclaration(o){this.visit(o.value)}visitComponent(o){this.visitAllTemplateNodes(o.attributes),this.visitAllTemplateNodes(o.inputs),this.visitAllTemplateNodes(o.outputs),this.visitAllTemplateNodes(o.directives),this.visitAllTemplateNodes(o.references),this.visitAllTemplateNodes(o.children)}visitDirective(o){this.visitAllTemplateNodes(o.attributes),this.visitAllTemplateNodes(o.inputs),this.visitAllTemplateNodes(o.outputs),this.visitAllTemplateNodes(o.references)}visitVariable(o){}visitReference(o){}visitTextAttribute(o){}visitText(o){}visitUnknownBlock(o){}visitAllTemplateNodes(o){for(let e of o)this.visit(e)}};var R3=class{directiveMatcher;constructor(o){this.directiveMatcher=o}bind(o){if(!o.template&&!o.host)throw new Error("Empty bound targets are not supported");let e=new Map,t=[],i=new Set,a=new Map,s=new Map,d=new Map,p=new Map,u=new Map,g=new Map,C=new Set,M=new Set,x=[];if(o.template){let b=Ix.apply(o.template);ree(b,d),z3.apply(o.template,this.directiveMatcher,e,t,i,a,s),Ax.applyWithScope(o.template,b,p,u,g,C,M,x)}return o.host&&(e.set(o.host.node,o.host.directives),Ax.applyWithScope(o.host.node,Ix.apply(o.host.node),p,u,g,C,M,x)),new L3(o,e,t,i,a,s,p,u,g,d,C,M,x)}},Ix=class n{parentScope;rootNode;namedEntities=new Map;elementLikeInScope=new Set;childScopes=new Map;isDeferred;constructor(o,e){this.parentScope=o,this.rootNode=e,this.isDeferred=o!==null&&o.isDeferred?!0:e instanceof mu}static newRootScope(){return new n(null,null)}static apply(o){let e=n.newRootScope();return e.ingest(o),e}ingest(o){o instanceof Qs?(o.variables.forEach(e=>this.visitVariable(e)),o.children.forEach(e=>e.visit(this))):o instanceof Yp?(o.expressionAlias!==null&&this.visitVariable(o.expressionAlias),o.children.forEach(e=>e.visit(this))):o instanceof Hg?(this.visitVariable(o.item),o.contextVariables.forEach(e=>this.visitVariable(e)),o.children.forEach(e=>e.visit(this))):o instanceof s0||o instanceof l0||o instanceof mu||o instanceof r0||o instanceof o0||o instanceof a0||o instanceof Ug?o.children.forEach(e=>e.visit(this)):o instanceof d0||o.forEach(e=>e.visit(this))}visitElement(o){this.visitElementLike(o)}visitTemplate(o){o.directives.forEach(e=>e.visit(this)),o.references.forEach(e=>this.visitReference(e)),this.ingestScopedNode(o)}visitVariable(o){this.maybeDeclare(o)}visitReference(o){this.maybeDeclare(o)}visitDeferredBlock(o){this.ingestScopedNode(o),o.placeholder?.visit(this),o.loading?.visit(this),o.error?.visit(this)}visitDeferredBlockPlaceholder(o){this.ingestScopedNode(o)}visitDeferredBlockError(o){this.ingestScopedNode(o)}visitDeferredBlockLoading(o){this.ingestScopedNode(o)}visitSwitchBlock(o){o.groups.forEach(e=>e.visit(this))}visitSwitchBlockCase(o){}visitSwitchBlockCaseGroup(o){this.ingestScopedNode(o)}visitSwitchExhaustiveCheck(o){}visitForLoopBlock(o){this.ingestScopedNode(o),o.empty?.visit(this)}visitForLoopBlockEmpty(o){this.ingestScopedNode(o)}visitIfBlock(o){o.branches.forEach(e=>e.visit(this))}visitIfBlockBranch(o){this.ingestScopedNode(o)}visitContent(o){this.ingestScopedNode(o)}visitLetDeclaration(o){this.maybeDeclare(o)}visitComponent(o){this.visitElementLike(o)}visitDirective(o){o.references.forEach(e=>this.visitReference(e))}visitBoundAttribute(o){}visitBoundEvent(o){}visitBoundText(o){}visitText(o){}visitTextAttribute(o){}visitIcu(o){}visitDeferredTrigger(o){}visitUnknownBlock(o){}visitElementLike(o){o.directives.forEach(e=>e.visit(this)),o.references.forEach(e=>this.visitReference(e)),o.children.forEach(e=>e.visit(this)),this.elementLikeInScope.add(o)}maybeDeclare(o){this.namedEntities.has(o.name)||this.namedEntities.set(o.name,o)}lookup(o){return this.namedEntities.has(o)?this.namedEntities.get(o):this.parentScope!==null?this.parentScope.lookup(o):null}getChildScope(o){let e=this.childScopes.get(o);if(e===void 0)throw new Error(`Assertion error: child scope for ${o} not found`);return e}ingestScopedNode(o){let e=new n(this,o);e.ingest(o),this.childScopes.set(o,e)}},z3=class n{directiveMatcher;directives;eagerDirectives;missingDirectives;bindings;references;isInDeferBlock=!1;constructor(o,e,t,i,a,s){this.directiveMatcher=o,this.directives=e,this.eagerDirectives=t,this.missingDirectives=i,this.bindings=a,this.references=s}static apply(o,e,t,i,a,s,d){new n(e,t,i,a,s,d).ingest(o)}ingest(o){o.forEach(e=>e.visit(this))}visitElement(o){this.visitElementOrTemplate(o)}visitTemplate(o){this.visitElementOrTemplate(o)}visitDeferredBlock(o){let e=this.isInDeferBlock;this.isInDeferBlock=!0,o.children.forEach(t=>t.visit(this)),this.isInDeferBlock=e,o.placeholder?.visit(this),o.loading?.visit(this),o.error?.visit(this)}visitDeferredBlockPlaceholder(o){o.children.forEach(e=>e.visit(this))}visitDeferredBlockError(o){o.children.forEach(e=>e.visit(this))}visitDeferredBlockLoading(o){o.children.forEach(e=>e.visit(this))}visitSwitchBlock(o){o.groups.forEach(e=>e.visit(this))}visitSwitchBlockCase(o){}visitSwitchBlockCaseGroup(o){o.children.forEach(e=>e.visit(this))}visitSwitchExhaustiveCheck(o){}visitForLoopBlock(o){o.item.visit(this),o.contextVariables.forEach(e=>e.visit(this)),o.children.forEach(e=>e.visit(this)),o.empty?.visit(this)}visitForLoopBlockEmpty(o){o.children.forEach(e=>e.visit(this))}visitIfBlock(o){o.branches.forEach(e=>e.visit(this))}visitIfBlockBranch(o){o.expressionAlias?.visit(this),o.children.forEach(e=>e.visit(this))}visitContent(o){o.children.forEach(e=>e.visit(this))}visitComponent(o){if(this.directiveMatcher instanceof Pb){let e=this.directiveMatcher.match(o.componentName);e.length>0?this.trackSelectorlessMatchesAndDirectives(o,e):this.missingDirectives.add(o.componentName)}o.directives.forEach(e=>e.visit(this)),o.children.forEach(e=>e.visit(this))}visitDirective(o){if(this.directiveMatcher instanceof Pb){let e=this.directiveMatcher.match(o.name);e.length>0?this.trackSelectorlessMatchesAndDirectives(o,e):this.missingDirectives.add(o.name)}}visitElementOrTemplate(o){if(this.directiveMatcher instanceof kb){let e=[],t=QU(o);this.directiveMatcher.match(t,(i,a)=>e.push(...a)),this.trackSelectorBasedBindingsAndDirectives(o,e)}else o.references.forEach(e=>{e.value.trim()===""&&this.references.set(e,o)});o.directives.forEach(e=>e.visit(this)),o.children.forEach(e=>e.visit(this))}trackMatchedDirectives(o,e){e.length>0&&(this.directives.set(o,e),this.isInDeferBlock||this.eagerDirectives.push(...e))}trackSelectorlessMatchesAndDirectives(o,e){if(e.length===0)return;this.trackMatchedDirectives(o,e);let t=(i,a,s)=>{i[s].hasBindingPropertyName(a.name)&&this.bindings.set(a,i)};for(let i of e)o.inputs.forEach(a=>t(i,a,"inputs")),o.attributes.forEach(a=>t(i,a,"inputs")),o.outputs.forEach(a=>t(i,a,"outputs"));o.references.forEach(i=>this.references.set(i,{directive:e[0],node:o}))}trackSelectorBasedBindingsAndDirectives(o,e){this.trackMatchedDirectives(o,e),o.references.forEach(i=>{let a=null;if(i.value.trim()==="")a=e.find(s=>s.isComponent)||null;else if(a=e.find(s=>s.exportAs!==null&&s.exportAs.some(d=>d===i.value))||null,a===null)return;a!==null?this.references.set(i,{directive:a,node:o}):this.references.set(i,o)});let t=(i,a)=>{let s=e.find(p=>p[a].hasBindingPropertyName(i.name)),d=s!==void 0?s:o;this.bindings.set(i,d)};o.inputs.forEach(i=>t(i,"inputs")),o.attributes.forEach(i=>t(i,"inputs")),o instanceof Qs&&o.templateAttrs.forEach(i=>t(i,"inputs")),o.outputs.forEach(i=>t(i,"outputs"))}visitVariable(o){}visitReference(o){}visitTextAttribute(o){}visitBoundAttribute(o){}visitBoundEvent(o){}visitBoundAttributeOrEvent(o){}visitText(o){}visitBoundText(o){}visitIcu(o){}visitDeferredTrigger(o){}visitUnknownBlock(o){}visitLetDeclaration(o){}},Ax=class n extends F3{bindings;symbols;usedPipes;eagerPipes;deferBlocks;nestingLevel;scope;rootNode;level;visitNode=o=>o.visit(this);constructor(o,e,t,i,a,s,d,p,u){super(),this.bindings=o,this.symbols=e,this.usedPipes=t,this.eagerPipes=i,this.deferBlocks=a,this.nestingLevel=s,this.scope=d,this.rootNode=p,this.level=u}static applyWithScope(o,e,t,i,a,s,d,p){let u=o instanceof Qs?o:null;new n(t,i,s,d,p,a,e,u,0).ingest(o)}ingest(o){if(o instanceof Qs)o.variables.forEach(this.visitNode),o.children.forEach(this.visitNode),this.nestingLevel.set(o,this.level);else if(o instanceof Yp)o.expressionAlias!==null&&this.visitNode(o.expressionAlias),o.children.forEach(this.visitNode),this.nestingLevel.set(o,this.level);else if(o instanceof Hg)this.visitNode(o.item),o.contextVariables.forEach(e=>this.visitNode(e)),o.trackBy.visit(this),o.children.forEach(this.visitNode),this.nestingLevel.set(o,this.level);else if(o instanceof mu){if(this.scope.rootNode!==o)throw new Error(`Assertion error: resolved incorrect scope for deferred block ${o}`);this.deferBlocks.push([o,this.scope]),o.children.forEach(e=>e.visit(this)),this.nestingLevel.set(o,this.level)}else o instanceof s0||o instanceof l0||o instanceof r0||o instanceof o0||o instanceof a0||o instanceof Ug?(o.children.forEach(e=>e.visit(this)),this.nestingLevel.set(o,this.level)):o instanceof d0?this.nestingLevel.set(o,0):o.forEach(this.visitNode)}visitTemplate(o){o.inputs.forEach(this.visitNode),o.outputs.forEach(this.visitNode),o.directives.forEach(this.visitNode),o.templateAttrs.forEach(this.visitNode),o.references.forEach(this.visitNode),this.ingestScopedNode(o)}visitVariable(o){this.rootNode!==null&&this.symbols.set(o,this.rootNode)}visitReference(o){this.rootNode!==null&&this.symbols.set(o,this.rootNode)}visitDeferredBlock(o){this.ingestScopedNode(o),o.triggers.when?.value.visit(this),o.prefetchTriggers.when?.value.visit(this),o.hydrateTriggers.when?.value.visit(this),o.hydrateTriggers.never?.visit(this),o.placeholder&&this.visitNode(o.placeholder),o.loading&&this.visitNode(o.loading),o.error&&this.visitNode(o.error)}visitDeferredBlockPlaceholder(o){this.ingestScopedNode(o)}visitDeferredBlockError(o){this.ingestScopedNode(o)}visitDeferredBlockLoading(o){this.ingestScopedNode(o)}visitSwitchBlockCase(o){o.expression?.visit(this)}visitSwitchBlockCaseGroup(o){o.cases.forEach(e=>e.visit(this)),this.ingestScopedNode(o)}visitSwitchExhaustiveCheck(o){}visitForLoopBlock(o){o.expression.visit(this),this.ingestScopedNode(o),o.empty?.visit(this)}visitForLoopBlockEmpty(o){this.ingestScopedNode(o)}visitIfBlockBranch(o){o.expression?.visit(this),this.ingestScopedNode(o)}visitContent(o){this.ingestScopedNode(o)}visitLetDeclaration(o){super.visitLetDeclaration(o),this.rootNode!==null&&this.symbols.set(o,this.rootNode)}visitPipe(o,e){return this.usedPipes.add(o.name),this.scope.isDeferred||this.eagerPipes.add(o.name),super.visitPipe(o,e)}visitPropertyRead(o,e){return this.maybeMap(o,o.name),super.visitPropertyRead(o,e)}visitSafePropertyRead(o,e){return this.maybeMap(o,o.name),super.visitSafePropertyRead(o,e)}ingestScopedNode(o){let e=this.scope.getChildScope(o);new n(this.bindings,this.symbols,this.usedPipes,this.eagerPipes,this.deferBlocks,this.nestingLevel,e,o,this.level+1).ingest(o)}maybeMap(o,e){if(!(o.receiver instanceof Hc))return;let t=this.scope.lookup(e);t!==null&&this.bindings.set(o,t)}},L3=class{target;directives;eagerDirectives;missingDirectives;bindings;references;exprTargets;symbols;nestingLevel;scopedNodeEntities;usedPipes;eagerPipes;deferredBlocks;deferredScopes;constructor(o,e,t,i,a,s,d,p,u,g,C,M,x){this.target=o,this.directives=e,this.eagerDirectives=t,this.missingDirectives=i,this.bindings=a,this.references=s,this.exprTargets=d,this.symbols=p,this.nestingLevel=u,this.scopedNodeEntities=g,this.usedPipes=C,this.eagerPipes=M,this.deferredBlocks=x.map(b=>b[0]),this.deferredScopes=new Map(x)}getEntitiesInScope(o){return this.scopedNodeEntities.get(o)??new Set}getDirectivesOfNode(o){return this.directives.get(o)||null}getReferenceTarget(o){return this.references.get(o)||null}getConsumerOfBinding(o){return this.bindings.get(o)||null}getExpressionTarget(o){return this.exprTargets.get(o)||null}getDefinitionNodeOfSymbol(o){return this.symbols.get(o)||null}getNestingLevel(o){return this.nestingLevel.get(o)||0}getUsedDirectives(){let o=new Set;return this.directives.forEach(e=>e.forEach(t=>o.add(t))),Array.from(o.values())}getEagerlyUsedDirectives(){let o=new Set(this.eagerDirectives);return Array.from(o.values())}getUsedPipes(){return Array.from(this.usedPipes)}getEagerlyUsedPipes(){return Array.from(this.eagerPipes)}getDeferBlocks(){return this.deferredBlocks}getDeferredTriggerTarget(o,e){if(!(e instanceof Yb)&&!(e instanceof i0)&&!(e instanceof Xb))return null;let t=e.reference;if(t===null){let a=null;if(o.placeholder!==null){for(let s of o.placeholder.children)if(!(s instanceof Rx)){if(a!==null)return null;s instanceof Uc&&(a=s)}}return a}let i=this.findEntityInScope(o,t);if(i instanceof c0&&this.getDefinitionNodeOfSymbol(i)!==o){let a=this.getReferenceTarget(i);if(a!==null)return this.referenceTargetToElement(a)}if(o.placeholder!==null){let a=this.findEntityInScope(o.placeholder,t),s=a instanceof c0?this.getReferenceTarget(a):null;if(s!==null)return this.referenceTargetToElement(s)}return null}isDeferred(o){for(let e of this.deferredBlocks){if(!this.deferredScopes.has(e))continue;let t=[this.deferredScopes.get(e)];for(;t.length>0;){let i=t.pop();if(i.elementLikeInScope.has(o))return!0;t.push(...i.childScopes.values())}}return!1}referencedDirectiveExists(o){return!this.missingDirectives.has(o)}findEntityInScope(o,e){let t=this.getEntitiesInScope(o);for(let i of t)if(i.name===e)return i;return null}referenceTargetToElement(o){return o instanceof Uc?o:o instanceof Qs||o.node instanceof Ef||o.node instanceof NN||o.node instanceof d0?null:this.referenceTargetToElement(o.node)}};function ree(n,o){let e=new Map;function t(a){if(e.has(a.rootNode))return e.get(a.rootNode);let s=a.namedEntities,d;return a.parentScope!==null?d=new Map([...t(a.parentScope),...s]):d=new Map(s),e.set(a.rootNode,d),d}let i=[n];for(;i.length>0;){let a=i.pop();for(let s of a.childScopes.values())i.push(s);t(a)}for(let[a,s]of e)o.set(a,new Set(s.values()))}var V3=class{},B3=class{jitEvaluator;FactoryTarget=Ed;ResourceLoader=V3;elementSchemaRegistry=new Yg;constructor(o=new jP){this.jitEvaluator=o}compilePipe(o,e,t){let i={name:t.name,type:Ua(t.type),typeArgumentCount:0,pipeName:t.pipeName,pure:t.pure,isStandalone:t.isStandalone},a=o6(i);return this.jitExpression(a.expression,o,e,[])}compilePipeDeclaration(o,e,t){let i=wee(t),a=o6(i);return this.jitExpression(a.expression,o,e,[])}compileInjectable(o,e,t){let{expression:i,statements:a}=Q5({name:t.name,type:Ua(t.type),typeArgumentCount:t.typeArgumentCount,providedIn:SN(t.providedIn),useClass:yg(t,"useClass"),useFactory:MN(t,"useFactory"),useValue:yg(t,"useValue"),useExisting:yg(t,"useExisting"),deps:t.deps?.map(e8)},!0);return this.jitExpression(i,o,e,a)}compileInjectableDeclaration(o,e,t){let{expression:i,statements:a}=Q5({name:t.type.name,type:Ua(t.type),typeArgumentCount:0,providedIn:SN(t.providedIn),useClass:yg(t,"useClass"),useFactory:MN(t,"useFactory"),useValue:yg(t,"useValue"),useExisting:yg(t,"useExisting"),deps:t.deps?.map(kN)},!0);return this.jitExpression(i,o,e,a)}compileInjector(o,e,t){let i={type:Ua(t.type),providers:t.providers&&t.providers.length>0?new _i(t.providers):null,imports:t.imports.map(s=>new _i(s))},a=i6(i);return this.jitExpression(a.expression,o,e,[])}compileInjectorDeclaration(o,e,t){let i=Mee(t),a=i6(i);return this.jitExpression(a.expression,o,e,[])}compileNgModule(o,e,t){let i={kind:km.Global,type:Ua(t.type),bootstrap:t.bootstrap.map(Ua),declarations:t.declarations.map(Ua),publicDeclarationTypes:null,imports:t.imports.map(Ua),includeImportTypes:!0,exports:t.exports.map(Ua),selectorScopeMode:rx.Inline,containsForwardDecls:!1,schemas:t.schemas?t.schemas.map(Ua):null,id:t.id?new _i(t.id):null},a=gW(i);return this.jitExpression(a.expression,o,e,[])}compileNgModuleDeclaration(o,e,t){let i=hW(t);return this.jitExpression(i,o,e,[])}compileDirective(o,e,t){let i=yN(t);return this.compileDirectiveFromMeta(o,e,i)}compileDirectiveDeclaration(o,e,t){let i=this.createParseSourceSpan("Directive",t.type.name,e),a=ZF(t,i);return this.compileDirectiveFromMeta(o,e,a)}compileDirectiveFromMeta(o,e,t){let i=new zb,a=Dx(),s=qJ(t,i,a);return this.jitExpression(s.expression,o,e,i.statements)}compileComponent(o,e,t){let{template:i,defer:a}=JF(t.template,t.name,e,t.preserveWhitespaces,void 0),s=ze(q(q({},t),yN(t)),{selector:t.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:i,declarations:t.declarations.map(dee),declarationListEmitMode:0,defer:a,styles:[...t.styles,...i.styles],encapsulation:t.encapsulation,changeDetection:t.changeDetection??null,animations:t.animations!=null?new _i(t.animations):null,viewProviders:t.viewProviders!=null?new _i(t.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null}),d=`ng:///${t.name}.js`;return this.compileComponentFromMeta(o,d,s)}compileComponentDeclaration(o,e,t){let i=this.createParseSourceSpan("Component",t.type.name,e),a=cee(t,i,e);return this.compileComponentFromMeta(o,e,a)}compileComponentFromMeta(o,e,t){let i=new zb,a=Dx(),s=QJ(t,i,a);return this.jitExpression(s.expression,o,e,i.statements)}compileFactory(o,e,t){let i=Hp({name:t.name,type:Ua(t.type),typeArgumentCount:t.typeArgumentCount,deps:uee(t.deps),target:t.target});return this.jitExpression(i.expression,o,e,i.statements)}compileFactoryDeclaration(o,e,t){let i=Hp({name:t.type.name,type:Ua(t.type),typeArgumentCount:0,deps:Array.isArray(t.deps)?t.deps.map(kN):t.deps,target:t.target});return this.jitExpression(i.expression,o,e,i.statements)}createParseSourceSpan(o,e,t){return sW(o,e,t)}jitExpression(o,e,t,i){let a=[...i,new Ga("$def",o,void 0,ur.Exported)];return this.jitEvaluator.evaluateStatements(t,a,new HP(e),!0).$def}};function bN(n){return ze(q({},n),{isSignal:n.isSignal,predicate:YF(n.predicate),read:n.read?new _i(n.read):null,static:n.static,emitDistinctChangesOnly:n.emitDistinctChangesOnly})}function xN(n){return{propertyName:n.propertyName,first:n.first??!1,predicate:YF(n.predicate),descendants:n.descendants??!1,read:n.read?new _i(n.read):null,static:n.static??!1,emitDistinctChangesOnly:n.emitDistinctChangesOnly??!0,isSignal:!!n.isSignal}}function YF(n){return Array.isArray(n)?n:G3(new _i(n),1)}function yN(n){let o=yee(n.inputs||[]),e=mP(n.outputs||[]),t=n.propMetadata,i={},a={};for(let d in t)t.hasOwnProperty(d)&&t[d].forEach(p=>{vee(p)?i[d]={bindingPropertyName:p.alias||d,classPropertyName:d,required:p.required||!1,isSignal:!!p.isSignal,transformFunction:p.transform!=null?new _i(p.transform):null}:Cee(p)&&(a[d]=p.alias||d)});let s=n.hostDirectives?.length?n.hostDirectives.map(d=>typeof d=="function"?{directive:Ua(d),inputs:null,outputs:null,isForwardReference:!1}:{directive:Ua(d.directive),isForwardReference:!1,inputs:d.inputs?mP(d.inputs):null,outputs:d.outputs?mP(d.outputs):null}):null;return ze(q({},n),{typeArgumentCount:0,typeSourceSpan:n.typeSourceSpan,type:Ua(n.type),deps:null,host:q({},hee(n.propMetadata,n.typeSourceSpan,n.host)),inputs:q(q({},o),i),outputs:q(q({},e),a),queries:n.queries.map(bN),providers:n.providers!=null?new _i(n.providers):null,viewQueries:n.viewQueries.map(bN),hostDirectives:s})}function ZF(n,o){let e=n.hostDirectives?.length?n.hostDirectives.map(t=>({directive:Ua(t.directive),isForwardReference:!1,inputs:t.inputs?wN(t.inputs):null,outputs:t.outputs?wN(t.outputs):null})):null;return{name:n.type.name,type:Ua(n.type),typeSourceSpan:o,selector:n.selector??null,inputs:n.inputs?bee(n.inputs):{},outputs:n.outputs??{},host:see(n.host),queries:(n.queries??[]).map(xN),viewQueries:(n.viewQueries??[]).map(xN),providers:n.providers!==void 0?new _i(n.providers):null,exportAs:n.exportAs??null,usesInheritance:n.usesInheritance??!1,controlCreate:n.controlCreate??null,lifecycle:{usesOnChanges:n.usesOnChanges??!1},deps:null,typeArgumentCount:0,isStandalone:n.isStandalone??AN(n.version),isSignal:n.isSignal??!1,hostDirectives:e}}function see(n={}){return{attributes:lee(n.attributes??{}),listeners:n.listeners??{},properties:n.properties??{},specialAttributes:{classAttr:n.classAttribute,styleAttr:n.styleAttribute}}}function wN(n){let o=null;for(let e=1;edP(d,!0))),n.directives&&a.push(...n.directives.map(d=>dP(d))),n.pipes&&a.push(...mee(n.pipes)));let s=a.some(({kind:d})=>d===Gg.Directive||d===Gg.NgModule);return ze(q({},ZF(n,o)),{template:t,styles:n.styles??[],declarations:a,viewProviders:n.viewProviders!==void 0?new _i(n.viewProviders):null,animations:n.animations!==void 0?new _i(n.animations):null,defer:i,changeDetection:n.changeDetection??$3.Default,encapsulation:n.encapsulation??$p.Emulated,declarationListEmitMode:2,relativeContextFilePath:"",i18nUseExternalIds:!0,relativeTemplatePath:null,hasDirectiveDependencies:s})}function dee(n){return ze(q({},n),{type:new _i(n.type)})}function dP(n,o=null){return{kind:Gg.Directive,isComponent:o||n.kind==="component",selector:n.selector,type:new _i(n.type),inputs:n.inputs??[],outputs:n.outputs??[],exportAs:n.exportAs??null}}function mee(n){return n?Object.keys(n).map(o=>({kind:Gg.Pipe,name:o,type:new _i(n[o])})):[]}function pee(n){return{kind:Gg.Pipe,name:n.name,type:new _i(n.type)}}function JF(n,o,e,t,i){let a=HJ(n,e,{preserveWhitespaces:t});if(a.errors!==null){let p=a.errors.map(u=>u.toString()).join(", ");throw new Error(`Errors during JIT compilation of template for ${o}: ${p}`)}let d=new R3(null).bind({template:a.nodes});return{template:a,defer:gee(d,i)}}function yg(n,o){if(n.hasOwnProperty(o))return G3(new _i(n[o]),0)}function MN(n,o){if(n.hasOwnProperty(o))return new _i(n[o])}function SN(n){let o=typeof n=="function"?new _i(n):new _r(n??null);return G3(o,0)}function uee(n){return n==null?null:n.map(e8)}function e8(n){let o=n.attribute!=null,e=n.token===null?null:new _i(n.token),t=o?new _i(n.attribute):e;return t8(t,o,n.host,n.optional,n.self,n.skipSelf)}function kN(n){let o=n.attribute??!1,e=n.token===null?null:new _i(n.token);return t8(e,o,n.host??!1,n.optional??!1,n.self??!1,n.skipSelf??!1)}function t8(n,o,e,t,i,a){let s=o?De("unknown"):null;return{token:n,attributeNameType:s,host:e,optional:t,self:i,skipSelf:a}}function gee(n,o){let e=n.getDeferBlocks(),t=new Map;for(let i=0;i{_ee(s)?t.properties[s.hostPropertyName||a]=OU("this",a):fee(s)&&(t.listeners[s.eventName||a]=`${a}(${(s.args||[]).join(",")})`)});let i=nee(t,o);if(i.length)throw new Error(i.map(a=>a.msg).join(` +`));return t}function _ee(n){return n.ngMetadataName==="HostBinding"}function fee(n){return n.ngMetadataName==="HostListener"}function vee(n){return n.ngMetadataName==="Input"}function Cee(n){return n.ngMetadataName==="Output"}function bee(n){return Object.keys(n).reduce((o,e)=>{let t=n[e];return typeof t=="string"||Array.isArray(t)?o[e]=xee(t):o[e]={bindingPropertyName:t.publicName,classPropertyName:e,transformFunction:t.transformFunction!==null?new _i(t.transformFunction):null,required:t.isRequired,isSignal:t.isSignal},o},{})}function xee(n){return typeof n=="string"?{bindingPropertyName:n,classPropertyName:n,transformFunction:null,required:!1,isSignal:!1}:{bindingPropertyName:n[0],classPropertyName:n[1],transformFunction:n[2]?new _i(n[2]):null,required:!1,isSignal:!1}}function yee(n){return n.reduce((o,e)=>{if(typeof e=="string"){let[t,i]=n8(e);o[i]={bindingPropertyName:t,classPropertyName:i,required:!1,isSignal:!1,transformFunction:null}}else o[e.name]={bindingPropertyName:e.alias||e.name,classPropertyName:e.name,required:e.required||!1,isSignal:!1,transformFunction:e.transform!=null?new _i(e.transform):null};return o},{})}function mP(n){return n.reduce((o,e)=>{let[t,i]=n8(e);return o[i]=t,o},{})}function n8(n){let[o,e]=n.split(":",2).map(t=>t.trim());return[e??o,o]}function wee(n){return{name:n.type.name,type:Ua(n.type),typeArgumentCount:0,pipeName:n.name,deps:null,pure:n.pure??!0,isStandalone:n.isStandalone??AN(n.version)}}function Mee(n){return{name:n.type.name,type:Ua(n.type),providers:n.providers!==void 0&&n.providers.length>0?new _i(n.providers):null,imports:n.imports!==void 0?n.imports.map(o=>new _i(o)):[]}}function See(n){let o=n.ng||(n.ng={});o.\u0275compilerFacade=new B3}var j3=class{closedByParent=!1;implicitNamespacePrefix=null;isVoid=!1;ignoreFirstLf=!1;canSelfClose=!0;preventNamespaceInheritance=!1;requireExtraParent(o){return!1}isClosedByChild(o){return!1}getContentType(){return Nc.PARSABLE_DATA}},PHe=new j3;var THe=new vP("21.2.25");See(Tf);function uT(n){let o=n.cloneNode(!0),e=o.querySelectorAll("[id]"),t=n.nodeName.toLowerCase();o.removeAttribute("id");for(let i=0;i=t&&e<=i&&o>=a&&o<=s}function Pee(n,o){let e=o.leftn.right,i=o.topn.bottom;return e||t||i||a}function j0(n,o,e){n.top+=o,n.bottom=n.top+n.height,n.left+=e,n.right=n.left+n.width}function r8(n,o,e,t){let{top:i,right:a,bottom:s,left:d,width:p,height:u}=n,g=p*o,C=u*o;return t>i-C&&td-g&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:bT(e)})})}handleScroll(o){let e=Rp(o),t=this.positions.get(e);if(!t)return null;let i=t.scrollPosition,a,s;if(e===this._document){let u=this.getViewportScrollPosition();a=u.top,s=u.left}else a=e.scrollTop,s=e.scrollLeft;let d=i.top-a,p=i.left-s;return this.positions.forEach((u,g)=>{u.clientRect&&e!==g&&e.contains(g)&&j0(u.clientRect,d,p)}),i.top=a,i.left=s,{top:d,left:p}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function f8(n,o){let e=n.rootNodes;if(e.length===1&&e[0].nodeType===o.ELEMENT_NODE)return e[0];let t=o.createElement("div");return e.forEach(i=>t.appendChild(i)),t}function xT(n,o,e){for(let t in o)if(o.hasOwnProperty(t)){let i=o[t];i?n.setProperty(t,i,e?.has(t)?"important":""):n.removeProperty(t)}return n}function oh(n,o){let e=o?"":"none";xT(n.style,{"touch-action":o?"":"none","-webkit-user-drag":o?"":"none","-webkit-tap-highlight-color":o?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function s8(n,o,e){xT(n.style,{position:o?"":"fixed",top:o?"":"0",opacity:o?"":"0",left:o?"":"-999em"},e)}function Wx(n,o){return o&&o!="none"?n+" "+o:n}function l8(n,o){n.style.width=`${o.width}px`,n.style.height=`${o.height}px`,n.style.transform=$0(o.left,o.top)}function $0(n,o){return`translate3d(${Math.round(n)}px, ${Math.round(o)}px, 0)`}var V0={capture:!0},mT={passive:!1,capture:!0},Tee=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(t,i){},styles:[`@layer cdk-resets { + .cdk-drag-preview { + background: none; + border: none; + padding: 0; + color: inherit; + inset: auto; + } +} +.cdk-drag-placeholder *, +.cdk-drag-preview * { + pointer-events: none !important; +} +`],encapsulation:2,changeDetection:0})}return n})(),qx=(()=>{class n{_ngZone=f(Gi);_document=f(Do);_styleLoader=f(Ta);_renderer=f(Fp).createRenderer(null,null);_cleanupDocumentTouchmove;_scroll=new Ye;_dropInstances=new Set;_dragInstances=new Set;_activeDragInstances=z([]);_globalListeners;_draggingPredicate=e=>e.isDragging();_domNodesToDirectives=null;pointerMove=new Ye;pointerUp=new Ye;constructor(){}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._cleanupDocumentTouchmove?.(),this._cleanupDocumentTouchmove=this._renderer.listen(this._document,"touchmove",this._persistentTouchmoveListener,mT)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),this._dragInstances.size===0&&this._cleanupDocumentTouchmove?.()}startDragging(e,t){if(!(this._activeDragInstances().indexOf(e)>-1)&&(this._styleLoader.load(Tee),this._activeDragInstances.update(i=>[...i,e]),this._activeDragInstances().length===1)){let i=t.type.startsWith("touch"),a=d=>this.pointerUp.next(d),s=[["scroll",d=>this._scroll.next(d),V0],["selectstart",this._preventDefaultWhileDragging,mT]];i?s.push(["touchend",a,V0],["touchcancel",a,V0]):s.push(["mouseup",a,V0]),i||s.push(["mousemove",d=>this.pointerMove.next(d),mT]),this._ngZone.runOutsideAngular(()=>{this._globalListeners=s.map(([d,p,u])=>this._renderer.listen(this._document,d,p,u))})}}stopDragging(e){this._activeDragInstances.update(t=>{let i=t.indexOf(e);return i>-1?(t.splice(i,1),[...t]):t}),this._activeDragInstances().length===0&&this._clearGlobalListeners()}isDragging(e){return this._activeDragInstances().indexOf(e)>-1}scrolled(e){let t=[this._scroll];return e&&e!==this._document&&t.push(new Sr(i=>this._ngZone.runOutsideAngular(()=>{let a=this._renderer.listen(e,"scroll",s=>{this._activeDragInstances().length&&i.next(s)},V0);return()=>{a()}}))),ro(...t)}registerDirectiveNode(e,t){this._domNodesToDirectives??=new WeakMap,this._domNodesToDirectives.set(e,t)}removeDirectiveNode(e){this._domNodesToDirectives?.delete(e)}getDragDirectiveForNode(e){return this._domNodesToDirectives?.get(e)||null}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._domNodesToDirectives=null,this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_preventDefaultWhileDragging=e=>{this._activeDragInstances().length>0&&e.preventDefault()};_persistentTouchmoveListener=e=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&e.preventDefault(),this.pointerMove.next(e))};_clearGlobalListeners(){this._globalListeners?.forEach(e=>e()),this._globalListeners=void 0}static \u0275fac=function(t){return new(t||n)};static \u0275prov=J({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();function c8(n){let o=n.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(n)*o}function Eee(n){let o=getComputedStyle(n),e=pT(o,"transition-property"),t=e.find(d=>d==="transform"||d==="all");if(!t)return 0;let i=e.indexOf(t),a=pT(o,"transition-duration"),s=pT(o,"transition-delay");return c8(a[i])+c8(s[i])}function pT(n,o){return n.getPropertyValue(o).split(",").map(t=>t.trim())}var Oee=new Set(["position"]),hT=class{_document;_rootElement;_direction;_initialDomRect;_previewTemplate;_previewClass;_pickupPositionOnPage;_initialTransform;_zIndex;_renderer;_previewEmbeddedView=null;_preview;get element(){return this._preview}constructor(o,e,t,i,a,s,d,p,u,g){this._document=o,this._rootElement=e,this._direction=t,this._initialDomRect=i,this._previewTemplate=a,this._previewClass=s,this._pickupPositionOnPage=d,this._initialTransform=p,this._zIndex=u,this._renderer=g}attach(o){this._preview=this._createPreview(),o.appendChild(this._preview),d8(this._preview)&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(o){this._preview.style.transform=o}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(o){this._preview.classList.add(o)}getTransitionDuration(){return Eee(this._preview)}addEventListener(o,e){return this._renderer.listen(this._preview,o,e)}_createPreview(){let o=this._previewTemplate,e=this._previewClass,t=o?o.template:null,i;if(t&&o){let a=o.matchSize?this._initialDomRect:null,s=o.viewContainer.createEmbeddedView(t,o.context);s.detectChanges(),i=f8(s,this._document),this._previewEmbeddedView=s,o.matchSize?l8(i,a):i.style.transform=$0(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else i=uT(this._rootElement),l8(i,this._initialDomRect),this._initialTransform&&(i.style.transform=this._initialTransform);return xT(i.style,{"pointer-events":"none",margin:d8(i)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},Oee),oh(i,!1),i.classList.add("cdk-drag-preview"),i.setAttribute("popover","manual"),i.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(a=>i.classList.add(a)):i.classList.add(e)),i}};function d8(n){return"showPopover"in n}var Dee={passive:!0},m8={passive:!1},Iee={passive:!1,capture:!0},Aee=800,p8="cdk-drag-placeholder",u8=new Set(["position"]);function v8(n,o,e={dragStartThreshold:5,pointerDirectionChangeThreshold:5}){let t=n.get(qi,null,{optional:!0})||n.get(Fp).createRenderer(null,null);return new _T(o,e,n.get(Do),n.get(Gi),n.get(kd),n.get(qx),t)}var _T=class{_config;_document;_ngZone;_viewportRuler;_dragDropRegistry;_renderer;_rootElementCleanups;_cleanupShadowRootSelectStart;_preview=null;_previewContainer;_placeholderRef=null;_placeholder;_pickupPositionInElement;_pickupPositionOnPage;_marker;_anchor=null;_passiveTransform={x:0,y:0};_activeTransform={x:0,y:0};_initialTransform;_hasStartedDragging=z(!1);_hasMoved=!1;_initialContainer;_initialIndex;_parentPositions;_moveEvents=new Ye;_pointerDirectionDelta;_pointerPositionAtLastDirectionChange;_lastKnownPointerPosition;_rootElement;_ownerSVGElement=null;_rootElementTapHighlight;_pointerMoveSubscription=Oo.EMPTY;_pointerUpSubscription=Oo.EMPTY;_scrollSubscription=Oo.EMPTY;_resizeSubscription=Oo.EMPTY;_lastTouchEventTime;_dragStartTime;_boundaryElement=null;_nativeInteractionsEnabled=!0;_initialDomRect;_previewRect;_boundaryRect;_previewTemplate;_placeholderTemplate;_handles=[];_disabledHandles=new Set;_dropContainer;_direction="ltr";_parentDragRef=null;_cachedShadowRoot;lockAxis=null;dragStartDelay=0;previewClass;scale=1;get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled)}set disabled(o){o!==this._disabled&&(this._disabled=o,this._toggleNativeDragInteractions(),this._handles.forEach(e=>oh(e,o)))}_disabled=!1;beforeStarted=new Ye;started=new Ye;released=new Ye;ended=new Ye;entered=new Ye;exited=new Ye;dropped=new Ye;moved=this._moveEvents;data;constrainPosition;constructor(o,e,t,i,a,s,d){this._config=e,this._document=t,this._ngZone=i,this._viewportRuler=a,this._dragDropRegistry=s,this._renderer=d,this.withRootElement(o).withParent(e.parentDragRef||null),this._parentPositions=new Ux(t),s.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(o){this._handles=o.map(t=>cl(t)),this._handles.forEach(t=>oh(t,this.disabled)),this._toggleNativeDragInteractions();let e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(o){return this._previewTemplate=o,this}withPlaceholderTemplate(o){return this._placeholderTemplate=o,this}withRootElement(o){let e=cl(o);if(e!==this._rootElement){this._removeRootElementListeners();let t=this._renderer;this._rootElementCleanups=this._ngZone.runOutsideAngular(()=>[t.listen(e,"mousedown",this._pointerDown,m8),t.listen(e,"touchstart",this._pointerDown,Dee),t.listen(e,"dragstart",this._nativeDragStart,m8)]),this._initialTransform=void 0,this._rootElement=e}return typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(o){return this._boundaryElement=o?cl(o):null,this._resizeSubscription.unsubscribe(),o&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(o){return this._parentDragRef=o,this}dispose(){this._removeRootElementListeners(),this.isDragging()&&this._rootElement?.remove(),this._marker?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._marker=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}resetToBoundary(){if(this._boundaryElement&&this._rootElement&&Pee(this._boundaryElement.getBoundingClientRect(),this._rootElement.getBoundingClientRect())){let o=this._boundaryElement.getBoundingClientRect(),e=this._rootElement.getBoundingClientRect(),t=0,i=0;e.lefto.right&&(t=o.right-e.right),e.topo.bottom&&(i=o.bottom-e.bottom);let a=this._activeTransform.x,s=this._activeTransform.y,d=a+t,p=s+i;this._rootElement.style.transform=$0(d,p),this._activeTransform={x:d,y:p},this._passiveTransform={x:d,y:p}}}disableHandle(o){!this._disabledHandles.has(o)&&this._handles.indexOf(o)>-1&&(this._disabledHandles.add(o),oh(o,!0))}enableHandle(o){this._disabledHandles.has(o)&&(this._disabledHandles.delete(o),oh(o,this.disabled))}withDirection(o){return this._direction=o,this}_withDropContainer(o){this._dropContainer=o}getFreeDragPosition(){let o=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:o.x,y:o.y}}setFreeDragPosition(o){return this._activeTransform={x:0,y:0},this._passiveTransform.x=o.x,this._passiveTransform.y=o.y,this._dropContainer||this._applyRootElementTransform(o.x,o.y),this}withPreviewContainer(o){return this._previewContainer=o,this}_sortFromLastPointerPosition(){let o=this._lastKnownPointerPosition;o&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(o),o)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._cleanupShadowRootSelectStart?.(),this._cleanupShadowRootSelectStart=void 0}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._anchor?.remove(),this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._anchor=this._placeholderRef=null}_pointerDown=o=>{if(this.beforeStarted.next(),this._handles.length){let e=this._getTargetHandle(o);e&&!this._disabledHandles.has(e)&&!this.disabled&&this._initializeDragSequence(e,o)}else this.disabled||this._initializeDragSequence(this._rootElement,o)};_pointerMove=o=>{let e=this._getPointerPositionOnPage(o);if(!this._hasStartedDragging()){let i=Math.abs(e.x-this._pickupPositionOnPage.x),a=Math.abs(e.y-this._pickupPositionOnPage.y);if(i+a>=this._config.dragStartThreshold){let d=Date.now()>=this._dragStartTime+this._getDragStartDelay(o),p=this._dropContainer;if(!d){this._endDragSequence(o);return}(!p||!p.isDragging()&&!p.isReceiving())&&(o.cancelable&&o.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(o)))}return}o.cancelable&&o.preventDefault();let t=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(t),this._dropContainer)this._updateActiveDropContainer(t,e);else{let i=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,a=this._activeTransform;a.x=t.x-i.x+this._passiveTransform.x,a.y=t.y-i.y+this._passiveTransform.y,this._applyRootElementTransform(a.x,a.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:t,event:o,distance:this._getDragDistance(t),delta:this._pointerDirectionDelta})})};_pointerUp=o=>{this._endDragSequence(o)};_endDragSequence(o){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),!!this._hasStartedDragging()))if(this.released.next({source:this,event:o}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(o),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;let e=this._getPointerPositionOnPage(o);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:o})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(o){B0(o)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let e=this._getShadowRoot(),t=this._dropContainer;if(e&&this._ngZone.runOutsideAngular(()=>{this._cleanupShadowRootSelectStart=this._renderer.listen(e,"selectstart",Nee,Iee)}),t){let i=this._rootElement,a=i.parentNode,s=this._placeholder=this._createPlaceholderElement(),d=this._marker=this._marker||this._document.createComment("");a.insertBefore(d,i),this._initialTransform=i.style.transform||"",this._preview=new hT(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3,this._renderer),this._preview.attach(this._getPreviewInsertionPoint(a,e)),s8(i,!1,u8),this._document.body.appendChild(a.replaceChild(s,i)),this.started.next({source:this,event:o}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this,event:o}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}_initializeDragSequence(o,e){this._parentDragRef&&e.stopPropagation();let t=this.isDragging(),i=B0(e),a=!i&&e.button!==0,s=this._rootElement,d=Rp(e),p=!i&&this._lastTouchEventTime&&this._lastTouchEventTime+Aee>Date.now(),u=i?OA(e):EA(e);if(d&&d.draggable&&e.type==="mousedown"&&e.preventDefault(),t||a||p||u)return;if(this._handles.length){let M=s.style;this._rootElementTapHighlight=M.webkitTapHighlightColor||"",M.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(M=>this._updateOnScroll(M)),this._boundaryElement&&(this._boundaryRect=bT(this._boundaryElement));let g=this._previewTemplate;this._pickupPositionInElement=g&&g.template&&!g.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,o,e);let C=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:C.x,y:C.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(o){s8(this._rootElement,!0,u8),this._marker.parentNode.replaceChild(this._rootElement,this._marker),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let e=this._dropContainer,t=e.getItemIndex(this),i=this._getPointerPositionOnPage(o),a=this._getDragDistance(i),s=e._isOverContainer(i.x,i.y);this.ended.next({source:this,distance:a,dropPoint:i,event:o}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:s,distance:a,dropPoint:i,event:o}),e.drop(this,t,this._initialIndex,this._initialContainer,s,a,i,o),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:o,y:e},{x:t,y:i}){let a=this._initialContainer._getSiblingContainerFromPosition(this,o,e);!a&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(o,e)&&(a=this._initialContainer),a&&a!==this._dropContainer&&this._ngZone.run(()=>{let s=this._dropContainer.getItemIndex(this),d=this._dropContainer.getItemAtIndex(s+1)?.getVisibleElement()||null;this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._conditionallyInsertAnchor(a,this._dropContainer,d),this._dropContainer=a,this._dropContainer.enter(this,o,e,a===this._initialContainer&&a.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:a,currentIndex:a.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,i),this._dropContainer._sortItem(this,o,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(o,e):this._applyPreviewTransform(o-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let o=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(o.left,o.top);let e=this._preview.getTransitionDuration();return e===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{let i=d=>{(!d||this._preview&&Rp(d)===this._preview.element&&d.propertyName==="transform")&&(s(),t(),clearTimeout(a))},a=setTimeout(i,e*1.5),s=this._preview.addEventListener("transitionend",i)}))}_createPlaceholderElement(){let o=this._placeholderTemplate,e=o?o.template:null,t;return e?(this._placeholderRef=o.viewContainer.createEmbeddedView(e,o.context),this._placeholderRef.detectChanges(),t=f8(this._placeholderRef,this._document)):t=uT(this._rootElement),t.style.pointerEvents="none",t.classList.add(p8),t}_getPointerPositionInElement(o,e,t){let i=e===this._rootElement?null:e,a=i?i.getBoundingClientRect():o,s=B0(t)?t.targetTouches[0]:t,d=this._getViewportScrollPosition(),p=s.pageX-a.left-d.left,u=s.pageY-a.top-d.top;return{x:a.left-o.left+p,y:a.top-o.top+u}}_getPointerPositionOnPage(o){let e=this._getViewportScrollPosition(),t=B0(o)?o.touches[0]||o.changedTouches[0]||{pageX:0,pageY:0}:o,i=t.pageX-e.left,a=t.pageY-e.top;if(this._ownerSVGElement){let s=this._ownerSVGElement.getScreenCTM();if(s){let d=this._ownerSVGElement.createSVGPoint();return d.x=i,d.y=a,d.matrixTransform(s.inverse())}}return{x:i,y:a}}_getConstrainedPointerPosition(o){let e=this._dropContainer?this._dropContainer.lockAxis:null,{x:t,y:i}=this.constrainPosition?this.constrainPosition(o,this,this._initialDomRect,this._pickupPositionInElement):o;if(this.lockAxis==="x"||e==="x"?i=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||e==="y")&&(t=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:a,y:s}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,d=this._boundaryRect,{width:p,height:u}=this._getPreviewRect(),g=d.top+s,C=d.bottom-(u-s),M=d.left+a,x=d.right-(p-a);t=g8(t,M,x),i=g8(i,g,C)}return{x:t,y:i}}_updatePointerDirectionDelta(o){let{x:e,y:t}=o,i=this._pointerDirectionDelta,a=this._pointerPositionAtLastDirectionChange,s=Math.abs(e-a.x),d=Math.abs(t-a.y);return s>this._config.pointerDirectionChangeThreshold&&(i.x=e>a.x?1:-1,a.x=e),d>this._config.pointerDirectionChangeThreshold&&(i.y=t>a.y?1:-1,a.y=t),i}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let o=this._handles.length>0||!this.isDragging();o!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=o,oh(this._rootElement,o))}_removeRootElementListeners(){this._rootElementCleanups?.forEach(o=>o()),this._rootElementCleanups=void 0}_applyRootElementTransform(o,e){let t=1/this.scale,i=$0(o*t,e*t),a=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=a.transform&&a.transform!="none"?a.transform:""),a.transform=Wx(i,this._initialTransform)}_applyPreviewTransform(o,e){let t=this._previewTemplate?.template?void 0:this._initialTransform,i=$0(o,e);this._preview.setTransform(Wx(i,t))}_getDragDistance(o){let e=this._pickupPositionOnPage;return e?{x:o.x-e.x,y:o.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:o,y:e}=this._passiveTransform;if(o===0&&e===0||this.isDragging()||!this._boundaryElement)return;let t=this._rootElement.getBoundingClientRect(),i=this._boundaryElement.getBoundingClientRect();if(i.width===0&&i.height===0||t.width===0&&t.height===0)return;let a=i.left-t.left,s=t.right-i.right,d=i.top-t.top,p=t.bottom-i.bottom;i.width>t.width?(a>0&&(o+=a),s>0&&(o-=s)):o=0,i.height>t.height?(d>0&&(e+=d),p>0&&(e-=p)):e=0,(o!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:o})}_getDragStartDelay(o){let e=this.dragStartDelay;return typeof e=="number"?e:B0(o)?e.touch:e?e.mouse:0}_updateOnScroll(o){let e=this._parentPositions.handleScroll(o);if(e){let t=Rp(o);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&j0(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=jC(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(o,e){let t=this._previewContainer||"global";if(t==="parent")return o;if(t==="global"){let i=this._document;return e||i.fullscreenElement||i.webkitFullscreenElement||i.mozFullScreenElement||i.msFullscreenElement||i.body}return cl(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_nativeDragStart=o=>{if(this._handles.length){let e=this._getTargetHandle(o);e&&!this._disabledHandles.has(e)&&!this.disabled&&o.preventDefault()}else this.disabled||o.preventDefault()};_getTargetHandle(o){return this._handles.find(e=>o.target&&(o.target===e||e.contains(o.target)))}_conditionallyInsertAnchor(o,e,t){if(o===this._initialContainer)this._anchor?.remove(),this._anchor=null;else if(e===this._initialContainer&&e.hasAnchor){let i=this._anchor??=uT(this._placeholder);i.classList.remove(p8),i.classList.add("cdk-drag-anchor"),i.style.transform="",t?t.before(i):cl(e.element).appendChild(i)}}};function g8(n,o,e){return Math.max(o,Math.min(e,n))}function B0(n){return n.type[0]==="t"}function Nee(n){n.preventDefault()}function C8(n,o,e){let t=h8(o,n.length-1),i=h8(e,n.length-1);if(t===i)return;let a=n[t],s=i0)return null;let d=this.orientation==="horizontal",p=a.findIndex(k=>k.drag===o),u=a[s],g=a[p].clientRect,C=u.clientRect,M=p>s?1:-1,x=this._getItemOffsetPx(g,C,M),b=this._getSiblingOffsetPx(p,a,M),P=a.slice();return C8(a,p,s),a.forEach((k,S)=>{if(P[S]===k)return;let O=k.drag===o,A=O?x:b,D=O?o.getPlaceholderElement():k.drag.getRootElement();k.offset+=A;let F=Math.round(k.offset*(1/k.drag.scale));d?(D.style.transform=Wx(`translate3d(${F}px, 0, 0)`,k.initialTransform),j0(k.clientRect,0,A)):(D.style.transform=Wx(`translate3d(0, ${F}px, 0)`,k.initialTransform),j0(k.clientRect,A,0))}),this._previousSwap.overlaps=gT(C,e,t),this._previousSwap.drag=u.drag,this._previousSwap.delta=d?i.x:i.y,{previousIndex:p,currentIndex:s}}enter(o,e,t,i){let a=this._activeDraggables,s=a.indexOf(o),d=o.getPlaceholderElement();s>-1&&a.splice(s,1);let p=i==null||i<0?this._getItemIndexFromPointerPosition(o,e,t):i,u=a[p];if(u===o&&(u=a[p+1]),!u&&(p==null||p===-1||p{let e=o.getRootElement();if(e){let t=this._itemPositions.find(i=>i.drag===o)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(o){return this._getVisualItemPositions().findIndex(e=>e.drag===o)}getItemAtIndex(o){return this._getVisualItemPositions()[o]?.drag||null}updateOnScroll(o,e){this._itemPositions.forEach(({clientRect:t})=>{j0(t,o,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}withElementContainer(o){this._element=o}_cacheItemPositions(){let o=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(e=>{let t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:bT(t)}}).sort((e,t)=>o?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getVisualItemPositions(){return this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions}_getItemOffsetPx(o,e,t){let i=this.orientation==="horizontal",a=i?e.left-o.left:e.top-o.top;return t===-1&&(a+=i?e.width-o.width:e.height-o.height),a}_getSiblingOffsetPx(o,e,t){let i=this.orientation==="horizontal",a=e[o].clientRect,s=e[o+t*-1],d=a[i?"width":"height"]*t;if(s){let p=i?"left":"top",u=i?"right":"bottom";t===-1?d-=s.clientRect[p]-a[u]:d+=a[p]-s.clientRect[u]}return d}_shouldEnterAsFirstChild(o,e){if(!this._activeDraggables.length)return!1;let t=this._itemPositions,i=this.orientation==="horizontal";if(t[0].drag!==this._activeDraggables[0]){let s=t[t.length-1].clientRect;return i?o>=s.right:e>=s.bottom}else{let s=t[0].clientRect;return i?o<=s.left:e<=s.top}}_getItemIndexFromPointerPosition(o,e,t,i){let a=this.orientation==="horizontal",s=this._itemPositions.findIndex(({drag:d,clientRect:p})=>{if(d===o)return!1;if(i){let u=a?i.x:i.y;if(d===this._previousSwap.drag&&this._previousSwap.overlaps&&u===this._previousSwap.delta)return!1}return a?e>=Math.floor(p.left)&&e=Math.floor(p.top)&&tp?g.after(u):g.before(u),C8(this._activeItems,p,a);let C=this._getRootNode().elementFromPoint(e,t);return s.deltaX=i.x,s.deltaY=i.y,s.drag=d,s.overlaps=g===C||g.contains(C),{previousIndex:p,currentIndex:a}}enter(o,e,t,i){let a=this._activeItems.indexOf(o);a>-1&&this._activeItems.splice(a,1);let s=i==null||i<0?this._getItemIndexFromPointerPosition(o,e,t):i;s===-1&&(s=this._getClosestItemIndexToPointer(o,e,t));let d=this._activeItems[s];d&&!this._dragDropRegistry.isDragging(d)?(this._activeItems.splice(s,0,o),d.getRootElement().before(o.getPlaceholderElement())):(this._activeItems.push(o),this._element.appendChild(o.getPlaceholderElement()))}withItems(o){this._activeItems=o.slice()}withSortPredicate(o){this._sortPredicate=o}reset(){let o=this._element,e=this._previousSwap;for(let t=this._relatedNodes.length-1;t>-1;t--){let[i,a]=this._relatedNodes[t];i.parentNode===o&&i.nextSibling!==a&&(a===null?o.appendChild(i):a.parentNode===o&&o.insertBefore(i,a))}this._relatedNodes=[],this._activeItems=[],e.drag=null,e.deltaX=e.deltaY=0,e.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex(o){return this._activeItems.indexOf(o)}getItemAtIndex(o){return this._activeItems[o]||null}updateOnScroll(){this._activeItems.forEach(o=>{this._dragDropRegistry.isDragging(o)&&o._sortFromLastPointerPosition()})}withElementContainer(o){o!==this._element&&(this._element=o,this._rootNode=void 0)}_getItemIndexFromPointerPosition(o,e,t){let i=this._getRootNode().elementFromPoint(Math.floor(e),Math.floor(t)),a=i?this._activeItems.findIndex(s=>{let d=s.getRootElement();return i===d||d.contains(i)}):-1;return a===-1||!this._sortPredicate(a,o)?-1:a}_getRootNode(){return this._rootNode||(this._rootNode=jC(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer(o,e,t){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;let i=1/0,a=-1;for(let s=0;s!0;sortPredicate=()=>!0;beforeStarted=new Ye;entered=new Ye;exited=new Ye;dropped=new Ye;sorted=new Ye;receivingStarted=new Ye;receivingStopped=new Ye;data;_container;_isDragging=!1;_parentPositions;_sortStrategy;_domRect;_draggables=[];_siblings=[];_activeSiblings=new Set;_viewportScrollSubscription=Oo.EMPTY;_verticalScrollDirection=Ml.NONE;_horizontalScrollDirection=as.NONE;_scrollNode;_stopScrollTimers=new Ye;_cachedShadowRoot=null;_document;_scrollableElements=[];_initialScrollSnap;_direction="ltr";constructor(o,e,t,i,a){this._dragDropRegistry=e,this._ngZone=i,this._viewportRuler=a;let s=this.element=cl(o);this._document=t,this.withOrientation("vertical").withElementContainer(s),e.registerDropContainer(this),this._parentPositions=new Ux(t)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(o,e,t,i){this._draggingStarted(),i==null&&this.sortingDisabled&&(i=this._draggables.indexOf(o)),this._sortStrategy.enter(o,e,t,i),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:o,container:this,currentIndex:this.getItemIndex(o)})}exit(o){this._reset(),this.exited.next({item:o,container:this})}drop(o,e,t,i,a,s,d,p={}){this._reset(),this.dropped.next({item:o,currentIndex:e,previousIndex:t,container:this,previousContainer:i,isPointerOverContainer:a,distance:s,dropPoint:d,event:p})}withItems(o){let e=this._draggables;return this._draggables=o,o.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(i=>i.isDragging()).every(i=>o.indexOf(i)===-1)?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(o){return this._direction=o,this._sortStrategy instanceof Gx&&(this._sortStrategy.direction=o),this}connectedTo(o){return this._siblings=o.slice(),this}withOrientation(o){if(o==="mixed")this._sortStrategy=new fT(this._document,this._dragDropRegistry);else{let e=new Gx(this._dragDropRegistry);e.direction=this._direction,e.orientation=o,this._sortStrategy=e}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((e,t)=>this.sortPredicate(e,t,this)),this}withScrollableParents(o){let e=this._container;return this._scrollableElements=o.indexOf(e)===-1?[e,...o]:o.slice(),this}withElementContainer(o){if(o===this._container)return this;let e=cl(this.element),t=this._scrollableElements.indexOf(this._container),i=this._scrollableElements.indexOf(o);return t>-1&&this._scrollableElements.splice(t,1),i>-1&&this._scrollableElements.splice(i,1),this._sortStrategy&&this._sortStrategy.withElementContainer(o),this._cachedShadowRoot=null,this._scrollableElements.unshift(o),this._container=o,this}getScrollableParents(){return this._scrollableElements}getItemIndex(o){return this._isDragging?this._sortStrategy.getItemIndex(o):this._draggables.indexOf(o)}getItemAtIndex(o){return this._isDragging?this._sortStrategy.getItemAtIndex(o):this._draggables[o]||null}isReceiving(){return this._activeSiblings.size>0}_sortItem(o,e,t,i){if(this.sortingDisabled||!this._domRect||!r8(this._domRect,_8,e,t))return;let a=this._sortStrategy.sort(o,e,t,i);a&&this.sorted.next({previousIndex:a.previousIndex,currentIndex:a.currentIndex,container:this,item:o})}_startScrollingIfNecessary(o,e){if(this.autoScrollDisabled)return;let t,i=Ml.NONE,a=as.NONE;if(this._parentPositions.positions.forEach((s,d)=>{d===this._document||!s.clientRect||t||r8(s.clientRect,_8,o,e)&&([i,a]=Ree(d,s.clientRect,this._direction,o,e),(i||a)&&(t=d))}),!i&&!a){let{width:s,height:d}=this._viewportRuler.getViewportSize(),p={width:s,height:d,top:0,right:s,bottom:d,left:0};i=x8(p,e),a=y8(p,o),t=window}t&&(i!==this._verticalScrollDirection||a!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=i,this._horizontalScrollDirection=a,this._scrollNode=t,(i||a)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){let o=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=o.msScrollSnapType||o.scrollSnapType||"",o.scrollSnapType=o.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect}_reset(){this._isDragging=!1;let o=this._container.style;o.scrollSnapType=o.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_startScrollInterval=()=>{this._stopScrolling(),DC(0,rl).pipe(He(this._stopScrollTimers)).subscribe(()=>{let o=this._scrollNode,e=this.autoScrollStep;this._verticalScrollDirection===Ml.UP?o.scrollBy(0,-e):this._verticalScrollDirection===Ml.DOWN&&o.scrollBy(0,e),this._horizontalScrollDirection===as.LEFT?o.scrollBy(-e,0):this._horizontalScrollDirection===as.RIGHT&&o.scrollBy(e,0)})};_isOverContainer(o,e){return this._domRect!=null&&gT(this._domRect,o,e)}_getSiblingContainerFromPosition(o,e,t){return this._siblings.find(i=>i._canReceive(o,e,t))}_canReceive(o,e,t){if(!this._domRect||!gT(this._domRect,e,t)||!this.enterPredicate(o,this))return!1;let i=this._getShadowRoot().elementFromPoint(e,t);return i?i===this._container||this._container.contains(i):!1}_startReceiving(o,e){let t=this._activeSiblings;!t.has(o)&&e.every(i=>this.enterPredicate(i,this)||this._draggables.indexOf(i)>-1)&&(t.add(o),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:o,receiver:this,items:e}))}_stopReceiving(o){this._activeSiblings.delete(o),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:o,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(o=>{if(this.isDragging()){let e=this._parentPositions.handleScroll(o);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){let o=jC(this._container);this._cachedShadowRoot=o||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){let o=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,o))}};function x8(n,o){let{top:e,bottom:t,height:i}=n,a=i*b8;return o>=e-a&&o<=e+a?Ml.UP:o>=t-a&&o<=t+a?Ml.DOWN:Ml.NONE}function y8(n,o){let{left:e,right:t,width:i}=n,a=i*b8;return o>=e-a&&o<=e+a?as.LEFT:o>=t-a&&o<=t+a?as.RIGHT:as.NONE}function Ree(n,o,e,t,i){let a=x8(o,i),s=y8(o,t),d=Ml.NONE,p=as.NONE;if(a){let u=n.scrollTop;a===Ml.UP?u>0&&(d=Ml.UP):n.scrollHeight-u>n.clientHeight&&(d=Ml.DOWN)}if(s){let u=n.scrollLeft;e==="rtl"?s===as.RIGHT?u<0&&(p=as.RIGHT):n.scrollWidth+u>n.clientWidth&&(p=as.LEFT):s===as.LEFT?u>0&&(p=as.LEFT):n.scrollWidth-u>n.clientWidth&&(p=as.RIGHT)}return[d,p]}var zee=(()=>{class n{_injector=f(xa);constructor(){}createDrag(e,t){return v8(this._injector,e,t)}createDropList(e){return Fee(this._injector,e)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=J({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})(),CT=new mn("CDK_DRAG_PARENT");var w8=new mn("CdkDragHandle"),M8=(()=>{class n{element=f(Kt);_parentDrag=f(CT,{optional:!0,skipSelf:!0});_dragDropRegistry=f(qx);_stateChanges=new Ye;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._stateChanges.next(this)}_disabled=!1;constructor(){this._parentDrag?._addHandle(this)}ngAfterViewInit(){if(!this._parentDrag){let e=this.element.nativeElement.parentElement;for(;e;){let t=this._dragDropRegistry.getDragDirectiveForNode(e);if(t){this._parentDrag=t,t._addHandle(this);break}e=e.parentElement}}}ngOnDestroy(){this._parentDrag?._removeHandle(this),this._stateChanges.complete()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=yt({type:n,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:[2,"cdkDragHandleDisabled","disabled",zt]},features:[un([{provide:w8,useExisting:n}])]})}return n})(),Lee=new mn("CDK_DRAG_CONFIG"),Vee=new mn("CdkDropList"),S8=(()=>{class n{element=f(Kt);dropContainer=f(Vee,{optional:!0,skipSelf:!0});_ngZone=f(Gi);_viewContainerRef=f(Wo);_dir=f(Kr,{optional:!0});_changeDetectorRef=f(oe);_selfHandle=f(w8,{optional:!0,self:!0});_parentDrag=f(CT,{optional:!0,skipSelf:!0});_dragDropRegistry=f(qx);_destroyed=new Ye;_handles=new cn([]);_previewTemplate=null;_placeholderTemplate=null;_dragRef;data;lockAxis=null;rootElementSelector;boundaryElement;dragStartDelay;freeDragPosition;get disabled(){return this._disabled||!!(this.dropContainer&&this.dropContainer.disabled)}set disabled(e){this._disabled=e,this._dragRef.disabled=this._disabled}_disabled=!1;constrainPosition;previewClass;previewContainer;scale=1;started=new be;released=new be;ended=new be;entered=new be;exited=new be;dropped=new be;moved=new Sr(e=>{let t=this._dragRef.moved.pipe(Pt(i=>({source:this,pointerPosition:i.pointerPosition,event:i.event,delta:i.delta,distance:i.distance}))).subscribe(e);return()=>{t.unsubscribe()}});_injector=f(xa);constructor(){let e=this.dropContainer,t=f(Lee,{optional:!0});this._dragRef=v8(this._injector,this.element,{dragStartThreshold:t&&t.dragStartThreshold!=null?t.dragStartThreshold:5,pointerDirectionChangeThreshold:t&&t.pointerDirectionChangeThreshold!=null?t.pointerDirectionChangeThreshold:5,zIndex:t?.zIndex}),this._dragRef.data=this,this._dragDropRegistry.registerDirectiveNode(this.element.nativeElement,this),t&&this._assignDefaults(t),e&&(e.addItem(this),e._dropListRef.beforeStarted.pipe(He(this._destroyed)).subscribe(()=>{this._dragRef.scale=this.scale})),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}resetToBoundary(){this._dragRef.resetToBoundary()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){Ya(()=>{this._updateRootElement(),this._setupHandlesListener(),this._dragRef.scale=this.scale,this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(e){let t=e.rootElementSelector,i=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,i&&!i.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._dragDropRegistry.removeDirectiveNode(this.element.nativeElement),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(e){let t=this._handles.getValue();t.push(e),this._handles.next(t)}_removeHandle(e){let t=this._handles.getValue(),i=t.indexOf(e);i>-1&&(t.splice(i,1),this._handles.next(t))}_setPreviewTemplate(e){this._previewTemplate=e}_resetPreviewTemplate(e){e===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(e){this._placeholderTemplate=e}_resetPlaceholderTemplate(e){e===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){let e=this.element.nativeElement,t=e;this.rootElementSelector&&(t=e.closest!==void 0?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(t||e)}_getBoundaryElement(){let e=this.boundaryElement;return e?typeof e=="string"?this.element.nativeElement.closest(e):cl(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){let t=this._dir,i=this.dragStartDelay,a=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,s=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.scale=this.scale,e.dragStartDelay=typeof i=="object"&&i?i:mm(i),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(a).withPreviewTemplate(s).withPreviewContainer(this.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe(Gr(1)).subscribe(()=>{if(this._parentDrag){e.withParent(this._parentDrag._dragRef);return}let t=this.element.nativeElement.parentElement;for(;t;){let i=this._dragDropRegistry.getDragDirectiveForNode(t);if(i){e.withParent(i._dragRef);break}t=t.parentElement}})}_handleEvents(e){e.started.subscribe(t=>{this.started.emit({source:this,event:t.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(t=>{this.released.emit({source:this,event:t.event})}),e.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event})})}_assignDefaults(e){let{lockAxis:t,dragStartDelay:i,constrainPosition:a,previewClass:s,boundaryElement:d,draggingDisabled:p,rootElementSelector:u,previewContainer:g}=e;this.disabled=p??!1,this.dragStartDelay=i||0,this.lockAxis=t||null,a&&(this.constrainPosition=a),s&&(this.previewClass=s),d&&(this.boundaryElement=d),u&&(this.rootElementSelector=u),g&&(this.previewContainer=g)}_setupHandlesListener(){this._handles.pipe(Qn(e=>{let t=e.map(i=>i.element);this._selfHandle&&this.rootElementSelector&&t.push(this.element),this._dragRef.withHandles(t)}),Dn(e=>ro(...e.map(t=>t._stateChanges.pipe(Di(t))))),He(this._destroyed)).subscribe(e=>{let t=this._dragRef,i=e.element.nativeElement;e.disabled?t.disableHandle(i):t.enableHandle(i)})}static \u0275fac=function(t){return new(t||n)};static \u0275dir=yt({type:n,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,i){t&2&&ne("cdk-drag-disabled",i.disabled)("cdk-drag-dragging",i._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",zt],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",qo]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[un([{provide:CT,useExisting:n}]),Nn]})}return n})();var Qx=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=on({type:n});static \u0275inj=nn({providers:[zee],imports:[Lp]})}return n})();var jee=[[["caption"]],[["colgroup"],["col"]],"*"],$ee=["caption","colgroup, col","*"];function Hee(n,o){n&1&&Zt(0,2)}function Uee(n,o){n&1&&(r(0,"thead",0),li(1,1),l(),r(2,"tbody",0),li(3,2)(4,3),l(),r(5,"tfoot",0),li(6,4),l())}function Wee(n,o){n&1&&li(0,1)(1,2)(2,3)(3,4)}var sc=new mn("CDK_TABLE");var Yx=(()=>{class n{template=f(pa);constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=yt({type:n,selectors:[["","cdkCellDef",""]]})}return n})(),Zx=(()=>{class n{template=f(pa);constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=yt({type:n,selectors:[["","cdkHeaderCellDef",""]]})}return n})(),T8=(()=>{class n{template=f(pa);constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=yt({type:n,selectors:[["","cdkFooterCellDef",""]]})}return n})(),$m=(()=>{class n{_table=f(sc,{optional:!0});_hasStickyChanged=!1;get name(){return this._name}set name(e){this._setNameInput(e)}_name;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0)}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;constructor(){}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static \u0275fac=function(t){return new(t||n)};static \u0275dir=yt({type:n,selectors:[["","cdkColumnDef",""]],contentQueries:function(t,i,a){if(t&1&&Zi(a,Yx,5)(a,Zx,5)(a,T8,5),t&2){let s;gt(s=ht())&&(i.cell=s.first),gt(s=ht())&&(i.headerCell=s.first),gt(s=ht())&&(i.footerCell=s.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",zt],stickyEnd:[2,"stickyEnd","stickyEnd",zt]}})}return n})(),Xx=class{constructor(o,e){e.nativeElement.classList.add(...o._columnCssClassName)}},E8=(()=>{class n extends Xx{constructor(){super(f($m),f(Kt))}static \u0275fac=function(t){return new(t||n)};static \u0275dir=yt({type:n,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[mi]})}return n})();var O8=(()=>{class n extends Xx{constructor(){let e=f($m),t=f(Kt);super(e,t);let i=e._table?._getCellRole();i&&t.nativeElement.setAttribute("role",i)}static \u0275fac=function(t){return new(t||n)};static \u0275dir=yt({type:n,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[mi]})}return n})();var wT=(()=>{class n{template=f(pa);_differs=f(Sd);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let t=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(t).create(),this._columnsDiffer.diff(t)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof U0?e.headerCell.template:this instanceof MT?e.footerCell.template:e.cell.template}static \u0275fac=function(t){return new(t||n)};static \u0275dir=yt({type:n,features:[Nn]})}return n})(),U0=(()=>{class n extends wT{_table=f(sc,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(f(pa),f(Sd))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(t){return new(t||n)};static \u0275dir=yt({type:n,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",zt]},features:[mi,Nn]})}return n})(),MT=(()=>{class n extends wT{_table=f(sc,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(f(pa),f(Sd))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(t){return new(t||n)};static \u0275dir=yt({type:n,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",zt]},features:[mi,Nn]})}return n})(),Jx=(()=>{class n extends wT{_table=f(sc,{optional:!0});when;constructor(){super(f(pa),f(Sd))}static \u0275fac=function(t){return new(t||n)};static \u0275dir=yt({type:n,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[mi]})}return n})(),bu=(()=>{class n{_viewContainer=f(Wo);cells;context;static mostRecentCellOutlet=null;constructor(){n.mostRecentCellOutlet=this}ngOnDestroy(){n.mostRecentCellOutlet===this&&(n.mostRecentCellOutlet=null)}static \u0275fac=function(t){return new(t||n)};static \u0275dir=yt({type:n,selectors:[["","cdkCellOutlet",""]]})}return n})(),ST=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){t&1&&li(0,0)},dependencies:[bu],encapsulation:2})}return n})();var kT=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){t&1&&li(0,0)},dependencies:[bu],encapsulation:2})}return n})(),D8=(()=>{class n{templateRef=f(pa);_contentClassNames=["cdk-no-data-row","cdk-row"];_cellClassNames=["cdk-cell","cdk-no-data-cell"];_cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell";constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=yt({type:n,selectors:[["ng-template","cdkNoDataRow",""]]})}return n})(),k8=["top","bottom","left","right"],yT=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(o=>this._updateCachedSizes(o)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(o,e,t=!0,i=!0,a,s,d){this._isNativeHtmlTable=o,this._stickCellCss=e,this._isBrowser=t,this._needsPositionStickyOnElement=i,this.direction=a,this._positionListener=s,this._tableInjector=d,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(o,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(o);let t=[];for(let i of o)i.nodeType===i.ELEMENT_NODE&&t.push(i,...Array.from(i.children));Ya({write:()=>{for(let i of t)this._removeStickyStyle(i,e)}},{injector:this._tableInjector})}updateStickyColumns(o,e,t,i=!0,a=!0){if(!o.length||!this._isBrowser||!(e.some(k=>k)||t.some(k=>k))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let s=o[0],d=s.children.length,p=this.direction==="rtl",u=p?"right":"left",g=p?"left":"right",C=e.lastIndexOf(!0),M=t.indexOf(!0),x,b,P;a&&this._updateStickyColumnReplayQueue({rows:[...o],stickyStartStates:[...e],stickyEndStates:[...t]}),Ya({earlyRead:()=>{x=this._getCellWidths(s,i),b=this._getStickyStartColumnPositions(x,e),P=this._getStickyEndColumnPositions(x,t)},write:()=>{for(let k of o)for(let S=0;S!!k)&&(this._positionListener.stickyColumnsUpdated({sizes:C===-1?[]:x.slice(0,C+1).map((k,S)=>e[S]?k:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:M===-1?[]:x.slice(M).map((k,S)=>t[S+M]?k:null).reverse()}))}},{injector:this._tableInjector})}stickRows(o,e,t){if(!this._isBrowser)return;let i=t==="bottom"?o.slice().reverse():o,a=t==="bottom"?e.slice().reverse():e,s=[],d=[],p=[];Ya({earlyRead:()=>{for(let u=0,g=0;u{let u=a.lastIndexOf(!0);for(let g=0;g{let t=o.querySelector("tfoot");t&&(e.some(i=>!i)?this._removeStickyStyle(t,["bottom"]):this._addStickyStyle(t,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(o,e){if(!o.classList.contains(this._stickCellCss))return;for(let i of e)o.style[i]="",o.classList.remove(this._borderCellCss[i]);k8.some(i=>e.indexOf(i)===-1&&o.style[i])?o.style.zIndex=this._getCalculatedZIndex(o):(o.style.zIndex="",this._needsPositionStickyOnElement&&(o.style.position=""),o.classList.remove(this._stickCellCss))}_addStickyStyle(o,e,t,i){o.classList.add(this._stickCellCss),i&&o.classList.add(this._borderCellCss[e]),o.style[e]=`${t}px`,o.style.zIndex=this._getCalculatedZIndex(o),this._needsPositionStickyOnElement&&(o.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(o){let e={top:100,bottom:10,left:1,right:1},t=0;for(let i of k8)o.style[i]&&(t+=e[i]);return t?`${t}`:""}_getCellWidths(o,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let t=[],i=o.children;for(let a=0;a0;a--)e[a]&&(t[a]=i,i+=o[a]);return t}_retrieveElementSize(o){let e=this._elemSizeCache.get(o);if(e)return e;let t=o.getBoundingClientRect(),i={width:t.width,height:t.height};return this._resizeObserver&&(this._elemSizeCache.set(o,i),this._resizeObserver.observe(o,{box:"border-box"})),i}_updateStickyColumnReplayQueue(o){this._removeFromStickyColumnReplayQueue(o.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(o)}_removeFromStickyColumnReplayQueue(o){let e=new Set(o);for(let t of this._updatedStickyColumnsParamsToReplay)t.rows=t.rows.filter(i=>!e.has(i));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(t=>!!t.rows.length)}_updateCachedSizes(o){let e=!1;for(let t of o){let i=t.borderBoxSize?.length?{width:t.borderBoxSize[0].inlineSize,height:t.borderBoxSize[0].blockSize}:{width:t.contentRect.width,height:t.contentRect.height};i.width!==this._elemSizeCache.get(t.target)?.width&&Gee(t.target)&&(e=!0),this._elemSizeCache.set(t.target,i)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let t of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(t.rows,t.stickyStartStates,t.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}};function Gee(n){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(o=>n.classList.contains(o))}var H0=new mn("STICKY_POSITIONING_LISTENER");var PT=(()=>{class n{viewContainer=f(Wo);elementRef=f(Kt);constructor(){let e=f(sc);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=yt({type:n,selectors:[["","rowOutlet",""]]})}return n})(),TT=(()=>{class n{viewContainer=f(Wo);elementRef=f(Kt);constructor(){let e=f(sc);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=yt({type:n,selectors:[["","headerRowOutlet",""]]})}return n})(),ET=(()=>{class n{viewContainer=f(Wo);elementRef=f(Kt);constructor(){let e=f(sc);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=yt({type:n,selectors:[["","footerRowOutlet",""]]})}return n})(),OT=(()=>{class n{viewContainer=f(Wo);elementRef=f(Kt);constructor(){let e=f(sc);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=yt({type:n,selectors:[["","noDataRowOutlet",""]]})}return n})(),DT=(()=>{class n{_differs=f(Sd);_changeDetectorRef=f(oe);_elementRef=f(Kt);_dir=f(Kr,{optional:!0});_platform=f(ja);_viewRepeater;_viewportRuler=f(kd);_injector=f(xa);_virtualScrollViewport=f(FA,{optional:!0,host:!0});_positionListener=f(H0,{optional:!0})||f(H0,{optional:!0,skipSelf:!0});_document=f(Do);_data;_renderedRange;_onDestroy=new Ye;_renderRows;_renderChangeSubscription=null;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef=null;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow=null;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_headerRowStickyUpdates=new Ye;_footerRowStickyUpdates=new Ye;_disableVirtualScrolling=!1;_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role");return e==="grid"||e==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}_trackByFn;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&(this._switchDataSource(e),this._changeDetectorRef.markForCheck())}_dataSource;_dataSourceChanges=new Ye;_dataStream=new Ye;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}_multiTemplateDataRows=!1;get fixedLayout(){return this._virtualScrollEnabled()?!0:this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;recycleRows=!1;contentChanged=new be;viewChange=new cn({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;constructor(){f(new cm("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE",this._dataDiffer=this._differs.find([]).create((t,i)=>this.trackBy?this.trackBy(i.dataIndex,i.data):i)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(He(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._viewRepeater=this.recycleRows||this._virtualScrollEnabled()?new NA:new $A,this._virtualScrollEnabled()&&this._setupVirtualScrolling(this._virtualScrollViewport),this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._headerRowStickyUpdates.complete(),this._footerRowStickyUpdates.complete(),this._onDestroy.next(),this._onDestroy.complete(),sg(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return}let t=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,t,(i,a,s)=>this._getEmbeddedViewArgs(i.item,s),i=>i.item.data,i=>{i.operation===AA.INSERTED&&i.context&&this._renderCellTemplateForItem(i.record.item.rowDef,i.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(i=>{let a=t.get(i.currentIndex);a.context.$implicit=i.item.data}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let i=P8(this._headerRowOutlet,"thead");i&&(i.style.display=e.length?"":"none")}let t=this._headerRowDefs.map(i=>i.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,t,"top"),this._headerRowDefs.forEach(i=>i.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let i=P8(this._footerRowOutlet,"tfoot");i&&(i.style.display=e.length?"":"none")}let t=this._footerRowDefs.map(i=>i.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,t,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,t),this._footerRowDefs.forEach(i=>i.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),t=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this.fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...t,...i],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((a,s)=>{this._addStickyColumnStyles([a],this._headerRowDefs[s])}),this._rowDefs.forEach(a=>{let s=[];for(let d=0;d{this._addStickyColumnStyles([a],this._footerRowDefs[s])}),Array.from(this._columnDefsByName.values()).forEach(a=>a.resetStickyChanged())}stickyColumnsUpdated(e){this._positionListener?.stickyColumnsUpdated(e)}stickyEndColumnsUpdated(e){this._positionListener?.stickyEndColumnsUpdated(e)}stickyHeaderRowsUpdated(e){this._headerRowStickyUpdates.next(e),this._positionListener?.stickyHeaderRowsUpdated(e)}stickyFooterRowsUpdated(e){this._footerRowStickyUpdates.next(e),this._positionListener?.stickyFooterRowsUpdated(e)}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){if(!Array.isArray(this._data)||!this._renderedRange)return[];let e=[],t=Math.min(this._data.length,this._renderedRange.end),i=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let a=this._renderedRange.start;a{let d=i&&i.has(s)?i.get(s):[];if(d.length){let p=d.shift();return p.dataIndex=t,p}else return{data:e,rowDef:s,dataIndex:t}})}_cacheColumnDefs(){this._columnDefsByName.clear(),Kx(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(t=>{this._columnDefsByName.has(t.name),this._columnDefsByName.set(t.name,t)})}_cacheRowDefs(){this._headerRowDefs=Kx(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=Kx(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=Kx(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(t=>!t.when);this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(s,d)=>{let p=!!d.getColumnsDiff();return s||p},t=this._rowDefs.reduce(e,!1);t&&this._forceRenderDataRows();let i=this._headerRowDefs.reduce(e,!1);i&&this._forceRenderHeaderRows();let a=this._footerRowDefs.reduce(e,!1);return a&&this._forceRenderFooterRows(),t||i||a}_switchDataSource(e){this._data=[],sg(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;sg(this.dataSource)?e=this.dataSource.connect(this):af(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Vt(this.dataSource)),this._renderChangeSubscription=mr([e,this.viewChange]).pipe(He(this._onDestroy)).subscribe(([t,i])=>{this._data=t||[],this._renderedRange=i,this._dataStream.next(t),this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,t)=>this._renderRow(this._headerRowOutlet,e,t)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,t)=>this._renderRow(this._footerRowOutlet,e,t)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,t){let i=Array.from(t?.columns||[]).map(d=>{let p=this._columnDefsByName.get(d);return p}),a=i.map(d=>d.sticky),s=i.map(d=>d.stickyEnd);this._stickyStyler.updateStickyColumns(e,a,s,!this.fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let t=[];for(let i=0;i!a.when||a.when(t,e));else{let a=this._rowDefs.find(s=>s.when&&s.when(t,e))||this._defaultRowDef;a&&i.push(a)}return i.length,i}_getEmbeddedViewArgs(e,t){let i=e.rowDef,a={$implicit:e.data};return{templateRef:i.template,context:a,index:t}}_renderRow(e,t,i,a={}){let s=e.viewContainer.createEmbeddedView(t.template,a,i);return this._renderCellTemplateForItem(t,a),s}_renderCellTemplateForItem(e,t){for(let i of this._getCellTemplates(e))bu.mostRecentCellOutlet&&bu.mostRecentCellOutlet._viewContainer.createEmbeddedView(i,t);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let t=0,i=e.length;t{let i=this._columnDefsByName.get(t);return e.extractCellTemplate(i)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(t,i)=>t||i.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr",t=this._injector;this._stickyStyler=new yT(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this,t),(this._dir?this._dir.change:Vt()).pipe(He(this._onDestroy)).subscribe(i=>{this._stickyStyler.direction=i,this.updateStickyColumnStyles()})}_setupVirtualScrolling(e){let t=typeof requestAnimationFrame<"u"?rl:J4;this.viewChange.next({start:0,end:0}),e.renderedRangeStream.pipe(sl(0,t),He(this._onDestroy)).subscribe(this.viewChange),e.attach({dataStream:this._dataStream,measureRangeSize:(i,a)=>this._measureRangeSize(i,a)}),mr([e.renderedContentOffset,this._headerRowStickyUpdates]).pipe(He(this._onDestroy)).subscribe(([i,a])=>{if(!(!a.sizes||!a.offsets||!a.elements))for(let s=0;s{if(!(!a.sizes||!a.offsets||!a.elements))for(let s=0;s!t._table||t._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let t=this._rowOutlet.viewContainer.length===0;if(t===this._isShowingNoDataRow)return;let i=this._noDataRowOutlet.viewContainer;if(t){let a=i.createEmbeddedView(e.templateRef),s=a.rootNodes[0];if(a.rootNodes.length===1&&s?.nodeType===this._document.ELEMENT_NODE){s.setAttribute("role","row"),s.classList.add(...e._contentClassNames);let d=s.querySelectorAll(e._cellSelector);for(let p=0;p=e.end||t!=="vertical")return 0;let i=this.viewChange.value,a=this._rowOutlet.viewContainer;e.starti.end;let s=e.start-i.start,d=e.end-e.start,p,u;for(let M=0;M-1;M--){let x=a.get(M+s);if(x&&x.rootNodes.length){u=x.rootNodes[x.rootNodes.length-1];break}}let g=p?.getBoundingClientRect?.(),C=u?.getBoundingClientRect?.();return g&&C?C.bottom-g.top:0}_virtualScrollEnabled(){return!this._disableVirtualScrolling&&this._virtualScrollViewport!=null}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(t,i,a){if(t&1&&Zi(a,D8,5)(a,$m,5)(a,Jx,5)(a,U0,5)(a,MT,5),t&2){let s;gt(s=ht())&&(i._noDataRow=s.first),gt(s=ht())&&(i._contentColumnDefs=s),gt(s=ht())&&(i._contentRowDefs=s),gt(s=ht())&&(i._contentHeaderRowDefs=s),gt(s=ht())&&(i._contentFooterRowDefs=s)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(t,i){t&2&&ne("cdk-table-fixed-layout",i.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:[2,"multiTemplateDataRows","multiTemplateDataRows",zt],fixedLayout:[2,"fixedLayout","fixedLayout",zt],recycleRows:[2,"recycleRows","recycleRows",zt]},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[un([{provide:sc,useExisting:n},{provide:H0,useValue:null}])],ngContentSelectors:$ee,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,i){t&1&&(pi(jee),Zt(0),Zt(1,1),T(2,Hee,1,0),T(3,Uee,7,0)(4,Wee,4,0)),t&2&&(m(2),E(i._isServer?2:-1),m(),E(i._isNativeHtmlTable?3:4))},dependencies:[TT,PT,OT,ET],styles:[`.cdk-table-fixed-layout { + table-layout: fixed; +} +`],encapsulation:2})}return n})();function Kx(n,o){return n.concat(Array.from(o))}function P8(n,o){let e=o.toUpperCase(),t=n.viewContainer.element.nativeElement;for(;t;){let i=t.nodeType===1?t.nodeName:null;if(i===e)return t;if(i==="TABLE")break;t=t.parentNode}return null}var e1=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=on({type:n});static \u0275inj=nn({imports:[RA]})}return n})();var I8=["*"],qee=["content"],Qee=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Kee=["mat-drawer","mat-drawer-content","*"];function Xee(n,o){if(n&1){let e=R();r(0,"div",1),_("click",function(){y(e);let i=h();return w(i._onBackdropClicked())}),l()}if(n&2){let e=h();ne("mat-drawer-shown",e._isShowingBackdrop())}}function Yee(n,o){n&1&&(r(0,"mat-drawer-content"),Zt(1,2),l())}var Zee=new mn("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:()=>!1}),A8=new mn("MAT_DRAWER_CONTAINER"),W0=(()=>{class n extends $C{_platform=f(ja);_changeDetectorRef=f(oe);_container=f(AT);constructor(){let e=f(Kt),t=f(jk),i=f(Gi);super(e,t,i)}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}_shouldBeHidden(){if(this._platform.isBrowser)return!1;let{start:e,end:t}=this._container;return e!=null&&e.mode!=="over"&&e.opened||t!=null&&t.mode!=="over"&&t.opened}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(t,i){t&2&&(Tt("margin-left",i._container._contentMargins.left,"px")("margin-right",i._container._contentMargins.right,"px"),ne("mat-drawer-content-hidden",i._shouldBeHidden()))},features:[un([{provide:$C,useExisting:n}]),mi],ngContentSelectors:I8,decls:1,vars:0,template:function(t,i){t&1&&(pi(),Zt(0))},encapsulation:2,changeDetection:0})}return n})(),IT=(()=>{class n{_elementRef=f(Kt);_focusTrapFactory=f(e5);_focusMonitor=f(hs);_platform=f(ja);_ngZone=f(Gi);_renderer=f(qi);_interactivityChecker=f(JA);_doc=f(Do);_container=f(A8,{optional:!0});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_eventCleanups;_isAttached=!1;_anchor=null;get position(){return this._position}set position(e){e=e==="end"?"end":"start",e!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}_position="start";get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}_mode="over";get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=Or(e)}_disableClose=!1;get autoFocus(){let e=this._autoFocus;return e??(this.mode==="side"?"dialog":"first-tabbable")}set autoFocus(e){(e==="true"||e==="false"||e==null)&&(e=Or(e)),this._autoFocus=e}_autoFocus;get opened(){return this._opened()}set opened(e){this.toggle(Or(e))}_opened=z(!1);_openedVia=null;_animationStarted=new Ye;_animationEnd=new Ye;openedChange=new be(!0);_openedStream=this.openedChange.pipe(Yi(e=>e),Pt(()=>{}));openedStart=this._animationStarted.pipe(Yi(()=>this.opened),sf(void 0));_closedStream=this.openedChange.pipe(Yi(e=>!e),Pt(()=>{}));closedStart=this._animationStarted.pipe(Yi(()=>!this.opened),sf(void 0));_destroyed=new Ye;onPositionChanged=new be;_content;_modeChanged=new Ye;_injector=f(xa);_changeDetectorRef=f(oe);constructor(){this.openedChange.pipe(He(this._destroyed)).subscribe(e=>{e?(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement,this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._eventCleanups=this._ngZone.runOutsideAngular(()=>{let e=this._renderer,t=this._elementRef.nativeElement;return[e.listen(t,"keydown",i=>{i.keyCode===27&&!this.disableClose&&!gs(i)&&this._ngZone.run(()=>{this.close(),i.stopPropagation(),i.preventDefault()})}),e.listen(t,"transitionend",this._handleTransitionEvent),e.listen(t,"transitioncancel",this._handleTransitionEvent)]}),this._animationEnd.subscribe(()=>{this.openedChange.emit(this.opened)})}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let i=()=>{a(),s(),e.removeAttribute("tabindex")},a=this._renderer.listen(e,"blur",i),s=this._renderer.listen(e,"mousedown",i)})),e.focus(t)}_focusByCssSelector(e,t){let i=this._elementRef.nativeElement.querySelector(e);i&&this._forceFocus(i,t)}_takeFocus(){if(!this._focusTrap)return;let e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":Ya(()=>{!this._focusTrap.focusInitialElement()&&typeof e.focus=="function"&&e.focus()},{injector:this._injector});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus);break}}_restoreFocus(e){this.autoFocus!=="dialog"&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){let e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._position==="end"&&this._updatePositionInParent("end"),this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())}ngOnDestroy(){this._eventCleanups.forEach(e=>e()),this._focusTrap?.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,t){e&&t&&(this._openedVia=t);let i=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),i}_setOpen(e,t,i){return e===this.opened?Promise.resolve(e?"open":"close"):(this._opened.set(e),this._container?._transitionsEnabled?(this._setIsAnimating(!0),setTimeout(()=>this._animationStarted.next())):setTimeout(()=>{this._animationStarted.next(),this._animationEnd.next()}),this._elementRef.nativeElement.classList.toggle("mat-drawer-opened",e),!e&&t&&this._restoreFocus(i),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(a=>{this.openedChange.pipe(Gr(1)).subscribe(s=>a(s?"open":"close"))}))}_setIsAnimating(e){this._elementRef.nativeElement.classList.toggle("mat-drawer-animating",e)}_getWidth(){return this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&!!this._container?._isShowingBackdrop())}_updatePositionInParent(e){if(!this._platform.isBrowser)return;let t=this._elementRef.nativeElement,i=t.parentNode;e==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),i.insertBefore(this._anchor,t)),i.appendChild(t)):this._anchor&&this._anchor.parentNode.insertBefore(t,this._anchor)}_handleTransitionEvent=e=>{let t=this._elementRef.nativeElement;e.target===t&&this._ngZone.run(()=>{e.type==="transitionend"&&this._setIsAnimating(!1),this._animationEnd.next(e)})};static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["mat-drawer"]],viewQuery:function(t,i){if(t&1&&Kn(qee,5),t&2){let a;gt(a=ht())&&(i._content=a.first)}},hostAttrs:[1,"mat-drawer"],hostVars:12,hostBindings:function(t,i){t&2&&(Ce("align",null)("tabIndex",i.mode!=="side"?"-1":null),Tt("visibility",!i._container&&!i.opened?"hidden":null),ne("mat-drawer-end",i.position==="end")("mat-drawer-over",i.mode==="over")("mat-drawer-push",i.mode==="push")("mat-drawer-side",i.mode==="side"))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:I8,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(t,i){t&1&&(pi(),r(0,"div",1,0),Zt(2),l())},dependencies:[$C],encapsulation:2,changeDetection:0})}return n})(),AT=(()=>{class n{_dir=f(Kr,{optional:!0});_element=f(Kt);_ngZone=f(Gi);_changeDetectorRef=f(oe);_animationDisabled=$a();_transitionsEnabled=!1;_allDrawers;_drawers=new ec;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=Or(e)}_autosize=f(Zee);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=e==null?null:Or(e)}_backdropOverride=null;backdropClick=new be;_start=null;_end=null;_left=null;_right=null;_destroyed=new Ye;_doCheckSubject=new Ye;_contentMargins={left:null,right:null};_contentMarginChanges=new Ye;get scrollable(){return this._userContent||this._content}_injector=f(xa);constructor(){let e=f(ja),t=f(kd);this._dir?.change.pipe(He(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),t.change().pipe(He(this._destroyed)).subscribe(()=>this.updateContentMargins()),!this._animationDisabled&&e.isBrowser&&this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._element.nativeElement.classList.add("mat-drawer-transition"),this._transitionsEnabled=!0},200)})}ngAfterContentInit(){this._allDrawers.changes.pipe(Di(this._allDrawers),He(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(t=>!t._container||t._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(Di(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(tg(10),He(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,t=0;if(this._left&&this._left.opened){if(this._left.mode=="side")e+=this._left._getWidth();else if(this._left.mode=="push"){let i=this._left._getWidth();e+=i,t-=i}}if(this._right&&this._right.opened){if(this._right.mode=="side")t+=this._right._getWidth();else if(this._right.mode=="push"){let i=this._right._getWidth();t+=i,e-=i}}e=e||null,t=t||null,(e!==this._contentMargins.left||t!==this._contentMargins.right)&&(this._contentMargins={left:e,right:t},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(He(this._drawers.changes)).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),e.mode!=="side"&&e.openedChange.pipe(He(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e.onPositionChanged.pipe(He(this._drawers.changes)).subscribe(()=>{Ya({read:()=>this._validateDrawers()},{injector:this._injector})})}_watchDrawerMode(e){e._modeChanged.pipe(He(ro(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){let t=this._element.nativeElement.classList,i="mat-drawer-container-has-open";e?t.add(i):t.remove(i)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{e.position=="end"?(this._end!=null,this._end=e):(this._start!=null,this._start=e)}),this._right=this._left=null,this._dir&&this._dir.value==="rtl"?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&this._start.mode!="over"||this._isDrawerOpen(this._end)&&this._end.mode!="over"}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._drawerHasBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(e){return e!=null&&e.opened}_drawerHasBackdrop(e){return this._backdropOverride==null?!!e&&e.mode!=="side":this._backdropOverride}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["mat-drawer-container"]],contentQueries:function(t,i,a){if(t&1&&Zi(a,W0,5)(a,IT,5),t&2){let s;gt(s=ht())&&(i._content=s.first),gt(s=ht())&&(i._allDrawers=s)}},viewQuery:function(t,i){if(t&1&&Kn(W0,5),t&2){let a;gt(a=ht())&&(i._userContent=a.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(t,i){t&2&&ne("mat-drawer-container-explicit-backdrop",i._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[un([{provide:A8,useExisting:n}])],ngContentSelectors:Kee,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(t,i){t&1&&(pi(Qee),T(0,Xee,1,2,"div",0),Zt(1),Zt(2,1),T(3,Yee,2,0,"mat-drawer-content")),t&2&&(E(i.hasBackdrop?0:-1),m(3),E(i._content?-1:3))},dependencies:[W0],styles:[`.mat-drawer-container { + position: relative; + z-index: 1; + color: var(--mat-sidenav-content-text-color, var(--mat-sys-on-background)); + background-color: var(--mat-sidenav-content-background-color, var(--mat-sys-background)); + box-sizing: border-box; + display: block; + overflow: hidden; +} +.mat-drawer-container[fullscreen] { + top: 0; + left: 0; + right: 0; + bottom: 0; + position: absolute; +} +.mat-drawer-container[fullscreen].mat-drawer-container-has-open { + overflow: hidden; +} +.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side { + z-index: 3; +} +.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop, +.mat-drawer-container.ng-animate-disabled .mat-drawer-content, .ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop, +.ng-animate-disabled .mat-drawer-container .mat-drawer-content { + transition: none; +} + +.mat-drawer-backdrop { + top: 0; + left: 0; + right: 0; + bottom: 0; + position: absolute; + display: block; + z-index: 3; + visibility: hidden; +} +.mat-drawer-backdrop.mat-drawer-shown { + visibility: visible; + background-color: var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent)); +} +.mat-drawer-transition .mat-drawer-backdrop { + transition-duration: 400ms; + transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1); + transition-property: background-color, visibility; +} +@media (forced-colors: active) { + .mat-drawer-backdrop { + opacity: 0.5; + } +} + +.mat-drawer-content { + position: relative; + z-index: 1; + display: block; + height: 100%; + overflow: auto; +} +.mat-drawer-content.mat-drawer-content-hidden { + opacity: 0; +} +.mat-drawer-transition .mat-drawer-content { + transition-duration: 400ms; + transition-timing-function: cubic-bezier(0.25, 0.8, 0.25, 1); + transition-property: transform, margin-left, margin-right; +} + +.mat-drawer { + position: relative; + z-index: 4; + color: var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant)); + box-shadow: var(--mat-sidenav-container-elevation-shadow, none); + background-color: var(--mat-sidenav-container-background-color, var(--mat-sys-surface)); + border-top-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large)); + border-bottom-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large)); + width: var(--mat-sidenav-container-width, 360px); + display: block; + position: absolute; + top: 0; + bottom: 0; + z-index: 3; + outline: 0; + box-sizing: border-box; + overflow-y: auto; + transform: translate3d(-100%, 0, 0); +} +@media (forced-colors: active) { + .mat-drawer, [dir=rtl] .mat-drawer.mat-drawer-end { + border-right: solid 1px currentColor; + } +} +@media (forced-colors: active) { + [dir=rtl] .mat-drawer, .mat-drawer.mat-drawer-end { + border-left: solid 1px currentColor; + border-right: none; + } +} +.mat-drawer.mat-drawer-side { + z-index: 2; +} +.mat-drawer.mat-drawer-end { + right: 0; + transform: translate3d(100%, 0, 0); + border-top-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large)); + border-bottom-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large)); + border-top-right-radius: 0; + border-bottom-right-radius: 0; +} +[dir=rtl] .mat-drawer { + border-top-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large)); + border-bottom-left-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large)); + border-top-right-radius: 0; + border-bottom-right-radius: 0; + transform: translate3d(100%, 0, 0); +} +[dir=rtl] .mat-drawer.mat-drawer-end { + border-top-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large)); + border-bottom-right-radius: var(--mat-sidenav-container-shape, var(--mat-sys-corner-large)); + border-top-left-radius: 0; + border-bottom-left-radius: 0; + left: 0; + right: auto; + transform: translate3d(-100%, 0, 0); +} +.mat-drawer-transition .mat-drawer { + transition: transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1); +} +.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) { + visibility: hidden; + box-shadow: none; +} +.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container { + display: none; +} +.mat-drawer.mat-drawer-opened.mat-drawer-opened { + transform: none; +} + +.mat-drawer-side { + box-shadow: none; + border-right-color: var(--mat-sidenav-container-divider-color, transparent); + border-right-width: 1px; + border-right-style: solid; +} +.mat-drawer-side.mat-drawer-end { + border-left-color: var(--mat-sidenav-container-divider-color, transparent); + border-left-width: 1px; + border-left-style: solid; + border-right: none; +} +[dir=rtl] .mat-drawer-side { + border-left-color: var(--mat-sidenav-container-divider-color, transparent); + border-left-width: 1px; + border-left-style: solid; + border-right: none; +} +[dir=rtl] .mat-drawer-side.mat-drawer-end { + border-right-color: var(--mat-sidenav-container-divider-color, transparent); + border-right-width: 1px; + border-right-style: solid; + border-left: none; +} + +.mat-drawer-inner-container { + width: 100%; + height: 100%; + overflow: auto; +} + +.mat-sidenav-fixed { + position: fixed; +} +`],encapsulation:2,changeDetection:0})}return n})();var n1=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=on({type:n});static \u0275inj=nn({imports:[Lp,Vi,Lp]})}return n})();var wi=(function(n){return n[n.State=0]="State",n[n.Transition=1]="Transition",n[n.Sequence=2]="Sequence",n[n.Group=3]="Group",n[n.Animate=4]="Animate",n[n.Keyframes=5]="Keyframes",n[n.Style=6]="Style",n[n.Trigger=7]="Trigger",n[n.Reference=8]="Reference",n[n.AnimateChild=9]="AnimateChild",n[n.AnimateRef=10]="AnimateRef",n[n.Query=11]="Query",n[n.Stagger=12]="Stagger",n})(wi||{}),lc="*";function N8(n,o=null){return{type:wi.Sequence,steps:n,options:o}}function NT(n){return{type:wi.Style,styles:n,offset:null}}var Vd=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(o=0,e=0){this.totalTime=o+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(o=>o()),this._onDoneFns=[])}onStart(o){this._originalOnStartFns.push(o),this._onStartFns.push(o)}onDone(o){this._originalOnDoneFns.push(o),this._onDoneFns.push(o)}onDestroy(o){this._onDestroyFns.push(o)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(o=>o()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(o=>o()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(o){this._position=this.totalTime?o*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(o){let e=o=="start"?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}},ah=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(o){this.players=o;let e=0,t=0,i=0,a=this.players.length;a==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(s=>{s.onDone(()=>{++e==a&&this._onFinish()}),s.onDestroy(()=>{++t==a&&this._onDestroy()}),s.onStart(()=>{++i==a&&this._onStart()})}),this.totalTime=this.players.reduce((s,d)=>Math.max(s,d.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(o=>o()),this._onDoneFns=[])}init(){this.players.forEach(o=>o.init())}onStart(o){this._onStartFns.push(o)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(o=>o()),this._onStartFns=[])}onDone(o){this._onDoneFns.push(o)}onDestroy(o){this._onDestroyFns.push(o)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(o=>o.play())}pause(){this.players.forEach(o=>o.pause())}restart(){this.players.forEach(o=>o.restart())}finish(){this._onFinish(),this.players.forEach(o=>o.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(o=>o.destroy()),this._onDestroyFns.forEach(o=>o()),this._onDestroyFns=[])}reset(){this.players.forEach(o=>o.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(o){let e=o*this.totalTime;this.players.forEach(t=>{let i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}getPosition(){let o=this.players.reduce((e,t)=>e===null||t.totalTime>e.totalTime?t:e,null);return o!=null?o.getPosition():0}beforeDestroy(){this.players.forEach(o=>{o.beforeDestroy&&o.beforeDestroy()})}triggerCallback(o){let e=o=="start"?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}},G0="!";function F8(n){return new Ii(3e3,!1)}function ete(){return new Ii(3100,!1)}function tte(){return new Ii(3101,!1)}function nte(n){return new Ii(3001,!1)}function ite(n){return new Ii(3003,!1)}function ote(n){return new Ii(3004,!1)}function z8(n,o){return new Ii(3005,!1)}function L8(){return new Ii(3006,!1)}function V8(){return new Ii(3007,!1)}function B8(n,o){return new Ii(3008,!1)}function j8(n){return new Ii(3002,!1)}function $8(n,o,e,t,i){return new Ii(3010,!1)}function H8(){return new Ii(3011,!1)}function U8(){return new Ii(3012,!1)}function W8(){return new Ii(3200,!1)}function G8(){return new Ii(3202,!1)}function q8(){return new Ii(3013,!1)}function Q8(n){return new Ii(3014,!1)}function K8(n){return new Ii(3015,!1)}function X8(n){return new Ii(3016,!1)}function Y8(n,o){return new Ii(3404,!1)}function ate(n){return new Ii(3502,!1)}function Z8(n){return new Ii(3503,!1)}function J8(){return new Ii(3300,!1)}function eR(n){return new Ii(3504,!1)}function tR(n){return new Ii(3301,!1)}function nR(n,o){return new Ii(3302,!1)}function iR(n){return new Ii(3303,!1)}function oR(n,o){return new Ii(3400,!1)}function aR(n){return new Ii(3401,!1)}function rR(n){return new Ii(3402,!1)}function sR(n,o){return new Ii(3505,!1)}function Bd(n){switch(n.length){case 0:return new Vd;case 1:return n[0];default:return new ah(n)}}function LT(n,o,e=new Map,t=new Map){let i=[],a=[],s=-1,d=null;if(o.forEach(p=>{let u=p.get("offset"),g=u==s,C=g&&d||new Map;p.forEach((M,x)=>{let b=x,P=M;if(x!=="offset")switch(b=n.normalizePropertyName(b,i),P){case G0:P=e.get(x);break;case lc:P=t.get(x);break;default:P=n.normalizeStyleValue(x,b,P,i);break}C.set(b,P)}),g||a.push(C),d=C,s=u}),i.length)throw ate(i);return a}function i1(n,o,e,t){switch(o){case"start":n.onStart(()=>t(e&&FT(e,"start",n)));break;case"done":n.onDone(()=>t(e&&FT(e,"done",n)));break;case"destroy":n.onDestroy(()=>t(e&&FT(e,"destroy",n)));break}}function FT(n,o,e){let t=e.totalTime,i=!!e.disabled,a=o1(n.element,n.triggerName,n.fromState,n.toState,o||n.phaseName,t??n.totalTime,i),s=n._data;return s!=null&&(a._data=s),a}function o1(n,o,e,t,i="",a=0,s){return{element:n,triggerName:o,fromState:e,toState:t,phaseName:i,totalTime:a,disabled:!!s}}function Ts(n,o,e){let t=n.get(o);return t||n.set(o,t=e),t}function VT(n){let o=n.indexOf(":"),e=n.substring(1,o),t=n.slice(o+1);return[e,t]}var rte=typeof document>"u"?null:document.documentElement;function a1(n){let o=n.parentNode||n.host||null;return o===rte?null:o}function ste(n){return n.substring(1,6)=="ebkit"}var xu=null,R8=!1;function lR(n){xu||(xu=lte()||{},R8=xu.style?"WebkitAppearance"in xu.style:!1);let o=!0;return xu.style&&!ste(n)&&(o=n in xu.style,!o&&R8&&(o="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in xu.style)),o}function lte(){return typeof document<"u"?document.body:null}function BT(n,o){for(;o;){if(o===n)return!0;o=a1(o)}return!1}function jT(n,o,e){if(e)return Array.from(n.querySelectorAll(o));let t=n.querySelector(o);return t?[t]:[]}var cte=1e3,$T="{{",dte="}}",HT="ng-enter",r1="ng-leave",q0="ng-trigger",Q0=".ng-trigger",UT="ng-animating",s1=".ng-animating";function Qc(n){if(typeof n=="number")return n;let o=n.match(/^(-?[\.\d]+)(m?s)/);return!o||o.length<2?0:RT(parseFloat(o[1]),o[2])}function RT(n,o){return o==="s"?n*cte:n}function K0(n,o,e){return n.hasOwnProperty("duration")?n:pte(n,o,e)}var mte=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function pte(n,o,e){let t,i=0,a="";if(typeof n=="string"){let s=n.match(mte);if(s===null)return o.push(F8(n)),{duration:0,delay:0,easing:""};t=RT(parseFloat(s[1]),s[2]);let d=s[3];d!=null&&(i=RT(parseFloat(d),s[4]));let p=s[5];p&&(a=p)}else t=n;if(!e){let s=!1,d=o.length;t<0&&(o.push(ete()),s=!0),i<0&&(o.push(tte()),s=!0),s&&o.splice(d,0,F8(n))}return{duration:t,delay:i,easing:a}}function cR(n){return n.length?n[0]instanceof Map?n:n.map(o=>new Map(Object.entries(o))):[]}function cc(n,o,e){o.forEach((t,i)=>{let a=l1(i);e&&!e.has(i)&&e.set(i,n.style[a]),n.style[a]=t})}function Hm(n,o){o.forEach((e,t)=>{let i=l1(t);n.style[i]=""})}function rh(n){return Array.isArray(n)?n.length==1?n[0]:N8(n):n}function dR(n,o,e){let t=o.params||{},i=WT(n);i.length&&i.forEach(a=>{t.hasOwnProperty(a)||e.push(nte(a))})}var zT=new RegExp(`${$T}\\s*(.+?)\\s*${dte}`,"g");function WT(n){let o=[];if(typeof n=="string"){let e;for(;e=zT.exec(n);)o.push(e[1]);zT.lastIndex=0}return o}function sh(n,o,e){let t=`${n}`,i=t.replace(zT,(a,s)=>{let d=o[s];return d==null&&(e.push(ite(s)),d=""),d.toString()});return i==t?n:i}var ute=/-+([a-z0-9])/g;function l1(n){return n.replace(ute,(...o)=>o[1].toUpperCase())}function mR(n,o){return n===0||o===0}function pR(n,o,e){if(e.size&&o.length){let t=o[0],i=[];if(e.forEach((a,s)=>{t.has(s)||i.push(s),t.set(s,a)}),i.length)for(let a=1;as.set(d,c1(n,d)))}}return o}function Es(n,o,e){switch(o.type){case wi.Trigger:return n.visitTrigger(o,e);case wi.State:return n.visitState(o,e);case wi.Transition:return n.visitTransition(o,e);case wi.Sequence:return n.visitSequence(o,e);case wi.Group:return n.visitGroup(o,e);case wi.Animate:return n.visitAnimate(o,e);case wi.Keyframes:return n.visitKeyframes(o,e);case wi.Style:return n.visitStyle(o,e);case wi.Reference:return n.visitReference(o,e);case wi.AnimateChild:return n.visitAnimateChild(o,e);case wi.AnimateRef:return n.visitAnimateRef(o,e);case wi.Query:return n.visitQuery(o,e);case wi.Stagger:return n.visitStagger(o,e);default:throw ote(o.type)}}function c1(n,o){return window.getComputedStyle(n)[o]}var lE=(()=>{class n{validateStyleProperty(e){return lR(e)}containsElement(e,t){return BT(e,t)}getParentElement(e){return a1(e)}query(e,t,i){return jT(e,t,i)}computeStyle(e,t,i){return i||""}animate(e,t,i,a,s,d=[],p){return new Vd(i,a)}static \u0275fac=function(t){return new(t||n)};static \u0275prov=J({token:n,factory:n.\u0275fac})}return n})(),wu=class{static NOOP=new lE},Mu=class{};var gte=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),g1=class extends Mu{normalizePropertyName(o,e){return l1(o)}normalizeStyleValue(o,e,t,i){let a="",s=t.toString().trim();if(gte.has(e)&&t!==0&&t!=="0")if(typeof t=="number")a="px";else{let d=t.match(/^[+-]?[\d\.]+([a-z]*)$/);d&&d[1].length==0&&i.push(z8(o,t))}return s+a}};var h1="*";function hte(n,o){let e=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(t=>_te(t,e,o)):e.push(n),e}function _te(n,o,e){if(n[0]==":"){let p=fte(n,e);if(typeof p=="function"){o.push(p);return}n=p}let t=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(t==null||t.length<4)return e.push(K8(n)),o;let i=t[1],a=t[2],s=t[3];o.push(uR(i,s));let d=i==h1&&s==h1;a[0]=="<"&&!d&&o.push(uR(s,i))}function fte(n,o){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,t)=>parseFloat(t)>parseFloat(e);case":decrement":return(e,t)=>parseFloat(t) *"}}var d1=new Set(["true","1"]),m1=new Set(["false","0"]);function uR(n,o){let e=d1.has(n)||m1.has(n),t=d1.has(o)||m1.has(o);return(i,a)=>{let s=n==h1||n==i,d=o==h1||o==a;return!s&&e&&typeof i=="boolean"&&(s=i?d1.has(n):m1.has(n)),!d&&t&&typeof a=="boolean"&&(d=a?d1.has(o):m1.has(o)),s&&d}}var wR=":self",vte=new RegExp(`s*${wR}s*,?`,"g");function MR(n,o,e,t){return new YT(n).build(o,e,t)}var gR="",YT=class{_driver;constructor(o){this._driver=o}build(o,e,t){let i=new ZT(e);return this._resetContextStyleTimingState(i),Es(this,rh(o),i)}_resetContextStyleTimingState(o){o.currentQuerySelector=gR,o.collectedStyles=new Map,o.collectedStyles.set(gR,new Map),o.currentTime=0}visitTrigger(o,e){let t=e.queryCount=0,i=e.depCount=0,a=[],s=[];return o.name.charAt(0)=="@"&&e.errors.push(L8()),o.definitions.forEach(d=>{if(this._resetContextStyleTimingState(e),d.type==wi.State){let p=d,u=p.name;u.toString().split(/\s*,\s*/).forEach(g=>{p.name=g,a.push(this.visitState(p,e))}),p.name=u}else if(d.type==wi.Transition){let p=this.visitTransition(d,e);t+=p.queryCount,i+=p.depCount,s.push(p)}else e.errors.push(V8())}),{type:wi.Trigger,name:o.name,states:a,transitions:s,queryCount:t,depCount:i,options:null}}visitState(o,e){let t=this.visitStyle(o.styles,e),i=o.options&&o.options.params||null;if(t.containsDynamicStyles){let a=new Set,s=i||{};t.styles.forEach(d=>{d instanceof Map&&d.forEach(p=>{WT(p).forEach(u=>{s.hasOwnProperty(u)||a.add(u)})})}),a.size&&e.errors.push(B8(o.name,[...a.values()]))}return{type:wi.State,name:o.name,style:t,options:i?{params:i}:null}}visitTransition(o,e){e.queryCount=0,e.depCount=0;let t=Es(this,rh(o.animation),e),i=hte(o.expr,e.errors);return{type:wi.Transition,matchers:i,animation:t,queryCount:e.queryCount,depCount:e.depCount,options:yu(o.options)}}visitSequence(o,e){return{type:wi.Sequence,steps:o.steps.map(t=>Es(this,t,e)),options:yu(o.options)}}visitGroup(o,e){let t=e.currentTime,i=0,a=o.steps.map(s=>{e.currentTime=t;let d=Es(this,s,e);return i=Math.max(i,e.currentTime),d});return e.currentTime=i,{type:wi.Group,steps:a,options:yu(o.options)}}visitAnimate(o,e){let t=yte(o.timings,e.errors);e.currentAnimateTimings=t;let i,a=o.styles?o.styles:NT({});if(a.type==wi.Keyframes)i=this.visitKeyframes(a,e);else{let s=o.styles,d=!1;if(!s){d=!0;let u={};t.easing&&(u.easing=t.easing),s=NT(u)}e.currentTime+=t.duration+t.delay;let p=this.visitStyle(s,e);p.isEmptyStep=d,i=p}return e.currentAnimateTimings=null,{type:wi.Animate,timings:t,style:i,options:null}}visitStyle(o,e){let t=this._makeStyleAst(o,e);return this._validateStyleAst(t,e),t}_makeStyleAst(o,e){let t=[],i=Array.isArray(o.styles)?o.styles:[o.styles];for(let d of i)typeof d=="string"?d===lc?t.push(d):e.errors.push(j8(d)):t.push(new Map(Object.entries(d)));let a=!1,s=null;return t.forEach(d=>{if(d instanceof Map&&(d.has("easing")&&(s=d.get("easing"),d.delete("easing")),!a)){for(let p of d.values())if(p.toString().indexOf($T)>=0){a=!0;break}}}),{type:wi.Style,styles:t,easing:s,offset:o.offset,containsDynamicStyles:a,options:null}}_validateStyleAst(o,e){let t=e.currentAnimateTimings,i=e.currentTime,a=e.currentTime;t&&a>0&&(a-=t.duration+t.delay),o.styles.forEach(s=>{typeof s!="string"&&s.forEach((d,p)=>{let u=e.collectedStyles.get(e.currentQuerySelector),g=u.get(p),C=!0;g&&(a!=i&&a>=g.startTime&&i<=g.endTime&&(e.errors.push($8(p,g.startTime,g.endTime,a,i)),C=!1),a=g.startTime),C&&u.set(p,{startTime:a,endTime:i}),e.options&&dR(d,e.options,e.errors)})})}visitKeyframes(o,e){let t={type:wi.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(H8()),t;let i=1,a=0,s=[],d=!1,p=!1,u=0,g=o.steps.map(S=>{let O=this._makeStyleAst(S,e),A=O.offset!=null?O.offset:xte(O.styles),D=0;return A!=null&&(a++,D=O.offset=A),p=p||D<0||D>1,d=d||D0&&a{let A=M>0?O==x?1:M*O:s[O],D=A*k;e.currentTime=b+P.delay+D,P.duration=D,this._validateStyleAst(S,e),S.offset=A,t.styles.push(S)}),t}visitReference(o,e){return{type:wi.Reference,animation:Es(this,rh(o.animation),e),options:yu(o.options)}}visitAnimateChild(o,e){return e.depCount++,{type:wi.AnimateChild,options:yu(o.options)}}visitAnimateRef(o,e){return{type:wi.AnimateRef,animation:this.visitReference(o.animation,e),options:yu(o.options)}}visitQuery(o,e){let t=e.currentQuerySelector,i=o.options||{};e.queryCount++,e.currentQuery=o;let[a,s]=Cte(o.selector);e.currentQuerySelector=t.length?t+" "+a:a,Ts(e.collectedStyles,e.currentQuerySelector,new Map);let d=Es(this,rh(o.animation),e);return e.currentQuery=null,e.currentQuerySelector=t,{type:wi.Query,selector:a,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:d,originalSelector:o.selector,options:yu(o.options)}}visitStagger(o,e){e.currentQuery||e.errors.push(q8());let t=o.timings==="full"?{duration:0,delay:0,easing:"full"}:K0(o.timings,e.errors,!0);return{type:wi.Stagger,animation:Es(this,rh(o.animation),e),timings:t,options:null}}};function Cte(n){let o=!!n.split(/\s*,\s*/).find(e=>e==wR);return o&&(n=n.replace(vte,"")),n=n.replace(/@\*/g,Q0).replace(/@\w+/g,e=>Q0+"-"+e.slice(1)).replace(/:animating/g,s1),[n,o]}function bte(n){return n?q({},n):null}var ZT=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(o){this.errors=o}};function xte(n){if(typeof n=="string")return null;let o=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){let t=e;o=parseFloat(t.get("offset")),t.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let e=n;o=parseFloat(e.get("offset")),e.delete("offset")}return o}function yte(n,o){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let a=K0(n,o).duration;return GT(a,0,"")}let e=n;if(e.split(/\s+/).some(a=>a.charAt(0)=="{"&&a.charAt(1)=="{")){let a=GT(0,0,"");return a.dynamic=!0,a.strValue=e,a}let i=K0(e,o);return GT(i.duration,i.delay,i.easing)}function yu(n){return n?(n=q({},n),n.params&&(n.params=bte(n.params))):n={},n}function GT(n,o,e){return{duration:n,delay:o,easing:e}}function cE(n,o,e,t,i,a,s=null,d=!1){return{type:1,element:n,keyframes:o,preStyleProps:e,postStyleProps:t,duration:i,delay:a,totalTime:i+a,easing:s,subTimeline:d}}var Y0=class{_map=new Map;get(o){return this._map.get(o)||[]}append(o,e){let t=this._map.get(o);t||this._map.set(o,t=[]),t.push(...e)}has(o){return this._map.has(o)}clear(){this._map.clear()}},wte=1,Mte=":enter",Ste=new RegExp(Mte,"g"),kte=":leave",Pte=new RegExp(kte,"g");function SR(n,o,e,t,i,a=new Map,s=new Map,d,p,u=[]){return new JT().buildKeyframes(n,o,e,t,i,a,s,d,p,u)}var JT=class{buildKeyframes(o,e,t,i,a,s,d,p,u,g=[]){u=u||new Y0;let C=new eE(o,e,u,i,a,g,[]);C.options=p;let M=p.delay?Qc(p.delay):0;C.currentTimeline.delayNextStep(M),C.currentTimeline.setStyles([s],null,C.errors,p),Es(this,t,C);let x=C.timelines.filter(b=>b.containsAnimation());if(x.length&&d.size){let b;for(let P=x.length-1;P>=0;P--){let k=x[P];if(k.element===e){b=k;break}}b&&!b.allowOnlyTimelineStyles()&&b.setStyles([d],null,C.errors,p)}return x.length?x.map(b=>b.buildKeyframes()):[cE(e,[],[],[],0,M,"",!1)]}visitTrigger(o,e){}visitState(o,e){}visitTransition(o,e){}visitAnimateChild(o,e){let t=e.subInstructions.get(e.element);if(t){let i=e.createSubContext(o.options),a=e.currentTimeline.currentTime,s=this._visitSubInstructions(t,i,i.options);a!=s&&e.transformIntoNewTimeline(s)}e.previousNode=o}visitAnimateRef(o,e){let t=e.createSubContext(o.options);t.transformIntoNewTimeline(),this._applyAnimationRefDelays([o.options,o.animation.options],e,t),this.visitReference(o.animation,t),e.transformIntoNewTimeline(t.currentTimeline.currentTime),e.previousNode=o}_applyAnimationRefDelays(o,e,t){for(let i of o){let a=i?.delay;if(a){let s=typeof a=="number"?a:Qc(sh(a,i?.params??{},e.errors));t.delayNextStep(s)}}}_visitSubInstructions(o,e,t){let a=e.currentTimeline.currentTime,s=t.duration!=null?Qc(t.duration):null,d=t.delay!=null?Qc(t.delay):null;return s!==0&&o.forEach(p=>{let u=e.appendInstructionToTimeline(p,s,d);a=Math.max(a,u.duration+u.delay)}),a}visitReference(o,e){e.updateOptions(o.options,!0),Es(this,o.animation,e),e.previousNode=o}visitSequence(o,e){let t=e.subContextCount,i=e,a=o.options;if(a&&(a.params||a.delay)&&(i=e.createSubContext(a),i.transformIntoNewTimeline(),a.delay!=null)){i.previousNode.type==wi.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=_1);let s=Qc(a.delay);i.delayNextStep(s)}o.steps.length&&(o.steps.forEach(s=>Es(this,s,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>t&&i.transformIntoNewTimeline()),e.previousNode=o}visitGroup(o,e){let t=[],i=e.currentTimeline.currentTime,a=o.options&&o.options.delay?Qc(o.options.delay):0;o.steps.forEach(s=>{let d=e.createSubContext(o.options);a&&d.delayNextStep(a),Es(this,s,d),i=Math.max(i,d.currentTimeline.currentTime),t.push(d.currentTimeline)}),t.forEach(s=>e.currentTimeline.mergeTimelineCollectedStyles(s)),e.transformIntoNewTimeline(i),e.previousNode=o}_visitTiming(o,e){if(o.dynamic){let t=o.strValue,i=e.params?sh(t,e.params,e.errors):t;return K0(i,e.errors)}else return{duration:o.duration,delay:o.delay,easing:o.easing}}visitAnimate(o,e){let t=e.currentAnimateTimings=this._visitTiming(o.timings,e),i=e.currentTimeline;t.delay&&(e.incrementTime(t.delay),i.snapshotCurrentStyles());let a=o.style;a.type==wi.Keyframes?this.visitKeyframes(a,e):(e.incrementTime(t.duration),this.visitStyle(a,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=o}visitStyle(o,e){let t=e.currentTimeline,i=e.currentAnimateTimings;!i&&t.hasCurrentStyleProperties()&&t.forwardFrame();let a=i&&i.easing||o.easing;o.isEmptyStep?t.applyEmptyStep(a):t.setStyles(o.styles,a,e.errors,e.options),e.previousNode=o}visitKeyframes(o,e){let t=e.currentAnimateTimings,i=e.currentTimeline.duration,a=t.duration,d=e.createSubContext().currentTimeline;d.easing=t.easing,o.styles.forEach(p=>{let u=p.offset||0;d.forwardTime(u*a),d.setStyles(p.styles,p.easing,e.errors,e.options),d.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(d),e.transformIntoNewTimeline(i+a),e.previousNode=o}visitQuery(o,e){let t=e.currentTimeline.currentTime,i=o.options||{},a=i.delay?Qc(i.delay):0;a&&(e.previousNode.type===wi.Style||t==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=_1);let s=t,d=e.invokeQuery(o.selector,o.originalSelector,o.limit,o.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=d.length;let p=null;d.forEach((u,g)=>{e.currentQueryIndex=g;let C=e.createSubContext(o.options,u);a&&C.delayNextStep(a),u===e.element&&(p=C.currentTimeline),Es(this,o.animation,C),C.currentTimeline.applyStylesToKeyframe();let M=C.currentTimeline.currentTime;s=Math.max(s,M)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),p&&(e.currentTimeline.mergeTimelineCollectedStyles(p),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=o}visitStagger(o,e){let t=e.parentContext,i=e.currentTimeline,a=o.timings,s=Math.abs(a.duration),d=s*(e.currentQueryTotal-1),p=s*e.currentQueryIndex;switch(a.duration<0?"reverse":a.easing){case"reverse":p=d-p;break;case"full":p=t.currentStaggerTime;break}let g=e.currentTimeline;p&&g.delayNextStep(p);let C=g.currentTime;Es(this,o.animation,e),e.previousNode=o,t.currentStaggerTime=i.currentTime-C+(i.startTime-t.currentTimeline.startTime)}},_1={},eE=class n{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=_1;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(o,e,t,i,a,s,d,p){this._driver=o,this.element=e,this.subInstructions=t,this._enterClassName=i,this._leaveClassName=a,this.errors=s,this.timelines=d,this.currentTimeline=p||new f1(this._driver,e,0),d.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(o,e){if(!o)return;let t=o,i=this.options;t.duration!=null&&(i.duration=Qc(t.duration)),t.delay!=null&&(i.delay=Qc(t.delay));let a=t.params;if(a){let s=i.params;s||(s=this.options.params={}),Object.keys(a).forEach(d=>{(!e||!s.hasOwnProperty(d))&&(s[d]=sh(a[d],s,this.errors))})}}_copyOptions(){let o={};if(this.options){let e=this.options.params;if(e){let t=o.params={};Object.keys(e).forEach(i=>{t[i]=e[i]})}}return o}createSubContext(o=null,e,t){let i=e||this.element,a=new n(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,t||0));return a.previousNode=this.previousNode,a.currentAnimateTimings=this.currentAnimateTimings,a.options=this._copyOptions(),a.updateOptions(o),a.currentQueryIndex=this.currentQueryIndex,a.currentQueryTotal=this.currentQueryTotal,a.parentContext=this,this.subContextCount++,a}transformIntoNewTimeline(o){return this.previousNode=_1,this.currentTimeline=this.currentTimeline.fork(this.element,o),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(o,e,t){let i={duration:e??o.duration,delay:this.currentTimeline.currentTime+(t??0)+o.delay,easing:""},a=new tE(this._driver,o.element,o.keyframes,o.preStyleProps,o.postStyleProps,i,o.stretchStartingKeyframe);return this.timelines.push(a),i}incrementTime(o){this.currentTimeline.forwardTime(this.currentTimeline.duration+o)}delayNextStep(o){o>0&&this.currentTimeline.delayNextStep(o)}invokeQuery(o,e,t,i,a,s){let d=[];if(i&&d.push(this.element),o.length>0){o=o.replace(Ste,"."+this._enterClassName),o=o.replace(Pte,"."+this._leaveClassName);let p=t!=1,u=this._driver.query(this.element,o,p);t!==0&&(u=t<0?u.slice(u.length+t,u.length):u.slice(0,t)),d.push(...u)}return!a&&d.length==0&&s.push(Q8(e)),d}},f1=class n{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(o,e,t,i){this._driver=o,this.element=e,this.startTime=t,this._elementTimelineStylesLookup=i,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(o){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+o),e&&this.snapshotCurrentStyles()):this.startTime+=o}fork(o,e){return this.applyStylesToKeyframe(),new n(this._driver,o,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=wte,this._loadKeyframe()}forwardTime(o){this.applyStylesToKeyframe(),this.duration=o,this._loadKeyframe()}_updateStyle(o,e){this._localTimelineStyles.set(o,e),this._globalTimelineStyles.set(o,e),this._styleSummary.set(o,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(o){o&&this._previousKeyframe.set("easing",o);for(let[e,t]of this._globalTimelineStyles)this._backFill.set(e,t||lc),this._currentKeyframe.set(e,lc);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(o,e,t,i){e&&this._previousKeyframe.set("easing",e);let a=i&&i.params||{},s=Tte(o,this._globalTimelineStyles);for(let[d,p]of s){let u=sh(p,a,t);this._pendingStyles.set(d,u),this._localTimelineStyles.has(d)||this._backFill.set(d,this._globalTimelineStyles.get(d)??lc),this._updateStyle(d,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((o,e)=>{this._currentKeyframe.set(e,o)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((o,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,o)}))}snapshotCurrentStyles(){for(let[o,e]of this._localTimelineStyles)this._pendingStyles.set(o,e),this._updateStyle(o,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let o=[];for(let e in this._currentKeyframe)o.push(e);return o}mergeTimelineCollectedStyles(o){o._styleSummary.forEach((e,t)=>{let i=this._styleSummary.get(t);(!i||e.time>i.time)&&this._updateStyle(t,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let o=new Set,e=new Set,t=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((d,p)=>{let u=new Map([...this._backFill,...d]);u.forEach((g,C)=>{g===G0?o.add(C):g===lc&&e.add(C)}),t||u.set("offset",p/this.duration),i.push(u)});let a=[...o.values()],s=[...e.values()];if(t){let d=i[0],p=new Map(d);d.set("offset",0),p.set("offset",1),i=[d,p]}return cE(this.element,i,a,s,this.duration,this.startTime,this.easing,!1)}},tE=class extends f1{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(o,e,t,i,a,s,d=!1){super(o,e,s.delay),this.keyframes=t,this.preStyleProps=i,this.postStyleProps=a,this._stretchStartingKeyframe=d,this.timings={duration:s.duration,delay:s.delay,easing:s.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let o=this.keyframes,{delay:e,duration:t,easing:i}=this.timings;if(this._stretchStartingKeyframe&&e){let a=[],s=t+e,d=e/s,p=new Map(o[0]);p.set("offset",0),a.push(p);let u=new Map(o[0]);u.set("offset",hR(d)),a.push(u);let g=o.length-1;for(let C=1;C<=g;C++){let M=new Map(o[C]),x=M.get("offset"),b=e+x*t;M.set("offset",hR(b/s)),a.push(M)}t=s,e=0,i="",o=a}return cE(this.element,o,this.preStyleProps,this.postStyleProps,t,e,i,!0)}};function hR(n,o=3){let e=Math.pow(10,o-1);return Math.round(n*e)/e}function Tte(n,o){let e=new Map,t;return n.forEach(i=>{if(i==="*"){t??=o.keys();for(let a of t)e.set(a,lc)}else for(let[a,s]of i)e.set(a,s)}),e}function _R(n,o,e,t,i,a,s,d,p,u,g,C,M){return{type:0,element:n,triggerName:o,isRemovalTransition:i,fromState:e,fromStyles:a,toState:t,toStyles:s,timelines:d,queriedElements:p,preStyleProps:u,postStyleProps:g,totalTime:C,errors:M}}var qT={},v1=class{_triggerName;ast;_stateStyles;constructor(o,e,t){this._triggerName=o,this.ast=e,this._stateStyles=t}match(o,e,t,i){return Ete(this.ast.matchers,o,e,t,i)}buildStyles(o,e,t){let i=this._stateStyles.get("*");return o!==void 0&&(i=this._stateStyles.get(o?.toString())||i),i?i.buildStyles(e,t):new Map}build(o,e,t,i,a,s,d,p,u,g){let C=[],M=this.ast.options&&this.ast.options.params||qT,x=d&&d.params||qT,b=this.buildStyles(t,x,C),P=p&&p.params||qT,k=this.buildStyles(i,P,C),S=new Set,O=new Map,A=new Map,D=i==="void",F={params:kR(P,M),delay:this.ast.options?.delay},I=g?[]:SR(o,e,this.ast.animation,a,s,b,k,F,u,C),B=0;return I.forEach(le=>{B=Math.max(le.duration+le.delay,B)}),C.length?_R(e,this._triggerName,t,i,D,b,k,[],[],O,A,B,C):(I.forEach(le=>{let ae=le.element,W=Ts(O,ae,new Set);le.preStyleProps.forEach(ve=>W.add(ve));let G=Ts(A,ae,new Set);le.postStyleProps.forEach(ve=>G.add(ve)),ae!==e&&S.add(ae)}),_R(e,this._triggerName,t,i,D,b,k,I,[...S.values()],O,A,B))}};function Ete(n,o,e,t,i){return n.some(a=>a(o,e,t,i))}function kR(n,o){let e=q({},o);return Object.entries(n).forEach(([t,i])=>{i!=null&&(e[t]=i)}),e}var nE=class{styles;defaultParams;normalizer;constructor(o,e,t){this.styles=o,this.defaultParams=e,this.normalizer=t}buildStyles(o,e){let t=new Map,i=kR(o,this.defaultParams);return this.styles.styles.forEach(a=>{typeof a!="string"&&a.forEach((s,d)=>{s&&(s=sh(s,i,e));let p=this.normalizer.normalizePropertyName(d,e);s=this.normalizer.normalizeStyleValue(d,p,s,e),t.set(d,s)})}),t}};function Ote(n,o,e){return new iE(n,o,e)}var iE=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(o,e,t){this.name=o,this.ast=e,this._normalizer=t,e.states.forEach(i=>{let a=i.options&&i.options.params||{};this.states.set(i.name,new nE(i.style,a,t))}),fR(this.states,"true","1"),fR(this.states,"false","0"),e.transitions.forEach(i=>{this.transitionFactories.push(new v1(o,i,this.states))}),this.fallbackTransition=Dte(o,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(o,e,t,i){return this.transitionFactories.find(s=>s.match(o,e,t,i))||null}matchStyles(o,e,t){return this.fallbackTransition.buildStyles(o,e,t)}};function Dte(n,o,e){let t=[(s,d)=>!0],i={type:wi.Sequence,steps:[],options:null},a={type:wi.Transition,animation:i,matchers:t,options:null,queryCount:0,depCount:0};return new v1(n,a,o)}function fR(n,o,e){n.has(o)?n.has(e)||n.set(e,n.get(o)):n.has(e)&&n.set(o,n.get(e))}var Ite=new Y0,oE=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(o,e,t){this.bodyNode=o,this._driver=e,this._normalizer=t}register(o,e){let t=[],i=[],a=MR(this._driver,e,t,i);if(t.length)throw Z8(t);this._animations.set(o,a)}_buildPlayer(o,e,t){let i=o.element,a=LT(this._normalizer,o.keyframes,e,t);return this._driver.animate(i,a,o.duration,o.delay,o.easing,[],!0)}create(o,e,t={}){let i=[],a=this._animations.get(o),s,d=new Map;if(a?(s=SR(this._driver,e,a,HT,r1,new Map,new Map,t,Ite,i),s.forEach(g=>{let C=Ts(d,g.element,new Map);g.postStyleProps.forEach(M=>C.set(M,null))})):(i.push(J8()),s=[]),i.length)throw eR(i);d.forEach((g,C)=>{g.forEach((M,x)=>{g.set(x,this._driver.computeStyle(C,x,lc))})});let p=s.map(g=>{let C=d.get(g.element);return this._buildPlayer(g,new Map,C)}),u=Bd(p);return this._playersById.set(o,u),u.onDestroy(()=>this.destroy(o)),this.players.push(u),u}destroy(o){let e=this._getPlayer(o);e.destroy(),this._playersById.delete(o);let t=this.players.indexOf(e);t>=0&&this.players.splice(t,1)}_getPlayer(o){let e=this._playersById.get(o);if(!e)throw tR(o);return e}listen(o,e,t,i){let a=o1(e,"","","");return i1(this._getPlayer(o),t,a,i),()=>{}}command(o,e,t,i){if(t=="register"){this.register(o,i[0]);return}if(t=="create"){let s=i[0]||{};this.create(o,e,s);return}let a=this._getPlayer(o);switch(t){case"play":a.play();break;case"pause":a.pause();break;case"reset":a.reset();break;case"restart":a.restart();break;case"finish":a.finish();break;case"init":a.init();break;case"setPosition":a.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(o);break}}},vR="ng-animate-queued",Ate=".ng-animate-queued",QT="ng-animate-disabled",Nte=".ng-animate-disabled",Fte="ng-star-inserted",Rte=".ng-star-inserted",zte=[],PR={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Lte={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},dc="__ng_removed",Z0=class{namespaceId;value;options;get params(){return this.options.params}constructor(o,e=""){this.namespaceId=e;let t=o&&o.hasOwnProperty("value"),i=t?o.value:o;if(this.value=Bte(i),t){let a=o,{value:s}=a,d=EC(a,["value"]);this.options=d}else this.options={};this.options.params||(this.options.params={})}absorbOptions(o){let e=o.params;if(e){let t=this.options.params;Object.keys(e).forEach(i=>{t[i]==null&&(t[i]=e[i])})}}},X0="void",KT=new Z0(X0),aE=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(o,e,t){this.id=o,this.hostElement=e,this._engine=t,this._hostClassName="ng-tns-"+o,Sl(e,this._hostClassName)}listen(o,e,t,i){if(!this._triggers.has(e))throw nR(t,e);if(t==null||t.length==0)throw iR(e);if(!jte(t))throw oR(t,e);let a=Ts(this._elementListeners,o,[]),s={name:e,phase:t,callback:i};a.push(s);let d=Ts(this._engine.statesByElement,o,new Map);return d.has(e)||(Sl(o,q0),Sl(o,q0+"-"+e),d.set(e,KT)),()=>{this._engine.afterFlush(()=>{let p=a.indexOf(s);p>=0&&a.splice(p,1),this._triggers.has(e)||d.delete(e)})}}register(o,e){return this._triggers.has(o)?!1:(this._triggers.set(o,e),!0)}_getTrigger(o){let e=this._triggers.get(o);if(!e)throw aR(o);return e}trigger(o,e,t,i=!0){let a=this._getTrigger(e),s=new J0(this.id,e,o),d=this._engine.statesByElement.get(o);d||(Sl(o,q0),Sl(o,q0+"-"+e),this._engine.statesByElement.set(o,d=new Map));let p=d.get(e),u=new Z0(t,this.id);if(!(t&&t.hasOwnProperty("value"))&&p&&u.absorbOptions(p.options),d.set(e,u),p||(p=KT),!(u.value===X0)&&p.value===u.value){if(!Ute(p.params,u.params)){let P=[],k=a.matchStyles(p.value,p.params,P),S=a.matchStyles(u.value,u.params,P);P.length?this._engine.reportError(P):this._engine.afterFlush(()=>{Hm(o,k),cc(o,S)})}return}let M=Ts(this._engine.playersByElement,o,[]);M.forEach(P=>{P.namespaceId==this.id&&P.triggerName==e&&P.queued&&P.destroy()});let x=a.matchTransition(p.value,u.value,o,u.params),b=!1;if(!x){if(!i)return;x=a.fallbackTransition,b=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:e,transition:x,fromState:p,toState:u,player:s,isFallbackTransition:b}),b||(Sl(o,vR),s.onStart(()=>{lh(o,vR)})),s.onDone(()=>{let P=this.players.indexOf(s);P>=0&&this.players.splice(P,1);let k=this._engine.playersByElement.get(o);if(k){let S=k.indexOf(s);S>=0&&k.splice(S,1)}}),this.players.push(s),M.push(s),s}deregister(o){this._triggers.delete(o),this._engine.statesByElement.forEach(e=>e.delete(o)),this._elementListeners.forEach((e,t)=>{this._elementListeners.set(t,e.filter(i=>i.name!=o))})}clearElementCache(o){this._engine.statesByElement.delete(o),this._elementListeners.delete(o);let e=this._engine.playersByElement.get(o);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(o))}_signalRemovalForInnerTriggers(o,e){let t=this._engine.driver.query(o,Q0,!0);t.forEach(i=>{if(i[dc])return;let a=this._engine.fetchNamespacesByElement(i);a.size?a.forEach(s=>s.triggerLeaveAnimation(i,e,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>t.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(o,e,t,i){let a=this._engine.statesByElement.get(o),s=new Map;if(a){let d=[];if(a.forEach((p,u)=>{if(s.set(u,p.value),this._triggers.has(u)){let g=this.trigger(o,u,X0,i);g&&d.push(g)}}),d.length)return this._engine.markElementAsRemoved(this.id,o,!0,e,s),t&&Bd(d).onDone(()=>this._engine.processLeaveNode(o)),!0}return!1}prepareLeaveAnimationListeners(o){let e=this._elementListeners.get(o),t=this._engine.statesByElement.get(o);if(e&&t){let i=new Set;e.forEach(a=>{let s=a.name;if(i.has(s))return;i.add(s);let p=this._triggers.get(s).fallbackTransition,u=t.get(s)||KT,g=new Z0(X0),C=new J0(this.id,s,o);this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:s,transition:p,fromState:u,toState:g,player:C,isFallbackTransition:!0})})}}removeNode(o,e){let t=this._engine;if(o.childElementCount&&this._signalRemovalForInnerTriggers(o,e),this.triggerLeaveAnimation(o,e,!0))return;let i=!1;if(t.totalAnimations){let a=t.players.length?t.playersByQueriedElement.get(o):[];if(a&&a.length)i=!0;else{let s=o;for(;s=s.parentNode;)if(t.statesByElement.get(s)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(o),i)t.markElementAsRemoved(this.id,o,!1,e);else{let a=o[dc];(!a||a===PR)&&(t.afterFlush(()=>this.clearElementCache(o)),t.destroyInnerAnimations(o),t._onRemovalComplete(o,e))}}insertNode(o,e){Sl(o,this._hostClassName)}drainQueuedTransitions(o){let e=[];return this._queue.forEach(t=>{let i=t.player;if(i.destroyed)return;let a=t.element,s=this._elementListeners.get(a);s&&s.forEach(d=>{if(d.name==t.triggerName){let p=o1(a,t.triggerName,t.fromState.value,t.toState.value);p._data=o,i1(t.player,d.phase,p,d.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):e.push(t)}),this._queue=[],e.sort((t,i)=>{let a=t.transition.ast.depCount,s=i.transition.ast.depCount;return a==0||s==0?a-s:this._engine.driver.containsElement(t.element,i.element)?1:-1})}destroy(o){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,o)}},rE=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(o,e)=>{};_onRemovalComplete(o,e){this.onRemovalComplete(o,e)}constructor(o,e,t){this.bodyNode=o,this.driver=e,this._normalizer=t}get queuedPlayers(){let o=[];return this._namespaceList.forEach(e=>{e.players.forEach(t=>{t.queued&&o.push(t)})}),o}createNamespace(o,e){let t=new aE(o,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(t,e):(this.newHostElements.set(e,t),this.collectEnterElement(e)),this._namespaceLookup[o]=t}_balanceNamespaceList(o,e){let t=this._namespaceList,i=this.namespacesByHostElement;if(t.length-1>=0){let s=!1,d=this.driver.getParentElement(e);for(;d;){let p=i.get(d);if(p){let u=t.indexOf(p);t.splice(u+1,0,o),s=!0;break}d=this.driver.getParentElement(d)}s||t.unshift(o)}else t.push(o);return i.set(e,o),o}register(o,e){let t=this._namespaceLookup[o];return t||(t=this.createNamespace(o,e)),t}registerTrigger(o,e,t){let i=this._namespaceLookup[o];i&&i.register(e,t)&&this.totalAnimations++}destroy(o,e){o&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let t=this._fetchNamespace(o);this.namespacesByHostElement.delete(t.hostElement);let i=this._namespaceList.indexOf(t);i>=0&&this._namespaceList.splice(i,1),t.destroy(e),delete this._namespaceLookup[o]}))}_fetchNamespace(o){return this._namespaceLookup[o]}fetchNamespacesByElement(o){let e=new Set,t=this.statesByElement.get(o);if(t){for(let i of t.values())if(i.namespaceId){let a=this._fetchNamespace(i.namespaceId);a&&e.add(a)}}return e}trigger(o,e,t,i){if(p1(e)){let a=this._fetchNamespace(o);if(a)return a.trigger(e,t,i),!0}return!1}insertNode(o,e,t,i){if(!p1(e))return;let a=e[dc];if(a&&a.setForRemoval){a.setForRemoval=!1,a.setForMove=!0;let s=this.collectedLeaveElements.indexOf(e);s>=0&&this.collectedLeaveElements.splice(s,1)}if(o){let s=this._fetchNamespace(o);s&&s.insertNode(e,t)}i&&this.collectEnterElement(e)}collectEnterElement(o){this.collectedEnterElements.push(o)}markElementAsDisabled(o,e){e?this.disabledNodes.has(o)||(this.disabledNodes.add(o),Sl(o,QT)):this.disabledNodes.has(o)&&(this.disabledNodes.delete(o),lh(o,QT))}removeNode(o,e,t){if(p1(e)){let i=o?this._fetchNamespace(o):null;i?i.removeNode(e,t):this.markElementAsRemoved(o,e,!1,t);let a=this.namespacesByHostElement.get(e);a&&a.id!==o&&a.removeNode(e,t)}else this._onRemovalComplete(e,t)}markElementAsRemoved(o,e,t,i,a){this.collectedLeaveElements.push(e),e[dc]={namespaceId:o,setForRemoval:i,hasAnimation:t,removedBeforeQueried:!1,previousTriggersValues:a}}listen(o,e,t,i,a){return p1(e)?this._fetchNamespace(o).listen(e,t,i,a):()=>{}}_buildInstruction(o,e,t,i,a){return o.transition.build(this.driver,o.element,o.fromState.value,o.toState.value,t,i,o.fromState.options,o.toState.options,e,a)}destroyInnerAnimations(o){let e=this.driver.query(o,Q0,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(o,s1,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(o){let e=this.playersByElement.get(o);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(o){let e=this.playersByQueriedElement.get(o);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(o=>{if(this.players.length)return Bd(this.players).onDone(()=>o());o()})}processLeaveNode(o){let e=o[dc];if(e&&e.setForRemoval){if(o[dc]=PR,e.namespaceId){this.destroyInnerAnimations(o);let t=this._fetchNamespace(e.namespaceId);t&&t.clearElementCache(o)}this._onRemovalComplete(o,e.setForRemoval)}o.classList?.contains(QT)&&this.markElementAsDisabled(o,!1),this.driver.query(o,Nte,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(o=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,i)=>this._balanceNamespaceList(t,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let t=0;tt()),this._flushFns=[],this._whenQuietFns.length){let t=this._whenQuietFns;this._whenQuietFns=[],e.length?Bd(e).onDone(()=>{t.forEach(i=>i())}):t.forEach(i=>i())}}reportError(o){throw rR(o)}_flushAnimations(o,e){let t=new Y0,i=[],a=new Map,s=[],d=new Map,p=new Map,u=new Map,g=new Set;this.disabledNodes.forEach(ue=>{g.add(ue);let H=this.driver.query(ue,Ate,!0);for(let te=0;te{let te=HT+P++;b.set(H,te),ue.forEach(de=>Sl(de,te))});let k=[],S=new Set,O=new Set;for(let ue=0;ueS.add(de)):O.add(H))}let A=new Map,D=xR(M,Array.from(S));D.forEach((ue,H)=>{let te=r1+P++;A.set(H,te),ue.forEach(de=>Sl(de,te))}),o.push(()=>{x.forEach((ue,H)=>{let te=b.get(H);ue.forEach(de=>lh(de,te))}),D.forEach((ue,H)=>{let te=A.get(H);ue.forEach(de=>lh(de,te))}),k.forEach(ue=>{this.processLeaveNode(ue)})});let F=[],I=[];for(let ue=this._namespaceList.length-1;ue>=0;ue--)this._namespaceList[ue].drainQueuedTransitions(e).forEach(te=>{let de=te.player,me=te.element;if(F.push(de),this.collectedEnterElements.length){let Le=me[dc];if(Le&&Le.setForMove){if(Le.previousTriggersValues&&Le.previousTriggersValues.has(te.triggerName)){let Ze=Le.previousTriggersValues.get(te.triggerName),dt=this.statesByElement.get(te.element);if(dt&&dt.has(te.triggerName)){let Ot=dt.get(te.triggerName);Ot.value=Ze,dt.set(te.triggerName,Ot)}}de.destroy();return}}let Ie=!C||!this.driver.containsElement(C,me),$e=A.get(me),tt=b.get(me),et=this._buildInstruction(te,t,tt,$e,Ie);if(et.errors&&et.errors.length){I.push(et);return}if(Ie){de.onStart(()=>Hm(me,et.fromStyles)),de.onDestroy(()=>cc(me,et.toStyles)),i.push(de);return}if(te.isFallbackTransition){de.onStart(()=>Hm(me,et.fromStyles)),de.onDestroy(()=>cc(me,et.toStyles)),i.push(de);return}let Me=[];et.timelines.forEach(Le=>{Le.stretchStartingKeyframe=!0,this.disabledNodes.has(Le.element)||Me.push(Le)}),et.timelines=Me,t.append(me,et.timelines);let Z={instruction:et,player:de,element:me};s.push(Z),et.queriedElements.forEach(Le=>Ts(d,Le,[]).push(de)),et.preStyleProps.forEach((Le,Ze)=>{if(Le.size){let dt=p.get(Ze);dt||p.set(Ze,dt=new Set),Le.forEach((Ot,si)=>dt.add(si))}}),et.postStyleProps.forEach((Le,Ze)=>{let dt=u.get(Ze);dt||u.set(Ze,dt=new Set),Le.forEach((Ot,si)=>dt.add(si))})});if(I.length){let ue=[];I.forEach(H=>{ue.push(sR(H.triggerName,H.errors))}),F.forEach(H=>H.destroy()),this.reportError(ue)}let B=new Map,le=new Map;s.forEach(ue=>{let H=ue.element;t.has(H)&&(le.set(H,H),this._beforeAnimationBuild(ue.player.namespaceId,ue.instruction,B))}),i.forEach(ue=>{let H=ue.element;this._getPreviousPlayers(H,!1,ue.namespaceId,ue.triggerName,null).forEach(de=>{Ts(B,H,[]).push(de),de.destroy()})});let ae=k.filter(ue=>yR(ue,p,u)),W=new Map;bR(W,this.driver,O,u,lc).forEach(ue=>{yR(ue,p,u)&&ae.push(ue)});let ve=new Map;x.forEach((ue,H)=>{bR(ve,this.driver,new Set(ue),p,G0)}),ae.forEach(ue=>{let H=W.get(ue),te=ve.get(ue);W.set(ue,new Map([...H?.entries()??[],...te?.entries()??[]]))});let Se=[],pe=[],Ae={};s.forEach(ue=>{let{element:H,player:te,instruction:de}=ue;if(t.has(H)){if(g.has(H)){te.onDestroy(()=>cc(H,de.toStyles)),te.disabled=!0,te.overrideTotalTime(de.totalTime),i.push(te);return}let me=Ae;if(le.size>1){let $e=H,tt=[];for(;$e=$e.parentNode;){let et=le.get($e);if(et){me=et;break}tt.push($e)}tt.forEach(et=>le.set(et,me))}let Ie=this._buildAnimation(te.namespaceId,de,B,a,ve,W);if(te.setRealPlayer(Ie),me===Ae)Se.push(te);else{let $e=this.playersByElement.get(me);$e&&$e.length&&(te.parentPlayer=Bd($e)),i.push(te)}}else Hm(H,de.fromStyles),te.onDestroy(()=>cc(H,de.toStyles)),pe.push(te),g.has(H)&&i.push(te)}),pe.forEach(ue=>{let H=a.get(ue.element);if(H&&H.length){let te=Bd(H);ue.setRealPlayer(te)}}),i.forEach(ue=>{ue.parentPlayer?ue.syncPlayerEvents(ue.parentPlayer):ue.destroy()});for(let ue=0;ue!Ie.destroyed);me.length?$te(this,H,me):this.processLeaveNode(H)}return k.length=0,Se.forEach(ue=>{this.players.push(ue),ue.onDone(()=>{ue.destroy();let H=this.players.indexOf(ue);this.players.splice(H,1)}),ue.play()}),Se}afterFlush(o){this._flushFns.push(o)}afterFlushAnimationsDone(o){this._whenQuietFns.push(o)}_getPreviousPlayers(o,e,t,i,a){let s=[];if(e){let d=this.playersByQueriedElement.get(o);d&&(s=d)}else{let d=this.playersByElement.get(o);if(d){let p=!a||a==X0;d.forEach(u=>{u.queued||!p&&u.triggerName!=i||s.push(u)})}}return(t||i)&&(s=s.filter(d=>!(t&&t!=d.namespaceId||i&&i!=d.triggerName))),s}_beforeAnimationBuild(o,e,t){let i=e.triggerName,a=e.element,s=e.isRemovalTransition?void 0:o,d=e.isRemovalTransition?void 0:i;for(let p of e.timelines){let u=p.element,g=u!==a,C=Ts(t,u,[]);this._getPreviousPlayers(u,g,s,d,e.toState).forEach(x=>{let b=x.getRealPlayer();b.beforeDestroy&&b.beforeDestroy(),x.destroy(),C.push(x)})}Hm(a,e.fromStyles)}_buildAnimation(o,e,t,i,a,s){let d=e.triggerName,p=e.element,u=[],g=new Set,C=new Set,M=e.timelines.map(b=>{let P=b.element;g.add(P);let k=P[dc];if(k&&k.removedBeforeQueried)return new Vd(b.duration,b.delay);let S=P!==p,O=Hte((t.get(P)||zte).map(B=>B.getRealPlayer())).filter(B=>{let le=B;return le.element?le.element===P:!1}),A=a.get(P),D=s.get(P),F=LT(this._normalizer,b.keyframes,A,D),I=this._buildPlayer(b,F,O);if(b.subTimeline&&i&&C.add(P),S){let B=new J0(o,d,P);B.setRealPlayer(I),u.push(B)}return I});u.forEach(b=>{Ts(this.playersByQueriedElement,b.element,[]).push(b),b.onDone(()=>Vte(this.playersByQueriedElement,b.element,b))}),g.forEach(b=>Sl(b,UT));let x=Bd(M);return x.onDestroy(()=>{g.forEach(b=>lh(b,UT)),cc(p,e.toStyles)}),C.forEach(b=>{Ts(i,b,[]).push(x)}),x}_buildPlayer(o,e,t){return e.length>0?this.driver.animate(o.element,e,o.duration,o.delay,o.easing,t):new Vd(o.duration,o.delay)}},J0=class{namespaceId;triggerName;element;_player=new Vd;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(o,e,t){this.namespaceId=o,this.triggerName=e,this.element=t}setRealPlayer(o){this._containsRealPlayer||(this._player=o,this._queuedCallbacks.forEach((e,t)=>{e.forEach(i=>i1(o,t,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(o.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(o){this.totalTime=o}syncPlayerEvents(o){let e=this._player;e.triggerCallback&&o.onStart(()=>e.triggerCallback("start")),o.onDone(()=>this.finish()),o.onDestroy(()=>this.destroy())}_queueEvent(o,e){Ts(this._queuedCallbacks,o,[]).push(e)}onDone(o){this.queued&&this._queueEvent("done",o),this._player.onDone(o)}onStart(o){this.queued&&this._queueEvent("start",o),this._player.onStart(o)}onDestroy(o){this.queued&&this._queueEvent("destroy",o),this._player.onDestroy(o)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(o){this.queued||this._player.setPosition(o)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(o){let e=this._player;e.triggerCallback&&e.triggerCallback(o)}};function Vte(n,o,e){let t=n.get(o);if(t){if(t.length){let i=t.indexOf(e);t.splice(i,1)}t.length==0&&n.delete(o)}return t}function Bte(n){return n??null}function p1(n){return n&&n.nodeType===1}function jte(n){return n=="start"||n=="done"}function CR(n,o){let e=n.style.display;return n.style.display=o??"none",e}function bR(n,o,e,t,i){let a=[];e.forEach(p=>a.push(CR(p)));let s=[];t.forEach((p,u)=>{let g=new Map;p.forEach(C=>{let M=o.computeStyle(u,C,i);g.set(C,M),(!M||M.length==0)&&(u[dc]=Lte,s.push(u))}),n.set(u,g)});let d=0;return e.forEach(p=>CR(p,a[d++])),s}function xR(n,o){let e=new Map;if(n.forEach(d=>e.set(d,[])),o.length==0)return e;let t=1,i=new Set(o),a=new Map;function s(d){if(!d)return t;let p=a.get(d);if(p)return p;let u=d.parentNode;return e.has(u)?p=u:i.has(u)?p=t:p=s(u),a.set(d,p),p}return o.forEach(d=>{let p=s(d);p!==t&&e.get(p).push(d)}),e}function Sl(n,o){n.classList?.add(o)}function lh(n,o){n.classList?.remove(o)}function $te(n,o,e){Bd(e).onDone(()=>n.processLeaveNode(o))}function Hte(n){let o=[];return TR(n,o),o}function TR(n,o){for(let e=0;ei.add(a)):o.set(n,t),e.delete(n),!0}var ch=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(o,e)=>{};constructor(o,e,t){this._driver=e,this._normalizer=t,this._transitionEngine=new rE(o.body,e,t),this._timelineEngine=new oE(o.body,e,t),this._transitionEngine.onRemovalComplete=(i,a)=>this.onRemovalComplete(i,a)}registerTrigger(o,e,t,i,a){let s=o+"-"+i,d=this._triggerCache[s];if(!d){let p=[],u=[],g=MR(this._driver,a,p,u);if(p.length)throw Y8(i,p);d=Ote(i,g,this._normalizer),this._triggerCache[s]=d}this._transitionEngine.registerTrigger(e,i,d)}register(o,e){this._transitionEngine.register(o,e)}destroy(o,e){this._transitionEngine.destroy(o,e)}onInsert(o,e,t,i){this._transitionEngine.insertNode(o,e,t,i)}onRemove(o,e,t){this._transitionEngine.removeNode(o,e,t)}disableAnimations(o,e){this._transitionEngine.markElementAsDisabled(o,e)}process(o,e,t,i){if(t.charAt(0)=="@"){let[a,s]=VT(t),d=i;this._timelineEngine.command(a,e,s,d)}else this._transitionEngine.trigger(o,e,t,i)}listen(o,e,t,i,a){if(t.charAt(0)=="@"){let[s,d]=VT(t);return this._timelineEngine.listen(s,e,d,a)}return this._transitionEngine.listen(o,e,t,i,a)}flush(o=-1){this._transitionEngine.flush(o)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(o){this._transitionEngine.afterFlushAnimationsDone(o)}};function Wte(n,o){let e=null,t=null;return Array.isArray(o)&&o.length?(e=XT(o[0]),o.length>1&&(t=XT(o[o.length-1]))):o instanceof Map&&(e=XT(o)),e||t?new Gte(n,e,t):null}var Gte=(()=>{class n{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,t,i){this._element=e,this._startStyles=t,this._endStyles=i;let a=n.initialStylesByElement.get(e);a||n.initialStylesByElement.set(e,a=new Map),this._initialStyles=a}start(){this._state<1&&(this._startStyles&&cc(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(cc(this._element,this._initialStyles),this._endStyles&&(cc(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Hm(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Hm(this._element,this._endStyles),this._endStyles=null),cc(this._element,this._initialStyles),this._state=3)}}return n})();function XT(n){let o=null;return n.forEach((e,t)=>{qte(t)&&(o=o||new Map,o.set(t,e))}),o}function qte(n){return n==="display"||n==="position"}var C1=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(o,e,t,i){this.element=o,this.keyframes=e,this.options=t,this._specialStyles=i,this._duration=t.duration,this._delay=t.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(o=>o()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let o=this.keyframes,e=this._triggerWebAnimation(this.element,o,this.options);if(!e)return this._onFinish(),null;this.domPlayer=e,this._finalKeyframe=o.length?o[o.length-1]:new Map;let t=()=>this._onFinish();return e.addEventListener("finish",t),this.onDestroy(()=>{e.removeEventListener("finish",t)}),e}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(o){let e=[];return o.forEach(t=>{e.push(Object.fromEntries(t))}),e}_triggerWebAnimation(o,e,t){let i=this._convertKeyframesToObject(e);try{return o.animate(i,t)}catch{return null}}onStart(o){this._originalOnStartFns.push(o),this._onStartFns.push(o)}onDone(o){this._originalOnDoneFns.push(o),this._onDoneFns.push(o)}onDestroy(o){this._onDestroyFns.push(o)}play(){let o=this._buildPlayer();o&&(this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),o.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish())}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer?.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(o=>o()),this._onDestroyFns=[])}setPosition(o){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=o*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let o=new Map;this.hasStarted()&&this._finalKeyframe.forEach((t,i)=>{i!=="offset"&&o.set(i,this._finished?t:c1(this.element,i))}),this.currentSnapshot=o}triggerCallback(o){let e=o==="start"?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}},b1=class{validateStyleProperty(o){return!0}validateAnimatableStyleProperty(o){return!0}containsElement(o,e){return BT(o,e)}getParentElement(o){return a1(o)}query(o,e,t){return jT(o,e,t)}computeStyle(o,e,t){return c1(o,e)}animate(o,e,t,i,a,s=[]){let d=i==0?"both":"forwards",p={duration:t,delay:i,fill:d};a&&(p.easing=a);let u=new Map,g=s.filter(x=>x instanceof C1);mR(t,i)&&g.forEach(x=>{x.currentSnapshot.forEach((b,P)=>u.set(P,b))});let C=cR(e).map(x=>new Map(x));C=pR(o,C,u);let M=Wte(o,C);return new C1(o,C,p,M)}};var u1="@",ER="@.disabled",x1=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(o,e,t,i){this.namespaceId=o,this.delegate=e,this.engine=t,this._onDestroy=i}get data(){return this.delegate.data}destroyNode(o){this.delegate.destroyNode?.(o)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(o,e){return this.delegate.createElement(o,e)}createComment(o){return this.delegate.createComment(o)}createText(o){return this.delegate.createText(o)}appendChild(o,e){this.delegate.appendChild(o,e),this.engine.onInsert(this.namespaceId,e,o,!1)}insertBefore(o,e,t,i=!0){this.delegate.insertBefore(o,e,t),this.engine.onInsert(this.namespaceId,e,o,i)}removeChild(o,e,t,i){if(i){this.delegate.removeChild(o,e,t,i);return}this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(o,e){return this.delegate.selectRootElement(o,e)}parentNode(o){return this.delegate.parentNode(o)}nextSibling(o){return this.delegate.nextSibling(o)}setAttribute(o,e,t,i){this.delegate.setAttribute(o,e,t,i)}removeAttribute(o,e,t){this.delegate.removeAttribute(o,e,t)}addClass(o,e){this.delegate.addClass(o,e)}removeClass(o,e){this.delegate.removeClass(o,e)}setStyle(o,e,t,i){this.delegate.setStyle(o,e,t,i)}removeStyle(o,e,t){this.delegate.removeStyle(o,e,t)}setProperty(o,e,t){e.charAt(0)==u1&&e==ER?this.disableAnimations(o,!!t):this.delegate.setProperty(o,e,t)}setValue(o,e){this.delegate.setValue(o,e)}listen(o,e,t,i){return this.delegate.listen(o,e,t,i)}disableAnimations(o,e){this.engine.disableAnimations(o,e)}},sE=class extends x1{factory;constructor(o,e,t,i,a){super(e,t,i,a),this.factory=o,this.namespaceId=e}setProperty(o,e,t){e.charAt(0)==u1?e.charAt(1)=="."&&e==ER?(t=t===void 0?!0:!!t,this.disableAnimations(o,t)):this.engine.process(this.namespaceId,o,e.slice(1),t):this.delegate.setProperty(o,e,t)}listen(o,e,t,i){if(e.charAt(0)==u1){let a=Qte(o),s=e.slice(1),d="";return s.charAt(0)!=u1&&([s,d]=Kte(s)),this.engine.listen(this.namespaceId,a,s,d,p=>{let u=p._data||-1;this.factory.scheduleListenerCallback(u,t,p)})}return this.delegate.listen(o,e,t,i)}};function Qte(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function Kte(n){let o=n.indexOf("."),e=n.substring(0,o),t=n.slice(o+1);return[e,t]}var y1=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(o,e,t){this.delegate=o,this.engine=e,this._zone=t,e.onRemovalComplete=(i,a)=>{a?.removeChild(null,i)}}createRenderer(o,e){let i=this.delegate.createRenderer(o,e);if(!o||!e?.data?.animation){let u=this._rendererCache,g=u.get(i);if(!g){let C=()=>u.delete(i);g=new x1("",i,this.engine,C),u.set(i,g)}return g}let a=e.id,s=e.id+"-"+this._currentId;this._currentId++,this.engine.register(s,o);let d=u=>{Array.isArray(u)?u.forEach(d):this.engine.registerTrigger(a,s,o,u.name,u)};return e.data.animation.forEach(d),new sE(this,s,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(o,e,t){if(o>=0&&oe(t));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(a=>{let[s,d]=a;s(d)}),this._animationCallbacksBuffer=[]})}),i.push([e,t])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(o){this.engine.flush(),this.delegate.componentReplaced?.(o)}};var Yte=(()=>{class n extends ch{constructor(e,t,i){super(e,t,i)}ngOnDestroy(){this.flush()}static \u0275fac=function(t){return new(t||n)(_e(Do),_e(wu),_e(Mu))};static \u0275prov=J({token:n,factory:n.\u0275fac})}return n})();function Zte(){return new g1}function Jte(){return new y1(f(xA),f(ch),f(Gi))}var DR=[{provide:Mu,useFactory:Zte},{provide:ch,useClass:Yte},{provide:Fp,useFactory:Jte}],ene=[{provide:wu,useClass:lE},{provide:Bk,useValue:"NoopAnimations"},...DR],OR=[{provide:wu,useFactory:()=>new b1},{provide:Bk,useFactory:()=>"BrowserAnimations"},...DR],IR=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?ene:OR}}static \u0275fac=function(t){return new(t||n)};static \u0275mod=on({type:n});static \u0275inj=nn({providers:OR,imports:[VC]})}return n})();var AR=void 0;typeof Object.create!="function"?AR=(function(n){var o=function(){};return function(e,t){if(e!==Object(e)&&e!==null)throw TypeError("Argument must be an object, or null");o.prototype=e||{};var i=new o;return o.prototype=null,t!==n&&Object.defineProperties(i,t),e===null&&(i.__proto__=null),i}})():AR=Object.create;var ev=["webkit","moz","ms","o"],nWe=(function(){if(typeof window>"u")return function(){};for(var n=0,o=ev.length;n"u")return function(){};for(var n=0,o=ev.length;n{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=on({type:n})}static{this.\u0275inj=nn({})}}return n})();function FR(n){setTimeout(()=>{throw n})}function dE(n,o){try{n()}catch(e){try{o()}catch(t){FR(t)}throw e}o()}var tv=class{constructor(o){this.rawFile=o;let e=o instanceof HTMLInputElement?o.value:o;this[`_createFrom${typeof e=="string"?"FakePath":"Object"}`](e)}_createFromFakePath(o){this.lastModifiedDate=void 0,this.size=void 0,this.type=`like/${o.slice(o.lastIndexOf(".")+1).toLowerCase()}`,this.name=o.slice(o.lastIndexOf("/")+o.lastIndexOf("\\")+2)}_createFromObject(o){this.size=o.size,this.type=o.type,this.name=o.name}},mE=class{constructor(o,e,t){this.url="/",this.headers=[],this.withCredentials=!0,this.formData=[],this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.uploader=o,this.some=e,this.options=t,this.file=new tv(e),this._file=e,o.options&&(this.method=o.options.method||"POST",this.alias=o.options.itemAlias||"file"),this.url=o.options.url}upload(){try{this.uploader.uploadItem(this)}catch(o){try{dE(()=>this.uploader._onErrorItem(this,"",0,{}),()=>this.uploader._onCompleteItem(this,"",0,{}))}catch(e){FR(e)}throw o}}cancel(){this.uploader.cancelItem(this)}remove(){this.uploader.removeFromQueue(this)}onBeforeUpload(){}onBuildForm(o){return{form:o}}onProgress(o){return{progress:o}}onSuccess(o,e,t){return{response:o,status:e,headers:t}}onError(o,e,t){return{response:o,status:e,headers:t}}onCancel(o,e,t){return{response:o,status:e,headers:t}}onComplete(o,e,t){return{response:o,status:e,headers:t}}_onBeforeUpload(){this.isReady=!0,this.isUploading=!0,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!1,this.isError=!1,this.progress=0,this.onBeforeUpload()}_onBuildForm(o){this.onBuildForm(o)}_onProgress(o){this.progress=o,this.onProgress(o)}_onSuccess(o,e,t){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!0,this.isCancel=!1,this.isError=!1,this.progress=100,this.index=void 0,this.onSuccess(o,e,t)}_onError(o,e,t){this.isReady=!1,this.isUploading=!1,this.isUploaded=!0,this.isSuccess=!1,this.isCancel=!1,this.isError=!0,this.progress=0,this.index=void 0,this.onError(o,e,t)}_onCancel(o,e,t){this.isReady=!1,this.isUploading=!1,this.isUploaded=!1,this.isSuccess=!1,this.isCancel=!0,this.isError=!1,this.progress=0,this.index=void 0,this.onCancel(o,e,t)}_onComplete(o,e,t){this.onComplete(o,e,t),this.uploader.options.removeAfterUpload&&this.remove()}_prepareToUploading(){this.index=this.index||++this.uploader._nextIndex,this.isReady=!0}},tne=(()=>{class n{static{this.mime_doc=["application/msword","application/msword","application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/vnd.ms-word.document.macroEnabled.12","application/vnd.ms-word.template.macroEnabled.12"]}static{this.mime_xsl=["application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.ms-excel","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/vnd.ms-excel.sheet.macroEnabled.12","application/vnd.ms-excel.template.macroEnabled.12","application/vnd.ms-excel.addin.macroEnabled.12","application/vnd.ms-excel.sheet.binary.macroEnabled.12"]}static{this.mime_ppt=["application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.ms-powerpoint","application/vnd.openxmlformats-officedocument.presentationml.presentation","application/vnd.openxmlformats-officedocument.presentationml.template","application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/vnd.ms-powerpoint.addin.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"]}static{this.mime_psd=["image/photoshop","image/x-photoshop","image/psd","application/photoshop","application/psd","zz-application/zz-winassoc-psd"]}static{this.mime_compress=["application/x-gtar","application/x-gcompress","application/compress","application/x-tar","application/x-rar-compressed","application/octet-stream","application/x-zip-compressed","application/zip-compressed","application/x-7z-compressed","application/gzip","application/x-bzip2"]}static getMimeClass(e){let t="application";return e?.type&&this.mime_psd.indexOf(e.type)!==-1||e?.type?.match("image.*")?t="image":e?.type?.match("video.*")?t="video":e?.type?.match("audio.*")?t="audio":e?.type==="application/pdf"?t="pdf":e?.type&&this.mime_compress.indexOf(e.type)!==-1?t="compress":e?.type&&this.mime_doc.indexOf(e.type)!==-1?t="doc":e?.type&&this.mime_xsl.indexOf(e.type)!==-1?t="xls":e?.type&&this.mime_ppt.indexOf(e.type)!==-1&&(t="ppt"),t==="application"&&e?.name&&(t=this.fileTypeDetection(e.name)),t}static fileTypeDetection(e){let t={jpg:"image",jpeg:"image",tif:"image",psd:"image",bmp:"image",png:"image",nef:"image",tiff:"image",cr2:"image",dwg:"image",cdr:"image",ai:"image",indd:"image",pin:"image",cdp:"image",skp:"image",stp:"image","3dm":"image",mp3:"audio",wav:"audio",wma:"audio",mod:"audio",m4a:"audio",compress:"compress",zip:"compress",rar:"compress","7z":"compress",lz:"compress",z01:"compress",bz2:"compress",gz:"compress",pdf:"pdf",xls:"xls",xlsx:"xls",ods:"xls",mp4:"video",avi:"video",wmv:"video",mpg:"video",mts:"video",flv:"video","3gp":"video",vob:"video",m4v:"video",mpeg:"video",m2ts:"video",mov:"video",doc:"doc",docx:"doc",eps:"doc",txt:"doc",odt:"doc",rtf:"doc",ppt:"ppt",pptx:"ppt",pps:"ppt",ppsx:"ppt",odp:"ppt"},i=e.split(".");if(i.length<2)return"application";let a=i[i.length-1].toLowerCase();return t[a]===void 0?"application":t[a]}}return n})();function nne(n){return File&&n instanceof File}var kl=class{constructor(o){this.isUploading=!1,this.queue=[],this.progress=0,this._nextIndex=0,this.options={autoUpload:!1,isHTML5:!0,filters:[],removeAfterUpload:!1,disableMultipart:!1,formatDataFunction:e=>e._file,formatDataFunctionIsAsync:!1,url:""},this.setOptions(o),this.response=new be}setOptions(o){this.options=Object.assign(this.options,o),this.authToken=this.options.authToken,this.authTokenHeader=this.options.authTokenHeader||"Authorization",this.autoUpload=this.options.autoUpload;let e=[this._queueLimitFilter,this._fileSizeFilter,this._fileTypeFilter,this._mimeTypeFilter];this.options.filters=this.options.filters?.filter(t=>!e.includes(t.fn)),this.options.filters?.unshift({name:"queueLimit",fn:this._queueLimitFilter}),this.options.maxFileSize&&this.options.filters?.unshift({name:"fileSize",fn:this._fileSizeFilter}),this.options.allowedFileType&&this.options.filters?.unshift({name:"fileType",fn:this._fileTypeFilter}),this.options.allowedMimeType&&this.options.filters?.unshift({name:"mimeType",fn:this._mimeTypeFilter});for(let t=0;t{i||(i=this.options);let g=new tv(u);if(this._isValidFile(g,s,i)){let C=new mE(this,u,i);p.push(C),this.queue.push(C),this._onAfterAddingFile(C)}else if(typeof this._failFilterIndex=="number"&&this._failFilterIndex>=0){let C=s[this._failFilterIndex];this._onWhenAddingFileFailed(g,C,i)}}),this.queue.length!==d&&(this._onAfterAddingAll(p),this.progress=this._getTotalProgress()),this._render(),this.options.autoUpload&&this.uploadAll()}removeFromQueue(o){let e=this.getIndexOfItem(o),t=this.queue[e];t.isUploading&&t.cancel(),this.queue.splice(e,1),this.progress=this._getTotalProgress()}clearQueue(){for(;this.queue.length;)this.queue[0].remove();this.progress=0}uploadItem(o){let e=this.getIndexOfItem(o),t=this.queue[e],i=this.options.isHTML5?"_xhrTransport":"_iframeTransport";t._prepareToUploading(),!this.isUploading&&(this.isUploading=!0,this[i](t))}cancelItem(o){let e=this.getIndexOfItem(o),t=this.queue[e];if(t){if(t.isUploading){(this.options.isHTML5?t._xhr:t._form).abort();return}t.isReady&&(this._onCancelItem(t,"",0,{}),t._onComplete("",0,{}),this.onCompleteItem(t,"",0,{}),this._render())}}uploadAll(){let o=this.getNotUploadedItems().filter(e=>!e.isUploading);o.length&&(o.map(e=>e._prepareToUploading()),o[0].upload())}cancelAll(){let o=this.getNotUploadedItems();o.filter(e=>!e.isUploading).forEach(e=>e.cancel()),o.filter(e=>e.isUploading).forEach(e=>e.cancel())}isFile(o){return nne(o)}isFileLikeObject(o){return o instanceof tv}getIndexOfItem(o){return typeof o=="number"?o:this.queue.indexOf(o)}getNotUploadedItems(){return this.queue.filter(o=>!o.isUploaded)}getReadyItems(){return this.queue.filter(o=>o.isReady&&!o.isUploading).sort((o,e)=>o.index-e.index)}onAfterAddingAll(o){return{fileItems:o}}onBuildItemForm(o,e){return{fileItem:o,form:e}}onAfterAddingFile(o){return{fileItem:o}}onWhenAddingFileFailed(o,e,t){return{item:o,filter:e,options:t}}onBeforeUploadItem(o){return{fileItem:o}}onProgressItem(o,e){return{fileItem:o,progress:e}}onProgressAll(o){return{progress:o}}onSuccessItem(o,e,t,i){return{item:o,response:e,status:t,headers:i}}onErrorItem(o,e,t,i){return{item:o,response:e,status:t,headers:i}}onCancelItem(o,e,t,i){return{item:o,response:e,status:t,headers:i}}onCompleteItem(o,e,t,i){return{item:o,response:e,status:t,headers:i}}onCompleteAll(){}_mimeTypeFilter(o){return this.options.allowedMimeType?o?.type?this.options.allowedMimeType.indexOf(o.type)!==-1:this.options.allowEmptyMimeType!==!1:!0}_fileSizeFilter(o){return!(this.options.maxFileSize&&o.size>this.options.maxFileSize)}_fileTypeFilter(o){return!(this.options.allowedFileType&&this.options.allowedFileType.indexOf(tne.getMimeClass(o))===-1)}_onErrorItem(o,e,t,i){o._onError(e,t,i),this.onErrorItem(o,e,t,i)}_onCompleteItem(o,e,t,i){dE(()=>{o._onComplete(e,t,i),this.onCompleteItem(o,e,t,i)},()=>this._uploadNext())}_finishItem(o,e,t,i,a){dE(()=>this[e](o,t,i,a),()=>this._onCompleteItem(o,t,i,a))}_uploadNext(){let o=this.getReadyItems()[0];if(this.isUploading=!1,o){o.upload();return}this.progress=this._getTotalProgress(),this.onCompleteAll(),this._render()}_headersGetter(o){return e=>e?o[e.toLowerCase()]||void 0:o}_xhrTransport(o){let e=o._xhr=new XMLHttpRequest,t;if(this._onBeforeUploadItem(o),typeof o._file.size!="number")throw new TypeError("The file specified is no longer valid");this.options.disableMultipart?this.options.formatDataFunction&&(t=this.options.formatDataFunction(o)):t=this._buildFormData(o,o._file),e.upload.onprogress=i=>{let a=Math.round(i.lengthComputable?i.loaded*100/i.total:0);this._onProgressItem(o,a)},e.onload=()=>{let i=this._parseHeaders(e.getAllResponseHeaders()),a=this._transformResponse(e.response);this._finishItem(o,this._isSuccessCode(e.status)?"_onSuccessItem":"_onErrorItem",a,e.status,i)},e.onerror=()=>{let i=this._parseHeaders(e.getAllResponseHeaders()),a=this._transformResponse(e.response);this._finishItem(o,"_onErrorItem",a,e.status,i)},e.onabort=()=>{let i=this._parseHeaders(e.getAllResponseHeaders()),a=this._transformResponse(e.response);this._finishItem(o,"_onCancelItem",a,e.status,i)},this._openRequest(e,o),this.options.formatDataFunctionIsAsync?t.then(i=>e.send(JSON.stringify(i))):e.send(t),this._render()}_buildFormData(o,e,t={}){let i=new FormData;this._onBuildItemForm(o,i),Object.keys(t).forEach(s=>i.append(s,t[s]));let a=()=>i.append(o.alias,e,o.file.name);return this.options.parametersBeforeFiles||a(),this.options.additionalParameter!==void 0&&Object.keys(this.options.additionalParameter).forEach(s=>{let d=this.options.additionalParameter?.[s];typeof d=="string"&&d.indexOf("{{file_name}}")>=0&&o.file?.name&&(d=d.replace("{{file_name}}",o.file.name)),i.append(s,d)}),a&&this.options.parametersBeforeFiles&&a(),i}_openRequest(o,e){let t=this;if(e.method&&e.url&&o.open(e.method,e.url,!0),o.withCredentials=e.withCredentials,this.options.headers)for(let i of this.options.headers)o.setRequestHeader(i.name,i.value);if(e.headers.length)for(let i of e.headers)o.setRequestHeader(i.name,i.value);this.authToken&&this.authTokenHeader&&o.setRequestHeader(this.authTokenHeader,this.authToken),o.onreadystatechange=function(){o.readyState==XMLHttpRequest.DONE&&t.response.emit(o.responseText)}}_getTotalProgress(o=0){if(this.options.removeAfterUpload)return o;let e=this.getNotUploadedItems().length,t=e?this.queue.length-e:this.queue.length,i=100/this.queue.length,a=o*i/100;return Math.round(t*i+a)}_getFilters(o){if(!o)return this.options?.filters||[];if(Array.isArray(o))return o;if(typeof o=="string"){let e=o.match(/[^\s,]+/g);return this.options?.filters||[].filter(t=>e?.indexOf(t.name)!==-1)}return this.options?.filters||[]}_render(){}_queueLimitFilter(){return this.options.queueLimit===void 0||this.queue.length(typeof this._failFilterIndex=="number"&&this._failFilterIndex++,i.fn.call(this,o,t))):!0}_isSuccessCode(o){return o>=200&&o<300||o===304}_transformResponse(o){return o}_parseHeaders(o){let e={},t,i,a;return o&&o.split(` +`).map(s=>{a=s.indexOf(":"),t=s.slice(0,a).trim().toLowerCase(),i=s.slice(a+1).trim(),t&&(e[t]=e[t]?e[t]+", "+i:i)}),e}_onWhenAddingFileFailed(o,e,t){this.onWhenAddingFileFailed(o,e,t)}_onAfterAddingFile(o){this.onAfterAddingFile(o)}_onAfterAddingAll(o){this.onAfterAddingAll(o)}_onBeforeUploadItem(o){o._onBeforeUpload(),this.onBeforeUploadItem(o)}_onBuildItemForm(o,e){o._onBuildForm(e),this.onBuildItemForm(o,e)}_onProgressItem(o,e){let t=this._getTotalProgress(e);this.progress=t,o._onProgress(e),this.onProgressItem(o,e),this.onProgressAll(t),this._render()}_onSuccessItem(o,e,t,i){o._onSuccess(e,t,i),this.onSuccessItem(o,e,t,i)}_onCancelItem(o,e,t,i){o._onCancel(e,t,i),this.onCancelItem(o,e,t,i)}};var Kc=(()=>{class n{constructor(){this.uploader=ee(),this.onFileSelected=$o(),this.element=f(Kt)}getOptions(){return this.uploader()?.options}getFilters(){return""}isEmptyAfterSelection(){return!!this.element.nativeElement.attributes.multiple}onClick(){let e=this.element.nativeElement.files?.[0];e&&!this.uploader()?.queue.some(t=>t._file===e)&&(this.element.nativeElement.value="")}onChange(){let e=this.element.nativeElement.files,t=this.getOptions(),i=this.getFilters();this.uploader()?.addToQueue(e,t,i),this.onFileSelected.emit(e),this.isEmptyAfterSelection()&&(this.element.nativeElement.value="")}static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275dir=yt({type:n,selectors:[["","ng2FileSelect",""]],hostBindings:function(t,i){t&1&&_("click",function(){return i.onClick()})("change",function(){return i.onChange()})},inputs:{uploader:[1,"uploader"]},outputs:{onFileSelected:"onFileSelected"}})}}return n})();var Pl=(()=>{class n{static{this.\u0275fac=function(t){return new(t||n)}}static{this.\u0275mod=on({type:n})}static{this.\u0275inj=nn({})}}return n})();var Su=class{visible;error;clear;constructor(o,e,t=!1){this.visible=o,this.error=e,this.clear=t}},mo=(()=>{class n{state=new cn(new Su(!1));constructor(){}setError(e){this.state.next(new Su(!1,e.error))}clear(){this.state.next(new Su(!1,null,!0))}activate(){this.state.next(new Su(!0))}deactivate(){this.state.next(new Su(!1))}static \u0275fac=function(t){return new(t||n)};static \u0275prov=J({token:n,factory:n.\u0275fac})}return n})();function ine(n,o){n&1&&(r(0,"div",1),L(1,"mat-spinner",3),l())}function one(n,o){if(n&1){let e=R();r(0,"div",2)(1,"div",4)(2,"mat-icon"),c(3,"error_outline"),l()(),r(4,"div"),c(5),l(),r(6,"div")(7,"button",5),_("click",function(){y(e);let i=h(2);return w(i.refresh())}),r(8,"mat-icon"),c(9,"refresh"),l()(),r(10,"button",6)(11,"mat-icon"),c(12,"home"),l()()()()}if(n&2){let e,t=h(2);m(5),X("Error occurred: ",(e=t.error())==null?null:e.message)}}function ane(n,o){if(n&1&&(r(0,"div",0),T(1,ine,2,0,"div",1),T(2,one,13,1,"div",2),l()),n&2){let e=h();m(),E(e.visible()&&!e.error()?1:-1),m(),E(e.error()?2:-1)}}var Um=(()=>{class n{progressService=f(mo);router=f(Ft);visible=z(!1);error=z(null);routerSubscription;ngOnInit(){this.progressService.state.subscribe(e=>{this.visible.set(e.visible),e.error&&!this.error()&&this.error.set(e.error),e.clear&&this.error.set(null)}),this.routerSubscription=this.router.events.subscribe(()=>{this.progressService.clear()})}refresh(){this.router.navigateByUrl(this.router.url)}ngOnDestroy(){this.routerSubscription.unsubscribe()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["app-progress"]],decls:1,vars:1,consts:[[1,"overlay"],[1,"loading-spinner"],[1,"error-state"],["color","primary"],[1,"error-icon"],["mat-button","","matTooltip","Refresh page","matTooltipClass","custom-tooltip",3,"click"],["mat-button","","routerLink","/","matTooltip","Go to home","matTooltipClass","custom-tooltip"]],template:function(t,i){t&1&&T(0,ane,3,2,"div",0),t&2&&E(i.visible()||i.error()?0:-1)},dependencies:[fe,rt,mt,ie,ce,Y,he,st,pt,Co],styles:[".overlay[_ngcontent-%COMP%]{position:fixed;width:100%;height:100%;inset:0;background-color:color-mix(in srgb,var(--mat-sys-shadow) 50%,transparent);z-index:2000}.loading-spinner[_ngcontent-%COMP%], .error-state[_ngcontent-%COMP%]{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}.error-state[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{text-align:center}.error-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px}"],changeDetection:0})}return n})();var w1=(()=>{class n{document;router=f(Ft);controllerService=f(_t);progressService=f(mo);constructor(e){this.document=e}ngOnInit(){this.progressService.activate(),setTimeout(()=>{let e;parseInt(this.document.location.port,10)?e=parseInt(this.document.location.port,10):this.document.location.protocol=="https:"?e=443:e=80,this.controllerService.getLocalController(this.document.location.hostname,e).then(t=>{this.router.navigate(["/controller",t.id,"projects"]),this.progressService.deactivate()})},100)}static \u0275fac=function(t){return new(t||n)(Mt(Do))};static \u0275cmp=V({type:n,selectors:[["app-bundled-controller-finder"]],decls:1,vars:0,template:function(t,i){t&1&&L(0,"app-progress")},dependencies:[Um],encapsulation:2,changeDetection:0})}return n})();var rne=[[["caption"]],[["colgroup"],["col"]],"*"],sne=["caption","colgroup, col","*"];function lne(n,o){n&1&&Zt(0,2)}function cne(n,o){n&1&&(r(0,"thead",0),li(1,1),l(),r(2,"tbody",2),li(3,3)(4,4),l(),r(5,"tfoot",0),li(6,5),l())}function dne(n,o){n&1&&li(0,1)(1,3)(2,4)(3,5)}var bn=(()=>{class n extends DT{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(i){return(e||(e=yi(n)))(i||n)}})();static \u0275cmp=V({type:n,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(t,i){t&2&&ne("mat-table-fixed-layout",i.fixedLayout)},exportAs:["matTable"],features:[un([{provide:DT,useExisting:n},{provide:sc,useExisting:n},{provide:H0,useValue:null}]),mi],ngContentSelectors:sne,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(t,i){t&1&&(pi(rne),Zt(0),Zt(1,1),T(2,lne,1,0),T(3,cne,7,0)(4,dne,4,0)),t&2&&(m(2),E(i._isServer?2:-1),m(),E(i._isNativeHtmlTable?3:4))},dependencies:[TT,PT,OT,ET],styles:[`.mat-mdc-table-sticky { + position: sticky !important; +} + +mat-table { + display: block; +} + +mat-header-row { + min-height: var(--mat-table-header-container-height, 56px); +} + +mat-row { + min-height: var(--mat-table-row-item-container-height, 52px); +} + +mat-footer-row { + min-height: var(--mat-table-footer-container-height, 52px); +} + +mat-row, mat-header-row, mat-footer-row { + display: flex; + border-width: 0; + border-bottom-width: 1px; + border-style: solid; + align-items: center; + box-sizing: border-box; +} + +mat-cell:first-of-type, mat-header-cell:first-of-type, mat-footer-cell:first-of-type { + padding-left: 24px; +} +[dir=rtl] mat-cell:first-of-type:not(:only-of-type), [dir=rtl] mat-header-cell:first-of-type:not(:only-of-type), [dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type) { + padding-left: 0; + padding-right: 24px; +} +mat-cell:last-of-type, mat-header-cell:last-of-type, mat-footer-cell:last-of-type { + padding-right: 24px; +} +[dir=rtl] mat-cell:last-of-type:not(:only-of-type), [dir=rtl] mat-header-cell:last-of-type:not(:only-of-type), [dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type) { + padding-right: 0; + padding-left: 24px; +} + +mat-cell, mat-header-cell, mat-footer-cell { + flex: 1; + display: flex; + align-items: center; + overflow: hidden; + word-wrap: break-word; + min-height: inherit; +} + +.mat-mdc-table { + min-width: 100%; + border: 0; + border-spacing: 0; + table-layout: auto; + white-space: normal; + background-color: var(--mat-table-background-color, var(--mat-sys-surface)); +} + +.mat-table-fixed-layout { + table-layout: fixed; +} + +.mdc-data-table__cell { + box-sizing: border-box; + overflow: hidden; + text-align: start; + text-overflow: ellipsis; +} + +.mdc-data-table__cell, +.mdc-data-table__header-cell { + padding: 0 16px; +} + +.mat-mdc-header-row { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + height: var(--mat-table-header-container-height, 56px); + color: var(--mat-table-header-headline-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87))); + font-family: var(--mat-table-header-headline-font, var(--mat-sys-title-small-font, Roboto, sans-serif)); + line-height: var(--mat-table-header-headline-line-height, var(--mat-sys-title-small-line-height)); + font-size: var(--mat-table-header-headline-size, var(--mat-sys-title-small-size, 14px)); + font-weight: var(--mat-table-header-headline-weight, var(--mat-sys-title-small-weight, 500)); +} + +.mat-mdc-row { + height: var(--mat-table-row-item-container-height, 52px); + color: var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87))); +} + +.mat-mdc-row, +.mdc-data-table__content { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + font-family: var(--mat-table-row-item-label-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif)); + line-height: var(--mat-table-row-item-label-text-line-height, var(--mat-sys-body-medium-line-height)); + font-size: var(--mat-table-row-item-label-text-size, var(--mat-sys-body-medium-size, 14px)); + font-weight: var(--mat-table-row-item-label-text-weight, var(--mat-sys-body-medium-weight)); +} + +.mat-mdc-footer-row { + -moz-osx-font-smoothing: grayscale; + -webkit-font-smoothing: antialiased; + height: var(--mat-table-footer-container-height, 52px); + color: var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87))); + font-family: var(--mat-table-footer-supporting-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif)); + line-height: var(--mat-table-footer-supporting-text-line-height, var(--mat-sys-body-medium-line-height)); + font-size: var(--mat-table-footer-supporting-text-size, var(--mat-sys-body-medium-size, 14px)); + font-weight: var(--mat-table-footer-supporting-text-weight, var(--mat-sys-body-medium-weight)); + letter-spacing: var(--mat-table-footer-supporting-text-tracking, var(--mat-sys-body-medium-tracking)); +} + +.mat-mdc-header-cell { + border-bottom-color: var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12))); + border-bottom-width: var(--mat-table-row-item-outline-width, 1px); + border-bottom-style: solid; + letter-spacing: var(--mat-table-header-headline-tracking, var(--mat-sys-title-small-tracking)); + font-weight: inherit; + line-height: inherit; + box-sizing: border-box; + text-overflow: ellipsis; + overflow: hidden; + outline: none; + text-align: start; +} +.mdc-data-table__row:last-child > .mat-mdc-header-cell { + border-bottom: none; +} + +.mat-mdc-cell { + border-bottom-color: var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12))); + border-bottom-width: var(--mat-table-row-item-outline-width, 1px); + border-bottom-style: solid; + letter-spacing: var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking)); + line-height: inherit; +} +.mdc-data-table__row:last-child > .mat-mdc-cell { + border-bottom: none; +} + +.mat-mdc-footer-cell { + letter-spacing: var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking)); +} + +mat-row.mat-mdc-row, +mat-header-row.mat-mdc-header-row, +mat-footer-row.mat-mdc-footer-row { + border-bottom: none; +} + +.mat-mdc-table tbody, +.mat-mdc-table tfoot, +.mat-mdc-table thead, +.mat-mdc-cell, +.mat-mdc-footer-cell, +.mat-mdc-header-row, +.mat-mdc-row, +.mat-mdc-footer-row, +.mat-mdc-table .mat-mdc-header-cell { + background: inherit; +} + +.mat-mdc-table mat-header-row.mat-mdc-header-row, +.mat-mdc-table mat-row.mat-mdc-row, +.mat-mdc-table mat-footer-row.mat-mdc-footer-cell { + height: unset; +} + +mat-header-cell.mat-mdc-header-cell, +mat-cell.mat-mdc-cell, +mat-footer-cell.mat-mdc-footer-cell { + align-self: stretch; +} +`],encapsulation:2})}return n})(),xn=(()=>{class n extends Yx{static \u0275fac=(()=>{let e;return function(i){return(e||(e=yi(n)))(i||n)}})();static \u0275dir=yt({type:n,selectors:[["","matCellDef",""]],features:[un([{provide:Yx,useExisting:n}]),mi]})}return n})(),yn=(()=>{class n extends Zx{static \u0275fac=(()=>{let e;return function(i){return(e||(e=yi(n)))(i||n)}})();static \u0275dir=yt({type:n,selectors:[["","matHeaderCellDef",""]],features:[un([{provide:Zx,useExisting:n}]),mi]})}return n})();var wn=(()=>{class n extends $m{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static \u0275fac=(()=>{let e;return function(i){return(e||(e=yi(n)))(i||n)}})();static \u0275dir=yt({type:n,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[un([{provide:$m,useExisting:n}]),mi]})}return n})(),Mn=(()=>{class n extends E8{static \u0275fac=(()=>{let e;return function(i){return(e||(e=yi(n)))(i||n)}})();static \u0275dir=yt({type:n,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[mi]})}return n})();var Sn=(()=>{class n extends O8{static \u0275fac=(()=>{let e;return function(i){return(e||(e=yi(n)))(i||n)}})();static \u0275dir=yt({type:n,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[mi]})}return n})();var kn=(()=>{class n extends U0{static \u0275fac=(()=>{let e;return function(i){return(e||(e=yi(n)))(i||n)}})();static \u0275dir=yt({type:n,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",zt]},features:[un([{provide:U0,useExisting:n}]),mi]})}return n})();var Pn=(()=>{class n extends Jx{static \u0275fac=(()=>{let e;return function(i){return(e||(e=yi(n)))(i||n)}})();static \u0275dir=yt({type:n,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[un([{provide:Jx,useExisting:n}]),mi]})}return n})(),Tn=(()=>{class n extends ST{static \u0275fac=(()=>{let e;return function(i){return(e||(e=yi(n)))(i||n)}})();static \u0275cmp=V({type:n,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[un([{provide:ST,useExisting:n}]),mi],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){t&1&&li(0,0)},dependencies:[bu],encapsulation:2})}return n})();var En=(()=>{class n extends kT{static \u0275fac=(()=>{let e;return function(i){return(e||(e=yi(n)))(i||n)}})();static \u0275cmp=V({type:n,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[un([{provide:kT,useExisting:n}]),mi],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(t,i){t&1&&li(0,0)},dependencies:[bu],encapsulation:2})}return n})();var _n=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=on({type:n});static \u0275inj=nn({imports:[e1,Vi]})}return n})(),mne=9007199254740991,Fr=class extends zp{_data;_renderData=new cn([]);_filter=new cn("");_internalPageChanges=new Ye;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(o){o=Array.isArray(o)?o:[],this._data.next(o),this._renderChangesSubscription||this._filterData(o)}get filter(){return this._filter.value}set filter(o){this._filter.next(o),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(o){this._sort=o,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(o){this._paginator=o,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(o,e)=>{let t=o[e];if(DA(t)){let i=Number(t);return i{let t=e.active,i=e.direction;return!t||i==""?o:o.sort((a,s)=>{let d=this.sortingDataAccessor(a,t),p=this.sortingDataAccessor(s,t),u=typeof d,g=typeof p;u!==g&&(u==="number"&&(d+=""),g==="number"&&(p+=""));let C=0;return d!=null&&p!=null?d>p?C=1:d{let t=e.trim().toLowerCase();return Object.values(o).some(i=>`${i}`.toLowerCase().includes(t))};constructor(o=[]){super(),this._data=new cn(o),this._updateChangeSubscription()}_updateChangeSubscription(){let o=this._sort?ro(this._sort.sortChange,this._sort.initialized):Vt(null),e=this._paginator?ro(this._paginator.page,this._internalPageChanges,this._paginator.initialized):Vt(null),t=this._data,i=mr([t,this._filter]).pipe(Pt(([d])=>this._filterData(d))),a=mr([i,o]).pipe(Pt(([d])=>this._orderData(d))),s=mr([a,e]).pipe(Pt(([d])=>this._pageData(d)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=s.subscribe(d=>this._renderData.next(d))}_filterData(o){return this.filteredData=this.filter==null||this.filter===""?o:o.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(o){return this.sort?this.sortData(o.slice(),this.sort):o}_pageData(o){if(!this.paginator)return o;let e=this.paginator.pageIndex*this.paginator.pageSize;return o.slice(e,e+this.paginator.pageSize)}_updatePaginator(o){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=o,e.pageIndex>0)){let t=Math.ceil(e.length/e.pageSize)-1||0,i=Math.min(e.pageIndex,t);i!==e.pageIndex&&(e.pageIndex=i,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var RR=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(t,i){},styles:[`textarea.cdk-textarea-autosize { + resize: none; +} + +textarea.cdk-textarea-autosize-measuring { + padding: 2px 0 !important; + box-sizing: content-box !important; + height: auto !important; + overflow: hidden !important; +} + +textarea.cdk-textarea-autosize-measuring-firefox { + padding: 2px 0 !important; + box-sizing: content-box !important; + height: 0 !important; +} + +@keyframes cdk-text-field-autofill-start { /*!*/ } +@keyframes cdk-text-field-autofill-end { /*!*/ } +.cdk-text-field-autofill-monitored:-webkit-autofill { + animation: cdk-text-field-autofill-start 0s 1ms; +} + +.cdk-text-field-autofill-monitored:not(:-webkit-autofill) { + animation: cdk-text-field-autofill-end 0s 1ms; +} +`],encapsulation:2,changeDetection:0})}return n})(),pne={passive:!0},zR=(()=>{class n{_platform=f(ja);_ngZone=f(Gi);_renderer=f(Fp).createRenderer(null,null);_styleLoader=f(Ta);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return eg;this._styleLoader.load(RR);let t=cl(e),i=this._monitoredElements.get(t);if(i)return i.subject;let a=new Ye,s="cdk-text-field-autofilled",d=u=>{u.animationName==="cdk-text-field-autofill-start"&&!t.classList.contains(s)?(t.classList.add(s),this._ngZone.run(()=>a.next({target:u.target,isAutofilled:!0}))):u.animationName==="cdk-text-field-autofill-end"&&t.classList.contains(s)&&(t.classList.remove(s),this._ngZone.run(()=>a.next({target:u.target,isAutofilled:!1})))},p=this._ngZone.runOutsideAngular(()=>(t.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(t,"animationstart",d,pne)));return this._monitoredElements.set(t,{subject:a,unlisten:p}),a}stopMonitoring(e){let t=cl(e),i=this._monitoredElements.get(t);i&&(i.unlisten(),i.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}static \u0275fac=function(t){return new(t||n)};static \u0275prov=J({token:n,factory:n.\u0275fac,providedIn:"root"})}return n})();var Xc=(()=>{class n{_elementRef=f(Kt);_platform=f(ja);_ngZone=f(Gi);_renderer=f(qi);_resizeEvents=new Ye;_previousValue;_initialHeight;_destroyed=new Ye;_listenerCleanups;_minRows;_maxRows;_enabled=!0;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows}set minRows(e){this._minRows=mm(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=mm(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_cachedLineHeight;_cachedPlaceholderHeight;_document=f(Do);_hasFocus=!1;_isViewInited=!1;constructor(){f(Ta).load(RR),this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){let e=this.minRows&&this._cachedLineHeight?`${this.minRows*this._cachedLineHeight}px`:null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){let e=this.maxRows&&this._cachedLineHeight?`${this.maxRows*this._cachedLineHeight}px`:null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{this._listenerCleanups=[this._renderer.listen("window","resize",()=>this._resizeEvents.next()),this._renderer.listen(this._textareaElement,"focus",this._handleFocusEvent),this._renderer.listen(this._textareaElement,"blur",this._handleFocusEvent)],this._resizeEvents.pipe(sl(16)).subscribe(()=>{this._cachedLineHeight=this._cachedPlaceholderHeight=void 0,this.resizeToFitContent(!0)})}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._listenerCleanups?.forEach(e=>e()),this._resizeEvents.complete(),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1),t=e.style;e.rows=1,t.position="absolute",t.visibility="hidden",t.border="none",t.padding="0",t.height="",t.minHeight="",t.maxHeight="",t.top=t.bottom=t.left=t.right="auto",t.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){let e=this._textareaElement,t=e.style.marginBottom||"",i=this._platform.FIREFOX,a=this._hasFocus,s=i?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";a&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(s);let d=e.scrollHeight-4;return e.classList.remove(s),a&&(e.style.marginBottom=t),d}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||this._cachedPlaceholderHeight!=null)return;if(!this.placeholder){this._cachedPlaceholderHeight=0;return}let e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}_handleFocusEvent=e=>{this._hasFocus=e.type==="focus"};ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;let t=this._elementRef.nativeElement,i=t.value;if(!e&&this._minRows===this._previousMinRows&&i===this._previousValue)return;let a=this._measureScrollHeight(),s=Math.max(a,this._cachedPlaceholderHeight||0);t.style.height=`${s}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(t)):setTimeout(()=>this._scrollToCaretPosition(t))}),this._previousValue=i,this._previousMinRows=this._minRows}reset(){this._initialHeight!==void 0&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_scrollToCaretPosition(e){let{selectionStart:t,selectionEnd:i}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(t,i)}static \u0275fac=function(t){return new(t||n)};static \u0275dir=yt({type:n,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,i){t&1&&_("input",function(){return i._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",zt],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return n})(),LR=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=on({type:n});static \u0275inj=nn({})}return n})();var VR=new mn("MAT_INPUT_VALUE_ACCESSOR");var une=["button","checkbox","file","hidden","image","radio","range","reset","submit"],gne=new mn("MAT_INPUT_CONFIG"),Ee=(()=>{class n{_elementRef=f(Kt);_platform=f(ja);ngControl=f(qC,{optional:!0,self:!0});_autofillMonitor=f(zR);_ngZone=f(Gi);_formField=f(ug,{optional:!0});_renderer=f(qi);_uid=f(ua).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder=null;_errorStateTracker;_config=f(gne,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer=!1;_isNativeSelect=!1;_isTextarea=!1;_isInFormField=!1;focused=!1;stateChanges=new Ye;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=Or(e),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(e){this._id=e||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(Ue.required)??!1}set required(e){this._required=Or(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&Hk().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(e){e!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(e):this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=Or(e)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>Hk().has(e));constructor(){let e=f(Ji,{optional:!0}),t=f(Ut,{optional:!0}),i=f(Td),a=f(VR,{optional:!0,self:!0}),s=this._elementRef.nativeElement,d=s.nodeName.toLowerCase();a?dA(a.value)?this._signalBasedValueAccessor=a:this._inputValueAccessor=a:this._inputValueAccessor=s,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(s,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new ib(i,this.ngControl,t,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=d==="select",this._isTextarea=d==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=s.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&Vn(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){if(e!==this.focused){if(!this._isNativeSelect&&e&&this.disabled&&this.disabledInteractive){let t=this._elementRef.nativeElement;t.type==="number"?(t.type="text",t.setSelectionRange(0,0),t.type="number"):t.setSelectionRange(0,0)}this.focused=e,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let t=this._elementRef.nativeElement;this._previousPlaceholder=e,e?t.setAttribute("placeholder",e):t.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){une.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let t=this._elementRef.nativeElement;e.length?t.setAttribute("aria-describedby",e.join(" ")):t.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_iOSKeyupListener=e=>{let t=e.target;!t.value&&t.selectionStart===0&&t.selectionEnd===0&&(t.setSelectionRange(1,1),t.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(t){return new(t||n)};static \u0275dir=yt({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(t,i){t&1&&_("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),t&2&&(pr("id",i.id)("disabled",i.disabled&&!i.disabledInteractive)("required",i.required),Ce("name",i.name||null)("readonly",i._getReadonlyAttribute())("aria-disabled",i.disabled&&i.disabledInteractive?"true":null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required)("id",i.id),ne("mat-input-server",i._isServer)("mat-mdc-form-field-textarea-control",i._isInFormField&&i._isTextarea)("mat-mdc-form-field-input-control",i._isInFormField)("mat-mdc-input-disabled-interactive",i.disabledInteractive)("mdc-text-field__input",i._isInFormField)("mat-mdc-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",zt]},exportAs:["matInput"],features:[un([{provide:nb,useExisting:n}]),Nn]})}return n})(),ye=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=on({type:n});static \u0275inj=nn({imports:[we,we,LR,Vi]})}return n})();var hne=["switch"],_ne=["*"];function fne(n,o){n&1&&(r(0,"span",11),Mi(),r(1,"svg",13),L(2,"path",14),l(),r(3,"svg",15),L(4,"path",16),l()())}var vne=new mn("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),M1=class{source;checked;constructor(o,e){this.source=o,this.checked=e}},Yc=(()=>{class n{_elementRef=f(Kt);_focusMonitor=f(hs);_changeDetectorRef=f(oe);defaults=f(vne);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new M1(this,e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations=$a();_focused=!1;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required=!1;color;disabled=!1;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}hideIcon;disabledInteractive;change=new be;toggleChange=new be;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){f(Ta).load(Xr);let e=f(new cm("tabindex"),{optional:!0}),t=this.defaults;this.tabIndex=e==null?0:parseInt(e)||0,this.color=t.color||"accent",this.id=this._uniqueId=f(ua).getId("mat-mdc-slide-toggle-"),this.hideIcon=t.hideIcon??!1,this.disabledInteractive=t.disabledInteractive??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(e){e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorOnChange=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.disabled||(this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new M1(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["mat-slide-toggle"]],viewQuery:function(t,i){if(t&1&&Kn(hne,5),t&2){let a;gt(a=ht())&&(i._switchElement=a.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(t,i){t&2&&(pr("id",i.id),Ce("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Za(i.color?"mat-"+i.color:""),ne("mat-mdc-slide-toggle-focused",i._focused)("mat-mdc-slide-toggle-checked",i.checked)("_mat-animation-noopable",i._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",zt],color:"color",disabled:[2,"disabled","disabled",zt],disableRipple:[2,"disableRipple","disableRipple",zt],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:qo(e)],checked:[2,"checked","checked",zt],hideIcon:[2,"hideIcon","hideIcon",zt],disabledInteractive:[2,"disabledInteractive","disabledInteractive",zt]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[un([{provide:Pd,useExisting:Pc(()=>n),multi:!0},{provide:HA,useExisting:n,multi:!0}]),Nn],ngContentSelectors:_ne,decls:14,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mat-mdc-slide-toggle-touch-target"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(t,i){if(t&1&&(pi(),r(0,"div",1)(1,"button",2,0),_("click",function(){return i._handleClick()}),L(3,"div",3)(4,"span",4),r(5,"span",5)(6,"span",6)(7,"span",7),L(8,"span",8),l(),r(9,"span",9),L(10,"span",10),l(),T(11,fne,5,0,"span",11),l()()(),r(12,"label",12),_("click",function(s){return s.stopPropagation()}),Zt(13),l()()),t&2){let a=Te(2);v("labelPosition",i.labelPosition),m(),ne("mdc-switch--selected",i.checked)("mdc-switch--unselected",!i.checked)("mdc-switch--checked",i.checked)("mdc-switch--disabled",i.disabled)("mat-mdc-slide-toggle-disabled-interactive",i.disabledInteractive),v("tabIndex",i.disabled&&!i.disabledInteractive?-1:i.tabIndex)("disabled",i.disabled&&!i.disabledInteractive),Ce("id",i.buttonId)("name",i.name)("aria-label",i.ariaLabel)("aria-labelledby",i._getAriaLabelledBy())("aria-describedby",i.ariaDescribedby)("aria-required",i.required||null)("aria-checked",i.checked)("aria-disabled",i.disabled&&i.disabledInteractive?"true":null),m(9),v("matRippleTrigger",a)("matRippleDisabled",i.disableRipple||i.disabled)("matRippleCentered",!0),m(),E(i.hideIcon?-1:11),m(),v("for",i.buttonId),Ce("id",i._labelId)}},dependencies:[um,ob],styles:[`.mdc-switch { + align-items: center; + background: none; + border: none; + cursor: pointer; + display: inline-flex; + flex-shrink: 0; + margin: 0; + outline: none; + overflow: visible; + padding: 0; + position: relative; + width: var(--mat-slide-toggle-track-width, 52px); +} +.mdc-switch.mdc-switch--disabled { + cursor: default; + pointer-events: none; +} +.mdc-switch.mat-mdc-slide-toggle-disabled-interactive { + pointer-events: auto; +} + +.mdc-switch__track { + overflow: hidden; + position: relative; + width: 100%; + height: var(--mat-slide-toggle-track-height, 32px); + border-radius: var(--mat-slide-toggle-track-shape, var(--mat-sys-corner-full)); +} +.mdc-switch--disabled.mdc-switch .mdc-switch__track { + opacity: var(--mat-slide-toggle-disabled-track-opacity, 0.12); +} +.mdc-switch__track::before, .mdc-switch__track::after { + border: 1px solid transparent; + border-radius: inherit; + box-sizing: border-box; + content: ""; + height: 100%; + left: 0; + position: absolute; + width: 100%; + border-width: var(--mat-slide-toggle-track-outline-width, 2px); + border-color: var(--mat-slide-toggle-track-outline-color, var(--mat-sys-outline)); +} +.mdc-switch--selected .mdc-switch__track::before, .mdc-switch--selected .mdc-switch__track::after { + border-width: var(--mat-slide-toggle-selected-track-outline-width, 2px); + border-color: var(--mat-slide-toggle-selected-track-outline-color, transparent); +} +.mdc-switch--disabled .mdc-switch__track::before, .mdc-switch--disabled .mdc-switch__track::after { + border-width: var(--mat-slide-toggle-disabled-unselected-track-outline-width, 2px); + border-color: var(--mat-slide-toggle-disabled-unselected-track-outline-color, var(--mat-sys-on-surface)); +} +@media (forced-colors: active) { + .mdc-switch__track { + border-color: currentColor; + } +} +.mdc-switch__track::before { + transition: transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1); + transform: translateX(0); + background: var(--mat-slide-toggle-unselected-track-color, var(--mat-sys-surface-variant)); +} +.mdc-switch--selected .mdc-switch__track::before { + transition: transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1); + transform: translateX(100%); +} +[dir=rtl] .mdc-switch--selected .mdc-switch--selected .mdc-switch__track::before { + transform: translateX(-100%); +} +.mdc-switch--selected .mdc-switch__track::before { + opacity: var(--mat-slide-toggle-hidden-track-opacity, 0); + transition: var(--mat-slide-toggle-hidden-track-transition, opacity 75ms); +} +.mdc-switch--unselected .mdc-switch__track::before { + opacity: var(--mat-slide-toggle-visible-track-opacity, 1); + transition: var(--mat-slide-toggle-visible-track-transition, opacity 75ms); +} +.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before { + background: var(--mat-slide-toggle-unselected-hover-track-color, var(--mat-sys-surface-variant)); +} +.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before { + background: var(--mat-slide-toggle-unselected-focus-track-color, var(--mat-sys-surface-variant)); +} +.mdc-switch:enabled:active .mdc-switch__track::before { + background: var(--mat-slide-toggle-unselected-pressed-track-color, var(--mat-sys-surface-variant)); +} +.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::before, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::before, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::before, .mdc-switch.mdc-switch--disabled .mdc-switch__track::before { + background: var(--mat-slide-toggle-disabled-unselected-track-color, var(--mat-sys-surface-variant)); +} +.mdc-switch__track::after { + transform: translateX(-100%); + background: var(--mat-slide-toggle-selected-track-color, var(--mat-sys-primary)); +} +[dir=rtl] .mdc-switch__track::after { + transform: translateX(100%); +} +.mdc-switch--selected .mdc-switch__track::after { + transform: translateX(0); +} +.mdc-switch--selected .mdc-switch__track::after { + opacity: var(--mat-slide-toggle-visible-track-opacity, 1); + transition: var(--mat-slide-toggle-visible-track-transition, opacity 75ms); +} +.mdc-switch--unselected .mdc-switch__track::after { + opacity: var(--mat-slide-toggle-hidden-track-opacity, 0); + transition: var(--mat-slide-toggle-hidden-track-transition, opacity 75ms); +} +.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after { + background: var(--mat-slide-toggle-selected-hover-track-color, var(--mat-sys-primary)); +} +.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after { + background: var(--mat-slide-toggle-selected-focus-track-color, var(--mat-sys-primary)); +} +.mdc-switch:enabled:active .mdc-switch__track::after { + background: var(--mat-slide-toggle-selected-pressed-track-color, var(--mat-sys-primary)); +} +.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::after, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::after, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::after, .mdc-switch.mdc-switch--disabled .mdc-switch__track::after { + background: var(--mat-slide-toggle-disabled-selected-track-color, var(--mat-sys-on-surface)); +} + +.mdc-switch__handle-track { + height: 100%; + pointer-events: none; + position: absolute; + top: 0; + transition: transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1); + left: 0; + right: auto; + transform: translateX(0); + width: calc(100% - var(--mat-slide-toggle-handle-width)); +} +[dir=rtl] .mdc-switch__handle-track { + left: auto; + right: 0; +} +.mdc-switch--selected .mdc-switch__handle-track { + transform: translateX(100%); +} +[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track { + transform: translateX(-100%); +} + +.mdc-switch__handle { + display: flex; + pointer-events: auto; + position: absolute; + top: 50%; + transform: translateY(-50%); + left: 0; + right: auto; + transition: width 75ms cubic-bezier(0.4, 0, 0.2, 1), height 75ms cubic-bezier(0.4, 0, 0.2, 1), margin 75ms cubic-bezier(0.4, 0, 0.2, 1); + width: var(--mat-slide-toggle-handle-width); + height: var(--mat-slide-toggle-handle-height); + border-radius: var(--mat-slide-toggle-handle-shape, var(--mat-sys-corner-full)); +} +[dir=rtl] .mdc-switch__handle { + left: auto; + right: 0; +} +.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle { + width: var(--mat-slide-toggle-unselected-handle-size, 16px); + height: var(--mat-slide-toggle-unselected-handle-size, 16px); + margin: var(--mat-slide-toggle-unselected-handle-horizontal-margin, 0 8px); +} +.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons) { + margin: var(--mat-slide-toggle-unselected-with-icon-handle-horizontal-margin, 0 4px); +} +.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle { + width: var(--mat-slide-toggle-selected-handle-size, 24px); + height: var(--mat-slide-toggle-selected-handle-size, 24px); + margin: var(--mat-slide-toggle-selected-handle-horizontal-margin, 0 24px); +} +.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons) { + margin: var(--mat-slide-toggle-selected-with-icon-handle-horizontal-margin, 0 24px); +} +.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons) { + width: var(--mat-slide-toggle-with-icon-handle-size, 24px); + height: var(--mat-slide-toggle-with-icon-handle-size, 24px); +} +.mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle { + width: var(--mat-slide-toggle-pressed-handle-size, 28px); + height: var(--mat-slide-toggle-pressed-handle-size, 28px); +} +.mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) .mdc-switch__handle { + margin: var(--mat-slide-toggle-selected-pressed-handle-horizontal-margin, 0 22px); +} +.mat-mdc-slide-toggle .mdc-switch--unselected:active:not(.mdc-switch--disabled) .mdc-switch__handle { + margin: var(--mat-slide-toggle-unselected-pressed-handle-horizontal-margin, 0 2px); +} +.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after { + opacity: var(--mat-slide-toggle-disabled-selected-handle-opacity, 1); +} +.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after { + opacity: var(--mat-slide-toggle-disabled-unselected-handle-opacity, 0.38); +} +.mdc-switch__handle::before, .mdc-switch__handle::after { + border: 1px solid transparent; + border-radius: inherit; + box-sizing: border-box; + content: ""; + width: 100%; + height: 100%; + left: 0; + position: absolute; + top: 0; + transition: background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1), border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1); + z-index: -1; +} +@media (forced-colors: active) { + .mdc-switch__handle::before, .mdc-switch__handle::after { + border-color: currentColor; + } +} +.mdc-switch--selected:enabled .mdc-switch__handle::after { + background: var(--mat-slide-toggle-selected-handle-color, var(--mat-sys-on-primary)); +} +.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after { + background: var(--mat-slide-toggle-selected-hover-handle-color, var(--mat-sys-primary-container)); +} +.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after { + background: var(--mat-slide-toggle-selected-focus-handle-color, var(--mat-sys-primary-container)); +} +.mdc-switch--selected:enabled:active .mdc-switch__handle::after { + background: var(--mat-slide-toggle-selected-pressed-handle-color, var(--mat-sys-primary-container)); +} +.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:hover:not(:focus):not(:active) .mdc-switch__handle::after, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:focus:not(:active) .mdc-switch__handle::after, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:active .mdc-switch__handle::after, .mdc-switch--selected.mdc-switch--disabled .mdc-switch__handle::after { + background: var(--mat-slide-toggle-disabled-selected-handle-color, var(--mat-sys-surface)); +} +.mdc-switch--unselected:enabled .mdc-switch__handle::after { + background: var(--mat-slide-toggle-unselected-handle-color, var(--mat-sys-outline)); +} +.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after { + background: var(--mat-slide-toggle-unselected-hover-handle-color, var(--mat-sys-on-surface-variant)); +} +.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after { + background: var(--mat-slide-toggle-unselected-focus-handle-color, var(--mat-sys-on-surface-variant)); +} +.mdc-switch--unselected:enabled:active .mdc-switch__handle::after { + background: var(--mat-slide-toggle-unselected-pressed-handle-color, var(--mat-sys-on-surface-variant)); +} +.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after { + background: var(--mat-slide-toggle-disabled-unselected-handle-color, var(--mat-sys-on-surface)); +} +.mdc-switch__handle::before { + background: var(--mat-slide-toggle-handle-surface-color); +} + +.mdc-switch__shadow { + border-radius: inherit; + bottom: 0; + left: 0; + position: absolute; + right: 0; + top: 0; +} +.mdc-switch:enabled .mdc-switch__shadow { + box-shadow: var(--mat-slide-toggle-handle-elevation-shadow); +} +.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__shadow, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__shadow, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__shadow, .mdc-switch.mdc-switch--disabled .mdc-switch__shadow { + box-shadow: var(--mat-slide-toggle-disabled-handle-elevation-shadow); +} + +.mdc-switch__ripple { + left: 50%; + position: absolute; + top: 50%; + transform: translate(-50%, -50%); + z-index: -1; + width: var(--mat-slide-toggle-state-layer-size, 40px); + height: var(--mat-slide-toggle-state-layer-size, 40px); +} +.mdc-switch__ripple::after { + content: ""; + opacity: 0; +} +.mdc-switch--disabled .mdc-switch__ripple::after { + display: none; +} +.mat-mdc-slide-toggle-disabled-interactive .mdc-switch__ripple::after { + display: block; +} +.mdc-switch:hover .mdc-switch__ripple::after { + transition: 75ms opacity cubic-bezier(0, 0, 0.2, 1); +} +.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:focus .mdc-switch__ripple::after, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:active .mdc-switch__ripple::after, .mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:hover:not(:focus) .mdc-switch__ripple::after, .mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after { + background: var(--mat-slide-toggle-unselected-hover-state-layer-color, var(--mat-sys-on-surface)); + opacity: var(--mat-slide-toggle-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); +} +.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after { + background: var(--mat-slide-toggle-unselected-focus-state-layer-color, var(--mat-sys-on-surface)); + opacity: var(--mat-slide-toggle-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); +} +.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after { + background: var(--mat-slide-toggle-unselected-pressed-state-layer-color, var(--mat-sys-on-surface)); + opacity: var(--mat-slide-toggle-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity)); + transition: opacity 75ms linear; +} +.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after { + background: var(--mat-slide-toggle-selected-hover-state-layer-color, var(--mat-sys-primary)); + opacity: var(--mat-slide-toggle-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity)); +} +.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after { + background: var(--mat-slide-toggle-selected-focus-state-layer-color, var(--mat-sys-primary)); + opacity: var(--mat-slide-toggle-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity)); +} +.mdc-switch--selected:enabled:active .mdc-switch__ripple::after { + background: var(--mat-slide-toggle-selected-pressed-state-layer-color, var(--mat-sys-primary)); + opacity: var(--mat-slide-toggle-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity)); + transition: opacity 75ms linear; +} + +.mdc-switch__icons { + position: relative; + height: 100%; + width: 100%; + z-index: 1; + transform: translateZ(0); +} +.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__icons { + opacity: var(--mat-slide-toggle-disabled-unselected-icon-opacity, 0.38); +} +.mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons { + opacity: var(--mat-slide-toggle-disabled-selected-icon-opacity, 0.38); +} + +.mdc-switch__icon { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; + opacity: 0; + transition: opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1); +} +.mdc-switch--unselected .mdc-switch__icon { + width: var(--mat-slide-toggle-unselected-icon-size, 16px); + height: var(--mat-slide-toggle-unselected-icon-size, 16px); + fill: var(--mat-slide-toggle-unselected-icon-color, var(--mat-sys-surface-variant)); +} +.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon { + fill: var(--mat-slide-toggle-disabled-unselected-icon-color, var(--mat-sys-surface-variant)); +} +.mdc-switch--selected .mdc-switch__icon { + width: var(--mat-slide-toggle-selected-icon-size, 16px); + height: var(--mat-slide-toggle-selected-icon-size, 16px); + fill: var(--mat-slide-toggle-selected-icon-color, var(--mat-sys-on-primary-container)); +} +.mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon { + fill: var(--mat-slide-toggle-disabled-selected-icon-color, var(--mat-sys-on-surface)); +} + +.mdc-switch--selected .mdc-switch__icon--on, +.mdc-switch--unselected .mdc-switch__icon--off { + opacity: 1; + transition: opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1); +} + +.mat-mdc-slide-toggle { + -webkit-user-select: none; + user-select: none; + display: inline-block; + -webkit-tap-highlight-color: transparent; + outline: 0; +} +.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple, +.mat-mdc-slide-toggle .mdc-switch__ripple::after { + top: 0; + left: 0; + right: 0; + bottom: 0; + position: absolute; + border-radius: 50%; + pointer-events: none; +} +.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty), +.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty) { + transform: translateZ(0); +} +.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-focus-indicator::before { + content: ""; +} +.mat-mdc-slide-toggle .mat-internal-form-field { + color: var(--mat-slide-toggle-label-text-color, var(--mat-sys-on-surface)); + font-family: var(--mat-slide-toggle-label-text-font, var(--mat-sys-body-medium-font)); + line-height: var(--mat-slide-toggle-label-text-line-height, var(--mat-sys-body-medium-line-height)); + font-size: var(--mat-slide-toggle-label-text-size, var(--mat-sys-body-medium-size)); + letter-spacing: var(--mat-slide-toggle-label-text-tracking, var(--mat-sys-body-medium-tracking)); + font-weight: var(--mat-slide-toggle-label-text-weight, var(--mat-sys-body-medium-weight)); +} +.mat-mdc-slide-toggle .mat-ripple-element { + opacity: 0.12; +} +.mat-mdc-slide-toggle .mat-focus-indicator::before { + border-radius: 50%; +} +.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track, +.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon, +.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before, +.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after, +.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before, +.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after { + transition: none; +} +.mat-mdc-slide-toggle .mdc-switch:enabled + .mdc-label { + cursor: pointer; +} +.mat-mdc-slide-toggle .mdc-switch--disabled + label { + color: var(--mat-slide-toggle-disabled-label-text-color, var(--mat-sys-on-surface)); +} +.mat-mdc-slide-toggle label:empty { + display: none; +} + +.mat-mdc-slide-toggle-touch-target { + position: absolute; + top: 50%; + left: 50%; + height: var(--mat-slide-toggle-touch-target-size, 48px); + width: 100%; + transform: translate(-50%, -50%); + display: var(--mat-slide-toggle-touch-target-display, block); +} +[dir=rtl] .mat-mdc-slide-toggle-touch-target { + left: auto; + right: 50%; + transform: translate(50%, -50%); +} +`],encapsulation:2,changeDetection:0})}return n})(),mc=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=on({type:n});static \u0275inj=nn({imports:[Yc,Vi]})}return n})();function Cne(n,o){if(n&1&&(r(0,"li"),c(1),l()),n&2){let e=o.$implicit;m(),N(e)}}function bne(n,o){if(n&1&&(r(0,"ul",4),Q(1,Cne,2,1,"li",null,Oe),l()),n&2){let e=h();m(),K(e.data.details)}}function xne(n,o){if(n&1){let e=R();r(0,"mat-checkbox",9),_("change",function(i){let a=y(e);return w(a.checked=i.checked)}),c(1),l()}if(n&2){let e=o;v("checked",e.checked),m(),X(" ",e.label," ")}}function yne(n,o){if(n&1&&(r(0,"p",6),c(1),l()),n&2){let e=h();m(),N(e.data.note)}}function wne(n,o){if(n&1){let e=R();r(0,"button",12),_("click",function(){y(e);let i=h(2);return w(i.onYesClick())}),c(1),l()}if(n&2){let e=h(2);m(),X(" ",e.confirmButtonText," ")}}function Mne(n,o){if(n&1){let e=R();r(0,"button",13),_("click",function(){y(e);let i=h(2);return w(i.onYesClick())}),c(1),l()}if(n&2){let e=h(2);m(),X(" ",e.confirmButtonText," ")}}function Sne(n,o){if(n&1&&T(0,wne,2,1,"button",10)(1,Mne,2,1,"button",11),n&2){let e=h();E(e.tone==="danger"?0:1)}}var jt=(()=>{class n{dialogRef;data;constructor(e,t){this.dialogRef=e,this.data=t}get title(){return this.data.title||"Confirm action"}get confirmButtonText(){return this.data.confirmButtonText||"Confirm"}get cancelButtonText(){return this.data.cancelButtonText||"Cancel"}get tone(){return this.data.tone||"danger"}get icon(){return this.data.icon?this.data.icon:this.tone==="danger"?"delete_forever":this.tone==="warning"?"warning":"help"}onNoClick(){this.dialogRef.close(!1)}onYesClick(){this.dialogRef.close(!0)}static \u0275fac=function(t){return new(t||n)(Mt(We),Mt(Wt))};static \u0275cmp=V({type:n,selectors:[["app-confirmation-dialog"]],decls:17,vars:12,consts:[[1,"confirmation-dialog"],["mat-dialog-title","",1,"confirmation-dialog__header"],["aria-hidden","true",1,"confirmation-dialog__icon"],[1,"confirmation-dialog__content"],[1,"confirmation-dialog__details"],[1,"confirmation-dialog__checkbox",3,"checked"],[1,"confirmation-dialog__note"],["align","end",1,"confirmation-dialog__actions"],["mat-stroked-button","","type","button","cdkFocusInitial","",1,"cancel-button",3,"click"],[1,"confirmation-dialog__checkbox",3,"change","checked"],["mat-flat-button","","type","button",1,"confirm-button","destructive-button"],["mat-flat-button","","type","button",1,"confirm-button"],["mat-flat-button","","type","button",1,"confirm-button","destructive-button",3,"click"],["mat-flat-button","","type","button",1,"confirm-button",3,"click"]],template:function(t,i){if(t&1&&(r(0,"div",0)(1,"div",1)(2,"span",2)(3,"mat-icon"),c(4),l()(),r(5,"h2"),c(6),l()(),r(7,"mat-dialog-content",3)(8,"p"),c(9),l(),T(10,bne,3,0,"ul",4),T(11,xne,2,2,"mat-checkbox",5),T(12,yne,2,1,"p",6),l(),r(13,"mat-dialog-actions",7)(14,"button",8),_("click",function(){return i.onNoClick()}),c(15),l(),T(16,Sne,2,1),l()()),t&2){let a;ne("confirmation-dialog--danger",i.tone==="danger")("confirmation-dialog--warning",i.tone==="warning"),m(4),N(i.icon),m(2),N(i.title),m(3),N(i.data.message),m(),E(i.data.details!=null&&i.data.details.length?10:-1),m(),E((a=i.data.checkbox)?11:-1,a),m(),E(i.data.note?12:-1),m(3),X(" ",i.cancelButtonText," "),m(),E(i.data.hideConfirm?-1:16)}},dependencies:[fe,ke,qe,Qe,bt,ie,ce,Y,he,Rt,Gt],styles:[".confirmation-dialog[_ngcontent-%COMP%]{--confirmation-accent: var(--mat-sys-primary);color:var(--mat-sys-on-surface)}.confirmation-dialog--danger[_ngcontent-%COMP%]{--confirmation-accent: var(--mat-sys-error)}.confirmation-dialog--warning[_ngcontent-%COMP%]{--confirmation-accent: var(--mat-sys-tertiary)}.confirmation-dialog__header[_ngcontent-%COMP%]{min-height:var(--gns3-density-section-header-height);margin:0;padding:var(--gns3-density-section-header-padding);display:flex;align-items:center;gap:var(--gns3-density-space-3);box-sizing:border-box;color:var(--mat-sys-on-primary-container);background:var(--mat-sys-primary-container);border-bottom:1px solid var(--mat-sys-outline-variant)}.confirmation-dialog__header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;color:var(--mat-sys-on-primary-container);font-family:var(--gns3-density-section-header-font);font-size:var(--gns3-density-section-header-title-size);font-weight:650;line-height:1.2;letter-spacing:-.01em}.confirmation-dialog__icon[_ngcontent-%COMP%]{width:var(--gns3-density-dialog-icon-container);height:var(--gns3-density-dialog-icon-container);display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;color:var(--confirmation-accent);background:color-mix(in srgb,var(--confirmation-accent) 12%,transparent);border-radius:var(--gns3-density-radius-sm)}.confirmation-dialog__icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:var(--gns3-density-dialog-icon-size);height:var(--gns3-density-dialog-icon-size);font-size:var(--gns3-density-dialog-icon-size)}.confirmation-dialog__content[_ngcontent-%COMP%]{padding:var(--gns3-density-space-4);color:var(--mat-sys-on-surface-variant);font:var(--mat-sys-body-medium);font-size:var(--gns3-density-dialog-body-size);line-height:1.45}.confirmation-dialog__content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0;white-space:pre-line}.confirmation-dialog__checkbox[_ngcontent-%COMP%]{display:block;margin-top:var(--gns3-density-space-3)}.confirmation-dialog__details[_ngcontent-%COMP%]{max-height:180px;margin:var(--gns3-density-space-3) 0 0;padding:var(--gns3-density-space-2) var(--gns3-density-space-3) var(--gns3-density-space-2) calc(var(--gns3-density-space-5) + var(--gns3-density-space-2));overflow-y:auto;background:var(--mat-sys-surface-container);border:1px solid var(--mat-sys-outline-variant);border-radius:var(--gns3-density-radius-sm)}.confirmation-dialog__content[_ngcontent-%COMP%] .confirmation-dialog__note[_ngcontent-%COMP%]{margin-top:var(--gns3-density-space-3);color:var(--confirmation-accent);font-weight:600}.confirmation-dialog__actions[_ngcontent-%COMP%] .confirm-button[_ngcontent-%COMP%]:not(.destructive-button){color:var(--mat-sys-on-primary);background:var(--mat-sys-primary)}html[data-density=compact][_nghost-%COMP%] .confirmation-dialog__header[_ngcontent-%COMP%], html[data-density=compact] [_nghost-%COMP%] .confirmation-dialog__header[_ngcontent-%COMP%]{gap:var(--gns3-density-space-2)}html[data-density=compact][_nghost-%COMP%] .confirmation-dialog__content[_ngcontent-%COMP%], html[data-density=compact] [_nghost-%COMP%] .confirmation-dialog__content[_ngcontent-%COMP%]{padding:var(--gns3-density-space-3) var(--gns3-density-space-4)}"],changeDetection:0})}return n})();function kne(n,o){n&1&&(r(0,"div",21),L(1,"mat-progress-spinner",24),r(2,"span"),c(3,"Loading computes\u2026"),l()())}function Pne(n,o){n&1&&(r(0,"mat-header-cell"),c(1,"Name"),l())}function Tne(n,o){if(n&1&&(r(0,"mat-cell")(1,"div",36)(2,"span",37)(3,"mat-icon"),c(4),l()(),r(5,"span",38)(6,"strong"),c(7),l(),r(8,"small"),c(9),l()()()()),n&2){let e=o.$implicit;m(4),N(e.compute_id==="local"?"computer":"dns"),m(3),N(e.name||e.compute_id),m(2),N(e.compute_id==="local"?"Local compute":e.compute_id)}}function Ene(n,o){n&1&&(r(0,"mat-header-cell"),c(1,"Status"),l())}function One(n,o){if(n&1&&(r(0,"mat-cell")(1,"span",39),L(2,"span"),c(3),l()()),n&2){let e=o.$implicit;m(),ne("computes-page__status--connected",e.connected),v("matTooltip",e.last_error||""),m(2),X(" ",e.connected?"Connected":"Disconnected"," ")}}function Dne(n,o){n&1&&(r(0,"mat-header-cell"),c(1,"Host"),l())}function Ine(n,o){if(n&1&&(r(0,"mat-cell")(1,"span",40),c(2),l()()),n&2){let e=o.$implicit,t=h(2);m(),v("matTooltip",e.protocol+"//"+t.formatHost(e)),m(),X(" ",t.formatHost(e)," ")}}function Ane(n,o){n&1&&(r(0,"mat-header-cell"),c(1,"Platform"),l())}function Nne(n,o){if(n&1&&(r(0,"mat-cell")(1,"span",41)(2,"mat-icon"),c(3,"memory"),l(),c(4),l()()),n&2){let e=o.$implicit,t=h(2);m(4),X(" ",t.getPlatform(e)," ")}}function Fne(n,o){n&1&&(r(0,"mat-header-cell"),c(1,"Resources"),l())}function Rne(n,o){if(n&1&&(r(0,"div",42)(1,"span",44)(2,"mat-icon"),c(3,"developer_board"),l(),c(4),l(),r(5,"span",45)(6,"mat-icon"),c(7,"memory"),l(),c(8),l(),r(9,"span",46)(10,"mat-icon"),c(11,"storage"),l(),c(12),l()()),n&2){let e=h().$implicit,t=h(2);m(4),N(t.formatPercent(e.cpu_usage_percent)),m(4),N(t.formatPercent(e.memory_usage_percent)),m(4),N(t.formatPercent(e.disk_usage_percent))}}function zne(n,o){n&1&&(r(0,"span",43),c(1,"Unavailable"),l())}function Lne(n,o){if(n&1&&(r(0,"mat-cell"),T(1,Rne,13,3,"div",42)(2,zne,2,0,"span",43),l()),n&2){let e=o.$implicit;m(),E(e.connected?1:2)}}function Vne(n,o){n&1&&(r(0,"mat-header-cell"),c(1,"Auto-connect"),l())}function Bne(n,o){if(n&1){let e=R();r(0,"mat-slide-toggle",49),_("change",function(i){y(e);let a=h().$implicit,s=h(2);return w(s.toggleAutoConnect(a,i.checked))}),l()}if(n&2){let e=h().$implicit;v("checked",e.auto_connect),Ce("aria-label","Auto connect "+(e.name||e.compute_id))}}function jne(n,o){n&1&&(r(0,"span",48),c(1,"\u2014"),l())}function $ne(n,o){if(n&1&&(r(0,"mat-cell"),T(1,Bne,1,2,"mat-slide-toggle",47)(2,jne,2,0,"span",48),l()),n&2){let e=o.$implicit;m(),E(e.compute_id!=="local"&&e.auto_connect!==void 0?1:2)}}function Hne(n,o){n&1&&(r(0,"mat-header-cell"),c(1,"Actions"),l())}function Une(n,o){if(n&1){let e=R();r(0,"button",56),_("click",function(){y(e);let i=h(2).$implicit,a=h(2);return w(a.disconnectCompute(i))}),r(1,"mat-icon"),c(2,"link_off"),l()()}if(n&2){let e=h(2).$implicit;Ce("aria-label","Disconnect "+(e.name||e.compute_id))}}function Wne(n,o){if(n&1){let e=R();r(0,"div",50)(1,"button",52),_("click",function(){y(e);let i=h().$implicit,a=h(2);return w(a.connectCompute(i))}),r(2,"mat-icon"),c(3,"link"),l()(),T(4,Une,3,1,"button",53),r(5,"button",54),_("click",function(){y(e);let i=h().$implicit,a=h(2);return w(a.openEditDialog(i))}),r(6,"mat-icon"),c(7,"edit"),l()(),r(8,"button",55),_("click",function(){y(e);let i=h().$implicit,a=h(2);return w(a.deleteCompute(i))}),r(9,"mat-icon"),c(10,"delete"),l()()()}if(n&2){let e=h().$implicit;m(),Ce("aria-label","Connect "+(e.name||e.compute_id)),m(3),E(e.connected&&e.auto_connect!==void 0?4:-1),m(),Ce("aria-label","Edit "+(e.name||e.compute_id)),m(3),Ce("aria-label","Delete "+(e.name||e.compute_id))}}function Gne(n,o){n&1&&(r(0,"span",51),c(1," Controller managed "),l())}function qne(n,o){if(n&1&&(r(0,"mat-cell"),T(1,Wne,11,4,"div",50)(2,Gne,2,0,"span",51),l()),n&2){let e=o.$implicit;m(),E(e.compute_id!=="local"?1:2)}}function Qne(n,o){n&1&&L(0,"mat-header-row")}function Kne(n,o){if(n&1&&L(0,"mat-row"),n&2){let e=o.$implicit;ne("computes-page__row--connected",e.connected)}}function Xne(n,o){if(n&1&&(r(0,"mat-table",22),Fe(1,25),se(2,Pne,2,0,"mat-header-cell",26)(3,Tne,10,3,"mat-cell",27),Re(),Fe(4,28),se(5,Ene,2,0,"mat-header-cell",26)(6,One,4,4,"mat-cell",27),Re(),Fe(7,29),se(8,Dne,2,0,"mat-header-cell",26)(9,Ine,3,2,"mat-cell",27),Re(),Fe(10,30),se(11,Ane,2,0,"mat-header-cell",26)(12,Nne,5,1,"mat-cell",27),Re(),Fe(13,31),se(14,Fne,2,0,"mat-header-cell",26)(15,Lne,3,1,"mat-cell",27),Re(),Fe(16,32),se(17,Vne,2,0,"mat-header-cell",26)(18,$ne,3,1,"mat-cell",27),Re(),Fe(19,33),se(20,Hne,2,0,"mat-header-cell",26)(21,qne,3,1,"mat-cell",27),Re(),se(22,Qne,1,0,"mat-header-row",34)(23,Kne,1,2,"mat-row",35),l()),n&2){let e=h();v("dataSource",e.filteredComputes())("trackBy",e.trackCompute),m(22),v("matHeaderRowDef",e.displayedColumns)("matHeaderRowDefSticky",!0),m(),v("matRowDefColumns",e.displayedColumns)}}function Yne(n,o){n&1&&c(0," Try changing the search or status filter. ")}function Zne(n,o){n&1&&c(0," Add a compute server to extend the controller's resources. ")}function Jne(n,o){if(n&1){let e=R();r(0,"button",58),_("click",function(){y(e);let i=h(2);return w(i.openAddDialog())}),r(1,"mat-icon"),c(2,"add"),l(),c(3," Add Compute "),l()}}function eie(n,o){if(n&1&&(r(0,"div",23)(1,"mat-icon"),c(2,"dns"),l(),r(3,"h3"),c(4,"No computes found"),l(),r(5,"p"),T(6,Yne,1,0)(7,Zne,1,0),l(),T(8,Jne,4,0,"button",57),l()),n&2){let e=h();m(6),E(e.searchText()||e.statusFilter()!=="all"?6:7),m(2),E(!e.searchText()&&e.statusFilter()==="all"?8:-1)}}var tie=(n,o)=>o.key;function nie(n,o){if(n&1&&(r(0,"mat-option",6),c(1),l()),n&2){let e=o.$implicit;v("value",e.key),m(),N(e.name)}}function iie(n,o){n&1&&(r(0,"mat-error"),c(1,"You must select a protocol"),l())}function oie(n,o){n&1&&(r(0,"mat-error"),c(1,"You must enter a host"),l())}function aie(n,o){n&1&&(r(0,"mat-error"),c(1,"You must enter a port"),l())}function rie(n,o){n&1&&(r(0,"mat-error"),c(1,"Port must be between 1 and 65535"),l())}var jR=(()=>{class n{route=f($t);controllerService=f(_t);computeService=f(ml);notificationService=f(_s);toasterService=f(re);dialog=f(Xe);cd=f(oe);controller;_computes=z([]);computes=Ne(()=>[...this._computes()].sort((t,i)=>t.compute_id==="local"?-1:i.compute_id==="local"?1:(t.name||"").localeCompare(i.name||"")));searchText=z("");statusFilter=z("all");filteredComputes=Ne(()=>{let e=this.searchText().trim().toLowerCase(),t=this.statusFilter();return this.computes().filter(i=>{let a=t==="all"||t==="connected"&&i.connected||t==="disconnected"&&!i.connected,s=[i.name,i.compute_id,i.host,i.port,i.protocol,i.capabilities?.platform,...i.capabilities?.node_types||[]].filter(d=>d!=null).join(" ").toLowerCase();return a&&(!e||s.includes(e))})});connectedCount=Ne(()=>this.computes().filter(e=>e.connected).length);displayedColumns=["name","status","host","platform","resources","autoConnect","actions"];loading=z(!0);subscription=new Oo;ngOnInit(){this.loadControllerAndComputes()}ngOnDestroy(){this.subscription.unsubscribe()}loadControllerAndComputes(){let e=this.route.snapshot.paramMap.get("controller_id");this.controllerService.get(parseInt(e,10)).then(t=>{if(this.controller=t,this.cd.markForCheck(),this.notificationService.hasCachedData()){let i=this.notificationService.getCachedComputes();this._computes.set(i),this.loading.set(!1),this.cd.markForCheck()}else this.loadComputes();this.subscription.add(this.notificationService.computeNotificationEmitter.subscribe(i=>{this.handleComputeNotification(i)})),this.subscription.add(this.notificationService.computeCacheUpdated.subscribe(i=>{this._computes.set(i),this.loading.set(!1),this.cd.markForCheck()}))},t=>{let i=t.error?.message||t.message||"Failed to load controller";this.toasterService.error(i),this.loading.set(!1),this.cd.markForCheck()})}handleComputeNotification(e){switch(e.action){case"compute.created":this._computes.update(t=>[...t,e.event]),this.toasterService.success(`Compute "${e.event.name}" added`);break;case"compute.updated":this._computes.update(t=>t.map(i=>i.compute_id===e.event.compute_id?e.event:i));break;case"compute.deleted":this._computes.update(t=>t.filter(i=>i.compute_id!==e.event.compute_id)),this.toasterService.success(`Compute "${e.event.name}" deleted`);break}this.cd.markForCheck()}loadComputes(){this.loading.set(!0),this.computeService.getComputes(this.controller).subscribe({next:e=>{this.notificationService.setInitialComputes(e),this._computes.set(e),this.loading.set(!1),this.cd.markForCheck()},error:e=>{let t=e.error?.message||e.message||"Failed to load computes";this.loading.set(!1),this.toasterService.error(t),this.cd.markForCheck()}})}openAddDialog(){this.dialog.open(BR,{panelClass:["base-dialog-panel","simple-dialog-panel","dialog-medium-panel"],autoFocus:!1,disableClose:!0,data:{controller:this.controller}}).afterClosed().subscribe(t=>{t&&this.computeService.createCompute(this.controller,t).subscribe({next:()=>{this.toasterService.success("Compute added successfully"),this.loadComputes()},error:i=>{let a=i.error?.message||i.message||"Failed to add compute";this.toasterService.error(a),this.cd.markForCheck()}})})}openEditDialog(e){this.computeService.getCompute(this.controller,e.compute_id).subscribe({next:t=>{this.dialog.open(BR,{panelClass:["base-dialog-panel","simple-dialog-panel","dialog-medium-panel"],autoFocus:!1,disableClose:!0,data:{controller:this.controller,compute:t}}).afterClosed().subscribe(a=>{a&&this.computeService.updateCompute(this.controller,e.compute_id,a).subscribe({next:()=>{this.toasterService.success("Compute updated successfully"),this.loadComputes()},error:s=>{let d=s.error?.message||s.message||"Failed to update compute";this.toasterService.error(d),this.cd.markForCheck()}})})},error:t=>{let i=t.error?.message||t.message||"Failed to load compute details";this.toasterService.error(i),this.cd.markForCheck()}})}deleteCompute(e){this.dialog.open(jt,{panelClass:["base-confirmation-dialog-panel","confirmation-danger-panel","dialog-small-panel"],autoFocus:".cancel-button",disableClose:!0,data:{title:"Delete compute?",message:`Compute "${e.name||e.compute_id}" will be permanently deleted.`,note:"This action cannot be undone.",confirmButtonText:"Delete compute",tone:"danger"}}).afterClosed().subscribe(i=>{i&&this.computeService.deleteCompute(this.controller,e.compute_id).subscribe({next:()=>{this.toasterService.success("Compute deleted successfully"),this.loadComputes()},error:a=>{let s=a.error?.message||a.message||"Failed to delete compute";this.toasterService.error(s),this.cd.markForCheck()}})})}connectCompute(e){this.computeService.connectCompute(this.controller,e.compute_id).subscribe({next:()=>{this.toasterService.success("Connection request sent"),this.computeService.getCompute(this.controller,e.compute_id).subscribe({next:t=>{let i=this.computes().map(a=>a.compute_id===t.compute_id?t:a);this._computes.set(i),this.cd.markForCheck()},error:()=>{this.loadComputes()}})},error:t=>{let i=t.error?.message||t.message||"Failed to connect compute";this.toasterService.error(i),this.cd.markForCheck()}})}toggleAutoConnect(e,t){let i=e.auto_connect??!1;this._computes.update(a=>a.map(s=>s.compute_id===e.compute_id?ze(q({},s),{auto_connect:t}):s)),this.computeService.updateCompute(this.controller,e.compute_id,{auto_connect:t}).subscribe({error:a=>{this._computes.update(d=>d.map(p=>p.compute_id===e.compute_id?ze(q({},p),{auto_connect:i}):p));let s=a.error?.message||a.message||"Failed to update auto-connect setting";this.toasterService.error(s),this.cd.markForCheck()}})}disconnectCompute(e,t=!1){this.computeService.disconnectCompute(this.controller,e.compute_id,t).subscribe({next:()=>{this.toasterService.success("Disconnect request sent")},error:i=>{if(i.status===409)this.confirmForceDisconnect(e);else{let a=i.error?.message||i.message||"Failed to disconnect compute";this.toasterService.error(a),this.cd.markForCheck()}}})}confirmForceDisconnect(e){this.dialog.open(jt,{panelClass:["base-confirmation-dialog-panel","confirmation-danger-panel","dialog-small-panel"],autoFocus:".cancel-button",disableClose:!0,data:{title:"Force disconnect?",message:`Compute "${e.name||e.compute_id}" is used by opened projects.`,note:"Only the controller connection is closed \u2014 nodes keep running unmanaged.",confirmButtonText:"Force disconnect",tone:"danger"}}).afterClosed().subscribe(i=>{i&&this.disconnectCompute(e,!0)})}getStatusIcon(e){return e.connected?"check_circle":"cancel"}getStatusColor(e){return e.connected?"var(--mat-sys-primary)":"var(--mat-sys-error)"}formatPercent(e){return e!=null?`${e.toFixed(1)}%`:"--"}formatHost(e){return`${e.host}:${e.port}`}onSearchChange(e){this.searchText.set(e)}onStatusFilterChange(e){this.statusFilter.set(e)}trackCompute(e,t){return t.compute_id}getPlatform(e){return e.capabilities?.platform||"Unknown"}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["app-computes"]],decls:56,vars:10,consts:[[1,"computes-page"],[1,"computes-page__header"],[1,"computes-page__heading"],[1,"computes-page__title"],[1,"computes-page__header-actions"],["mat-raised-button","","color","primary",1,"computes-page__button",3,"click","disabled"],[1,"computes-page__toolbar"],["subscriptSizing","dynamic",1,"computes-page__search"],["matPrefix",""],["matInput","","placeholder","Search by name, host, platform, or node type",3,"input","value"],["subscriptSizing","dynamic",1,"computes-page__filter"],[3,"valueChange","value"],["value","all"],["value","connected"],["value","disconnected"],[1,"computes-page__main"],["aria-label","Compute summary",1,"computes-page__summary"],[1,"computes-page__summary-item"],[1,"computes-page__summary-item","computes-page__summary-item--connected"],[1,"computes-page__summary-item","computes-page__summary-item--disconnected"],[1,"computes-page__table-container"],[1,"computes-page__loading"],[3,"dataSource","trackBy"],[1,"computes-page__empty"],["diameter","42","mode","indeterminate"],["matColumnDef","name"],[4,"matHeaderCellDef"],[4,"matCellDef"],["matColumnDef","status"],["matColumnDef","host"],["matColumnDef","platform"],["matColumnDef","resources"],["matColumnDef","autoConnect"],["matColumnDef","actions"],[4,"matHeaderRowDef","matHeaderRowDefSticky"],[3,"computes-page__row--connected",4,"matRowDef","matRowDefColumns"],[1,"computes-page__name-cell"],[1,"computes-page__compute-icon"],[1,"computes-page__name-copy"],[1,"computes-page__status",3,"matTooltip"],[1,"computes-page__host",3,"matTooltip"],[1,"computes-page__platform"],[1,"computes-page__resources"],[1,"computes-page__unavailable"],["matTooltip","CPU usage"],["matTooltip","Memory usage"],["matTooltip","Disk usage"],["matTooltip","Automatically connect when the controller starts",3,"checked"],[1,"computes-page__auto-connect-na"],["matTooltip","Automatically connect when the controller starts",3,"change","checked"],[1,"computes-page__actions-cell"],["matTooltip","The local compute is managed by the controller",1,"computes-page__managed-label"],["mat-icon-button","","matTooltip","Connect compute",1,"computes-page__action","computes-page__action--connect",3,"click"],["mat-icon-button","","matTooltip","Disconnect compute",1,"computes-page__action","computes-page__action--disconnect"],["mat-icon-button","","matTooltip","Edit compute",1,"computes-page__action","computes-page__action--edit",3,"click"],["mat-icon-button","","matTooltip","Delete compute",1,"computes-page__action","computes-page__action--delete",3,"click"],["mat-icon-button","","matTooltip","Disconnect compute",1,"computes-page__action","computes-page__action--disconnect",3,"click"],["mat-raised-button","","color","primary",1,"computes-page__button"],["mat-raised-button","","color","primary",1,"computes-page__button",3,"click"]],template:function(t,i){t&1&&(r(0,"div",0)(1,"header",1)(2,"div",2)(3,"h1",3),c(4,"Computes"),l()(),r(5,"div",4)(6,"button",5),_("click",function(){return i.loadComputes()}),r(7,"mat-icon"),c(8,"refresh"),l(),c(9," Refresh "),l(),r(10,"button",5),_("click",function(){return i.openAddDialog()}),r(11,"mat-icon"),c(12,"add"),l(),c(13," Add Compute "),l()()(),r(14,"section",6)(15,"mat-form-field",7)(16,"mat-icon",8),c(17,"search"),l(),r(18,"input",9),_("input",function(s){return i.onSearchChange(s.target.value)}),l()(),r(19,"mat-form-field",10)(20,"mat-label"),c(21,"Status"),l(),r(22,"mat-select",11),_("valueChange",function(s){return i.onStatusFilterChange(s)}),r(23,"mat-option",12),c(24,"All statuses"),l(),r(25,"mat-option",13),c(26,"Connected"),l(),r(27,"mat-option",14),c(28,"Disconnected"),l()()()(),r(29,"main",15)(30,"section",16)(31,"div",17)(32,"mat-icon"),c(33,"dns"),l(),r(34,"span")(35,"strong"),c(36),l(),c(37," Total "),l()(),r(38,"div",18)(39,"mat-icon"),c(40,"check_circle"),l(),r(41,"span")(42,"strong"),c(43),l(),c(44," Connected "),l()(),r(45,"div",19)(46,"mat-icon"),c(47,"error_outline"),l(),r(48,"span")(49,"strong"),c(50),l(),c(51," Disconnected "),l()()(),r(52,"div",20),T(53,kne,4,0,"div",21)(54,Xne,24,5,"mat-table",22)(55,eie,9,2,"div",23),l()()()),t&2&&(m(6),v("disabled",i.loading()),m(4),v("disabled",!i.controller),m(8),v("value",i.searchText()),m(4),v("value",i.statusFilter()),m(14),N(i.computes().length),m(7),N(i.connectedCount()),m(7),N(i.computes().length-i.connectedCount()),m(2),ne("computes-page__table-container--loading",i.loading()),m(),E(i.loading()?53:i.filteredComputes().length?54:55))},dependencies:[fe,vn,Y,he,Be,ie,ce,it,_n,bn,yn,kn,wn,xn,Pn,Mn,Sn,Tn,En,st,pt,ke,we,Pe,Ve,Bi,ye,Ee,ot,ct,nt,rt,mt,mc,Yc,It],styles:["[_nghost-%COMP%]{display:block;width:100%;background:transparent}.computes-page[_ngcontent-%COMP%]{animation:none}.computes-page__header[_ngcontent-%COMP%], .computes-page__toolbar[_ngcontent-%COMP%], .computes-page__main[_ngcontent-%COMP%]{max-width:1600px;margin-inline:auto}.computes-page__header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 20px 16px}.computes-page__heading[_ngcontent-%COMP%]{min-width:0}.computes-page__title[_ngcontent-%COMP%]{margin:0;color:var(--mat-sys-on-surface);font-size:var(--gns3-density-page-title-size);font-weight:500;font-family:var(--mat-sys-title-large-font, Roboto),sans-serif;line-height:1.2;letter-spacing:normal}.computes-page__header-actions[_ngcontent-%COMP%], .computes-page__toolbar[_ngcontent-%COMP%], .computes-page__resources[_ngcontent-%COMP%], .computes-page__actions-cell[_ngcontent-%COMP%]{display:flex;align-items:center}.computes-page__header-actions[_ngcontent-%COMP%]{flex:0 0 auto;gap:var(--gns3-density-space-3)}button.computes-page__button[_ngcontent-%COMP%]{height:var(--gns3-density-control-height);min-height:var(--gns3-density-control-height);padding-inline:var(--gns3-density-space-4);border-radius:var(--gns3-density-radius-lg);font-family:var(--mat-sys-label-large-font, Roboto),sans-serif;font-size:var(--gns3-button-label-size);font-weight:var(--gns3-button-label-weight);line-height:var(--gns3-button-label-line-height);letter-spacing:var(--gns3-button-label-spacing);text-transform:none;--mat-button-filled-container-height: var(--gns3-density-control-height);--mat-button-filled-label-text-size: var(--gns3-button-label-size);--mat-button-filled-label-text-weight: var(--gns3-button-label-weight);--mat-button-filled-label-text-tracking: var(--gns3-button-label-spacing);--mat-button-outlined-container-height: var(--gns3-density-control-height);--mat-button-outlined-label-text-size: var(--gns3-button-label-size);--mat-button-outlined-label-text-weight: var(--gns3-button-label-weight);--mat-button-outlined-label-text-tracking: var(--gns3-button-label-spacing);--mat-button-protected-container-height: var(--gns3-density-control-height);--mat-button-protected-label-text-size: var(--gns3-button-label-size);--mat-button-protected-label-text-weight: var(--gns3-button-label-weight);--mat-button-protected-label-text-tracking: var(--gns3-button-label-spacing);--mat-button-text-container-height: var(--gns3-density-control-height);--mat-button-text-label-text-size: var(--gns3-button-label-size);--mat-button-text-label-text-weight: var(--gns3-button-label-weight);--mat-button-text-label-text-tracking: var(--gns3-button-label-spacing)}.computes-page__toolbar[_ngcontent-%COMP%]{gap:var(--gns3-density-card-gap);padding:0 20px 8px}.computes-page__search[_ngcontent-%COMP%]{flex:1;min-width:260px}.computes-page__filter[_ngcontent-%COMP%]{flex:0 0 190px}.computes-page__main[_ngcontent-%COMP%]{padding:0 20px 24px}.computes-page__summary[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--gns3-density-space-3);margin-bottom:var(--gns3-density-card-gap)}.computes-page__summary-item[_ngcontent-%COMP%]{display:flex;align-items:center;min-width:0;gap:var(--gns3-density-space-3);padding:14px 16px;border:1px solid var(--mat-sys-outline-variant);border-radius:14px;color:var(--mat-sys-on-surface-variant);background:var(--mat-sys-surface-container)}.computes-page__summary-item[_ngcontent-%COMP%] > mat-icon[_ngcontent-%COMP%]{display:grid;flex:0 0 38px;width:38px;height:38px;place-items:center;border-radius:10px;color:var(--mat-sys-on-primary-container);background:var(--mat-sys-primary-container)}.computes-page__summary-item[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:flex;min-width:0;flex-direction:column;font-size:12px}.computes-page__summary-item[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface);font-size:20px;line-height:1.15}.computes-page__summary-item--connected[_ngcontent-%COMP%] > mat-icon[_ngcontent-%COMP%]{color:var(--mat-sys-on-primary-container);background:var(--mat-sys-primary-container)}.computes-page__summary-item--disconnected[_ngcontent-%COMP%] > mat-icon[_ngcontent-%COMP%]{color:var(--mat-sys-on-error-container);background:var(--mat-sys-error-container)}.computes-page__table-container[_ngcontent-%COMP%]{position:relative;min-width:0;border-radius:16px;background:var(--mat-sys-surface);border:var(--gns3-surface-border);box-shadow:none;overflow-x:auto}.computes-page__table-container--loading[_ngcontent-%COMP%]{min-height:320px}.computes-page__loading[_ngcontent-%COMP%]{position:absolute;z-index:2;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:320px;gap:var(--gns3-density-card-gap);color:var(--mat-sys-on-surface-variant);background:var(--mat-sys-surface)}mat-table[_ngcontent-%COMP%]{width:100%;min-width:1120px}.mat-mdc-row[_ngcontent-%COMP%], .mat-row[_ngcontent-%COMP%]{height:var(--mat-table-row-item-container-height);min-height:var(--mat-table-row-item-container-height)}.mat-header-row[_ngcontent-%COMP%], .mat-mdc-header-row[_ngcontent-%COMP%]{position:sticky;z-index:10;top:0;background:color-mix(in srgb,var(--mat-sys-primary-container) 72%,var(--mat-sys-surface))}.mat-header-row[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%], .mat-mdc-header-row[_ngcontent-%COMP%] mat-header-cell[_ngcontent-%COMP%]{color:var(--mat-sys-on-primary-container);font-size:13px;font-weight:650;letter-spacing:.5px;text-transform:uppercase}mat-row[_ngcontent-%COMP%]{border-left:3px solid var(--mat-sys-error);transition:background-color var(--gns3-motion-duration-standard) ease}mat-row[_ngcontent-%COMP%]:nth-child(2n){background:color-mix(in srgb,var(--mat-sys-on-surface) 1%,transparent)}mat-row[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--mat-sys-primary) 5%,transparent)}mat-row.computes-page__row--connected[_ngcontent-%COMP%]{border-left-color:var(--mat-sys-primary)}mat-cell[_ngcontent-%COMP%], mat-header-cell[_ngcontent-%COMP%]{display:flex;align-items:center;min-height:inherit;overflow:hidden;color:var(--mat-sys-on-surface);text-overflow:ellipsis;white-space:nowrap}.mat-column-name[_ngcontent-%COMP%]{flex:24 1 0;min-width:235px}.mat-column-status[_ngcontent-%COMP%]{flex:14 1 0;min-width:135px;justify-content:center}.mat-column-host[_ngcontent-%COMP%]{flex:17 1 0;min-width:150px;justify-content:center}.mat-column-platform[_ngcontent-%COMP%]{flex:14 1 0;min-width:130px;justify-content:center}.mat-column-resources[_ngcontent-%COMP%]{flex:20 1 0;min-width:225px;justify-content:center}.mat-column-autoConnect[_ngcontent-%COMP%]{flex:10 1 0;min-width:104px;justify-content:center}.mat-column-actions[_ngcontent-%COMP%]{flex:14 1 0;min-width:190px;justify-content:center}.computes-page__name-cell[_ngcontent-%COMP%], .computes-page__platform[_ngcontent-%COMP%]{display:flex;align-items:center}.computes-page__name-cell[_ngcontent-%COMP%]{min-width:0;gap:var(--gns3-density-space-3)}.computes-page__compute-icon[_ngcontent-%COMP%]{display:grid;flex:0 0 38px;width:38px;height:38px;place-items:center;border-radius:10px;color:var(--mat-sys-on-primary-container);background:color-mix(in srgb,var(--mat-sys-primary-container) 82%,var(--mat-sys-surface))}.computes-page__compute-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:21px;height:21px;font-size:21px}.computes-page__name-copy[_ngcontent-%COMP%]{display:flex;min-width:0;flex-direction:column}.computes-page__name-copy[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], .computes-page__name-copy[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.computes-page__name-copy[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{font-size:14px;font-weight:600}.computes-page__name-copy[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);font-size:11px}.computes-page__status[_ngcontent-%COMP%]{display:inline-flex;align-items:center;width:fit-content;gap:var(--gns3-density-space-2);padding:4px 10px;border:1px solid var(--mat-sys-error);border-radius:18px;color:var(--mat-sys-on-error-container);background:var(--mat-sys-error-container);font-size:12px;font-weight:600}.computes-page__status[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{width:7px;height:7px;border-radius:50%;background:currentColor}.computes-page__status--connected[_ngcontent-%COMP%]{border-color:var(--mat-sys-primary);color:var(--mat-sys-on-primary-container);background:var(--mat-sys-primary-container)}.computes-page__host[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.computes-page__platform[_ngcontent-%COMP%]{gap:var(--gns3-density-space-2);color:var(--mat-sys-on-surface-variant);font-size:13px}.computes-page__platform[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:17px;height:17px;font-size:17px}.computes-page__resources[_ngcontent-%COMP%]{gap:var(--gns3-density-space-3)}.computes-page__resources[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:4px;font-size:12px}.computes-page__resources[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:16px;height:16px;color:var(--mat-sys-on-surface-variant);font-size:16px}.computes-page__unavailable[_ngcontent-%COMP%], .computes-page__managed-label[_ngcontent-%COMP%], .computes-page__auto-connect-na[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface-variant);font-size:12px}.computes-page__actions-cell[_ngcontent-%COMP%]{gap:4px}button.computes-page__action[_ngcontent-%COMP%]{--compute-action-color: var(--mat-sys-on-surface-variant);width:var(--gns3-density-control-height-sm);height:var(--gns3-density-control-height-sm);--mat-icon-button-state-layer-size: var(--gns3-density-control-height-sm);border-radius:var(--gns3-density-radius-lg);display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;padding:0;--mat-icon-button-icon-size: var(--gns3-action-icon-size);--mat-icon-button-touch-target-size: var(--gns3-density-control-height-sm)}button.computes-page__action[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{width:var(--gns3-action-icon-size);height:var(--gns3-action-icon-size);font-size:var(--gns3-action-icon-size);line-height:var(--gns3-action-icon-size)}button.computes-page__action[_ngcontent-%COMP%]{color:var(--compute-action-color);--mat-icon-button-state-layer-color: var(--compute-action-color)}button.computes-page__action[_ngcontent-%COMP%]:not(:disabled) mat-icon[_ngcontent-%COMP%]{color:var(--compute-action-color)}button.computes-page__action[_ngcontent-%COMP%]:disabled mat-icon[_ngcontent-%COMP%]{color:var(--gns3-button-disabled-label-color)}button.computes-page__action--connect[_ngcontent-%COMP%]{--compute-action-color: var(--mat-sys-secondary)}button.computes-page__action--edit[_ngcontent-%COMP%]{--compute-action-color: var(--mat-sys-primary)}button.computes-page__action--delete[_ngcontent-%COMP%], button.computes-page__action--disconnect[_ngcontent-%COMP%]{--compute-action-color: var(--mat-sys-error)}.computes-page__empty[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:260px;padding:32px;color:var(--mat-sys-on-surface-variant);text-align:center}.computes-page__empty[_ngcontent-%COMP%] > mat-icon[_ngcontent-%COMP%]{width:48px;height:48px;font-size:48px;opacity:.55}.computes-page__empty[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:12px 0 0;color:var(--mat-sys-on-surface);font-size:17px}.computes-page__empty[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:5px 0 16px;font-size:14px}[data-density=compact][_nghost-%COMP%] button.computes-page__button[_ngcontent-%COMP%], [data-density=compact] [_nghost-%COMP%] button.computes-page__button[_ngcontent-%COMP%]{min-height:40px;height:40px}@media(max-width:900px){.computes-page__header[_ngcontent-%COMP%], .computes-page__toolbar[_ngcontent-%COMP%]{align-items:stretch;flex-direction:column}.computes-page__header-actions[_ngcontent-%COMP%]{width:100%}.computes-page__filter[_ngcontent-%COMP%]{flex:1}}@media(max-width:600px){.computes-page__header[_ngcontent-%COMP%]{padding:20px 16px 12px}.computes-page__toolbar[_ngcontent-%COMP%], .computes-page__main[_ngcontent-%COMP%]{padding-inline:16px}.computes-page__header-actions[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}button.computes-page__button[_ngcontent-%COMP%]{width:100%}.computes-page__summary[_ngcontent-%COMP%]{grid-template-columns:1fr}}"],changeDetection:0})}return n})(),BR=(()=>{class n{dialogRef=f(We);data=f(Wt);protocols=[{key:"http",name:"HTTP"},{key:"https",name:"HTTPS"}];computeForm=new Qo({name:new Ge(""),protocol:new Ge("http",[Ue.required]),host:new Ge("",[Ue.required]),port:new Ge(3080,[Ue.required,Ue.min(1),Ue.max(65535)]),user:new Ge("gns3"),password:new Ge("gns3"),autoConnect:new Ge(!1)});isEditMode=!1;constructor(){this.data.compute&&(this.isEditMode=!0,this.computeForm.patchValue({name:this.data.compute.name,protocol:this.data.compute.protocol,host:this.data.compute.host,port:this.data.compute.port,user:this.data.compute.user,password:"",autoConnect:this.data.compute.auto_connect??!1}))}onSaveClick(){if(!this.computeForm.valid)return;let e=this.computeForm.value,t={protocol:e.protocol,host:e.host,port:e.port,user:e.user||void 0,name:e.name||void 0,auto_connect:!!e.autoConnect};e.password&&e.password.trim()!==""&&(t.password=e.password),this.dialogRef.close(t)}onCancelClick(){this.dialogRef.close()}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["app-add-compute-dialog"]],decls:41,vars:8,consts:[["mat-dialog-title",""],[3,"formGroup"],["mat-dialog-content","",1,"gns3-form-stack","gns3-form-layout-fixed"],["appearance","outline",1,"full-width-field"],["matInput","","tabindex","1","formControlName","name","placeholder","My Compute"],["formControlName","protocol"],[3,"value"],["matInput","","tabindex","1","formControlName","host","placeholder","192.168.1.100"],["matInput","","type","number","tabindex","1","formControlName","port","placeholder","3080"],["matInput","","tabindex","1","formControlName","user","placeholder","gns3"],["matInput","","type","password","tabindex","1","formControlName","password","placeholder","gns3"],["formControlName","autoConnect",1,"add-compute-dialog__auto-connect"],["mat-dialog-actions","","align","end"],["mat-button","","tabindex","-1","color","accent",3,"click"],["mat-button","","tabindex","2","mat-raised-button","","color","primary",3,"click","disabled"]],template:function(t,i){t&1&&(r(0,"h2",0),c(1),l(),r(2,"form",1)(3,"div",2)(4,"mat-form-field",3)(5,"mat-label"),c(6,"Name (optional)"),l(),L(7,"input",4),l(),r(8,"mat-form-field",3)(9,"mat-label"),c(10,"Protocol"),l(),r(11,"mat-select",5),Q(12,nie,2,2,"mat-option",6,tie),l(),T(14,iie,2,0,"mat-error"),l(),r(15,"mat-form-field",3)(16,"mat-label"),c(17,"Host"),l(),L(18,"input",7),T(19,oie,2,0,"mat-error"),l(),r(20,"mat-form-field",3)(21,"mat-label"),c(22,"Port"),l(),L(23,"input",8),T(24,aie,2,0,"mat-error"),T(25,rie,2,0,"mat-error"),l(),r(26,"mat-form-field",3)(27,"mat-label"),c(28,"User"),l(),L(29,"input",9),l(),r(30,"mat-form-field",3)(31,"mat-label"),c(32,"Password"),l(),L(33,"input",10),l(),r(34,"mat-slide-toggle",11),c(35," Automatically connect "),l()(),r(36,"div",12)(37,"button",13),_("click",function(){return i.onCancelClick()}),c(38,"Cancel"),l(),r(39,"button",14),_("click",function(){return i.onSaveClick()}),c(40),l()()()),t&2&&(m(),N(i.isEditMode?"Edit Compute":"Add Compute"),m(),v("formGroup",i.computeForm),m(10),K(i.protocols),m(2),E(i.computeForm.get("protocol").hasError("required")?14:-1),m(5),E(i.computeForm.get("host").hasError("required")?19:-1),m(5),E(i.computeForm.get("port").hasError("required")?24:-1),m(),E(i.computeForm.get("port").hasError("min")||i.computeForm.get("port").hasError("max")?25:-1),m(14),v("disabled",i.computeForm.invalid),m(),X(" ",i.isEditMode?"Update":"Add"," "))},dependencies:[fe,It,Ct,At,No,Nt,vt,Ut,Yt,ke,qe,Qe,bt,Y,he,we,Pe,Ve,Wn,ye,Ee,ot,ct,nt,mc,Yc],encapsulation:2,changeDetection:0})}return n})();var sie=["*"];var lie=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],cie=["[mat-card-avatar], [matCardAvatar]",`mat-card-title, mat-card-subtitle, + [mat-card-title], [mat-card-subtitle], + [matCardTitle], [matCardSubtitle]`,"*"],die=new mn("MAT_CARD_CONFIG"),Zn=(()=>{class n{appearance;constructor(){let e=f(die,{optional:!0});this.appearance=e?.appearance||"raised"}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(t,i){t&2&&ne("mat-mdc-card-outlined",i.appearance==="outlined")("mdc-card--outlined",i.appearance==="outlined")("mat-mdc-card-filled",i.appearance==="filled")("mdc-card--filled",i.appearance==="filled")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:sie,decls:1,vars:0,template:function(t,i){t&1&&(pi(),Zt(0))},styles:[`.mat-mdc-card { + display: flex; + flex-direction: column; + box-sizing: border-box; + position: relative; + border-style: solid; + border-width: 0; + background-color: var(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low)); + border-color: var(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low)); + border-radius: var(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium)); + box-shadow: var(--mat-card-elevated-container-elevation, var(--mat-sys-level1)); +} +.mat-mdc-card::after { + position: absolute; + top: 0; + left: 0; + width: 100%; + height: 100%; + border: solid 1px transparent; + content: ""; + display: block; + pointer-events: none; + box-sizing: border-box; + border-radius: var(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium)); +} + +.mat-mdc-card-outlined { + background-color: var(--mat-card-outlined-container-color, var(--mat-sys-surface)); + border-radius: var(--mat-card-outlined-container-shape, var(--mat-sys-corner-medium)); + border-width: var(--mat-card-outlined-outline-width, 1px); + border-color: var(--mat-card-outlined-outline-color, var(--mat-sys-outline-variant)); + box-shadow: var(--mat-card-outlined-container-elevation, var(--mat-sys-level0)); +} +.mat-mdc-card-outlined::after { + border: none; +} + +.mat-mdc-card-filled { + background-color: var(--mat-card-filled-container-color, var(--mat-sys-surface-container-highest)); + border-radius: var(--mat-card-filled-container-shape, var(--mat-sys-corner-medium)); + box-shadow: var(--mat-card-filled-container-elevation, var(--mat-sys-level0)); +} + +.mdc-card__media { + position: relative; + box-sizing: border-box; + background-repeat: no-repeat; + background-position: center; + background-size: cover; +} +.mdc-card__media::before { + display: block; + content: ""; +} +.mdc-card__media:first-child { + border-top-left-radius: inherit; + border-top-right-radius: inherit; +} +.mdc-card__media:last-child { + border-bottom-left-radius: inherit; + border-bottom-right-radius: inherit; +} + +.mat-mdc-card-actions { + display: flex; + flex-direction: row; + align-items: center; + box-sizing: border-box; + min-height: 52px; + padding: 8px; +} + +.mat-mdc-card-title { + font-family: var(--mat-card-title-text-font, var(--mat-sys-title-large-font)); + line-height: var(--mat-card-title-text-line-height, var(--mat-sys-title-large-line-height)); + font-size: var(--mat-card-title-text-size, var(--mat-sys-title-large-size)); + letter-spacing: var(--mat-card-title-text-tracking, var(--mat-sys-title-large-tracking)); + font-weight: var(--mat-card-title-text-weight, var(--mat-sys-title-large-weight)); +} + +.mat-mdc-card-subtitle { + color: var(--mat-card-subtitle-text-color, var(--mat-sys-on-surface)); + font-family: var(--mat-card-subtitle-text-font, var(--mat-sys-title-medium-font)); + line-height: var(--mat-card-subtitle-text-line-height, var(--mat-sys-title-medium-line-height)); + font-size: var(--mat-card-subtitle-text-size, var(--mat-sys-title-medium-size)); + letter-spacing: var(--mat-card-subtitle-text-tracking, var(--mat-sys-title-medium-tracking)); + font-weight: var(--mat-card-subtitle-text-weight, var(--mat-sys-title-medium-weight)); +} + +.mat-mdc-card-title, +.mat-mdc-card-subtitle { + display: block; + margin: 0; +} +.mat-mdc-card-avatar ~ .mat-mdc-card-header-text .mat-mdc-card-title, +.mat-mdc-card-avatar ~ .mat-mdc-card-header-text .mat-mdc-card-subtitle { + padding: 16px 16px 0; +} + +.mat-mdc-card-header { + display: flex; + padding: 16px 16px 0; +} + +.mat-mdc-card-content { + display: block; + padding: 0 16px; +} +.mat-mdc-card-content:first-child { + padding-top: 16px; +} +.mat-mdc-card-content:last-child { + padding-bottom: 16px; +} + +.mat-mdc-card-title-group { + display: flex; + justify-content: space-between; + width: 100%; +} + +.mat-mdc-card-avatar { + height: 40px; + width: 40px; + border-radius: 50%; + flex-shrink: 0; + margin-bottom: 16px; + object-fit: cover; +} +.mat-mdc-card-avatar ~ .mat-mdc-card-header-text .mat-mdc-card-subtitle, +.mat-mdc-card-avatar ~ .mat-mdc-card-header-text .mat-mdc-card-title { + line-height: normal; +} + +.mat-mdc-card-sm-image { + width: 80px; + height: 80px; +} + +.mat-mdc-card-md-image { + width: 112px; + height: 112px; +} + +.mat-mdc-card-lg-image { + width: 152px; + height: 152px; +} + +.mat-mdc-card-xl-image { + width: 240px; + height: 240px; +} + +.mat-mdc-card-subtitle ~ .mat-mdc-card-title, +.mat-mdc-card-title ~ .mat-mdc-card-subtitle, +.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title, +.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle, +.mat-mdc-card-title-group .mat-mdc-card-title, +.mat-mdc-card-title-group .mat-mdc-card-subtitle { + padding-top: 0; +} + +.mat-mdc-card-content > :last-child:not(.mat-mdc-card-footer) { + margin-bottom: 0; +} + +.mat-mdc-card-actions-align-end { + justify-content: flex-end; +} +`],encapsulation:2,changeDetection:0})}return n})(),Zc=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=yt({type:n,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return n})();var Tl=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=yt({type:n,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return n})();var k1=(()=>{class n{align="start";static \u0275fac=function(t){return new(t||n)};static \u0275dir=yt({type:n,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(t,i){t&2&&ne("mat-mdc-card-actions-align-end",i.align==="end")},inputs:{align:"align"},exportAs:["matCardActions"]})}return n})(),Jc=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:cie,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(t,i){t&1&&(pi(lie),Zt(0),ii(1,"div",0),Zt(2,1),Si(),Zt(3,2))},encapsulation:2,changeDetection:0})}return n})();var hn=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=on({type:n});static \u0275inj=nn({imports:[Vi]})}return n})();var dh=(()=>{class n{dataChange=new cn([]);constructor(){}get data(){return this.dataChange.value}addController(e){let t=this.data.slice();t.push(e),this.dataChange.next(t)}addControllers(e){this.dataChange.next(e)}remove(e){let t=this.data.indexOf(e);t>=0&&(this.data.splice(t,1),this.dataChange.next(this.data.slice()))}find(e){return this.data.find(t=>t.name===e)}findById(e){return this.data.find(t=>t.id===e)}findIndex(e){return this.data.findIndex(t=>t.name===e)}findIndexById(e){return this.data.findIndex(t=>t.id===e)}update(e){let t=this.findIndexById(e.id);t>=0&&(this.data[t]=e,this.dataChange.next(this.data.slice()))}static \u0275fac=function(t){return new(t||n)};static \u0275prov=J({token:n,factory:n.\u0275fac})}return n})();var $R=(n,o)=>o.key;function mie(n,o){n&1&&(r(0,"mat-error"),c(1,"You must enter a value"),l())}function pie(n,o){if(n&1&&(r(0,"mat-option",10),c(1),l()),n&2){let e=o.$implicit;v("value",e.key),m(),X(" ",e.name," ")}}function uie(n,o){if(n&1&&(r(0,"mat-option",10),c(1),l()),n&2){let e=o.$implicit;v("value",e.key),m(),X(" ",e.name," ")}}var P1=(()=>{class n{controllerService=f(_t);controllerDatabase=f(dh);route=f($t);router=f(Ft);toasterService=f(re);cdr=f(oe);controllerOptionsVisibility=z(!1);controllerIp;controllerPort;projectId;protocols=[{key:"http:",name:"HTTP"},{key:"https:",name:"HTTPS"}];locations=[{key:"local",name:"Local"},{key:"remote",name:"Remote"}];controllerForm=new Qo({name:new Ge("",[Ue.required]),location:new Ge(""),protocol:new Ge("http:")});constructor(){}async ngOnInit(){this.controllerService.isServiceInitialized&&this.getControllers(),this.controllerService.serviceInitialized.subscribe(async e=>{e&&this.getControllers()})}async getControllers(){this.controllerIp=this.route.snapshot.paramMap.get("controller_ip"),this.controllerPort=+this.route.snapshot.paramMap.get("controller_port"),this.projectId=this.route.snapshot.paramMap.get("project_id");try{let t=(await this.controllerService.findAll()).filter(i=>i.host===this.controllerIp&&i.port===this.controllerPort)[0];t?this.router.navigate(["/controller",t.id,"project",this.projectId]):(this.controllerOptionsVisibility.set(!0),this.cdr.markForCheck())}catch(e){let t=e.error?.message||e.message||"Failed to load controllers";this.toasterService.error(t),this.cdr.markForCheck()}}createController(){if(!this.controllerForm.get("name").hasError&&!this.controllerForm.get("location").hasError&&!this.controllerForm.get("protocol").hasError){this.toasterService.error("Please use correct values");return}let e=new m5;e.host=this.controllerIp,e.port=this.controllerPort,e.name=this.controllerForm.get("name").value,e.location=this.controllerForm.get("location").value,e.protocol=this.controllerForm.get("protocol").value,this.controllerService.create(e).then(t=>{this.toasterService.success(`Controller "${t.name}" added.`),this.router.navigate(["/controller",t.id,"project",this.projectId])},t=>{let i=t.error?.message||t.message||"Failed to create controller";this.toasterService.error(i),this.cdr.markForCheck()})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["app-direct-link"]],decls:22,vars:3,consts:[[1,"content",3,"hidden"],[1,"default-header"],[1,"row"],[1,"col"],[1,"default-content"],[1,"matCard"],[1,"gns3-form-stack","gns3-form-layout-fixed",3,"formGroup"],["appearance","outline"],["matInput","","tabindex","1","formControlName","name","placeholder","Name"],["placeholder","Location","formControlName","location"],[3,"value"],["placeholder","Protocol","formControlName","protocol"],[1,"buttons-bar"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,i){t&1&&(r(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1",3),c(4,"Add new controller"),l()()(),r(5,"div",4)(6,"mat-card",5)(7,"form",6)(8,"mat-form-field",7),L(9,"input",8),T(10,mie,2,0,"mat-error"),l(),r(11,"mat-form-field",7)(12,"mat-select",9),Q(13,pie,2,2,"mat-option",10,$R),l()(),r(15,"mat-form-field",7)(16,"mat-select",11),Q(17,uie,2,2,"mat-option",10,$R),l()()()(),r(19,"div",12)(20,"button",13),_("click",function(){return i.createController()}),c(21,"Add controller"),l()()()()),t&2&&(v("hidden",!i.controllerOptionsVisibility()),m(7),v("formGroup",i.controllerForm),m(3),E(i.controllerForm.get("name").hasError("required")?10:-1),m(3),K(i.locations),m(4),K(i.protocols))},dependencies:[fe,It,Ct,At,Nt,vt,Ut,Yt,vn,hn,Zn,we,Pe,Wn,ye,Ee,ot,ct,nt,Ho,Y,he],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%}"],changeDetection:0})}return n})();var pE=new mn("CdkAccordion"),HR=(()=>{class n{_stateChanges=new Ye;_openCloseAllActions=new Ye;id=f(ua).getId("cdk-accordion-");multi=!1;openAll(){this.multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}static \u0275fac=function(t){return new(t||n)};static \u0275dir=yt({type:n,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",zt]},exportAs:["cdkAccordion"],features:[un([{provide:pE,useExisting:n}]),Nn]})}return n})(),UR=(()=>{class n{accordion=f(pE,{optional:!0,skipSelf:!0});_changeDetectorRef=f(oe);_expansionDispatcher=f(pg);_openCloseAllSubscription=Oo.EMPTY;closed=new be;opened=new be;destroyed=new be;expandedChange=new be;id=f(ua).getId("cdk-accordion-child-");get expanded(){return this._expanded}set expanded(e){if(this._expanded!==e){if(this._expanded=e,this.expandedChange.emit(e),e){this.opened.emit();let t=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,t)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}_expanded=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=z(!1);_removeUniqueSelectionListener=()=>{};constructor(){}ngOnInit(){this._removeUniqueSelectionListener=this._expansionDispatcher.listen((e,t)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===t&&this.id!==e&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}static \u0275fac=function(t){return new(t||n)};static \u0275dir=yt({type:n,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",zt],disabled:[2,"disabled","disabled",zt]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[un([{provide:pE,useValue:void 0}])]})}return n})(),T1=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=on({type:n});static \u0275inj=nn({})}return n})();var gie=["body"],hie=["bodyWrapper"],_ie=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],fie=["mat-expansion-panel-header","*","mat-action-row"];function vie(n,o){}var Cie=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],bie=["mat-panel-title","mat-panel-description","*"];function xie(n,o){n&1&&(ii(0,"span",1),Mi(),ii(1,"svg",2),kr(2,"path",3),Si()())}var uE=new mn("MAT_ACCORDION"),WR=new mn("MAT_EXPANSION_PANEL"),yie=(()=>{class n{_template=f(pa);_expansionPanel=f(WR,{optional:!0});constructor(){}static \u0275fac=function(t){return new(t||n)};static \u0275dir=yt({type:n,selectors:[["ng-template","matExpansionPanelContent",""]]})}return n})(),GR=new mn("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),jd=(()=>{class n extends UR{_viewContainerRef=f(Wo);_animationsDisabled=$a();_document=f(Do);_ngZone=f(Gi);_elementRef=f(Kt);_renderer=f(qi);_cleanupTransitionEnd;get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=e}_hideToggle=!1;get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_togglePosition;afterExpand=new be;afterCollapse=new be;_inputChanges=new Ye;accordion=f(uE,{optional:!0,skipSelf:!0});_lazyContent;_body;_bodyWrapper;_portal;_headerId=f(ua).getId("mat-expansion-panel-header-");constructor(){super();let e=f(GR,{optional:!0});this._expansionDispatcher=f(pg),e&&(this.hideToggle=e.hideToggle)}_hasSpacing(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(Di(null),Yi(()=>this.expanded&&!this._portal),Gr(1)).subscribe(()=>{this._portal=new lg(this._lazyContent._template,this._viewContainerRef)}),this._setupAnimationEvents()}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransitionEnd?.(),this._inputChanges.complete()}_containsFocus(){if(this._body){let e=this._document.activeElement,t=this._body.nativeElement;return e===t||t.contains(e)}return!1}_transitionEndListener=({target:e,propertyName:t})=>{e===this._bodyWrapper?.nativeElement&&t==="grid-template-rows"&&this._ngZone.run(()=>{this.expanded?this.afterExpand.emit():this.afterCollapse.emit()})};_setupAnimationEvents(){this._ngZone.runOutsideAngular(()=>{this._animationsDisabled?(this.opened.subscribe(()=>this._ngZone.run(()=>this.afterExpand.emit())),this.closed.subscribe(()=>this._ngZone.run(()=>this.afterCollapse.emit()))):setTimeout(()=>{let e=this._elementRef.nativeElement;this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this._transitionEndListener),e.classList.add("mat-expansion-panel-animations-enabled")},200)})}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["mat-expansion-panel"]],contentQueries:function(t,i,a){if(t&1&&Zi(a,yie,5),t&2){let s;gt(s=ht())&&(i._lazyContent=s.first)}},viewQuery:function(t,i){if(t&1&&Kn(gie,5)(hie,5),t&2){let a;gt(a=ht())&&(i._body=a.first),gt(a=ht())&&(i._bodyWrapper=a.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(t,i){t&2&&ne("mat-expanded",i.expanded)("mat-expansion-panel-spacing",i._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",zt],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[un([{provide:uE,useValue:void 0},{provide:WR,useExisting:n}]),mi,Nn],ngContentSelectors:fie,decls:9,vars:4,consts:[["bodyWrapper",""],["body",""],[1,"mat-expansion-panel-content-wrapper"],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,i){t&1&&(pi(_ie),Zt(0),r(1,"div",2,0)(3,"div",3,1)(5,"div",4),Zt(6,1),se(7,vie,0,0,"ng-template",5),l(),Zt(8,2),l()()),t&2&&(m(),Ce("inert",i.expanded?null:""),m(2),v("id",i.id),Ce("aria-labelledby",i._headerId),m(4),v("cdkPortalOutlet",i._portal))},dependencies:[HC],styles:[`.mat-expansion-panel { + box-sizing: content-box; + display: block; + margin: 0; + overflow: hidden; +} +.mat-expansion-panel.mat-expansion-panel-animations-enabled { + transition: margin 225ms cubic-bezier(0.4, 0, 0.2, 1), box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1); +} +.mat-expansion-panel { + position: relative; + background: var(--mat-expansion-container-background-color, var(--mat-sys-surface)); + color: var(--mat-expansion-container-text-color, var(--mat-sys-on-surface)); + border-radius: var(--mat-expansion-container-shape, 12px); +} +.mat-expansion-panel:not([class*=mat-elevation-z]) { + box-shadow: var(--mat-expansion-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)); +} +.mat-accordion .mat-expansion-panel:not(.mat-expanded), .mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing) { + border-radius: 0; +} +.mat-accordion .mat-expansion-panel:first-of-type { + border-top-right-radius: var(--mat-expansion-container-shape, 12px); + border-top-left-radius: var(--mat-expansion-container-shape, 12px); +} +.mat-accordion .mat-expansion-panel:last-of-type { + border-bottom-right-radius: var(--mat-expansion-container-shape, 12px); + border-bottom-left-radius: var(--mat-expansion-container-shape, 12px); +} +@media (forced-colors: active) { + .mat-expansion-panel { + outline: solid 1px; + } +} + +.mat-expansion-panel-content-wrapper { + display: grid; + grid-template-rows: 0fr; + grid-template-columns: 100%; +} +.mat-expansion-panel-animations-enabled .mat-expansion-panel-content-wrapper { + transition: grid-template-rows 225ms cubic-bezier(0.4, 0, 0.2, 1); +} +.mat-expansion-panel.mat-expanded > .mat-expansion-panel-content-wrapper { + grid-template-rows: 1fr; +} +@supports not (grid-template-rows: 0fr) { + .mat-expansion-panel-content-wrapper { + height: 0; + } + .mat-expansion-panel.mat-expanded > .mat-expansion-panel-content-wrapper { + height: auto; + } +} +@media print { + .mat-expansion-panel-content-wrapper { + height: 0; + } + .mat-expansion-panel.mat-expanded > .mat-expansion-panel-content-wrapper { + height: auto; + } +} + +.mat-expansion-panel-content { + display: flex; + flex-direction: column; + overflow: visible; + min-height: 0; + visibility: hidden; +} +.mat-expansion-panel-animations-enabled .mat-expansion-panel-content { + transition: visibility 190ms linear; +} +.mat-expansion-panel.mat-expanded > .mat-expansion-panel-content-wrapper > .mat-expansion-panel-content { + visibility: visible; +} +.mat-expansion-panel-content { + font-family: var(--mat-expansion-container-text-font, var(--mat-sys-body-large-font)); + font-size: var(--mat-expansion-container-text-size, var(--mat-sys-body-large-size)); + font-weight: var(--mat-expansion-container-text-weight, var(--mat-sys-body-large-weight)); + line-height: var(--mat-expansion-container-text-line-height, var(--mat-sys-body-large-line-height)); + letter-spacing: var(--mat-expansion-container-text-tracking, var(--mat-sys-body-large-tracking)); +} + +.mat-expansion-panel-body { + padding: 0 24px 16px; +} + +.mat-expansion-panel-spacing { + margin: 16px 0; +} +.mat-accordion > .mat-expansion-panel-spacing:first-child, .mat-accordion > *:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing { + margin-top: 0; +} +.mat-accordion > .mat-expansion-panel-spacing:last-child, .mat-accordion > *:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing { + margin-bottom: 0; +} + +.mat-action-row { + border-top-style: solid; + border-top-width: 1px; + display: flex; + flex-direction: row; + justify-content: flex-end; + padding: 16px 8px 16px 24px; + border-top-color: var(--mat-expansion-actions-divider-color, var(--mat-sys-outline)); +} +.mat-action-row .mat-button-base, +.mat-action-row .mat-mdc-button-base { + margin-left: 8px; +} +[dir=rtl] .mat-action-row .mat-button-base, +[dir=rtl] .mat-action-row .mat-mdc-button-base { + margin-left: 0; + margin-right: 8px; +} +`],encapsulation:2,changeDetection:0})}return n})();var $d=(()=>{class n{panel=f(jd,{host:!0});_element=f(Kt);_focusMonitor=f(hs);_changeDetectorRef=f(oe);_parentChangeSubscription=Oo.EMPTY;constructor(){f(Ta).load(Xr);let e=this.panel,t=f(GR,{optional:!0}),i=f(new cm("tabindex"),{optional:!0}),a=e.accordion?e.accordion._stateChanges.pipe(Yi(s=>!!(s.hideToggle||s.togglePosition))):eg;this.tabIndex=parseInt(i||"")||0,this._parentChangeSubscription=ro(e.opened,e.closed,a,e._inputChanges.pipe(Yi(s=>!!(s.hideToggle||s.disabled||s.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(Yi(()=>e._containsFocus())).subscribe(()=>this._focusMonitor.focusVia(this._element,"program")),t&&(this.expandedHeight=t.expandedHeight,this.collapsedHeight=t.collapsedHeight)}expandedHeight;collapsedHeight;tabIndex=0;get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){let e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:gs(e)||(e.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e);return}}focus(e,t){e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:13,hostBindings:function(t,i){t&1&&_("click",function(){return i._toggle()})("keydown",function(s){return i._keydown(s)}),t&2&&(Ce("id",i.panel._headerId)("tabindex",i.disabled?-1:i.tabIndex)("aria-controls",i._getPanelId())("aria-expanded",i._isExpanded())("aria-disabled",i.panel.disabled),Tt("height",i._getHeaderHeight()),ne("mat-expanded",i._isExpanded())("mat-expansion-toggle-indicator-after",i._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",i._getTogglePosition()==="before"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:qo(e)]},ngContentSelectors:bie,decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 -960 960 960","aria-hidden","true","focusable","false"],["d","M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(t,i){t&1&&(pi(Cie),ii(0,"span",0),Zt(1),Zt(2,1),Zt(3,2),Si(),T(4,xie,3,0,"span",1)),t&2&&(ne("mat-content-hide-toggle",!i._showToggle()),m(4),E(i._showToggle()?4:-1))},styles:[`.mat-expansion-panel-header { + display: flex; + flex-direction: row; + align-items: center; + padding: 0 24px; + border-radius: inherit; +} +.mat-expansion-panel-animations-enabled .mat-expansion-panel-header { + transition: height 225ms cubic-bezier(0.4, 0, 0.2, 1); +} +.mat-expansion-panel-header::before { + border-radius: inherit; +} +.mat-expansion-panel-header { + height: var(--mat-expansion-header-collapsed-state-height, 48px); + font-family: var(--mat-expansion-header-text-font, var(--mat-sys-title-medium-font)); + font-size: var(--mat-expansion-header-text-size, var(--mat-sys-title-medium-size)); + font-weight: var(--mat-expansion-header-text-weight, var(--mat-sys-title-medium-weight)); + line-height: var(--mat-expansion-header-text-line-height, var(--mat-sys-title-medium-line-height)); + letter-spacing: var(--mat-expansion-header-text-tracking, var(--mat-sys-title-medium-tracking)); +} +.mat-expansion-panel-header.mat-expanded { + height: var(--mat-expansion-header-expanded-state-height, 64px); +} +.mat-expansion-panel-header[aria-disabled=true] { + color: var(--mat-expansion-header-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent)); +} +.mat-expansion-panel-header:not([aria-disabled=true]) { + cursor: pointer; +} +.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover { + background: var(--mat-expansion-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent)); +} +@media (hover: none) { + .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover { + background: var(--mat-expansion-container-background-color, var(--mat-sys-surface)); + } +} +.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused, .mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused { + background: var(--mat-expansion-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent)); +} +.mat-expansion-panel-header._mat-animation-noopable { + transition: none; +} +.mat-expansion-panel-header:focus, .mat-expansion-panel-header:hover { + outline: none; +} +.mat-expansion-panel-header.mat-expanded:focus, .mat-expansion-panel-header.mat-expanded:hover { + background: inherit; +} +.mat-expansion-panel-header.mat-expansion-toggle-indicator-before { + flex-direction: row-reverse; +} +.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator { + margin: 0 16px 0 0; +} +[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator { + margin: 0 0 0 16px; +} + +.mat-content { + display: flex; + flex: 1; + flex-direction: row; + overflow: hidden; +} +.mat-content.mat-content-hide-toggle { + margin-right: 8px; +} +[dir=rtl] .mat-content.mat-content-hide-toggle { + margin-right: 0; + margin-left: 8px; +} +.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle { + margin-left: 24px; + margin-right: 0; +} +[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle { + margin-right: 24px; + margin-left: 0; +} + +.mat-expansion-panel-header-title { + color: var(--mat-expansion-header-text-color, var(--mat-sys-on-surface)); +} + +.mat-expansion-panel-header-title, +.mat-expansion-panel-header-description { + display: flex; + flex-grow: 1; + flex-basis: 0; + margin-right: 16px; + align-items: center; +} +[dir=rtl] .mat-expansion-panel-header-title, +[dir=rtl] .mat-expansion-panel-header-description { + margin-right: 0; + margin-left: 16px; +} +.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title, +.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description { + color: inherit; +} + +.mat-expansion-panel-header-description { + flex-grow: 2; + color: var(--mat-expansion-header-description-color, var(--mat-sys-on-surface-variant)); +} + +.mat-expansion-panel-animations-enabled .mat-expansion-indicator { + transition: transform 225ms cubic-bezier(0.4, 0, 0.2, 1); +} +.mat-expansion-panel-header.mat-expanded .mat-expansion-indicator { + transform: rotate(180deg); +} +.mat-expansion-indicator::after { + border-style: solid; + border-width: 0 2px 2px 0; + content: ""; + padding: 3px; + transform: rotate(45deg); + vertical-align: middle; + color: var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant)); + display: var(--mat-expansion-legacy-header-indicator-display, none); +} +.mat-expansion-indicator svg { + width: 24px; + height: 24px; + margin: 0 -8px; + vertical-align: middle; + fill: var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant)); + display: var(--mat-expansion-header-indicator-display, inline-block); +} + +@media (forced-colors: active) { + .mat-expansion-panel-content { + border-top: 1px solid; + border-top-left-radius: 0; + border-top-right-radius: 0; + } +} +`],encapsulation:2,changeDetection:0})}return n})(),qR=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=yt({type:n,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]})}return n})(),Wm=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275dir=yt({type:n,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return n})(),ph=(()=>{class n extends HR{_keyManager;_ownHeaders=new ec;_headers;hideToggle=!1;displayMode="default";togglePosition="after";ngAfterContentInit(){this._headers.changes.pipe(Di(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(t=>t.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new dg(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}static \u0275fac=(()=>{let e;return function(i){return(e||(e=yi(n)))(i||n)}})();static \u0275dir=yt({type:n,selectors:[["mat-accordion"]],contentQueries:function(t,i,a){if(t&1&&Zi(a,$d,5),t&2){let s;gt(s=ht())&&(i._headers=s)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(t,i){t&2&&ne("mat-accordion-multi",i.multi)},inputs:{hideToggle:[2,"hideToggle","hideToggle",zt],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[un([{provide:uE,useExisting:n}]),mi]})}return n})(),El=(()=>{class n{static \u0275fac=function(t){return new(t||n)};static \u0275mod=on({type:n});static \u0275inj=nn({imports:[T1,UC,Vi]})}return n})();var O1=(()=>{class n{httpClient=f(us);sanitizer=f(Pr);toasterService=f(re);cd=f(oe);thirdpartylicenses=z("");releasenotes=z("");ngOnInit(){this.httpClient.get(window.location.href+"/3rdpartylicenses.txt",{responseType:"text"}).subscribe({next:e=>{let t=e.replace(new RegExp(` +`,"g"),"
");this.thirdpartylicenses.set(this.sanitizer.bypassSecurityTrustHtml(t))},error:e=>{if(e.status===404)this.thirdpartylicenses.set("Download Solar-PuTTY");else{let t=e.error?.message||e.message||"Failed to load third party licenses";this.toasterService.error(t)}this.cd.markForCheck()}}),this.httpClient.get("ReleaseNotes.txt",{responseType:"text"}).subscribe({next:e=>{let t=e.replace(new RegExp(` +`,"g"),"
");this.releasenotes.set(this.sanitizer.bypassSecurityTrustHtml(t))},error:e=>{let t=e.error?.message||e.message||"Failed to load release notes";this.toasterService.error(t),this.cd.markForCheck()}})}goToDocumentation(){window.location.href="https://docs.gns3.com/docs-3.1-en"}static \u0275fac=function(t){return new(t||n)};static \u0275cmp=V({type:n,selectors:[["app-help"]],decls:107,vars:2,consts:[[1,"help-page"],[1,"help-page__header"],[1,"help-page__title"],["mat-raised-button","","color","primary",1,"help-page__button",3,"click"],[1,"help-page__main"],[1,"help-page__overview"],[1,"help-page__overview-icon"],[1,"help-page__panel"],["multi",""],[1,"help-page__panel-title"],[1,"help-page__shortcuts"],[1,"help-page__shortcut"],["href","https://downloads.solarwinds.com/solarwinds/GNS3/Solar-PuTTY/Solar-PuTTY-Optional.exe",1,"help-page__link"],[3,"innerHTML"],[1,"help-page__release-notes",3,"innerHTML"]],template:function(t,i){t&1&&(r(0,"div",0)(1,"header",1)(2,"h1",2),c(3,"Help"),l(),r(4,"button",3),_("click",function(){return i.goToDocumentation()}),r(5,"mat-icon"),c(6,"open_in_new"),l(),c(7," Documentation "),l()(),r(8,"main",4)(9,"section",5)(10,"span",6)(11,"mat-icon"),c(12,"help_outline"),l()(),r(13,"div")(14,"h2"),c(15,"GNS3 Web UI help"),l(),r(16,"p"),c(17,"Find keyboard shortcuts, third-party component information, and release notes."),l()()(),r(18,"section",7)(19,"mat-accordion",8)(20,"mat-expansion-panel")(21,"mat-expansion-panel-header")(22,"mat-panel-title")(23,"span",9)(24,"mat-icon"),c(25,"keyboard"),l(),c(26," Useful shortcuts "),l()()(),r(27,"div",10)(28,"div",11)(29,"span")(30,"kbd"),c(31,"Ctrl"),l(),r(32,"kbd"),c(33,"+"),l()(),r(34,"span"),c(35,"Zoom in"),l()(),r(36,"div",11)(37,"span")(38,"kbd"),c(39,"Ctrl"),l(),r(40,"kbd"),c(41,"-"),l()(),r(42,"span"),c(43,"Zoom out"),l()(),r(44,"div",11)(45,"span")(46,"kbd"),c(47,"Ctrl"),l(),r(48,"kbd"),c(49,"0"),l()(),r(50,"span"),c(51,"Reset zoom"),l()(),r(52,"div",11)(53,"span")(54,"kbd"),c(55,"Ctrl"),l(),r(56,"kbd"),c(57,"H"),l()(),r(58,"span"),c(59,"Hide toolbar"),l()(),r(60,"div",11)(61,"span")(62,"kbd"),c(63,"Ctrl"),l(),r(64,"kbd"),c(65,"A"),l()(),r(66,"span"),c(67,"Select all map items"),l()(),r(68,"div",11)(69,"span")(70,"kbd"),c(71,"Ctrl"),l(),r(72,"kbd"),c(73,"Shift"),l(),r(74,"kbd"),c(75,"A"),l()(),r(76,"span"),c(77,"Deselect all map items"),l()(),r(78,"div",11)(79,"span")(80,"kbd"),c(81,"Ctrl"),l(),r(82,"kbd"),c(83,"Shift"),l(),r(84,"kbd"),c(85,"S"),l()(),r(86,"span"),c(87,"Open preferences"),l()()()(),r(88,"mat-expansion-panel")(89,"mat-expansion-panel-header")(90,"mat-panel-title")(91,"span",9)(92,"mat-icon"),c(93,"extension"),l(),c(94," Third-party components "),l()()(),r(95,"a",12)(96,"mat-icon"),c(97,"download"),l(),L(98,"span",13),l()(),r(99,"mat-expansion-panel")(100,"mat-expansion-panel-header")(101,"mat-panel-title")(102,"span",9)(103,"mat-icon"),c(104,"description"),l(),c(105," Release notes "),l()()(),L(106,"div",14),l()()()()()),t&2&&(m(98),v("innerHTML",i.thirdpartylicenses(),lf),m(8),v("innerHTML",i.releasenotes(),lf))},dependencies:[Y,he,El,ph,jd,$d,Wm,ie,ce],styles:["[_nghost-%COMP%]{display:block;width:100%;background:transparent}.help-page[_ngcontent-%COMP%]{animation:none}.help-page__header[_ngcontent-%COMP%], .help-page__main[_ngcontent-%COMP%]{max-width:1600px;margin-inline:auto}.help-page__header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 20px 16px}.help-page__title[_ngcontent-%COMP%]{margin:0;color:var(--mat-sys-on-surface);font-size:var(--gns3-density-page-title-size);font-weight:500;font-family:var(--mat-sys-title-large-font, Roboto),sans-serif;line-height:1.2;letter-spacing:normal;white-space:nowrap}button.help-page__button[_ngcontent-%COMP%]{height:var(--gns3-density-control-height);min-height:var(--gns3-density-control-height);padding-inline:var(--gns3-density-space-4);border-radius:var(--gns3-density-radius-lg);font-family:var(--mat-sys-label-large-font, Roboto),sans-serif;font-size:var(--gns3-button-label-size);font-weight:var(--gns3-button-label-weight);line-height:var(--gns3-button-label-line-height);letter-spacing:var(--gns3-button-label-spacing);text-transform:none;--mat-button-filled-container-height: var(--gns3-density-control-height);--mat-button-filled-label-text-size: var(--gns3-button-label-size);--mat-button-filled-label-text-weight: var(--gns3-button-label-weight);--mat-button-filled-label-text-tracking: var(--gns3-button-label-spacing);--mat-button-outlined-container-height: var(--gns3-density-control-height);--mat-button-outlined-label-text-size: var(--gns3-button-label-size);--mat-button-outlined-label-text-weight: var(--gns3-button-label-weight);--mat-button-outlined-label-text-tracking: var(--gns3-button-label-spacing);--mat-button-protected-container-height: var(--gns3-density-control-height);--mat-button-protected-label-text-size: var(--gns3-button-label-size);--mat-button-protected-label-text-weight: var(--gns3-button-label-weight);--mat-button-protected-label-text-tracking: var(--gns3-button-label-spacing);--mat-button-text-container-height: var(--gns3-density-control-height);--mat-button-text-label-text-size: var(--gns3-button-label-size);--mat-button-text-label-text-weight: var(--gns3-button-label-weight);--mat-button-text-label-text-tracking: var(--gns3-button-label-spacing)}.help-page__main[_ngcontent-%COMP%]{padding:0 20px 24px}.help-page__overview[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--gns3-density-card-gap);margin-bottom:var(--gns3-density-card-gap);padding:16px 18px;border:1px solid var(--mat-sys-outline-variant);border-radius:14px;background:var(--mat-sys-surface-container)}.help-page__overview[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;color:var(--mat-sys-on-surface);font-size:17px;font-weight:600}.help-page__overview[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:3px 0 0;color:var(--mat-sys-on-surface-variant);font-size:14px}.help-page__overview-icon[_ngcontent-%COMP%]{display:grid;flex:0 0 42px;width:42px;height:42px;place-items:center;border-radius:11px;color:var(--mat-sys-on-primary-container);background:var(--mat-sys-primary-container)}.help-page__panel[_ngcontent-%COMP%]{overflow:hidden;border-radius:16px;background:var(--mat-sys-surface);border:var(--gns3-surface-border);box-shadow:none}.mat-expansion-panel[_ngcontent-%COMP%]{border-bottom:1px solid var(--mat-sys-outline-variant);border-radius:0;background:var(--mat-sys-surface);box-shadow:none}.mat-expansion-panel[_ngcontent-%COMP%]:last-child{border-bottom:0}.mat-expansion-panel-header[_ngcontent-%COMP%]{min-height:var(--gns3-density-section-header-height);padding-inline:20px;color:var(--mat-sys-on-surface);background:color-mix(in srgb,var(--mat-sys-primary-container) 28%,var(--mat-sys-surface))}.mat-expansion-panel[_ngcontent-%COMP%] .mat-expansion-panel-header[_ngcontent-%COMP%]:hover{background:color-mix(in srgb,var(--mat-sys-primary-container) 45%,var(--mat-sys-surface))}.mat-expansion-panel-header-title[_ngcontent-%COMP%]{color:var(--mat-sys-on-surface)}.help-page__panel-title[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:var(--gns3-density-space-3);font-size:15px;font-weight:600}.help-page__panel-title[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:var(--mat-sys-primary)}.help-page__shortcuts[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;overflow:hidden;margin:4px 0 8px;border:1px solid var(--mat-sys-outline-variant);border-radius:12px;background:var(--mat-sys-outline-variant)}.help-page__shortcut[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;min-height:54px;gap:var(--gns3-density-card-gap);padding:10px 14px;color:var(--mat-sys-on-surface);background:var(--mat-sys-surface-container-low);font-size:14px}.help-page__shortcut[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:first-child{display:flex;flex:0 0 auto;align-items:center;gap:5px}kbd[_ngcontent-%COMP%]{min-width:25px;padding:4px 7px;border:1px solid var(--mat-sys-outline-variant);border-bottom-width:2px;border-radius:6px;color:var(--mat-sys-on-surface);background:var(--mat-sys-surface-container-highest);font:inherit;font-size:12px;font-weight:600;line-height:1;text-align:center}.help-page__link[_ngcontent-%COMP%]{display:inline-flex;align-items:flex-start;max-width:100%;gap:8px;padding-block:8px;color:var(--mat-sys-primary);font-size:14px;text-decoration:none}.help-page__link[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{flex:0 0 auto;width:19px;height:19px;font-size:19px}.help-page__link[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{min-width:0;overflow-wrap:anywhere}.help-page__link[_ngcontent-%COMP%]:hover{text-decoration:underline}.help-page__release-notes[_ngcontent-%COMP%]{max-height:min(60vh,640px);overflow:auto;padding:8px 4px 12px;color:var(--mat-sys-on-surface);font-size:14px;line-height:1.6;overflow-wrap:anywhere}[data-density=compact][_nghost-%COMP%] button.help-page__button[_ngcontent-%COMP%], [data-density=compact] [_nghost-%COMP%] button.help-page__button[_ngcontent-%COMP%]{min-height:40px;height:40px}[data-density=compact][_nghost-%COMP%] .mat-expansion-panel-header[_ngcontent-%COMP%], [data-density=compact] [_nghost-%COMP%] .mat-expansion-panel-header[_ngcontent-%COMP%]{min-height:52px}@media(max-width:800px){.help-page__shortcuts[_ngcontent-%COMP%]{grid-template-columns:1fr}}@media(max-width:600px){.help-page__header[_ngcontent-%COMP%]{align-items:stretch;flex-direction:column;padding:20px 16px 12px}.help-page__main[_ngcontent-%COMP%]{padding-inline:16px}button.help-page__button[_ngcontent-%COMP%]{width:100%}.help-page__overview[_ngcontent-%COMP%]{align-items:flex-start}.help-page__shortcut[_ngcontent-%COMP%]{align-items:flex-start;flex-direction:column;gap:8px}}"],changeDetection:0})}return n})();var D1=(()=>{class n{constructor(){}isWindows(){return navigator.platform.indexOf("Win")>-1}isLinux(){return navigator.platform.indexOf("Linux")>-1}isDarwin(){return navigator.platform.indexOf("Mac")>-1}static \u0275fac=function(t){return new(t||n)};static \u0275prov=J({token:n,factory:n.\u0275fac})}return n})();var I1=(()=>{class n{platformService;constructor(e){this.platformService=e}get(){return this.platformService.isWindows()?this.getForWindows():this.platformService.isDarwin()?this.getForDarwin():this.getForLinux()}getForWindows(){let e=[{name:"Wireshark",locations:["C:\\Program Files\\Wireshark\\Wireshark.exe"],type:"web",resource:"https://1.na.dl.wireshark.org/win64/all-versions/Wireshark-win64-2.6.3.exe",binary:"Wireshark.exe",sudo:!0,installation_arguments:[],installed:!1,installer:!0}],t={name:"SolarPuTTY",locations:["SolarPuTTY.exe","external\\SolarPuTTY.exe"],type:"web",resource:"",binary:"SolarPuTTY.exe",sudo:!1,installation_arguments:["--only-ask"],installed:!1,installer:!1};return zi.solarputty_download_url&&(t.resource=zi.solarputty_download_url,e.push(t)),e}getForLinux(){return[]}getForDarwin(){return[]}static \u0275fac=function(t){return new(t||n)(_e(D1))};static \u0275prov=J({token:n,factory:n.\u0275fac})}return n})();var A1=(()=>{class n{externalSoftwareDefinition;constructor(e){this.externalSoftwareDefinition=e}list(){return this.externalSoftwareDefinition.get().map(t=>(t.installed=!1,t))}static \u0275fac=function(t){return new(t||n)(_e(I1))};static \u0275prov=J({token:n,factory:n.\u0275fac})}return n})();var Sie=(n,o)=>({hidden:n,lightTheme:o}),kie=/(.*)<\/a>(.*)\s*